/* Modern UI Variables */
:root {
    --primary-color: #ff3333;
    --secondary-color: #ff6666;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --bg-dark: #0f0c29;
}

/* Global Glassmorphism Styles */
body.animated-bg {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.btn-outline-modern {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.btn-outline-modern:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-cta-attract {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(51, 51, 255, 0.3);
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-cta-attract:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(51, 51, 255, 0.5);
    color: #fff;
}

.pulse-animation {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(51, 51, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(51, 51, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(51, 51, 255, 0); }
}

/* Modern Typography & Hero */
.modern-category-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    display: inline-block;
}

.modern-category-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

.hero-title-modern {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.brand-highlight {
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern Button */
.btn-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a9e 100%);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 51, 255, 0.4);
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #4040ff 0%, #3a3abf 100%);
}

.btn-modern i {
    margin-right: 0.5rem;
}

/* Auth Pages Styles */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}

.auth-card {
    background: rgba(15, 12, 41, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(51, 51, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-weight: 700;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.input-group-modern {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group-modern input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-group-modern input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 51, 51, 0.15);
}

.input-group-modern label {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-group-modern input:focus ~ label,
.input-group-modern input:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: #1a1a2e;
    padding: 0 0.5rem;
    border-radius: 4px;
}

.input-group-modern .input-icon {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.input-group-modern input:focus ~ .input-icon {
    color: var(--primary-color);
}

.link-accent {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-accent:hover {
    color: #fff;
    text-decoration: underline;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Summary Card (Payment) */
.product-summary-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.8), rgba(20, 20, 40, 0.9));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-summary-card .checkout-product-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Global checkout product image style */
.checkout-product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.product-summary-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 700;
}

.product-summary-card .price-display {
    font-size: 1.4rem;
    color: #ff3333;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(255, 51, 51, 0.2);
}

/* Pix & Payment Styles */
.pix-container {
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: inline-block;
}

.pix-textarea {
    background: rgba(0,0,0,0.3) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.1) !important;
    border-radius: 12px !important;
    font-family: monospace;
    font-size: 0.9rem;
    resize: none;
}

.alert-modern-danger {
    background: rgba(227,50,65,0.15);
    border: 1px solid #e33241;
    color: #f2c7cc;
    border-radius: 16px;
    padding: 1rem;
}

.product-summary-card {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.copy-feedback {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #ff3333;
    font-weight: 700;
    margin-bottom: 1rem;
}

.payment-status-loader {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Product Wrapper for Grid */
.product-wrapper {
    display: flex;
}

/* Summary Row for Checkout */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-row span:last-child {
    text-align: right;
}

.summary-row.total {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}

/* Modern Product Cards */
.product-card-visual {
    display: flex;
    flex-direction: column;
    background: rgba(30, 30, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.product-card-visual:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.3);
    text-decoration: none;
    transform: translateY(-5px);
}

.product-card-visual .card-image {
    position: relative;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.product-card-visual .card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(30, 30, 40, 0.8), transparent);
    z-index: 1;
}

.product-card-visual .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-visual:hover .card-image img {
    transform: scale(1.1);
}

.product-card-visual .card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-visual .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.product-card-visual .game-icon {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.product-card-visual .product-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-card-visual .status-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.product-card-visual .status-badge.warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.2);
}

.product-card-visual .status-badge.danger {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.2);
}

.product-card-visual.out-of-stock {
    filter: grayscale(1);
    opacity: 0.7;
}

.product-card-visual.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.product-card-visual.out-of-stock .btn-view {
    background: #555;
    color: #999;
}

.product-card-visual .status-badge.warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.product-card-visual .status-badge.danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.product-card-visual .feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.product-card-visual .feature-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-card-visual .status-badge i {
    margin-right: 6px;
    font-size: 0.9em;
}

.product-card-visual .card-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-card-visual .price-tag {
    display: flex;
    flex-direction: column;
}

.product-card-visual .price-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-visual .price-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
}

.product-card-visual .btn-view {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.product-card-visual:hover .btn-view {
    color: #fff;
    transform: translateX(5px);
}

/* Checkout Steps */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--text-muted);
    font-weight: 700;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active .step-badge {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
}

.step-item.active .step-label {
    color: #fff;
}

.step-item.completed .step-badge {
    background: #ff3333;
    border-color: #ff3333;
    color: #fff;
}

.step-item.completed .step-label {
    color: #ff3333;
}

/* Modern Card */
.modern-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Utility Overrides */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { background-color: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.badge-primary { background-color: var(--primary-color) !important; }
