/* opineom.com – modern, visually appealing theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Light theme (default) */
:root,
[data-theme="light"] {
    --bg: #f4f5f8;
    --bg-elevated: #ffffff;
    --surface: #ffffff;
    --surface2: #e8eaef;
    --surface3: #dde0e6;
    --text: #1a1d24;
    --text-muted: #5c6370;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-subtle: rgba(79, 70, 229, 0.12);
    --accent-glow: rgba(79, 70, 229, 0.25);
    --gradient-start: #4f46e5;
    --gradient-end: #7c3aed;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Dark theme */
[data-theme="dark"] {
    --bg: #0c0f14;
    --bg-elevated: #13171e;
    --surface: #1a1f28;
    --surface2: #252b36;
    --surface3: #2d3544;
    --text: #f0f2f5;
    --text-muted: #8b92a0;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-subtle: rgba(99, 102, 241, 0.15);
    --accent-glow: rgba(99, 102, 241, 0.35);
    --gradient-start: #6366f1;
    --gradient-end: #8b5cf6;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .site-header.header-guest {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(232, 234, 239, 0.9);
}

[data-theme="light"] .lang-dropdown-trigger { color: var(--text); }
[data-theme="light"] .lang-dropdown-trigger:hover { color: var(--accent); }
[data-theme="light"] .lang-dropdown-menu { background: var(--surface); border-color: var(--surface2); box-shadow: var(--shadow); }
[data-theme="light"] .lang-dropdown-menu a { color: var(--text); }
[data-theme="light"] .lang-dropdown-menu a:hover { background: var(--surface2); color: var(--accent); }

/* Theme toggle: in dark mode show sun (switch to light), in light mode show moon (switch to dark) */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    border-radius: 8px;
    color: var(--text-muted);
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.theme-toggle:hover {
    opacity: 1;
    color: var(--text);
    background: var(--surface2);
}

.theme-toggle .theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle .theme-icon-sun {
    display: inline-flex;
}

.theme-toggle .theme-icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .theme-icon-moon {
    display: inline-flex;
}

.theme-toggle svg {
    display: block;
    color: currentColor;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* ----- Referral banner (thin dismissible top strip) ----- */
.referral-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.5rem 3rem 0.5rem 1rem;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: center;
    z-index: 101;
}

.referral-banner[hidden] {
    display: none;
}

.referral-banner-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 0.75rem;
}

.referral-banner-icon {
    font-size: 1rem;
    line-height: 1;
}

.referral-banner-text {
    color: rgba(255, 255, 255, 0.95);
}

.referral-banner-text strong {
    color: #ffffff;
    font-weight: 700;
}

.referral-banner-cta {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.referral-banner-cta:hover {
    text-decoration: none;
}

.referral-banner-close {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.35rem;
    line-height: 1;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.referral-banner-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

@media (max-width: 600px) {
    .referral-banner {
        font-size: 0.8rem;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }
    .referral-banner-inner {
        gap: 0.25rem 0.5rem;
    }
}

.main {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem;
    padding-top: 2rem;
}

/* ----- Header ----- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--surface2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header.header-guest {
    background: rgba(26, 31, 40, 0.85);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(37, 43, 54, 0.8);
}

.site-header .logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.site-header .logo:hover {
    color: var(--accent-light);
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--accent-light);
}

.site-header .nav-guest {
    gap: 0.75rem;
    align-items: center;
}

/* Language dropdown (hover) with flags */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

.lang-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.lang-dropdown-trigger:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown .lang-code {
    font-size: 0.8rem;
}

.lang-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 160px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    overflow: hidden;
}

.lang-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.lang-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lang-dropdown-menu a:hover {
    background: var(--surface2);
}

.lang-dropdown-menu a.active {
    background: var(--accent-subtle, rgba(99, 102, 241, 0.15));
    color: var(--accent);
}

.nav-guest-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.nav-guest-link:hover {
    color: #fff;
}

.site-header .nav-guest .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.site-header .points {
    font-weight: 600;
    color: var(--accent-light);
}

/* User dropdown: profile name as trigger, "Log out" on hover */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: none;
    background: none;
    font: inherit;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.user-dropdown-trigger:hover {
    color: var(--accent-light);
    background: var(--surface2);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.25rem;
    min-width: 120px;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.is-open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.user-dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-dropdown-menu a:hover {
    background: var(--surface2);
    color: var(--accent-light);
}

[data-theme="light"] .user-dropdown-menu {
    background: var(--surface);
    border-color: var(--surface2);
    box-shadow: var(--shadow);
}

[data-theme="light"] .user-dropdown-menu a {
    color: var(--text);
}

[data-theme="light"] .user-dropdown-menu a:hover {
    background: var(--surface2);
    color: var(--accent);
}

/* Mobile nav: hamburger + slide-down panel */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: var(--surface2);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }

    .site-header .logo {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-panel {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--surface);
        border-bottom: 1px solid var(--surface2);
        transition: max-height 0.3s ease;
        order: 99;
    }

    .site-header.header-guest .nav-panel {
        background: rgba(26, 31, 40, 0.98);
        border-bottom-color: rgba(37, 43, 54, 0.8);
    }

    .site-header.nav-open .nav-panel {
        max-height: 85vh;
        overflow-y: auto;
    }

    .nav-panel nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1rem 1rem;
    }

    .nav-panel nav a,
    .nav-panel .lang-dropdown,
    .nav-panel .user-dropdown,
    .nav-panel .points,
    .nav-panel .theme-toggle {
        margin: 0;
    }

    .nav-panel nav a {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }

    .nav-panel nav a:hover {
        background: var(--surface2);
    }

    .nav-panel .lang-dropdown-trigger,
    .nav-panel .user-dropdown-trigger {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        width: 100%;
        text-align: left;
    }

    .nav-panel .points {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .nav-panel .theme-toggle {
        align-self: flex-start;
        padding: 0.5rem 1rem;
    }

    /* Dropdowns in mobile panel: open below item, full width */
    .nav-panel .lang-dropdown-menu {
        left: 0;
        right: auto;
        min-width: 100%;
        margin-top: 0;
        border-radius: 0 0 8px 8px;
    }

    .nav-panel .user-dropdown-menu {
        left: 0;
        right: 0;
        min-width: 100%;
    }

    [data-theme="light"] .site-header.header-guest .nav-panel {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: var(--surface2);
    }
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
    background: var(--surface2);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--surface3);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--surface3);
}

.btn-ghost:hover {
    background: var(--surface2);
    border-color: var(--surface3);
    color: var(--accent-light);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ----- Landing page ----- */
.main--landing {
    max-width: none;
    padding: 0;
}

.landing {
    padding-bottom: 4rem;
    width: 100%;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 3rem 1.5rem 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-glow), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(99, 102, 241, 0.1), transparent);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-content {
    max-width: 560px;
}

@media (max-width: 900px) {
    .hero-content {
        max-width: none;
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--surface2);
    border: 1px solid var(--surface3);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.35rem;
    color: var(--accent-light);
    font-weight: 600;
    margin: 0 0 1rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    max-width: 480px;
}

@media (max-width: 900px) {
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-welcome-bonus {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 14%, var(--surface) 86%);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-welcome-bonus-icon {
    display: inline-flex;
    width: 1.3rem;
    height: 1.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .hero-welcome-bonus {
        display: inline-flex;
        max-width: 460px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 900px) {
    .hero-cta {
        justify-content: center;
    }
}

.hero-cta .btn {
    min-width: 140px;
}

.hero-visual {
    position: relative;
    width: 260px;
    height: 260px;
    pointer-events: none;
    justify-self: end;
}

@media (max-width: 900px) {
    .hero-visual {
        display: none;
    }
}

.floating-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
}

.floating-card .card-icon {
    font-size: 1.35rem;
}

.card-1 { left: 0; top: 15%; animation-delay: 0s; }
.card-2 { right: 0; top: 42%; animation-delay: -2s; }
.card-3 { left: 10%; bottom: 10%; animation-delay: -4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* ----- Sections ----- */
.landing .section {
    padding: 4rem 1.5rem;
}

.landing .section:nth-child(even) {
    background: var(--bg-elevated);
}

.landing .container {
    max-width: 1000px;
    margin: 0 auto;
}

.landing .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    text-align: center;
}

.landing .section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* What we do */
.landing .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.landing .feature-card {
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.landing .feature-card:hover {
    border-color: var(--surface3);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.landing .feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.landing .feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.landing .feature-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Company details */
.landing .company-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.landing .company-block h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.landing .company-tagline {
    color: var(--accent-light);
    font-weight: 500;
    margin: 0 0 1.5rem;
    font-size: 1rem;
}

.landing .company-meta {
    display: grid;
    gap: 0.5rem 1rem;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.landing .company-meta dt {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

.landing .company-meta dd {
    margin: 0;
}

.landing .company-meta a {
    color: var(--accent-light);
    text-decoration: none;
}

.landing .company-meta a:hover {
    text-decoration: underline;
}

.landing .company-about {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--surface2);
}

/* CTA section */
.landing .cta-section {
    text-align: center;
}

.landing .cta-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem 2rem;
}

.landing .cta-card .section-title {
    margin-bottom: 0.75rem;
}

.landing .cta-card .section-lead {
    margin-bottom: 1.5rem;
}

.landing .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* ----- Cards (app pages) ----- */
.card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.card .sub, .auth-card .sub {
    color: var(--text-muted);
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

/* Auth */
.auth-card {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-card h1 {
    margin-bottom: 0.25rem;
}

.affiliate-notice {
    background: var(--surface2);
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.welcome-bonus-notice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface) 88%);
    border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
}

.welcome-bonus-notice-icon {
    display: inline-flex;
    width: 1.25rem;
    height: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 20%, transparent);
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.auth-card label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-card label.optional {
    opacity: 0.9;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-card .label-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.15rem;
}

.auth-card select.input-select {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
}

.auth-card select.input-select:focus {
    outline: none;
    border-color: var(--accent);
}

.auth-footer {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ----- Profile (redesign) ----- */
.profile-page {
    max-width: 900px;
    margin: 0 auto;
}

.profile-page .message {
    margin-bottom: 1rem;
}

/* Header */
.profile-header {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 50%, rgba(99, 102, 241, 0.08) 100%);
    border: 1px solid var(--surface3);
}

.profile-header-content {
    position: relative;
    padding: 2rem 1.75rem;
    text-align: center;
}

.profile-avatar-wrap {
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent), var(--gradient-end));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.03em;
    box-shadow: 0 8px 32px var(--accent-glow);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.profile-title {
    margin: 0 0 0.25rem;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-email {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.profile-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.profile-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.profile-pill.points {
    background: var(--surface3);
    color: var(--accent-light);
}

.profile-pill.verified {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

/* Body: two columns */
.profile-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 720px) {
    .profile-body {
        grid-template-columns: 1fr;
    }
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Blocks */
.profile-block {
    padding: 1.5rem 1.5rem;
}

.profile-block-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
    line-height: 1.4;
}

.profile-info-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0;
}

.profile-locale-select {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    margin-top: 0.35rem;
}

.profile-block-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--surface2);
}

/* Personal info */
.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--surface2);
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-k {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-info-v {
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* Security form */
.profile-form-row {
    margin-bottom: 1rem;
}

.profile-form-row:last-of-type {
    margin-bottom: 1.25rem;
}

.profile-form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.profile-form input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.profile-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.profile-form .btn {
    width: 100%;
}

/* Verification block */
.profile-verify-block .verify-status {
    padding: 0;
}

.verify-status p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.verify-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.verify-status.verified {
    color: var(--success);
}

.verify-status.verified .verify-icon {
    color: var(--success);
}

.verify-status.pending .verify-icon {
    color: var(--accent-light);
}

.verify-status.not-verified .verify-icon {
    opacity: 0.9;
}

.profile-verify-block .btn {
    margin-bottom: 0.5rem;
}

.profile-link {
    font-size: 0.85rem;
    color: var(--accent-light);
    text-decoration: none;
}

.profile-link:hover {
    text-decoration: underline;
}

/* Reward requests list */
.profile-empty {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-empty a {
    color: var(--accent-light);
    text-decoration: none;
}

.profile-empty a:hover {
    text-decoration: underline;
}

.profile-requests-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-request-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface2);
}

.profile-request-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-request-item:first-child {
    padding-top: 0;
}

.profile-request-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-request-reward {
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-request-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.profile-request-item.status-pending .profile-request-badge {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
}

.profile-request-item.status-approved .profile-request-badge {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.profile-request-item.status-declined .profile-request-badge {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.profile-request-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.profile-request-reason,
.profile-request-note {
    font-size: 0.82rem;
    margin: 0;
    color: var(--text-muted);
}

.profile-request-item.status-approved .profile-request-note {
    color: var(--success);
}

.profile-request-gift-card {
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.profile-gift-card-code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--surface2);
    border-radius: 6px;
    font-family: ui-monospace, monospace;
    font-size: 0.9rem;
    word-break: break-all;
    user-select: all;
}

/* Points history */
.points-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.points-history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface2);
}

.points-history-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.points-history-item:first-child {
    padding-top: 0;
}

.points-history-main {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    min-width: 0;
}

.points-history-amount {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 50px;
}

.points-history-amount.positive {
    color: var(--success);
}

.points-history-amount.negative {
    color: var(--error);
}

.points-history-desc {
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.points-history-date {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ----- Admin ----- */
.admin-nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--surface2);
}

.admin-nav a {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.admin-nav a:hover {
    color: var(--text);
    background: var(--surface2);
}

.admin-nav a.active {
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.15);
}

.admin-page {
    max-width: 900px;
    margin: 0 auto;
}

.admin-back {
    margin-bottom: 1rem;
}

.admin-back a {
    color: var(--text-muted);
    text-decoration: none;
}

.admin-back a:hover {
    color: var(--accent-light);
}

.admin-request-card h1 {
    margin-bottom: 1rem;
}

.admin-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--surface2);
}

.admin-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.admin-section h2 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.admin-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.admin-section-head h2 {
    margin-bottom: 0;
}

.admin-section p {
    margin: 0 0 0.35rem;
}

.admin-decision-form {
    margin-top: 0.5rem;
}

.admin-adjust-points-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
}

.admin-adjust-points-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-decline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-gift-card-row {
    margin-bottom: 0.75rem;
}

.admin-gift-card-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.admin-reason-input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
}

.admin-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.admin-message-success {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.admin-message-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-submission-actions {
    margin-top: 0.5rem;
}

.admin-decline-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 480px;
}

.admin-decline-row .admin-decline-reason-input,
.admin-decline-reason-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--surface2);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
}

.admin-decline-reason {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-outline-danger {
    align-self: flex-start;
    background: transparent;
    color: var(--error);
    border: 1px solid var(--error);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.requests-table th,
.requests-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--surface2);
}

.requests-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table .muted {
    display: block;
    font-size: 0.8rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--surface2);
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-approved { background: rgba(34, 197, 94, 0.2); color: var(--success); }
.badge-declined { background: rgba(239, 68, 68, 0.2); color: var(--error); }
.badge-pending { background: rgba(234, 179, 8, 0.2); color: #eab308; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--error); }

.row-deleted {
    opacity: 0.65;
}

.row-deleted .muted {
    color: var(--error);
}

.admin-answers-list {
    margin: 0;
}

.admin-answer-row {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface2);
}

.admin-answer-row:last-child {
    border-bottom: none;
}

.admin-answer-row dt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.admin-answer-row dd {
    margin: 0;
    font-size: 0.95rem;
}

/* ----- Rewards ----- */
.rewards-page {
    max-width: 720px;
    margin: 0 auto;
}

.rewards-intro h1 {
    margin: 0 0 0.25rem;
}

.rewards-balance {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.rewards-balance strong {
    color: var(--accent-light);
}

.rewards-intro .message.notice {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--accent-light);
}

.rewards-intro .message.notice a {
    color: #fff;
    text-decoration: underline;
}

.rewards-country-row {
    margin-bottom: 1.25rem;
}

.rewards-country-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rewards-country-form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.rewards-country-form select {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--surface2);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    min-width: 180px;
}

.rewards-list h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.reward-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.reward-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
}

.reward-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reward-icon {
    font-size: 1.5rem;
}

.reward-card-image {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.reward-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.reward-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.reward-cost {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin: 0 0 1rem;
}

.reward-redeem-form {
    margin: 0;
    margin-top: auto;
}

.reward-redeem-form .btn {
    width: 100%;
}

.reward-locked {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.reward-card .btn-secondary {
    margin-top: auto;
}

/* Reward redeem confirmation modal */
.reward-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.reward-modal[hidden] {
    display: none;
}

.reward-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.reward-modal-content {
    position: relative;
    max-width: 420px;
    width: 100%;
    padding: 1.5rem;
}

.reward-modal-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.reward-modal-message {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.reward-modal-message strong {
    color: var(--text);
}

.reward-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-gift-code {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    background: var(--surface2);
    border-radius: 4px;
    word-break: break-all;
}

/* ----- Survey intro (before you start) ----- */
.survey-intro-page {
    max-width: 600px;
    margin: 0 auto;
}

.survey-intro-card {
    padding: 2rem 1.75rem;
}

.survey-intro-card h1 {
    margin: 0 0 0.35rem;
}

.survey-intro-reward {
    color: var(--accent-light);
    font-weight: 600;
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
}

.survey-intro-section {
    margin-bottom: 1.75rem;
}

.survey-intro-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.survey-intro-section p {
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    font-size: 0.98rem;
}

.survey-intro-lead {
    margin-bottom: 0.5rem !important;
}

.survey-intro-questions {
    margin: 0;
    padding-left: 1.35rem;
    color: var(--text);
    line-height: 1.7;
}

.survey-intro-questions li {
    margin-bottom: 0.35rem;
}

.survey-intro-oath {
    background: var(--surface2);
    border: 1px solid var(--surface3);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    margin: 1.5rem 0 1.25rem;
}

.survey-intro-oath-text {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 1rem !important;
    color: var(--text);
}

.survey-intro-oath .btn {
    display: inline-block;
}

.survey-intro-back {
    margin: 0 !important;
    font-size: 0.9rem;
}

.survey-intro-back a {
    color: var(--text-muted);
    text-decoration: none;
}

.survey-intro-back a:hover {
    color: var(--accent-light);
}

/* Messages */
.message {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid var(--error);
    color: #f87171;
}

.message.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--success);
    color: var(--success);
}

/* ----- Dashboard ----- */
.welcome-card {
    margin-bottom: 2rem;
}

.welcome-card h1 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.points-big {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.welcome-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.referred-by {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.surveys-list h2 {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.surveys-list .sub {
    margin-bottom: 1rem;
}

.surveys-list .dashboard-locked-message {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted, #666);
    font-size: 0.9rem;
}

.survey-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.survey-card {
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: var(--radius);
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 0.2s;
}

.survey-card:hover {
    border-color: var(--surface3);
}

.survey-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.survey-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.survey-card .reward {
    color: var(--accent-light);
    font-weight: 600;
}

.survey-card.completed {
    opacity: 0.9;
    border-color: rgba(34, 197, 94, 0.4);
}

.survey-card .badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    width: fit-content;
}

.survey-card-locked {
    opacity: 0.85;
}

.survey-card-locked .btn-disabled {
    cursor: default;
    pointer-events: none;
    background: var(--surface2);
    color: var(--text-muted);
    border-color: var(--surface2);
}

.survey-requirements {
    margin: 0.65rem 0 0.25rem;
    padding: 0.65rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface2);
    border-radius: 8px;
    font-size: 0.88rem;
}

.survey-requirements-title {
    margin: 0 0 0.35rem !important;
    font-weight: 600;
    color: var(--text) !important;
    font-size: 0.88rem !important;
}

.survey-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.survey-requirements li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.15rem 0;
    color: var(--text-muted);
    line-height: 1.35;
}

.survey-requirements li .req-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.05rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.survey-requirements li.req-met {
    color: var(--text);
}

.survey-requirements li.req-met .req-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
}

.survey-requirements li.req-unmet .req-icon {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Survey page */
.survey-page .survey-card-single .survey-desc {
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.survey-page .reward {
    margin-bottom: 1.25rem;
    color: var(--accent-light);
    font-weight: 500;
}

.questions {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.question {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--surface2);
}

.question:last-of-type {
    border-bottom: none;
}

.q-text {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.q-optional {
    font-weight: normal;
    font-size: 0.9em;
    opacity: 0.85;
}

.question-scale {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
}

.question-scale .scale-slider {
    flex: 1;
    min-width: 120px;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface2);
    border-radius: 4px;
    outline: none;
}

.question-scale .scale-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.15s;
}

.question-scale .scale-slider::-webkit-slider-thumb:hover {
    transform: scale(1.08);
}

.question-scale .scale-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid var(--bg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.question-scale .scale-value {
    min-width: 2ch;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent);
}

.question input[type="text"],
.question input[type="number"],
.question select {
    width: 100%;
    max-width: 400px;
    padding: 0.55rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.question input:focus,
.question select:focus {
    outline: none;
    border-color: var(--accent);
}

.yesno {
    display: flex;
    gap: 1rem;
}

.yesno label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Referral page */
.referral-box {
    margin: 1rem 0;
}

.referral-box label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ref-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--surface2);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.referral-box .btn {
    vertical-align: middle;
}

.small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

.small code {
    background: var(--surface2);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* ----- Footer ----- */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--surface2);
    margin-top: 2rem;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    margin-top: 0.5rem !important;
    font-size: 0.85rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: underline;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-sep {
    margin: 0 0.4rem;
}

/* ----- Rewards info block ----- */
.rewards-info {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--surface2);
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.rewards-info h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.rewards-info ol {
    margin: 0 0 0.6rem 1.2rem;
    padding: 0;
}

.rewards-info ol li {
    margin-bottom: 0.3rem;
}

.rewards-legal {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----- Referral page ----- */
.referral-card {
    margin-bottom: 1.5rem;
}

.referral-how {
    margin: 1rem 0 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--surface2);
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.referral-how h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
}

.referral-how ol {
    margin: 0 0 0.6rem 1.2rem;
    padding: 0;
}

.referral-how ol li {
    margin-bottom: 0.3rem;
}

.referral-list-card h2 {
    margin-bottom: 0.25rem;
}

.referral-count {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
}

.referral-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.referral-table th,
.referral-table td {
    text-align: left;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--surface2);
}

.referral-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pill-verified {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.15);
    color: #388e3c;
    font-size: 0.82rem;
    font-weight: 600;
}

.pill-pending {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 152, 0, 0.15);
    color: #e65100;
    font-size: 0.82rem;
    font-weight: 600;
}

.points-earned {
    color: #388e3c;
    font-weight: 600;
}

.points-waiting {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* ----- Legal pages (terms, privacy) ----- */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
}

.legal-page h1 {
    margin-bottom: 0.25rem;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.legal-page h2 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.1rem;
}

.legal-page ul,
.legal-page ol {
    margin: 0.4rem 0 0.8rem 1.2rem;
    padding: 0;
}

.legal-page li {
    margin-bottom: 0.3rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0 1rem;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--surface2);
}

.legal-table th {
    background: var(--surface2);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ----- Merchants section (landing page) ----- */
.landing .merchants-section {
    background: var(--bg-elevated);
}

.landing .merchants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.landing .merchant-point {
    text-align: center;
    padding: 1.75rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.landing .merchant-point:hover {
    border-color: var(--surface3);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.landing .merchant-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.landing .merchant-point h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.landing .merchant-point p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.landing .merchants-cta {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.landing .merchants-cta a {
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
}

.landing .merchants-cta a:hover {
    text-decoration: underline;
}

/* ----- For business page ----- */
.business-page {
    max-width: 760px;
    margin: 0 auto;
}

.business-hero {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.business-hero h1 {
    font-size: 1.8rem;
    margin: 0 0 0.6rem;
}

.business-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.business-how {
    margin-bottom: 2rem;
}

.business-how h2 {
    margin-bottom: 1rem;
}

.business-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.business-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface2);
}

.business-steps li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-num {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
}

.business-steps h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.business-steps p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.business-benefits {
    margin-bottom: 2rem;
}

.business-benefits h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.benefit-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.benefit-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.business-contact {
    text-align: center;
    margin-bottom: 2rem;
}

.business-contact h2 {
    margin-bottom: 0.6rem;
}

.business-contact p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.business-email-btn {
    display: inline-block;
    margin: 1rem 0;
    font-size: 1rem;
}

.business-contact-note {
    font-size: 0.85rem !important;
    margin-top: 0 !important;
}

/* ----- Danger zone (delete account) ----- */
.profile-danger-block {
    border-color: rgba(220, 53, 69, 0.3);
}

.profile-danger-block .profile-block-title {
    color: #dc3545;
}

.danger-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.danger-form label {
    display: block;
    margin-bottom: 0.8rem;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #b02a37;
}

/* ----- Contact page ----- */
.contact-page {
    max-width: 640px;
    margin: 0 auto;
}

.contact-lead {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.contact-email-box {
    text-align: center;
    margin: 1.5rem 0 2rem;
}

.contact-page h2 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.contact-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.contact-topic {
    padding: 0.9rem 1rem;
    background: var(--surface);
    border: 1px solid var(--surface2);
    border-radius: 10px;
}

.contact-topic h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
}

.contact-topic p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ----- Cookie consent banner ----- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    background: var(--bg, #1a1a2e);
    border-top: 1px solid var(--surface2);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-banner p a {
    color: var(--primary);
}

.cookie-banner-btn {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.45rem 1.4rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.cookie-banner-btn:hover {
    opacity: 0.85;
}

@media (max-width: 520px) {
    .cookie-banner {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
        padding: 1rem;
    }
}

