@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Caveat:wght@700&display=swap');

:root {
    /* Light Theme by default */
    --bg-dark: #f8fafc;
    --bg-navy: #ffffff;
    --bg-header: rgba(248, 250, 252, 0.85);
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --accent-gold: #ffc212;
    --accent-gold-hover: #e0ab0f;
    --accent-gold-text: #b45309; /* High-contrast readable gold for light mode text */
    --accent-blue: #3b82f6;
    --text-primary: #0f172a;
    --text-muted: #475569; /* Slightly darker muted text for light mode contrast */
    --border-color: #cbd5e1;
    --text-gradient: linear-gradient(135deg, #0f172a 30%, #312e81 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 1px rgba(0, 0, 0, 0.02) inset;
    --shadow-glow: 0 0 20px rgba(255, 194, 18, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    /* Dark Theme overrides */
    --bg-dark: #080e1c;
    --bg-navy: #0b1426;
    --bg-header: rgba(8, 14, 28, 0.85);
    --bg-card: #111d35;
    --bg-card-hover: #172747;
    --accent-gold-text: #ffc212; /* Standard gold for dark mode */
    --text-primary: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --text-gradient: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 1px 1px rgba(255, 255, 255, 0.05) inset;
    --shadow-glow: 0 0 20px rgba(255, 194, 18, 0.15);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Authentication Page Styles (Login/Register) */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(circle at 10% 20%, var(--bg-card) 0%, var(--bg-dark) 90%);
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 194, 18, 0.05) 0%, transparent 70%);
    top: 10%;
    left: 5%;
}

.auth-wrapper::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    bottom: 10%;
    right: 5%;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    height: 50px;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
    background: var(--bg-navy);
}

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--accent-gold);
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 194, 18, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
}

/* Landing Page Styles */
header {
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 5% 40px 5%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 40px;
        text-align: center;
    }
}

.hero-content h1 {
    font-size: 54px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    color: var(--accent-gold-text);
    -webkit-text-fill-color: initial;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 580px;
}

@media (max-width: 968px) {
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Card Mockup Visuals */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 15px;
}

.bombu-card-mockup {
    width: 460px;
    height: 290px;
    flex-shrink: 0;
    background: url('card-template.png') no-repeat center center;
    background-size: 100% 100%;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transform: rotate(0deg) translateY(0);
    transition: var(--transition-smooth);
    overflow: hidden;
}


.bombu-card-mockup:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-gold);
    box-shadow: 0 30px 60px -12px rgba(255, 194, 18, 0.2);
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 6px;
    position: relative;
}

.card-logo {
    height: 30px;
    align-self: flex-end;
}

.card-number {
    font-family: 'Outfit', monospace;
    font-size: 18px;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-holder {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.card-holder span {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 2px;
}

.card-expiry {
    font-size: 11px;
    text-align: right;
    color: var(--text-muted);
}

.card-expiry span {
    display: block;
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Category Grid */
.categories-section {
    max-width: 1400px;
    margin: 40px auto 80px auto;
    padding: 0 5%;
}

.categories-section h2 {
    font-size: 32px;
    margin-bottom: 12px;
    text-align: center;
}

.categories-section > p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-premium);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: inline-block;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Immersive Full Screen Iframe Container */
#sdk-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background-color: var(--bg-dark);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

#sdk-container.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Custom Winking Loader View */
#loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    z-index: 1002;
    transition: opacity 0.4s ease;
}

/* Custom CSS Winking Mascot */
.winking-mascot {
    width: 100px;
    height: 100px;
    background: var(--accent-gold);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 40px rgba(255, 194, 18, 0.3);
    margin-bottom: 30px;
    animation: pulseMascot 2s infinite ease-in-out;
}

/* Left Eye (Normal) */
.winking-mascot::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #080e1c;
    border-radius: 50%;
    top: 35px;
    left: 28px;
}

/* Right Eye (Winking) */
.winking-mascot::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 4px;
    background: #080e1c;
    border-radius: 2px;
    top: 40px;
    right: 28px;
    transform: rotate(-10deg);
    animation: winkAnim 3s infinite ease-in-out;
}

/* Smiling Mouth */
.mascot-mouth {
    position: absolute;
    width: 44px;
    height: 22px;
    border-bottom: 5px solid #080e1c;
    border-radius: 0 0 25px 25px;
    top: 48px;
    left: 28px;
}

/* Mascot Hair (little tuft like logo) */
.mascot-hair {
    position: absolute;
    width: 20px;
    height: 25px;
    background: #080e1c;
    border-radius: 100% 0 100% 0;
    top: -15px;
    left: 40px;
    transform: rotate(-15deg);
}

@keyframes pulseMascot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes winkAnim {
    0%, 90%, 100% {
        height: 4px;
        top: 40px;
    }
    95% {
        height: 12px;
        width: 12px;
        border-radius: 50%;
        top: 35px;
    }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--accent-gold);
    border-radius: 2px;
    animation: fillProgress 3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 90%; }
}

#loading-spinner p {
    font-size: 16px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Error State in Full-Screen Container */
#error-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-premium);
    z-index: 1003;
    display: none;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 24px;
    color: #ef4444;
}

#error-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

#error-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.error-actions button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-retry {
    background: var(--accent-gold);
    color: #000;
    border: none;
}
.btn-retry:hover {
    background: var(--accent-gold-hover);
}

.btn-exit {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-exit:hover {
    background: var(--border-color);
}

/* Iframe */
#hubble-sdk {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-dark);
    display: block;
}

/* Settings Drawer (slide-out panel) */
#settings-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--bg-navy);
    border-left: 1px solid var(--border-color);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

#settings-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.drawer-close {
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.drawer-close:hover {
    color: var(--text-primary);
}

.settings-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    z-index: 99;
}

.settings-btn:hover {
    border-color: var(--accent-gold);
    transform: rotate(45deg);
    box-shadow: var(--shadow-glow);
}

.settings-badge {
    background: rgba(255, 194, 18, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 194, 18, 0.2);
    padding: 8px 12px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.settings-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
}
.settings-toast.show {
    transform: translateX(-50%) translateY(0);
}

/* Mask to cover the "Powered by Hubble" text at the bottom */
.hubble-branding-mask {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 35px;
    background-color: #ffffff;
    z-index: 1001;
    pointer-events: none;
}

/* -------------------------------------------------------------
 * Admin Dashboard Styles
 * ------------------------------------------------------------- */
.admin-wrapper {
    max-width: 1400px;
    margin: 40px auto 80px auto;
    padding: 0 5%;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.admin-title h2 {
    font-size: 32px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-title p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Stats Cards Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
}

.stat-icon.users-icon { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.stat-icon.active-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-icon.revenue-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); }
.stat-icon.referral-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.stat-details h4 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-details p {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

/* Tabs & Sections Layout */
.admin-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.admin-left-col {
    width: 100%;
}

.admin-right-col {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

/* Make the last card (Quick Tip) span full width */
.admin-right-col > .admin-card:nth-child(3) {
    grid-column: span 2;
}

@media (max-width: 968px) {
    .admin-right-col {
        grid-template-columns: 1fr;
    }
    .admin-right-col > .admin-card:nth-child(3) {
        grid-column: span 1;
    }
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 40px;
}

.admin-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.admin-table th {
    background: var(--bg-dark);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 16px;
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin { background: rgba(168, 85, 247, 0.1); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-user { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); border: 1px solid rgba(59, 130, 246, 0.2); }
.badge-active { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-inactive { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }

/* Quick Action Buttons */
.btn-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.btn-action:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

/* -------------------------------------------------------------
 * Paywall Screen Styles
 * ------------------------------------------------------------- */
.paywall-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 5%;
    background: radial-gradient(circle at 10% 20%, var(--bg-card) 0%, var(--bg-dark) 90%);
}

.paywall-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 194, 18, 0.25);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow-premium), var(--shadow-glow);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
}

@media (max-width: 768px) {
    .paywall-card {
        grid-template-columns: 1fr;
    }
}

.paywall-left {
    padding: 48px;
    border-right: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .paywall-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 32px;
    }
}

.paywall-left h2 {
    font-size: 32px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.paywall-left h2 span {
    color: var(--accent-gold);
}

.paywall-left p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
}

.benefit-bullet {
    background: rgba(255, 194, 18, 0.15);
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.paywall-right {
    padding: 48px;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .paywall-right {
        padding: 40px 32px;
    }
}

.price-tag {
    margin-bottom: 32px;
}

.price-tag .amount {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-tag .amount span {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-tag .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 8px;
    display: block;
}

/* Payment Selection Grid */
.payment-methods {
    width: 100%;
    margin-bottom: 24px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.payment-option:hover {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.02);
}

.payment-option.selected {
    border-color: var(--accent-gold);
    background: rgba(255, 194, 18, 0.03);
    box-shadow: var(--shadow-glow);
}

.payment-option input[type="radio"] {
    accent-color: var(--accent-gold);
    width: 18px;
    height: 18px;
}

.payment-details h5 {
    font-size: 15px;
    color: var(--text-primary);
}

.payment-details p {
    font-size: 12px;
    color: var(--text-muted);
}

.payment-icon {
    font-size: 24px;
    margin-left: auto;
}

/* QR Code Mockup */
.qr-container {
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.qr-code {
    width: 160px;
    height: 160px;
    background-image: repeating-conic-gradient(from 0deg, #000 0deg 90deg, #fff 90deg 180deg);
    background-size: 16px 16px;
    border: 4px solid #fff;
    opacity: 0.85;
}

/* Referral details dashboard card */
.referral-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

@media (max-width: 600px) {
    .referral-card {
        flex-direction: column;
        text-align: center;
    }
}

.referral-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.referral-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.referral-share {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
}

.referral-share code {
    font-family: 'Outfit', monospace;
    font-size: 15px;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-copy {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

/* -------------------------------------------------------------
 * Responsive Styling Enhancements
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    header {
        padding: 12px 4%;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    .category-card {
        padding: 24px 16px;
    }
}

@media (max-width: 600px) {
    .nav-user span {
        display: none; /* Hide welcome text to fit toggle button */
    }
    .user-badge {
        padding: 6px;
    }
    .logo {
        height: 32px;
    }
    .hero {
        padding-top: 30px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .referral-card {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .referral-share {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .bombu-card-mockup {
        transform: scale(0.6) !important;
        margin: -50px 0 -45px 0 !important;
    }
}

/* Upgraded Premium Co-Branded Card Mockup Details */
.card-inactive {
    opacity: 0.95;
    filter: saturate(0.85);
}

.card-details-block {
    position: absolute;
    left: 45px;
    top: 138px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 2;
}

.detail-row {
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    white-space: nowrap;
}

.detail-label {
    width: 100px;
    color: #334155;
    letter-spacing: 0.5px;
}

.detail-colon {
    width: 15px;
    color: #64748b;
    text-align: center;
}

.detail-value {
    color: #0b1426;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Inactive State Watermark Stamp */
.card-inactive-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    border: 3px solid #ef4444;
    color: #ef4444;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    pointer-events: none;
}

/* Highlighted Referral Info Card */
.highlighted-referral {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 194, 18, 0.08) 100%) !important;
    border: 1px solid var(--accent-gold) !important;
    box-shadow: 0 10px 25px -5px rgba(255, 194, 18, 0.12);
}

.referral-share-group input.share-link-input {
    font-family: monospace;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

/* Stats Dashboard Bar */
.stats-dashboard-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-3px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 28px;
    background: rgba(255, 194, 18, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}


