/* ============================================
   REFR DESIGN SYSTEM
   Black for authority. Gradient orange for warmth.
   ============================================ */

:root {
    /* Primary palette — Black + Orange identity */
    --color-primary: #F59E0B;
    --color-primary-hover: #D97706;
    --color-primary-light: #FEF3C7;
    --color-primary-subtle: #FFFBEB;
    --color-accent: #EA580C;

    /* Gradient orange (reusable) */
    --gradient-orange: linear-gradient(135deg, #F59E0B 0%, #EA580C 50%, #DC2626 100%);
    --gradient-orange-soft: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);

    /* Text */
    --color-text-primary: #0A0A0A;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-text-on-primary: #0A0A0A;

    /* Backgrounds */
    --color-bg: #FFFFFF;
    --color-bg-alt: #FFFBF5;
    --color-bg-warm: #FFF7ED;

    /* Surfaces */
    --color-surface: #FFFFFF;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.04);

    /* Feedback */
    --color-success: #059669;
    --color-error: #DC2626;
    --color-warning: #F59E0B;

    /* Shadows — layered, subtle */
    --shadow-sm: 0 1px 1px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 1px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 1px 1px rgba(0, 0, 0, 0.03), 0 4px 8px rgba(0, 0, 0, 0.04), 0 12px 24px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 1px 1px rgba(0, 0, 0, 0.03), 0 8px 16px rgba(0, 0, 0, 0.04), 0 24px 48px rgba(0, 0, 0, 0.06);

    /* Spacing (8px grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
    overflow-y: auto !important;
}

html {
    overflow-y: auto !important;
    background: var(--color-bg) !important;
}

#app {
    overflow-y: auto !important;
}

::selection {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   WARM BACKGROUND (subtle, not overwhelming)
   ============================================ */

.warm-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #FAFAFA;
    overflow: hidden;
}

/* Clean — no dots, no blobs, just flat */

.warm-blob { display: none; }

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-border-light); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 12px 0;
}

#nav-container {
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    backdrop-filter: blur(20px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 0 24px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.03),
        0 1px 3px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled #nav-container {
    background: rgba(255, 255, 255, 0.65);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.65);
    transform: translateY(0);
}

.nav-link {
    color: #0A0A0A !important;
    font-weight: 600 !important;
    position: relative;
    font-size: 14px !important;
    letter-spacing: -0.01em;
    padding: 6px 16px !important;
    border-radius: 999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent !important;
}

.nav-link:hover {
    color: #F59E0B !important;
    background: rgba(255, 255, 255, 0.5) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 4px rgba(0, 0, 0, 0.03);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nav-link.active {
    color: #F59E0B !important;
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.nav-link.active {
    color: #0A0A0A !important;
    font-weight: 600 !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #F59E0B;
    border-radius: 1px;
}

#logo-container span {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    color: #0A0A0A !important;
    -webkit-text-fill-color: #0A0A0A !important;
    background: none;
    font-size: 36px !important;
    letter-spacing: -0.02em;
}

/* Mobile Menu */
#mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
}

#mobile-nav-links a {
    color: var(--color-text-primary) !important;
    font-weight: 500 !important;
}

#mobile-nav-links a:hover {
    background: var(--color-primary-subtle) !important;
    color: var(--color-primary-hover) !important;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* ============================================
   HERO SECTION — Signature Gradient Backdrop
   ============================================ */

.hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 500px;
    z-index: 0;
    pointer-events: none;
}

.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: hero-pulse 8s ease-in-out infinite alternate;
}

.hero-glow-orb--amber {
    width: 500px;
    height: 500px;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    animation-duration: 8s;
}

.hero-glow-orb--orange {
    width: 400px;
    height: 400px;
    top: 40px;
    left: 15%;
    background: radial-gradient(circle, rgba(251, 146, 60, 0.06) 0%, transparent 70%);
    animation-duration: 10s;
    animation-direction: alternate-reverse;
}

.hero-glow-orb--gold {
    width: 400px;
    height: 400px;
    top: 20px;
    right: 15%;
    left: auto;
    background: radial-gradient(circle, rgba(252, 211, 77, 0.07) 0%, transparent 70%);
    animation-duration: 12s;
}

@keyframes hero-pulse {
    0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-glow-orb--orange {
    animation-name: hero-drift;
}

.hero-glow-orb--gold {
    animation-name: hero-drift;
}

@keyframes hero-drift {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Accent text — solid amber, clean */
.gradient-text {
    color: #F59E0B;
    -webkit-text-fill-color: #F59E0B;
}

.gradient-text-soft {
    color: #F59E0B;
    -webkit-text-fill-color: #F59E0B;
}

/* Accent serif italic — used for hero + section headings + reward amounts */
.accent-serif {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: #F59E0B;
    -webkit-text-fill-color: #F59E0B;
    font-size: 1.15em;
}

.hero-gradient-text {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: #F59E0B;
    -webkit-text-fill-color: #F59E0B;
}

@media (max-width: 768px) {
    .hero-glow {
        height: 350px;
        top: -40px;
    }
    .hero-glow-orb--amber { width: 280px; height: 280px; }
    .hero-glow-orb--orange { width: 200px; height: 200px; }
    .hero-glow-orb--gold { width: 240px; height: 240px; }
}

/* ============================================
   CHAT CONTAINER
   ============================================ */

.chat-container {
    margin: 0 auto;
    position: relative;
    z-index: 10;
    max-width: 620px !important;
    width: 94%;
    animation: slideUp 0.6s ease-out;
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 24px !important;
    border-radius: var(--radius-2xl);
}

@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        padding: 24px !important;
        margin: 1.5rem auto 0 !important;
    }
}

@media (max-width: 480px) {
    .chat-container {
        padding: 20px 16px !important;
    }
}

.chat-container h1,
.chat-container h2 {
    color: #0A0A0A !important;
    text-align: center;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 8px;
}

.chat-container > div > p {
    color: var(--color-text-secondary) !important;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

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

/* ============================================
   CHAT MESSAGES
   ============================================ */

.chat-messages {
    overflow-y: auto;
    background: var(--color-border-light) !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 12px;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}

.chat-messages::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

.chat-message {
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    animation: fadeIn 0.3s ease-out;
    font-size: 14px;
    line-height: 1.5;
}

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

.chat-message.bot {
    background: var(--color-surface) !important;
    color: var(--color-text-primary) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm);
}

.chat-message.user {
    background: #0A0A0A !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CHAT INPUT & SUGGESTIONS
   ============================================ */

.chat-input-container { position: relative; }

.chat-prompt-text {
    font-size: 14px;
    color: var(--color-text-muted) !important;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
}

.chat-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    outline: none;
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-primary) !important;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.chat-input::placeholder {
    color: var(--color-text-muted) !important;
}

.chat-input:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
    background: var(--color-surface) !important;
}

.chat-send-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-primary) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.chat-send-btn:hover {
    background: var(--color-primary-hover) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
}

.suggestion-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-surface) !important;
    border: 1.5px solid #0A0A0A !important;
    color: #0A0A0A !important;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.suggestion-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   APPLY NOW BUTTON (chat cards)
   ============================================ */

.apply-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.3);
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

.apply-now-btn:hover {
    background: linear-gradient(135deg, #D97706 0%, #DC2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
}

/* ============================================
   TYPING INDICATOR
   ============================================ */

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    width: fit-content;
    margin: 8px 0;
    background: var(--color-border-light);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ============================================
   LOGO TICKER — text-based brand marquee
   ============================================ */

.logo-ticker-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.logo-ticker {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-ticker-track {
    display: flex;
    animation: scroll 50s linear infinite;
    width: max-content;
}

.ticker-brand {
    padding: 0 2.5rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-ticker:hover .logo-ticker-track {
    animation-play-state: paused;
}

/* ============================================
   STATS BAR — animated counters
   ============================================ */

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
    padding: 0 32px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #0A0A0A;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    display: inline;
}

.stat-suffix {
    font-size: 36px;
    font-weight: 800;
    color: #0A0A0A;
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

@media (max-width: 640px) {
    .stat-item { padding: 0 16px; }
    .stat-number, .stat-suffix { font-size: 28px; }
    .stat-label { font-size: 11px; }
}

/* ============================================
   CATEGORY & SECTOR TABS (Marketplace filters)
   ============================================ */

/* Sidebar filter buttons */
.sector-filter {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.1s ease-out, background 0.1s ease-out;
}

.sector-filter:hover {
    color: #0A0A0A;
    background: rgba(0, 0, 0, 0.03);
}

.sector-filter.active {
    color: #0A0A0A;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    border-left: 2px solid #F59E0B;
    padding-left: 10px;
}

/* Account page sidebar tabs — same style as marketplace sidebar */
.account-tab {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.1s ease-out, background 0.1s ease-out;
}

.account-tab:hover {
    color: #0A0A0A;
    background: rgba(0, 0, 0, 0.03);
}

/* Account avatar in nav */
.account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0A0A0A;
    color: white;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    transition: box-shadow 0.15s ease-out, transform 0.15s ease-out;
    flex-shrink: 0;
}

.account-avatar:hover {
    box-shadow: 0 0 0 2px #F59E0B;
    transform: scale(1.05);
}

.account-avatar--sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.account-tab.active {
    color: #0A0A0A;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    border-left: 2px solid #F59E0B;
    padding-left: 10px;
}

.category-tab,
.sector-tab {
    background: var(--color-surface) !important;
    color: var(--color-text-secondary) !important;
    border: 1px solid var(--color-border) !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.category-tab:hover,
.sector-tab:hover {
    background: var(--color-primary-subtle) !important;
    color: var(--color-primary-hover) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.category-tab.active,
.sector-tab.active {
    background: #0A0A0A !important;
    color: white !important;
    border-color: #0A0A0A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ============================================
   REFERRAL CARDS (Marketplace)
   ============================================ */

.referral-card {
    background: var(--color-surface);
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.15s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.referral-card:hover {
    box-shadow: var(--shadow-lg);
}

.referral-card.promoted {
    border-color: #F59E0B;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.4), var(--shadow-md);
}

.referral-card .promoted-badge {
    background: #0A0A0A;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F59E0B;
}

.referral-card .card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.referral-card .card-name {
    font-size: 15px;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 1.3;
    margin-bottom: 2px;
}

.referral-card .card-issuer {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
    color: var(--color-text-muted);
}

.referral-card .card-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex: 1;
    margin-bottom: var(--space-4);
}

.referral-card .bonus-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: #F5F5F5;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--space-3);
    width: fit-content;
    color: #0A0A0A;
    border: none;
}

.referral-card .card-verified {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    letter-spacing: 0.3px;
}

.referral-card .card-share-icon {
    position: absolute;
    top: 14px;
    right: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease-out;
    /* Share arrow icon via CSS */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpolyline points='16 6 12 2 8 6'/%3E%3Cline x1='12' y1='2' x2='12' y2='15'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

.referral-card .card-share-icon:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.referral-card .card-cta {
    width: 100%;
    padding: 8px 16px;
    background: #0A0A0A;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease-out;
    margin-top: auto;
}

.referral-card .card-cta:hover {
    background: #1A1A1A;
}


/* ============================================
   BRAND STRIPE — compact colored accent per issuer
   ============================================ */

.card-visual {
    width: 100%;
    height: 6px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    position: relative;
    overflow: hidden;
}

.card-visual::before,
.card-visual::after { display: none; }

.card-visual .issuer-name { display: none; }

/* --- Traditional Bank Issuers --- */

.card-visual--chase {
    background: linear-gradient(135deg, #117ACA 0%, #0A4D8C 55%, #063A6A 100%);
}

.card-visual--amex {
    background: linear-gradient(135deg, #016FD0 0%, #002663 55%, #001A45 100%);
}

.card-visual--capital-one {
    background: linear-gradient(135deg, #004878 0%, #003356 50%, #D22E1E 100%);
}

.card-visual--citi {
    background: linear-gradient(135deg, #056DAE 0%, #003B70 55%, #002B52 100%);
}

.card-visual--discover {
    background: linear-gradient(135deg, #F9A021 0%, #E55C20 55%, #C94010 100%);
}

.card-visual--wells-fargo {
    background: linear-gradient(135deg, #CD1409 0%, #9B0E06 50%, #D4A017 100%);
}

.card-visual--boa {
    background: linear-gradient(135deg, #E31837 0%, #012169 55%, #001240 100%);
}

.card-visual--barclays {
    background: linear-gradient(135deg, #00AEEF 0%, #00395D 55%, #002640 100%);
}

.card-visual--us-bank {
    background: linear-gradient(135deg, #D8273F 0%, #00438F 55%, #002E63 100%);
}

/* --- Fintech Brands --- */

.card-visual--robinhood {
    background: linear-gradient(135deg, #1A1A1A 0%, #00C805 45%, #009904 100%);
}

.card-visual--webull {
    background: linear-gradient(135deg, #0043E9 0%, #002A93 50%, #0D0D0D 100%);
}

.card-visual--sofi {
    background: linear-gradient(135deg, #00B4D8 0%, #007A93 50%, #004E5E 100%);
}

.card-visual--chime {
    background: linear-gradient(135deg, #1EC677 0%, #0D4029 55%, #082E1E 100%);
}

.card-visual--rakuten {
    background: linear-gradient(135deg, #BF0000 0%, #8A0000 50%, #5C0000 100%);
}

.card-visual--ibotta {
    background: linear-gradient(135deg, #E84393 0%, #D63384 50%, #A02568 100%);
}

.card-visual--other {
    background: linear-gradient(135deg, #64748B 0%, #475569 50%, #334155 100%);
}

/* ============================================
   AUTH MODAL
   ============================================ */

#auth-modal {
    background: rgba(0, 0, 0, 0.4) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

#auth-modal > div {
    background: #FFFFFF !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-width: 400px;
}

/* Auth form inputs */
#auth-modal input[type="text"],
#auth-modal input[type="email"],
#auth-modal input[type="password"] {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    background: #FAFAFA !important;
    transition: border-color 0.15s ease-out !important;
}

#auth-modal input:focus {
    border-color: #0A0A0A !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
}

/* Auth form labels — accent serif */
#auth-modal label {
    font-family: 'Instrument Serif', serif !important;
    font-style: italic !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #0A0A0A !important;
    margin-bottom: 4px !important;
}

/* Auth submit button */
#auth-modal button[type="submit"] {
    background: #0A0A0A !important;
    color: white !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 10px 24px !important;
    border: none !important;
    box-shadow: none !important;
    transition: background 0.15s ease-out !important;
    transform: none !important;
}

#auth-modal button[type="submit"]:hover {
    background: #1A1A1A !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Auth cancel button */
#auth-modal #auth-cancel {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #0A0A0A !important;
    padding: 10px 24px !important;
}

/* Auth toggle link */
#auth-modal #auth-toggle {
    color: var(--color-text-muted) !important;
}

#auth-modal #auth-toggle span.text-orange-600 {
    color: #0A0A0A !important;
    font-weight: 600;
}

/* Auth modal title */
#auth-modal h2 {
    letter-spacing: -0.02em;
    font-size: 28px !important;
    font-weight: 800 !important;
}

#auth-modal h2 .accent-serif {
    font-size: 1.05em;
}

/* Checkbox */
#auth-modal input[type="checkbox"] {
    accent-color: #0A0A0A;
}

/* ============================================
   ACCORDION (Learn page)
   ============================================ */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.learn-content { color: var(--color-text-primary) !important; }
.learn-content p { color: var(--color-text-secondary) !important; }
.learn-content h4 { color: var(--color-text-primary) !important; }

.learn-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.learn-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary) !important;
}

/* Colored callout boxes in learn content */
.learn-content .bg-red-50, .learn-content .bg-red-50 * { color: #991B1B !important; }
.learn-content .bg-red-50 h4 { color: #7F1D1D !important; }
.learn-content .bg-green-50, .learn-content .bg-green-50 * { color: #166534 !important; }
.learn-content .bg-green-50 h4 { color: #14532D !important; }
.learn-content .bg-yellow-50, .learn-content .bg-yellow-50 * { color: #854D0E !important; }
.learn-content .bg-yellow-50 h4 { color: #713F12 !important; }
.learn-content .bg-blue-50, .learn-content .bg-blue-50 * { color: #1E40AF !important; }
.learn-content .bg-blue-50 h4 { color: #1E3A8A !important; }
.learn-content .bg-purple-50, .learn-content .bg-purple-50 * { color: #6B21A8 !important; }
.learn-content .bg-orange-50, .learn-content .bg-orange-50 * { color: #9A3412 !important; }
.learn-content .bg-slate-50, .learn-content .bg-slate-50 * { color: var(--color-text-primary) !important; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.symmetric-hover {
    transition: all 0.2s ease;
}

.symmetric-hover:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.symmetric-grid {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    align-items: stretch;
}

@media (min-width: 640px) {
    .symmetric-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (min-width: 768px) {
    .symmetric-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

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

.breathe { animation: breathe 4s ease-in-out infinite; }

/* ============================================
   NOTIFICATION TOAST
   ============================================ */

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

.stagger-item {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================
   CTA BUTTONS (no color switching)
   ============================================ */

.cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #0A0A0A;
    color: white;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: background 0.15s ease-out;
    text-decoration: none;
}

.cta-primary:hover {
    background: #1A1A1A;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: transparent;
    color: #0A0A0A;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: background 0.15s ease-out;
    text-decoration: none;
}

.cta-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* ============================================
   LANDING PAGE — Category Cards
   ============================================ */

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    transition: box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: #F59E0B;
}

.category-icon {
    display: none;
}

.category-name {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: #0A0A0A;
    margin-bottom: 4px;
}

.category-examples {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ============================================
   LANDING PAGE — Reward Cards
   ============================================ */

/* Rewards floating ticker */
.rewards-ticker-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.rewards-ticker { overflow: hidden; }

.rewards-ticker-track {
    display: flex;
    animation: scroll 45s linear infinite;
    width: max-content;
    gap: 12px;
}

.rewards-ticker-track--reverse {
    animation: scroll-reverse 40s linear infinite;
}

@keyframes scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.rewards-ticker:hover .rewards-ticker-track {
    animation-play-state: paused;
}

.reward-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 14px 20px;
    flex-shrink: 0;
    min-width: 240px;
    transition: box-shadow 0.15s ease-out;
}

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

.reward-amount {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    color: #F59E0B;
    -webkit-text-fill-color: #F59E0B;
    min-width: 72px;
    flex-shrink: 0;
}

.reward-company {
    font-size: 14px;
    font-weight: 600;
    color: #0A0A0A;
    min-width: 70px;
}

.reward-type {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-left: auto;
    text-align: right;
}

/* ============================================
   REFERRAL LIST VIEW (marketplace)
   ============================================ */

.referral-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background 0.1s ease-out;
}

.referral-row:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.referral-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

.referral-row-name {
    font-size: 14px;
    font-weight: 600;
    color: #0A0A0A;
    flex: 2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-row-company {
    font-size: 13px;
    color: var(--color-text-muted);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.referral-row-bonus {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 14px;
    color: #F59E0B;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.referral-row-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.1s ease-out;
}

.referral-row-link:hover {
    color: #0A0A0A;
}

@media (max-width: 640px) {
    .referral-row {
        flex-wrap: wrap;
        gap: 4px 12px;
        padding: 12px 0;
    }
    .referral-row-name { flex: 1 1 60%; }
    .referral-row-link { flex: 0 0 auto; }
    .referral-row-company { flex: 1 1 40%; font-size: 12px; }
    .referral-row-bonus { flex: 1 1 40%; font-size: 13px; }
}

/* Pulsing green dot for social proof */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Gradient background utility */
.gradient-bg {
    background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
}

/* ============================================
   NOTIFICATION TOAST
   ============================================ */

.notification-toast {
    position: fixed;
    top: 80px;
    right: 16px;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    max-width: 360px;
}

.notification-toast--success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.notification-toast--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.notification-toast--info {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}
