﻿/* CSS Variables for Themes */
:root {
    /* Light Theme */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f7f8;
    --bg-tertiary: #eeeef0;
    --text-primary: #0d0d0d;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --primary-color: #213ffa;
    --primary-hover: #0140fd;
    --primary-color-rgb: 33, 63, 250;
    --bg-primary-rgb: 255, 255, 255;
    --accent-color: #6b7280;
    --success-color: #198754;
    --danger-color: #dc3545;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --glow-color: rgba(1, 64, 253, 0.18);
    --nav-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.2s ease;
}

[data-theme="dark"] {
    /* Dark Theme (Stoiccord-inspired) */
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-tertiary: #1b1b1b;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-color: #213ffa;
    --primary-hover: #0140fd;
    --primary-color-rgb: 33, 63, 250;
    --bg-primary-rgb: 13, 13, 13;
    --accent-color: #9ca3af;
    --success-color: #34d399;
    --danger-color: #f87171;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
    --glow-color: rgba(1, 64, 253, 0.35);
    --nav-bg: rgba(13, 13, 13, 0.75);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar .container,
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 20px;
    position: relative;
}

.navbar {
    background: var(--nav-bg, rgba(255, 255, 255, 0.8));
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

:root[data-theme="dark"] .navbar {
    background: rgba(13, 13, 13, 0.75);
}

.nav-logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    z-index: 2;
}

.nav-logo span {
    color: var(--primary-color);
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.95rem;
    border-radius: 9999px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-pill-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.85;
}

.nav-pill:hover,
.nav-pill:focus,
.nav-dropdown.open > .nav-pill {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-pill.active,
.nav-dropdown.active > .nav-pill {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 99, 102, 241), 0.1);
    font-weight: 600;
}

.nav-pill-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 9999px;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.35rem;
    margin-left: 0.1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    z-index: 2;
}

.nav-icon-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    text-decoration: none;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    position: relative;
}

.nav-icon-btn:hover,
.nav-icon-btn:focus {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.nav-icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.25rem;
    border: 2px solid var(--bg-primary);
}

.nav-avatar {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.nav-avatar:hover,
.nav-dropdown.open > .nav-avatar {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 99, 102, 241), 0.15);
}

.nav-avatar-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(0,0,0,0.14);
    display: none;
    flex-direction: column;
    padding: 0.5rem;
    z-index: 1000;
    animation: fadeInDown 0.18s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown.open .nav-dropdown-panel {
    display: flex;
}

.nav-dropdown-panel-right {
    left: auto;
    right: 0;
}

.nav-dropdown-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.nav-dropdown-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: capitalize;
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-dropdown-item-admin {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-dropdown-item-danger {
    color: #dc3545;
}

.nav-dropdown-item-danger:hover,
.nav-dropdown-item-danger:focus {
    background-color: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.nav-dropdown-badge {
    background-color: #dc3545;
    color: white;
    border-radius: 9999px;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3rem;
}

/* Theme Toggle (legacy) */
.theme-toggle {
    display: flex;
    gap: 0.375rem;
    margin-left: 0.75rem;
    padding-left: 1.25rem;
    border-left: 1px solid var(--border-color);
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.theme-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.theme-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb, 33, 63, 250), 0.45);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 40px rgba(var(--primary-color-rgb, 33, 63, 250), 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

:root:not([data-theme="dark"]) .btn-secondary {
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.08);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn-nav {
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 999px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 22px rgba(var(--primary-color-rgb, 33, 63, 250), 0.4);
}

.btn-nav:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* Chatbot Widget */
.chatbot-wrapper {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    font-family: inherit;
}

.chatbot-toggle {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s, background 0.2s;
}

.chatbot-toggle:hover {
    transform: scale(1.05);
    background-color: var(--primary-hover);
}

.chatbot-window {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 2rem);
    max-height: 85vh;
    min-height: 520px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.chatbot-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    min-height: 180px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-message {
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 85%;
    word-wrap: break-word;
}

.chatbot-bot {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chatbot-user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.chatbot-quick button {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 16px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chatbot-quick button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-primary);
}

.chatbot-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.chatbot-input input {
    flex-grow: 1;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.chatbot-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.chatbot-input button:hover {
    background-color: var(--primary-hover);
}

.chatbot-support {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chatbot-support-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.chatbot-support input,
.chatbot-support textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.chatbot-support textarea {
    min-height: 60px;
}

.chatbot-support button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.chatbot-support button:hover {
    background-color: var(--primary-hover);
}

.chatbot-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    border: 1px solid rgba(25, 135, 84, 0.2);
    align-self: stretch !important;
    text-align: center;
    max-width: 100% !important;
}

.chatbot-error {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid rgba(220, 53, 69, 0.2);
    align-self: stretch !important;
    text-align: center;
    max-width: 100% !important;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 2rem);
        right: -0.5rem;
        bottom: 4rem;
    }

    .chatbot-wrapper {
        right: 1rem;
        bottom: 1rem;
    }
}

/* Plans / Pricing */
.plans-landing {
    background-color: var(--bg-primary);
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.plans-landing h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plans-landing-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 960px;
}

.plan-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.plan-recommended {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.plan-active {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-color-rgb, 13, 110, 253), 0.1);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
}

.plan-priority {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.75rem 0;
    color: var(--text-primary);
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    flex-grow: 1;
    text-align: left;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '\2713 ';
    color: var(--primary-color);
    font-weight: 700;
}

.plan-meta {
    margin-bottom: 1rem;
}

.plan-affiliate {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.plan-priority-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
}

.plan-btn {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Section */
.hero {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.subscription-reminder {
    color: var(--danger-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    text-align: left;
}

.hero-intro-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-intro-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.hero-intro-item-highlight h3 {
    color: var(--primary-color);
}

.intro-price {
    color: var(--primary-color);
    font-weight: 700;
}

.intro-price-then {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.85rem;
}

/* Onboarding Section */
.onboarding {
    background-color: var(--bg-primary);
    padding: 4rem 0;
    transition: background-color 0.3s ease;
}

.onboarding h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.onboarding-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.onboarding-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.onboarding-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.onboarding-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.onboarding-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.onboarding-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.onboarding-login {
    text-align: center;
    margin-top: 1rem;
}

.onboarding-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.onboarding-login a:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    background-color: var(--bg-primary);
    padding: 4rem 0;
    transition: background-color 0.3s ease;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* Forms */
.form-container {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    margin: 2rem auto;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Profile Styles */
.profile-header {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 600;
}

.profile-details h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.profile-details p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-content {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Connection Cards */
.connection-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.connection-card:hover {
    box-shadow: var(--shadow-md);
}

.connection-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.connection-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.connection-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Search Styles */
.search-container {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-box {
    display: flex;
    gap: 1rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid;
}

.alert-error {
    background-color: var(--bg-secondary);
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.alert-success {
    background-color: var(--bg-secondary);
    color: var(--success-color);
    border-color: var(--success-color);
}

/* Floating Language Switcher */
.floating-language-switcher {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1001;
}

.floating-toggle {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.floating-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

.floating-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    overflow: hidden;
}

.floating-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.floating-dropdown-item:last-child {
    border-bottom: none;
}

.floating-dropdown-item:hover {
    background-color: var(--bg-tertiary);
}

.floating-dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-hamburger {
        display: flex;
        margin-left: 0.5rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-top: none;
        border-radius: 0 0 16px 16px;
        padding: 1rem;
        gap: 0.35rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-pill {
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }

    .nav-pill.active,
    .nav-dropdown.active > .nav-pill {
        background-color: var(--bg-tertiary);
    }

    .nav-dropdown-panel {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background-color: var(--bg-tertiary);
        margin: 0.25rem 0 0.5rem 1rem;
        padding: 0.35rem;
        border-radius: 10px;
        animation: none;
    }

    .nav-dropdown-panel-right {
        right: auto;
    }

    .nav-dropdown.open .nav-dropdown-panel {
        display: flex;
    }

    .nav-actions {
        gap: 0.3rem;
    }

    .theme-toggle {
        margin-left: 0;
        padding-left: 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .floating-language-switcher {
        bottom: 1rem;
        left: 1rem;
    }
    
    .floating-toggle {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .floating-dropdown {
        min-width: 100px;
    }
    
    .floating-dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .theme-toggle {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }
    
    .theme-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.875rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .theme-toggle {
        margin-left: 0.25rem;
        padding-left: 0.25rem;
    }
}

/* ---------------------------------------------------------------
   Password input with reveal toggle (login & register)
   --------------------------------------------------------------- */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    line-height: 1;
    user-select: none;
}

/* ---------------------------------------------------------------
   Landing v2: Hero badge & section badges
   --------------------------------------------------------------- */
.hero-badge,
.section-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb, 13, 110, 253), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb, 13, 110, 253), 0.25);
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------
   Footer v2
   --------------------------------------------------------------- */
.footer {
    text-align: left;
    padding: 3.5rem 20px 1.5rem;
    background-color: var(--bg-tertiary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-brand p {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   Freemium: guest browsing, landing teasers & locked CTAs
   ============================================================ */

/* Slim notice banner shown to guests on browse pages */
.guest-banner {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Guest view on search page: aggregated member counts only */
.guest-stats {
    text-align: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    max-width: 820px;
    margin: 1rem auto 0;
}

.guest-stats-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.guest-stats-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.guest-stats-label {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.guest-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.guest-stat {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.guest-stat-icon { font-size: 1.5rem; }
.guest-stat strong { font-size: 1.5rem; color: var(--text-primary); }
.guest-stat span:last-child { font-size: 0.85rem; color: var(--text-secondary); }

.guest-stats-text {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.guest-stats-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .guest-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .guest-stats-number { font-size: 3rem; }
}

/* Locked CTA box (replaces contact fields/buttons for guests & non-subscribers) */
.locked-cta {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Role tags (shared: search cards, member teaser cards) */
.role-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.role-influencer { background: rgba(233, 30, 99, 0.12); color: #e91e63; }
.role-business { background: rgba(33, 150, 243, 0.12); color: #2196f3; }
.role-agency { background: rgba(255, 152, 0, 0.12); color: #ff9800; }
.role-freelancer { background: rgba(156, 39, 176, 0.12); color: #9c27b0; }
.role-other { background: rgba(108, 117, 125, 0.12); color: #6c757d; }

/* Members teaser (landing, guests only) */
.members {
    background-color: var(--bg-primary);
    padding: 4rem 0;
    transition: background-color 0.3s ease;
}

.members h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.members-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.member-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.member-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.member-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0;
}

.member-followers {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.members-empty {
    text-align: center;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 14px;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
}

.members-cta {
    text-align: center;
}

/* Offers teaser (landing, guests only) */
.offers-teaser {
    background-color: var(--bg-secondary);
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.offers-teaser h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.offers-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.offer-teaser-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.offer-teaser-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.offer-teaser-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(var(--primary-color-rgb, 13, 110, 253), 0.1);
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

.offer-teaser-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.offer-teaser-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.5rem;
}

.offer-teaser-seller {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: auto 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.offers-teaser-cta {
    text-align: center;
}

/* How-it-works steps strip (landing, guests only) */
.steps {
    background-color: var(--bg-primary);
    padding: 4rem 0;
    transition: background-color 0.3s ease;
}

.steps h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    transition: var(--transition);
}

.step-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.step-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .members-grid,
    .offers-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .members-grid,
    .offers-teaser-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   THEME v3 — Premium dark landing (Stoiccord-inspired)
   These rules intentionally come last and override the component
   defaults above. All existing class names are preserved.
   ================================================================ */

/* ---- Generic utilities ---------------------------------------- */
.eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.eyebrow-muted {
    color: var(--text-secondary);
}

.section {
    padding: 6rem 20px;
    position: relative;
}

.section-tight {
    padding: 4rem 20px;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-head h2,
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.section-head p,
.section-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 auto;
    max-width: 640px;
}

.glow-hero,
.glow-cta {
    position: relative;
    isolation: isolate;
}

.glow-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(800px circle at 50% 0%, var(--glow-color, rgba(1, 64, 253, 0.35)) 10%, transparent 70%);
}

.glow-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(800px circle at 50% 100%, var(--glow-color, rgba(1, 64, 253, 0.35)) 10%, transparent 70%);
}

.card-dark {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-dark:hover {
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.divider-top {
    border-top: 1px solid var(--border-color);
}

/* ---- Announcement bar ----------------------------------------- */
.announce-bar {
    background: linear-gradient(90deg, rgba(var(--primary-color-rgb, 33, 63, 250), 0.22), rgba(var(--primary-color-rgb, 33, 63, 250), 0.08));
    border-bottom: 1px solid rgba(var(--primary-color-rgb, 33, 63, 250), 0.25);
    color: var(--text-primary);
    text-align: center;
    font-size: 0.85rem;
    padding: 0.5rem 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.announce-bar a {
    color: #fff;
    background-color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease;
}

.announce-bar a:hover {
    background-color: var(--primary-hover);
}

/* ---- Navbar --------------------------------------------------- */
.nav-inner {
    padding: 0.9rem 20px;
}

.nav-pill {
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.85rem;
}

.nav-pill:hover,
.nav-pill:focus,
.nav-dropdown.open > .nav-pill {
    background-color: transparent;
    color: var(--text-primary);
}

.nav-pill.active,
.nav-dropdown.active > .nav-pill {
    background-color: transparent;
    color: var(--text-primary);
}

.nav-pill-icon {
    opacity: 0.7;
}

.nav-icon-btn {
    background-color: transparent;
}

.nav-icon-btn:hover,
.nav-icon-btn:focus {
    background-color: var(--bg-tertiary);
}

@media (max-width: 768px) {
    .nav-menu {
        background-color: var(--bg-primary);
    }

    .nav-pill:hover,
    .nav-pill.active,
    .nav-dropdown.active > .nav-pill {
        background-color: var(--bg-tertiary);
    }
}

/* ---- Hero ----------------------------------------------------- */
.hero {
    background-color: var(--bg-primary);
    padding: 7rem 0 5rem;
    border-bottom: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(800px circle at 50% -10%, var(--glow-color, rgba(1, 64, 253, 0.35)) 10%, transparent 70%);
}

.hero-content {
    max-width: 880px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 7vw, 4.75rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.hero-content > p,
.hero-content .hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2.25rem;
}

.hero-badge,
.section-badge {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.hero-buttons {
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.95rem 1.9rem;
    font-size: 1rem;
}

.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    margin-top: 2.25rem;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-trust li::before {
    content: '\2713';
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 0.5rem;
}

.hero-intro-grid {
    border-top: none;
    padding-top: 0;
    margin-top: 3.5rem;
    gap: 1rem;
}

.hero-intro-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: border-color 0.25s ease;
}

.hero-intro-item:hover {
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.hero-intro-item h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-intro-item-highlight {
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.45);
    box-shadow: 0 0 40px rgba(var(--primary-color-rgb, 33, 63, 250), 0.15);
}

.subscription-reminder {
    color: var(--text-secondary);
    background-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb, 33, 63, 250), 0.3);
    border-radius: 999px;
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* ---- Stats strip (landing, live counts) ----------------------- */
.stats-strip {
    background-color: var(--bg-primary);
    padding: 2rem 0 6rem;
}

.stats-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-total {
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

/* Single-number variant: total members only */
.stats-card-single {
    display: block;
    max-width: 560px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-card-single::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(500px circle at 50% 120%, var(--glow-color, rgba(1, 64, 253, 0.3)) 0%, transparent 70%);
}

.stats-card-single .stats-total {
    border-right: none;
    padding-right: 0;
    position: relative;
}

.stats-card-single .stats-number {
    font-size: clamp(3.5rem, 9vw, 6rem);
}

/* Dropdown caret in navbar */
.nav-caret {
    display: inline-block;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.6;
    transition: transform 0.2s ease;
}

.nav-dropdown.open .nav-caret {
    transform: rotate(-135deg) translateY(-1px);
}

.stats-total .eyebrow {
    margin-bottom: 0.75rem;
}

.stats-number {
    display: block;
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--primary-color);
    text-shadow: 0 0 40px rgba(var(--primary-color-rgb, 33, 63, 250), 0.45);
}

.stats-total-label {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.stats-roles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stats-role {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: border-color 0.25s ease;
}

.stats-role:hover {
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.stats-role strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

.stats-role span {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stats-empty {
    text-align: center;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 1.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.stats-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ---- Statement section ---------------------------------------- */
.statement {
    background-color: var(--bg-primary);
    text-align: center;
}

.statement .section-head {
    margin-bottom: 2rem;
}

.statement-cta {
    margin-top: 2.25rem;
}

/* ---- Onboarding ---------------------------------------------- */
.onboarding {
    padding: 6rem 0;
}

.onboarding h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.onboarding-subtitle {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.onboarding-card {
    background-color: var(--bg-secondary);
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem;
    box-shadow: none;
}

.onboarding-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(var(--primary-color-rgb, 33, 63, 250), 0.15);
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.6);
}

.onboarding-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.onboarding-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---- Features ("what you get") ------------------------------- */
.features {
    padding: 6rem 0;
}

.features h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.features .section-head h2 {
    margin-bottom: 1.25rem;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.35rem 1.5rem;
    transition: border-color 0.25s ease;
}

.feature-row:hover {
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.feature-check {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.15);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    margin-top: 0.1rem;
}

.feature-row h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.feature-row p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* ---- Interactive starfield background ------------------------ */
.starfield-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.starfield-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.starfield-section > .container {
    position: relative;
    z-index: 1;
}

/* ---- Features split layout ("GET ACCESS TO" style) ------------ */
.features-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
}

.features-split-intro {
    position: sticky;
    top: 7rem;
}

.features-split-intro .eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
}

.features-split-intro h2 {
    text-align: left;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.features-split-intro p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 440px;
    margin-bottom: 2rem;
}

.feature-big-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.feature-big {
    position: relative;
    padding: 1.6rem 0 1.6rem 2.75rem;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-big:first-child {
    border-top: 1px solid var(--border-color);
}

.feature-big::before {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 2.05rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(var(--primary-color-rgb, 33, 63, 250), 0.35);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-big:hover {
    transform: translateX(6px);
}

.feature-big:hover::before {
    box-shadow: 0 0 0 8px rgba(var(--primary-color-rgb, 33, 63, 250), 0.18);
    transform: scale(1.15);
}

.feature-big h3 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}

.feature-big p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 900px) {
    .features-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .features-split-intro {
        position: static;
    }

    .features-split-intro h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
}

.feature-card {
    border-radius: 1.25rem;
    box-shadow: none;
}

.feature-card:hover {
    box-shadow: none;
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.feature-icon {
    font-size: 2.25rem;
}

/* ---- Steps ---------------------------------------------------- */
.steps {
    padding: 6rem 0;
}

.steps h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.step-item {
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
}

.step-item:hover {
    box-shadow: none;
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary-color);
    opacity: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(var(--primary-color-rgb, 33, 63, 250), 0.45);
}

.step-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ---- Members / offers teasers -------------------------------- */
.members,
.offers-teaser {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    border-top: none;
    border-bottom: none;
}

.members h2,
.offers-teaser h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.member-card,
.offer-teaser-card {
    background-color: var(--bg-secondary);
    border-radius: 1.25rem;
    box-shadow: none;
}

.member-card:hover,
.offer-teaser-card:hover {
    box-shadow: none;
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

/* ---- Pricing -------------------------------------------------- */
.plans-landing {
    padding: 6rem 0;
    border-top: none;
    background-color: var(--bg-primary);
}

.plans-landing h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.plans-landing-subtitle {
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.plan-card {
    background-color: var(--bg-secondary);
    border-radius: 1.5rem;
    padding: 2.25rem 1.75rem;
    text-align: left;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: none;
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.plan-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.plan-recommended {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 60px rgba(var(--primary-color-rgb, 33, 63, 250), 0.25);
}

.plan-recommended:hover {
    border-color: var(--primary-hover);
    box-shadow: 0 0 70px rgba(var(--primary-color-rgb, 33, 63, 250), 0.35);
}

.plan-badge {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.plan-price {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 1rem 0 1.5rem;
}

.plan-price span {
    font-size: 0.95rem;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.plan-features li {
    padding: 0.6rem 0;
    font-size: 0.92rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ---- FAQ ------------------------------------------------------ */
.faq {
    padding: 6rem 20px !important;
}

.faq h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.faq-item {
    background-color: var(--bg-secondary) !important;
    border-radius: 1rem !important;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(var(--primary-color-rgb, 33, 63, 250), 0.5) !important;
}

.faq-question {
    padding: 1.15rem 1.5rem !important;
}

.faq-question::after {
    content: '' !important;
    width: 0.6rem;
    height: 0.6rem;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-top: -0.3rem;
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(-135deg) !important;
    margin-top: 0.3rem;
    border-color: var(--primary-color);
}

.faq-answer-inner p {
    padding: 0 1.5rem 1.25rem !important;
}

/* ---- Final CTA ------------------------------------------------ */
.final-cta {
    padding: 2rem 20px 7rem;
    background-color: var(--bg-primary);
}

.final-cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(var(--primary-color-rgb, 33, 63, 250), 0.35);
    border-radius: 2rem;
    padding: 5rem 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.final-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(800px circle at 50% 120%, var(--glow-color, rgba(1, 64, 253, 0.35)) 10%, transparent 70%);
}

.final-cta-card h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.final-cta-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
}

/* ---- Guest stats (search page) -------------------------------- */
.guest-stats {
    border-radius: 1.5rem;
}

.guest-stats-number {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    text-shadow: 0 0 40px rgba(var(--primary-color-rgb, 33, 63, 250), 0.45);
}

.guest-stat {
    border-radius: 1rem;
}

/* ---- Forms ---------------------------------------------------- */
.form-container {
    background-color: var(--bg-secondary);
    border-radius: 1.5rem;
    box-shadow: none;
    padding: 2.5rem;
}

.form-group input,
.form-group textarea,
.form-group select,
.search-box input,
.chatbot-support input,
.chatbot-support textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
}

:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea,
:root[data-theme="dark"] .form-group select,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .chatbot-support input,
:root[data-theme="dark"] .chatbot-support textarea {
    background-color: #141414;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.search-box input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb, 33, 63, 250), 0.25);
}

:root[data-theme="dark"] .form-group select option {
    background-color: #141414;
    color: #fff;
}

/* ---- Alerts --------------------------------------------------- */
.alert {
    border-radius: 0.85rem;
    font-size: 0.95rem;
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.4);
}

.alert-success {
    background-color: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.4);
}

/* ---- Footer --------------------------------------------------- */
.footer {
    background-color: var(--bg-primary);
    text-align: center;
    padding: 3.5rem 20px 2.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-minimal .footer-logo {
    font-size: 1.35rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ---- Chatbot & floating widgets ------------------------------ */
.chatbot-window {
    border-radius: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.chatbot-toggle {
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb, 33, 63, 250), 0.5);
}

.floating-toggle {
    border-radius: 999px;
    box-shadow: var(--shadow-md);
}

.floating-dropdown {
    border-radius: 0.85rem;
}

/* ---- Responsive ------------------------------------------------ */
@media (max-width: 900px) {
    .stats-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }

    .stats-total {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }

    .stats-roles {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0 3.5rem;
    }

    .section,
    .onboarding,
    .features,
    .steps,
    .members,
    .offers-teaser,
    .plans-landing {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .final-cta-card {
        padding: 3.5rem 1.5rem;
        border-radius: 1.5rem;
    }

    .announce-bar {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .stats-roles {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
