/* Branca Store - Core CSS Stylesheet */

:root {
    /* Color System */
    --bg-primary: #060913;
    --bg-secondary: #0c1222;
    --bg-tertiary: #121b30;
    --border-color: rgba(255, 255, 255, 0.07);
    
    /* Typography Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Branding Accent Colors (Free Fire themed) */
    --accent-orange: #f97316;
    --accent-orange-dark: #ea580c;
    --accent-red: #ef4444;
    --accent-gold: #eab308;
    --accent-green: #10b981;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--accent-orange), var(--accent-red));
    --grad-glow: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
    --grad-card: radial-gradient(circle at top left, rgba(249, 115, 22, 0.05), rgba(0, 0, 0, 0));
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.35);
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Glow FX */
.glow-bg {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--grad-glow);
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}
.glow-left { top: -200px; left: -250px; }
.glow-right { bottom: -200px; right: -250px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar / Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
}
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.nav-badge {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-nav-support {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-nav-support:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(249, 115, 22, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 30px 0;
}
.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
    margin-bottom: 15px;
}
.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 30px auto;
}

/* Category Tabs Selector */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.category-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.category-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(249, 115, 22, 0.3);
}
.category-tab-btn.active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Streaming Catalog Grid */
.streaming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0 60px 0;
}
.streaming-card {
    background-color: var(--bg-secondary);
    background-image: var(--grad-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.streaming-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 115, 22, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Card Header elements */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.card-brand-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.card-badge-stock {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}
.card-badge-stock.empty {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

/* Card content */
.card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Pricing block */
.card-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.pricing-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}
.price-value {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}
.price-value span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}
.btn-primary:disabled {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Modais de Checkout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 9, 19, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 480px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 35px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.modal-content.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.modal-header {
    margin-bottom: 25px;
}
.modal-title {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.02em;
}
.modal-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-group input {
    width: 100%;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-group input:focus {
    border-color: var(--accent-orange);
}

/* Spinner Animations */
.spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(249, 115, 22, 0.15);
    border-top: 4px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(249, 115, 22, 0.15);
    border-top: 2px solid var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkout-step-panel {
    text-align: center;
}

/* PIX Checkout specific designs */
.pix-instructions {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}
.qr-code-wrapper {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 20px;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.qr-code-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pix-copy-paste-container {
    text-align: left;
    margin-bottom: 20px;
}
.pix-copy-paste-container label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.pix-copy-row {
    display: flex;
    gap: 10px;
}
.pix-key-input {
    flex-grow: 1;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 12px;
    outline: none;
}

.payment-status-checker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.modal-footer-info {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Success panel credentials designs */
.success-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}
.credentials-card {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;
}
.credential-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.credential-row:last-child {
    margin-bottom: 0;
}
.cred-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.cred-copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
}
.cred-value {
    font-size: 13px;
    font-weight: 700;
    font-family: monospace;
}

.success-helper-box {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px;
    text-align: left;
}

/* Out of Stock visual adjustments */
.streaming-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.4);
    border-color: rgba(239, 68, 68, 0.15) !important;
}
.streaming-card.out-of-stock:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Footer style */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
}
.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}
.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.footer-links a:hover {
    color: var(--accent-orange);
}

/* Responsive media queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .streaming-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
    }
    .pix-copy-row {
        flex-direction: column;
    }
    .pix-copy-row .btn {
        width: 100%;
    }
}
