/* ===== SCROLL LOCK — prevents iOS Safari scroll restoration ===== */
html.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #060611;
    --bg-card: rgba(15, 20, 40, 0.6);
    --bg-card-hover: rgba(20, 30, 60, 0.7);
    --border: rgba(56, 189, 248, 0.08);
    --border-hover: rgba(56, 189, 248, 0.25);
    --text: #e8edf5;
    --text-muted: #7b8ba8;
    --primary: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --accent: #06b6d4;
    --gradient: linear-gradient(135deg, #0ea5e9, #38bdf8, #06b6d4);
    --gradient-glow: linear-gradient(135deg, #0ea5e9, #06b6d4);
    --green: #22c55e;
    --radius: 16px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== GLOBAL BACKGROUND EFFECTS ===== */
.global-grid {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.global-particles {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.global-particle {
    position: absolute;
    background: rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    animation: global-float linear infinite;
    opacity: 0;
}

@keyframes global-float {
    0% { opacity: 0; transform: translateY(100vh) translateX(0); }
    10% { opacity: 0.5; }
    50% { transform: translateY(50vh) translateX(var(--drift)); }
    90% { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-100px) translateX(0); }
}

/* ===== SECTION WAVE DIVIDERS ===== */
.wave-top, .wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
    z-index: 2;
}

.wave-top {
    top: -1px;
}

.wave-bottom {
    bottom: -1px;
}

.wave-top svg, .wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* Dark to "light" wave (top of alternate section) */
.wave-dark-to-light svg {
    fill: var(--bg);
}

/* "Light" to dark wave (bottom of alternate section) */

/* Light to dark wave (bottom of light section) */
.wave-light-to-dark svg {
    fill: #0a0d1a;
}

/* ===== "LIGHT" SECTIONS (now darker alternate shade) ===== */
.section-light {
    background: #0a0d1a !important;
    border: none !important;
    position: relative;
    z-index: 1;
    padding-top: 140px !important;
    padding-bottom: 140px !important;
}

.section-light::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(56, 189, 248, 0.10) 0%, rgba(14, 165, 233, 0.04) 35%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: screen;
    will-change: transform;
}

.cursor-glow.visible {
    opacity: 1;
}

@media (pointer: coarse) {
    .cursor-glow { display: none; }
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), transparent 50%, rgba(6, 182, 212, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

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

.glow-btn {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3), 0 0 60px rgba(14, 165, 233, 0.1);
}

.glow-btn:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.5), 0 0 80px rgba(14, 165, 233, 0.2);
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(14, 165, 233, 0.08);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    margin-bottom: 36px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 14px 0;
    background: rgba(6, 6, 17, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.06);
    transition: all 0.3s;
}

.navbar.scrolled {
    background: rgba(6, 6, 17, 0.92);
    border-bottom-color: rgba(56, 189, 248, 0.1);
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 32px;
}

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

.logo-img {
    height: 38px;
    width: auto;
    transition: transform 0.3s;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    justify-content: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 5px;
    height: 5px;
    background: var(--primary-light);
    border-radius: 50%;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.nav-actions .btn-sm {
    padding: 7px 16px;
    font-size: 0.78rem;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 3px;
    margin-right: 6px;
    gap: 2px;
}
.lang-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 4px);
    height: calc(100% - 6px);
    background: rgba(14,165,233,0.15);
    border: 1px solid rgba(14,165,233,0.25);
    border-radius: 9px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 0 12px rgba(14,165,233,0.1);
}
.lang-toggle[data-active="en"] .lang-toggle-slider {
    transform: translateX(calc(100% + 2px));
}
.lang-toggle-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.35);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.lang-flag {
    font-size: 0.95rem;
    line-height: 1;
}
.lang-toggle-btn.active {
    color: #fff;
}
.lang-toggle-btn:hover:not(.active) {
    color: rgba(255,255,255,0.6);
}

.btn-member-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 8px;
    background: rgba(14, 165, 233, 0.08);
    text-decoration: none;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-member-nav:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    color: var(--primary-light);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22) 0%, rgba(14, 165, 233, 0.08) 30%, transparent 55%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0.07) 30%, transparent 55%);
    bottom: -100px;
    right: -100px;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(14, 165, 233, 0.06) 30%, transparent 55%);
    bottom: 100px;
    left: -100px;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

.grid-overlay {
    display: none;
}

.particles {
    display: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 12px;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: coin-float 6s ease-in-out infinite;
    cursor: grab;
    user-select: none;
}

.hero-logo:active {
    cursor: grabbing;
}

@keyframes coin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.coin {
    width: 220px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    animation: coin-idle-spin 8s linear infinite;
}

.hero-logo.dragging .coin {
    animation: none;
}

@keyframes coin-idle-spin {
    0% { transform: rotateY(0deg) rotateX(5deg); }
    100% { transform: rotateY(360deg) rotateX(5deg); }
}

.coin-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.4));
}

.coin-back {
    transform: rotateY(180deg) scaleX(-1);
}

.coin-edge {
    display: none;
}

.coin-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.coin-hint {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.5s;
}

.hero-logo.dragging .coin-hint,
.hero-logo.interacted .coin-hint {
    opacity: 0;
}

.hero-content .badge {
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 32px;
}

.hero-subtitle strong {
    color: var(--primary-light);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stat {
    padding: 20px 28px;
    text-align: center;
    min-width: 160px;
}

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    white-space: nowrap;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-arrow {
    animation: scroll-arrow-down 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-arrow-down {
    0% { opacity: 0.4; transform: translateY(-3px); }
    50% { opacity: 1; transform: translateY(5px); }
    100% { opacity: 0.4; transform: translateY(-3px); }
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 60px 0 100px;
    position: relative;
}
/* Skip rendering for offscreen sections — massive scroll perf win */
section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

/* Dark sections */
.services,
.proof,
.pricing,
.final-cta {
    background: var(--bg);
    position: relative;
    z-index: 1;
}

/* Smooth gradient dividers between sections — pulsing glow */
.proof::before,
.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.25), transparent);
    pointer-events: none;
    animation: glow-line-pulse 3s ease-in-out infinite;
}

@keyframes glow-line-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Particles on all sections */
.section-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.section-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(56, 189, 248, 0.4);
    border-radius: 50%;
    animation: section-particle-drift linear infinite;
}

@keyframes section-particle-drift {
    0% { opacity: 0; transform: translate(0, 0); }
    15% { opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}

.services .container,
.results .container,
.pricing .container,
.faq .container,
.proof .container,
.team .container {
    text-align: center;
}

.team h2,
.team .section-subtitle {
    text-align: center !important;
    width: 100%;
}

.team .badge {
    display: inline-flex;
    width: auto;
}

.results {
    padding-top: 60px;
}

.results .container {
    max-width: 1300px;
}

.results h2 {
    margin-bottom: 40px;
}

section h2 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 56px;
}

/* ===== SERVICES STEPPER ===== */
.services-stepper {
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.services-stepper-track {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.services-stepper-line,
.services-stepper-line-fill {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    pointer-events: none;
}

.services-stepper-line {
    background: rgba(255, 255, 255, 0.08);
}

.services-stepper-line-fill {
    background: rgba(255, 255, 255, 0.25);
    width: 0%;
    max-width: calc(100% - 40px);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1;
    font-family: inherit;
}

.services-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    background: var(--bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-step-num svg {
    width: 18px;
    height: 18px;
}

.services-step.active .services-step-num {
    background: var(--step-color);
    border-color: var(--step-color);
    color: #fff;
    box-shadow: 0 0 20px color-mix(in srgb, var(--step-color) 35%, transparent);
}

.services-step-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.services-step.active .services-step-label {
    color: var(--text);
}

/* ===== SERVICES SLIDE ===== */
.services-slide {
    --slide-color: #22c55e;
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 32px;
    position: relative;
    text-align: left;
    border: 1px solid color-mix(in srgb, var(--slide-color) 20%, transparent);
    box-shadow: 0 0 40px color-mix(in srgb, var(--slide-color) 8%, transparent),
                inset 0 1px 0 color-mix(in srgb, var(--slide-color) 10%, transparent);
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.services-slide-inner {
    display: flex;
    gap: 32px;
    align-items: stretch;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.services-slide-inner > .services-alert-mock {
    height: 520px;
    display: flex;
    flex-direction: column;
}

.services-slide-inner > .services-alert-mock > * {
    flex: 1;
    min-height: 0;
}

.services-slide-inner.fade-out {
    opacity: 0;
    transform: translateY(8px);
}

.services-slide-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.services-slide-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--slide-color) 15%, transparent);
    flex-shrink: 0;
}

.services-slide-icon svg {
    width: 20px;
    height: 20px;
    color: var(--slide-color);
}

.services-slide-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.services-slide-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.services-slide-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.services-slide-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.services-slide-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex: 1;
    opacity: 0;
    transform: translateX(-8px);
    animation: slide-feature-in 0.4s ease forwards;
}

.services-slide-features li:nth-child(1) { animation-delay: 0.1s; }
.services-slide-features li:nth-child(2) { animation-delay: 0.2s; }
.services-slide-features li:nth-child(3) { animation-delay: 0.3s; }
.services-slide-features li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slide-feature-in {
    to { opacity: 1; transform: translateX(0); }
}

.services-slide-check {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--slide-color) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-slide-check svg {
    width: 12px;
    height: 12px;
    color: var(--slide-color);
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: check-draw 0.4s ease forwards;
}

.services-slide-features li:nth-child(1) .services-slide-check svg { animation-delay: 0.25s; }
.services-slide-features li:nth-child(2) .services-slide-check svg { animation-delay: 0.35s; }
.services-slide-features li:nth-child(3) .services-slide-check svg { animation-delay: 0.45s; }
.services-slide-features li:nth-child(4) .services-slide-check svg { animation-delay: 0.55s; }

@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}

.services-slide-arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.services-slide-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 32px;
    text-align: center;
    letter-spacing: 0.04em;
}

.services-slide-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.services-slide-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.services-slide-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Alert mock (left) */
.services-alert-mock {
    flex: 1;
    min-width: 0;
    background: rgba(30, 33, 40, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.services-alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.services-alert-header img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.services-alert-header strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.services-alert-header .services-alert-time {
    margin-left: auto;
    font-size: 0.72rem;
}

.services-alert-body {
    display: flex;
    gap: 0;
}

.services-alert-accent {
    width: 4px;
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
}

.services-alert-content {
    padding: 16px 18px;
    flex: 1;
    min-width: 0;
}

.services-alert-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-alert-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.services-alert-row:last-child {
    border-bottom: none;
}

.services-alert-label {
    color: rgba(255, 255, 255, 0.4);
}

.services-alert-value {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.services-alert-value.green { color: #22c55e; }
.services-alert-value.red { color: #ef4444; }
.services-alert-value.blue { color: #38bdf8; }
.services-alert-value.purple { color: #a855f7; }
.services-alert-value.orange { color: #f97316; }

/* ===== OPENSEA MINT MOCK ===== */
.os-mint {
    display: flex;
    flex-direction: column;
}

.os-mint-preview {
    background: linear-gradient(135deg, #0b1120 0%, #0c1a3a 40%, #0ea5e9 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.os-mint-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(14, 165, 233, 0.25), transparent 60%),
                radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.15), transparent 50%);
}

.os-mint-img {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.os-mint-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.4));
}

.os-mint-info {
    padding: 18px;
}

.os-mint-collection {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.os-mint-collection-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.os-mint-collection-name {
    font-size: 0.8rem;
    color: #2081e2;
    font-weight: 600;
}

.os-mint-verified {
    flex-shrink: 0;
}

.os-mint-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.os-mint-chain {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.os-mint-stats {
    display: flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.os-mint-stat {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.os-mint-stat:last-child {
    border-right: none;
}

.os-mint-stat-label {
    display: block;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.os-mint-stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.os-mint-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}

.os-mint-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2081e2, #06b6d4);
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-mint-progress-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: right;
    margin-bottom: 16px;
}

.os-mint-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2081e2;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.os-mint-btn:hover {
    background: #1a6fc4;
    box-shadow: 0 4px 20px rgba(32, 129, 226, 0.3);
}

@media (max-width: 768px) {
    .os-mint-img {
        width: 90px;
        height: 90px;
    }
    .os-mint-img img {
        width: 60px;
        height: 60px;
    }
    .os-mint-preview {
        padding: 24px;
    }
}

/* Responsive services stepper + slide */
@media (max-width: 768px) {
    .services-stepper { padding: 0 8px; }
    .services-step-num { width: 34px; height: 34px; }
    .services-step-num svg { width: 15px; height: 15px; }
    .services-stepper-line,
    .services-stepper-line-fill { top: 17px; left: 17px; right: 17px; }
    .services-step-label { font-size: 0.72rem; }
    .services-slide { padding: 24px 20px; }
    .services-slide-inner { flex-direction: column; gap: 20px; }
    .services-slide-inner > .services-alert-mock { height: auto; }
}

/* ===== TRADINGVIEW CHART (Crypto tab) ===== */
.tv-chart-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.tv-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tv-chart-pair {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tv-chart-symbol {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.tv-chart-tf {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tv-chart-price {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.tv-chart-badge-green {
    font-size: 0.75rem;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.tv-chart-badge-red {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.tv-chart-body {
    flex: 1;
    position: relative;
    min-height: 260px;
}

.tv-chart-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: crosshair;
}

.tv-chart-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(20, 25, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.72rem;
    font-family: 'Space Grotesk', monospace;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 5;
    white-space: nowrap;
    line-height: 1.5;
    backdrop-filter: blur(8px);
}

/* ===== MINT INTERACTIVE (NFT tab) ===== */
.os-mint {
    position: relative;
    overflow: hidden;
}

/* Wallet overlay */
.mint-wallet-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.mint-wallet-overlay.visible {
    opacity: 1;
}

.mint-wallet-popup {
    background: rgba(30, 33, 45, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mint-wallet-icon {
    margin-bottom: 12px;
}

.mint-wallet-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
}

.mint-wallet-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16px;
}

.mint-wallet-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #f6851b;
    border-radius: 50%;
    margin: 0 auto;
    animation: mint-spin 0.8s linear infinite;
}

@keyframes mint-spin {
    to { transform: rotate(360deg); }
}

/* Mint button states */
.os-mint-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.os-mint-btn.minted {
    background: #22c55e;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

[data-mint-state="minting"] .os-mint-btn {
    background: #f97316;
    animation: mint-pulse-glow 1.5s ease-in-out infinite;
}

@keyframes mint-pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(249, 115, 22, 0.2); }
    50% { box-shadow: 0 0 25px rgba(249, 115, 22, 0.5); }
}

/* Flip reveal */
.os-mint-preview.mint-flip-reveal {
    animation: mint-flip 0.6s ease-out;
}

@keyframes mint-flip {
    0% { transform: perspective(600px) rotateY(0deg); }
    50% { transform: perspective(600px) rotateY(90deg); }
    100% { transform: perspective(600px) rotateY(0deg); }
}

/* Mint success overlay */
.mint-success-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
}

.mint-success-overlay.visible {
    opacity: 1;
}

.mint-success-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mint-success-sub {
    font-size: 0.8rem;
    color: #22c55e;
    font-weight: 600;
    margin-top: 4px;
}

/* Confetti */
.mint-confetti {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 20;
}

.mint-confetti-piece {
    position: absolute;
    width: 6px;
    height: 10px;
    left: var(--x);
    top: -10px;
    border-radius: 2px;
    animation: confetti-fall 1.8s ease-out var(--delay) forwards;
}

@keyframes confetti-fall {
    0% { opacity: 1; transform: translateY(0) translateX(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(350px) translateX(var(--drift)) rotate(var(--rot)); }
}

/* ===== SHOE VIEWER (Resell tab) ===== */
.shoe-viewer {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.shoe-3d-zone {
    background: #f5f5f5;
    padding: 20px 24px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: grab;
    position: relative;
    overflow: hidden;
    perspective: 800px;
}

.shoe-viewer.dragging .shoe-3d-zone {
    cursor: grabbing;
}

.shoe-3d-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    transform-style: preserve-3d;
}

.shoe-3d-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transform-style: preserve-3d;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.shoe-drag-hint {
    font-size: 0.68rem;
    color: rgba(0, 0, 0, 0.3);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.shoe-info {
    padding: 16px 18px;
}

.shoe-brand {
    font-size: 0.72rem;
    color: #f97316;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.shoe-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.shoe-sizes {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.shoe-size-pill {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s;
}

.shoe-size-pill:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(249, 115, 22, 0.3);
}

.shoe-size-pill.active {
    background: rgba(249, 115, 22, 0.15);
    border-color: #f97316;
    color: #f97316;
}

.shoe-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.shoe-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.shoe-price-label {
    color: rgba(255, 255, 255, 0.4);
}

.shoe-price-val {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Space Grotesk', sans-serif;
}

.shoe-price-profit .shoe-price-val {
    color: #22c55e;
    font-weight: 700;
}

.shoe-buy-btn {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.shoe-buy-btn:hover {
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.35);
    transform: translateY(-1px);
}

.shoe-buy-btn.shoe-btn-busy {
    pointer-events: none;
    opacity: 0.85;
}

.shoe-buy-btn.shoe-btn-pending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    animation: shoe-btn-pulse 1s ease-in-out infinite;
}

@keyframes shoe-btn-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.5); }
}

.shoe-buy-btn.shoe-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    animation: none;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
    min-height: 42px;
}

/* GOT 'EM overlay (Nike SNKRS style) */
.gotem-overlay {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gotem-overlay.visible {
    opacity: 1;
}

.gotem-content {
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: gotem-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

@keyframes gotem-pop {
    to { transform: scale(1); opacity: 1; }
}

.gotem-check {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
}

.gotem-check svg {
    width: 52px;
    height: 52px;
}

.gotem-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: gotem-circle-draw 0.6s ease 0.3s forwards;
}

@keyframes gotem-circle-draw {
    to { stroke-dashoffset: 0; }
}

.gotem-tick {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: gotem-tick-draw 0.4s ease 0.7s forwards;
}

@keyframes gotem-tick-draw {
    to { stroke-dashoffset: 0; }
}

.gotem-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.gotem-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.gotem-size {
    font-size: 0.8rem;
    color: #22c55e;
    font-weight: 600;
}

/* Responsive shoe viewer */
@media (max-width: 768px) {
    .shoe-3d-img {
        width: 100%;
    }
    .shoe-3d-zone {
        padding: 16px 18px 6px;
        min-height: 160px;
    }
}

/* ===== RESULTS ===== */

/* Total gains banner */
.results-total-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 32px 16px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.results-total-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--stat-color), transparent);
    border-radius: 2px;
}

.results-total-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--stat-color) 30%, transparent);
}

.results-total-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--stat-color) 12%, transparent);
    margin-bottom: 4px;
}

.results-total-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--stat-color);
}

.results-total-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--stat-color);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.results-total-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.results-total-glow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 80px;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--stat-color) 15%, transparent), transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

/* Cards grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
    align-items: start;
}

@media (max-width: 900px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Result tilt wrapper — perspective container like Discord */
.result-tilt-wrap {
    perspective: 1000px;
    min-width: 0;
    width: 100%;
}

.result-tilt-wrap > .glass-card {
    width: 100%;
    box-sizing: border-box;
}

/* Result interactive cards — team-card style + 3D tilt */
.result-interactive {
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    background: linear-gradient(160deg, rgba(13, 11, 26, 0.7), color-mix(in srgb, var(--accent) 8%, transparent), rgba(13, 11, 26, 0.5)) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px -10px color-mix(in srgb, var(--accent) 8%, transparent);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.4s ease;
}

.result-interactive:hover {
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    box-shadow:
        15px 8px 30px rgba(0, 0, 0, 0.4),
        5px 0 15px rgba(0, 0, 0, 0.3),
        0 12px 40px color-mix(in srgb, var(--accent) 15%, transparent),
        inset -3px 0 8px rgba(255, 255, 255, 0.02);
}

.result-label {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 5;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 6px;
    padding: 4px 10px;
    pointer-events: none;
}

/* NFT Orbit Card */
.nft-orbit-card {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    contain: layout style;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    min-height: 380px;
    cursor: grab;
}

.nft-orbit-card.dragging {
    cursor: grabbing;
}

.nft-orbit-ring {
    position: absolute;
    inset: 0;
    /* Rotation controlled by JS for drag-to-spin */
}

.nft-orbit-item {
    position: absolute;
    width: var(--size, 48px);
    height: var(--size, 48px);
    left: 50%;
    top: 50%;
    margin-left: calc(var(--size, 48px) / -2);
    margin-top: calc(var(--size, 48px) / -2);
    /* Static position on circle — parent .nft-orbit-ring handles rotation */
    transform: rotate(calc(var(--i) * 22.5deg)) translateY(-155px) rotate(calc(var(--i) * -22.5deg));
}

.nft-orbit-item a {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.nft-orbit-item:hover a {
    transform: scale(1.15);
}

.nft-orbit-item img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(6, 182, 212, 0.15);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.1);
    background: rgba(15, 20, 40, 0.6);
    /* Counter-rotation controlled by JS */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nft-orbit-item:hover img {
    border-color: var(--glow-color, rgba(6, 182, 212, 0.5));
    box-shadow: 0 0 18px 4px var(--glow-color, rgba(6, 182, 212, 0.4)), 0 0 40px 8px var(--glow-color, rgba(6, 182, 212, 0.15));
}

.nft-orbit-item img.orbit-click-anim {
    animation: orbit-click-pop 0.35s ease-out;
}

@keyframes orbit-click-pop {
    0%   { transform: scale(1); filter: brightness(1); }
    40%  { transform: scale(1.35); filter: brightness(1.4); }
    100% { transform: scale(1.1); filter: brightness(1); }
}

.nft-orbit-center {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nft-orbit-logo-spin {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: orbit-logo-spin 8s linear infinite;
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
}

@keyframes orbit-logo-spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.nft-orbit-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
    letter-spacing: 0.02em;
}

.nft-orbit-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 160px;
    line-height: 1.3;
}

.nft-orbit-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-orbit-lines svg {
    width: 100%;
    height: 100%;
}

/* Resell 3D Card Stack */
.resell-stack-card {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    min-height: 380px;
    cursor: grab;
    perspective: 800px;
}

.resell-stack-card.dragging {
    cursor: grabbing;
}

.resell-stack-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resell-stack {
    position: relative;
    width: 160px;
    height: 200px;
}

.resell-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 40, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    will-change: transform, opacity;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.resell-card.top-card {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3),
                0 0 20px 2px color-mix(in srgb, var(--card-color) 20%, transparent);
}

.resell-card.swiping {
    transition: none;
}

.resell-card.swipe-out {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease-out;
}

.resell-card-icon {
    font-size: 2.8rem;
    line-height: 1;
}

.resell-card-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.resell-card-profit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--card-color);
    line-height: 1;
}

/* Crypto Bubble Map Card */
.crypto-map-card {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    contain: layout style;
    min-height: 380px;
}

/* Bubble Map view — physics positioned */
.crypto-map {
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
}

.crypto-map.hidden {
    opacity: 0;
    pointer-events: none;
}

.crypto-bub {
    position: absolute;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background:
        radial-gradient(circle at 38% 28%, color-mix(in srgb, var(--bub-color) 18%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(15, 20, 40, 0.85) 40%, rgba(15, 20, 40, 0.65) 100%);
    border: 2px solid color-mix(in srgb, var(--bub-color) 40%, transparent);
    box-shadow:
        inset 0 0 20px 4px color-mix(in srgb, var(--bub-color) 8%, transparent),
        0 4px 16px rgba(0, 0, 0, 0.3);
    cursor: grab;
    user-select: none;
    will-change: transform;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.crypto-bub:hover {
    border-color: var(--bub-color);
    box-shadow:
        inset 0 0 24px 6px color-mix(in srgb, var(--bub-color) 15%, transparent),
        0 0 20px 4px color-mix(in srgb, var(--bub-color) 35%, transparent),
        0 0 50px 10px color-mix(in srgb, var(--bub-color) 12%, transparent);
}

.crypto-bub.dragging {
    cursor: grabbing;
    z-index: 10;
}

.bub-ticker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.5px;
    line-height: 1;
    pointer-events: none;
}

.bub-pct {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bub-color);
    line-height: 1;
    pointer-events: none;
}

/* Detail chart view */
.crypto-detail {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 24px;
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.crypto-detail.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.crypto-detail-back {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 3;
}

.crypto-detail-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.crypto-detail-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.crypto-detail-ticker {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
}

.crypto-detail-pct {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.crypto-detail-chart {
    width: 100%;
    flex: 1;
    min-height: 0;
    max-height: 180px;
}

.crypto-detail-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cd-chart-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: cd-draw 0.8s ease-out forwards;
}

.cd-chart-area {
    opacity: 0;
    animation: cd-fade-area 0.6s 0.3s ease-out forwards;
}

@keyframes cd-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes cd-fade-area {
    to { opacity: 1; }
}

.crypto-detail-row {
    display: flex;
    gap: 24px;
    margin-top: 14px;
}

.crypto-detail-row .cd-stat {
    text-align: center;
}

.crypto-detail-row .cd-stat-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crypto-detail-row .cd-stat-val {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

/* New result card v2 */
.result-card-v2 {
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.result-card-v2:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.12);
}

/* Mini chart background */
.rc-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.4s;
}

.result-card-v2:hover .rc-chart {
    opacity: 0.7;
}

.rc-chart svg {
    width: 100%;
    height: 100%;
}

.rc-chart-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease;
}

.result-card-v2.visible .rc-chart-line {
    stroke-dashoffset: 0;
}

.rc-chart-area {
    opacity: 0;
    transition: opacity 1s ease 0.5s;
}

.result-card-v2.visible .rc-chart-area {
    opacity: 1;
}

/* Card content */
.rc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 0;
    position: relative;
    z-index: 2;
}

.rc-type {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--cat-color) 12%, transparent);
    color: var(--cat-color);
    border: 1px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
}

.rc-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.rc-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 12px 28px 0;
    position: relative;
    z-index: 2;
}

.rc-gain-row {
    padding: 4px 28px 0;
    position: relative;
    z-index: 2;
}

.rc-gain {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--cat-color);
    line-height: 1.2;
    text-shadow: 0 0 30px color-mix(in srgb, var(--cat-color) 25%, transparent);
}

/* Progress bar */
.rc-progress-wrap {
    margin: 16px 28px 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.rc-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--cat-color), color-mix(in srgb, var(--cat-color) 70%, #fff));
    box-shadow: 0 0 12px color-mix(in srgb, var(--cat-color) 40%, transparent);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.result-card-v2.visible .rc-progress-bar {
    width: var(--bar-width);
}

/* Entry → Exit details */
.rc-details {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px 24px;
    position: relative;
    z-index: 2;
}

.rc-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rc-detail-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    opacity: 0.7;
}

.rc-detail-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}

.rc-detail-arrow {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.4;
    padding-top: 12px;
}

/* Glow on hover per category */
.result-card-v2[data-category="crypto"]:hover {
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.15), 0 0 40px rgba(14, 165, 233, 0.05);
}
.result-card-v2[data-category="nft"]:hover {
    box-shadow: 0 24px 60px rgba(6, 182, 212, 0.15), 0 0 40px rgba(6, 182, 212, 0.05);
}
.result-card-v2[data-category="sneaker"]:hover {
    box-shadow: 0 24px 60px rgba(34, 197, 94, 0.15), 0 0 40px rgba(34, 197, 94, 0.05);
}
.result-card-v2[data-category="airdrop"]:hover {
    box-shadow: 0 24px 60px rgba(168, 85, 247, 0.15), 0 0 40px rgba(168, 85, 247, 0.05);
}

/* ===== SOCIAL PROOF ===== */
/* Spotlight Theatre */
.proof-spotlight {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.proof-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    contain: layout style;
    height: 320px;
    perspective: 1000px;
}

.proof-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 420px;
    padding: 36px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.12s ease,
                filter 0.15s ease,
                box-shadow 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%) scale(0.75);
    opacity: 0.25;
    filter: blur(4px);
    z-index: 1;
    pointer-events: auto;
}

/* Active card — spotlight */
.proof-card.spotlight {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: blur(0);
    z-index: 10;
    overflow: visible;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px -10px color-mix(in srgb, var(--primary) 20%, transparent),
        0 0 120px -20px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Animated border trace — real DOM element, always present */
.proof-border-trace {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from 0deg at 50% 50%,
        var(--primary-light),
        var(--primary) var(--proof-border-angle, 0deg),
        transparent var(--proof-border-angle, 0deg),
        transparent calc(360deg - var(--proof-border-angle, 0deg)),
        var(--primary) calc(360deg - var(--proof-border-angle, 0deg)),
        var(--primary-light) 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* Background cards positioned to the sides */
.proof-card.spot-left {
    transform: translate(calc(-50% - 340px), -50%) scale(0.78) rotateY(8deg);
    opacity: 0.3;
    filter: blur(3px);
    z-index: 2;
}

.proof-card.spot-right {
    transform: translate(calc(-50% + 340px), -50%) scale(0.78) rotateY(-8deg);
    opacity: 0.3;
    filter: blur(3px);
    z-index: 2;
}

.proof-card.spot-far {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
    filter: blur(6px);
    z-index: 0;
    pointer-events: none;
}

/* Hover on side cards */
.proof-card.spot-left:hover,
.proof-card.spot-right:hover {
    opacity: 0.5;
    filter: blur(1px);
}

/* Proof navigation arrows */
.proof-spotlight {
    position: relative;
}

.proof-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.15);
    background: rgba(6, 6, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.proof-nav:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    color: var(--text);
    transform: translateY(-50%) scale(1.08);
}

.proof-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.proof-nav-prev {
    left: -10px;
}

.proof-nav-next {
    right: -10px;
}

/* Progress bar navigation */
.proof-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 20;
    margin: 20px auto 0;
    padding: 0;
}

.proof-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: none;
}

.proof-dot:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(56, 189, 248, 0.4);
    transform: scale(1.2);
}

.proof-dot.active {
    background: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.proof-dot .proof-dot-fill {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: none;
}

.proof-dot.active .proof-dot-fill {
    animation: proof-dot-pulse var(--proof-duration) linear forwards;
}

.proof-dot.done {
    background: var(--primary);
    border-color: var(--primary);
    opacity: 0.5;
}

.proof-dot.done .proof-dot-fill {
    transform: scale(1);
    background: var(--primary);
}

@keyframes proof-dot-pulse {
    from { transform: scale(0); opacity: 0.5; }
    to { transform: scale(1); opacity: 0; }
}

/* Progress bar under dots */
.proof-progress {
    width: 120px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 0 8px;
}

.proof-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: var(--primary);
}

.proof-dots .proof-progress-fill.animating {
    animation: proof-bar-fill var(--proof-duration) linear forwards;
}

@keyframes proof-bar-fill {
    from { width: 0%; }
    to { width: 100%; }
}

.proof-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.proof-card > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.proof-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.proof-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    object-fit: cover;
    flex-shrink: 0;
}

.proof-author strong {
    display: block;
    font-size: 0.9rem;
}

.proof-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== DISCORD PREVIEW ===== */
.discord-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.discord-tilt-wrap {
    perspective: 1000px;
}

.discord-app {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    height: 520px;
    padding: 0;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Sidebar */
.dc-sidebar {
    width: 260px;
    min-width: 260px;
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.04);
}

.dc-server-header {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.dc-server-header svg {
    color: #b5bac1;
}

.dc-channels {
    flex: 1;
    overflow-y: auto;
    padding: 8px 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.dc-channels::-webkit-scrollbar {
    width: 4px;
}

.dc-channels::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.dc-category {
    padding: 18px 8px 4px;
}

.dc-category-name {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #949ba4;
}

.dc-channel {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.82rem;
    color: #949ba4;
    transition: all 0.15s;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-channel:hover {
    background: rgba(255,255,255,0.04);
    color: #dbdee1;
}

.dc-channel.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.dc-hash {
    color: #949ba4;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.dc-channel.active .dc-hash {
    color: #dbdee1;
}

.dc-user-bar {
    padding: 10px 12px;
    background: #232428;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dc-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
}

.dc-user-bar {
    position: relative;
}

.dc-user-bar::before {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 34px;
    width: 10px;
    height: 10px;
    background: #23a55a;
    border-radius: 50%;
    border: 2px solid #232428;
    z-index: 2;
}

.dc-user-info {
    display: flex;
    flex-direction: column;
}

.dc-username {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.dc-user-status {
    font-size: 0.7rem;
    color: #949ba4;
}

/* Chat area */
.dc-chat {
    flex: 1;
    background: #313338;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dc-chat-header {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.dc-chat-header .dc-hash {
    color: #80848e;
    font-size: 1.2rem;
}

.dc-chat-channel-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.dc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.dc-messages::-webkit-scrollbar {
    width: 6px;
}

.dc-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.dc-msg {
    display: flex;
    gap: 14px;
    padding: 6px 0;
    animation: dc-msg-in 0.35s ease forwards;
    opacity: 0;
}

.dc-msg:nth-child(1) { animation-delay: 0.1s; }
.dc-msg:nth-child(2) { animation-delay: 0.25s; }
.dc-msg:nth-child(3) { animation-delay: 0.4s; }
.dc-msg:nth-child(4) { animation-delay: 0.55s; }

@keyframes dc-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dc-msg.dc-msg-instant {
    animation-delay: 0s !important;
}

img.dc-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: #2b2d31;
}

.dc-msg-body {
    min-width: 0;
}

.dc-msg-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.dc-msg-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.dc-msg-bot-tag {
    font-size: 0.6rem;
    font-weight: 600;
    background: #5865f2;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.dc-msg-time {
    font-size: 0.7rem;
    color: #949ba4;
}

.dc-msg-text {
    font-size: 0.9rem;
    color: #dbdee1;
    line-height: 1.5;
}

.dc-msg-text strong {
    color: #fff;
}

.dc-msg-embed {
    margin-top: 6px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.15);
    border-left: 3px solid #5865f2;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: #dbdee1;
    line-height: 1.5;
}

.dc-msg-embed.green-embed { border-left-color: #23a55a; }
.dc-msg-embed.orange-embed { border-left-color: #f0a020; }
.dc-msg-embed.cyan-embed { border-left-color: #0ea5e9; }

.dc-input-bar {
    padding: 0 18px 18px;
    flex-shrink: 0;
}

.dc-input-real {
    width: 100%;
    background: #383a40;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #dbdee1;
    font-family: inherit;
    outline: none;
}
.dc-input-real::placeholder {
    color: #6d6f78;
}
.dc-input-real:focus {
    background: #3f4147;
}

/* Reactions */
.dc-msg-reactions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.dc-msg-reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(79,84,92,0.48);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    animation: dc-react-pop 0.3s cubic-bezier(0.34,1.56,0.64,1);
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}
.dc-msg-reaction:hover {
    background: rgba(79,84,92,0.7);
    border-color: rgba(255,255,255,0.12);
}
.dc-msg-reaction.reacted {
    background: rgba(88,101,242,0.2);
    border-color: #5865f2;
}
.dc-msg-reaction.reacted .dc-react-count {
    color: #5865f2;
}

/* Add reaction button (+) in reaction row */
.dc-react-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 26px;
    background: rgba(79,84,92,0.3);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    color: #b5bac1;
    font-size: 1rem;
    transition: background 0.15s, border-color 0.15s;
}
.dc-react-add:hover {
    background: rgba(79,84,92,0.6);
    border-color: rgba(255,255,255,0.2);
}

/* Emoji picker popup */
.dc-emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #2b2d31;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 10;
    animation: dc-react-pop 0.2s ease;
}
.dc-emoji-picker span {
    font-size: 1.3rem;
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.dc-emoji-picker span:hover {
    background: rgba(255,255,255,0.1);
}

/* Reaction bar on hover */
.dc-msg {
    position: relative;
}
.dc-msg-react-bar {
    position: absolute;
    top: -8px;
    right: 8px;
    display: none;
    background: #2b2d31;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 2px;
    z-index: 5;
}
.dc-msg:hover .dc-msg-react-bar {
    display: flex;
}
.dc-msg-react-bar button {
    background: none;
    border: none;
    padding: 4px 6px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    color: #b5bac1;
    transition: background 0.15s;
}
.dc-msg-react-bar button:hover {
    background: rgba(255,255,255,0.1);
}
.dc-msg-reaction .dc-react-emoji {
    font-size: 1rem;
}
.dc-msg-reaction .dc-react-count {
    color: #b5bac1;
    font-size: 0.75rem;
}
@keyframes dc-react-pop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* User message highlight */
.dc-msg.dc-msg-user {
    background: rgba(79,84,92,0.2);
    border-radius: 8px;
    margin: 2px -8px;
    padding: 2px 8px;
}

/* Bot typing indicator */
.dc-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 18px 8px;
    color: #b5bac1;
    font-size: 0.78rem;
}
.dc-typing-dots {
    display: flex;
    gap: 3px;
}
.dc-typing-dots span {
    width: 6px;
    height: 6px;
    background: #b5bac1;
    border-radius: 50%;
    animation: dc-typing-bounce 1.4s ease-in-out infinite;
}
.dc-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.dc-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dc-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Discord app always uses its own dark theme */
.discord-app {
    background: #313338 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}

.discord-app::before {
    display: none !important;
}

/* Mobile: hide sidebar, show mobile tabs + chat only */
@media (max-width: 768px) {
    .discord-app {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .dc-sidebar {
        display: none;
    }

    .dc-channels {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .dc-category {
        width: 100%;
        padding: 10px 4px 2px;
    }

    .dc-channel {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .dc-chat {
        min-height: 320px;
    }
}

/* ===== PRICING ===== */
/* Pricing header above card */
.pricing .badge,
.pricing h2,
.pricing .section-subtitle {
    position: relative;
    z-index: 3;
}

.pricing-card {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
    overflow: visible;
    z-index: 2;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.10),
                0 4px 20px rgba(6, 182, 212, 0.06);
}

.pricing-glow {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9, #38bdf8);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3), 0 0 15px rgba(6, 182, 212, 0.3);
    transition: width 0.5s, box-shadow 0.5s;
}

.pricing-card:hover .pricing-glow {
    width: 400px;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.4), 0 0 20px rgba(6, 182, 212, 0.4);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 22px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.35);
    z-index: 5;
}

/* Pricing layout 2 columns */
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    text-align: left;
}

.pricing-left h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-left-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pricing-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 48px;
    border-left: 1px solid var(--border);
    gap: 20px;
}

/* Pricing toggle */
.pricing-toggle {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    width: 100%;
}

.pricing-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.pricing-toggle-btn:not(.active):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.pricing-toggle-save {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 4px;
}

.pricing-toggle-btn.active .pricing-toggle-save {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.pricing-amount {
    margin: 0;
}

.pricing-total {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    transition: opacity 0.2s;
}
.pricing-total:empty {
    display: none;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9, #06b6d4);
    -webkit-background-clip: text;
    transition: opacity 0.2s, transform 0.2s;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.period {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 -12px;
    cursor: default;
}

.pricing-card.revealed .pricing-features li {
    opacity: 1;
    transform: translateX(0);
}

.pricing-card.revealed .pricing-features li:nth-child(1) { transition-delay: 0.1s; }
.pricing-card.revealed .pricing-features li:nth-child(2) { transition-delay: 0.2s; }
.pricing-card.revealed .pricing-features li:nth-child(3) { transition-delay: 0.3s; }
.pricing-card.revealed .pricing-features li:nth-child(4) { transition-delay: 0.4s; }
.pricing-card.revealed .pricing-features li:nth-child(5) { transition-delay: 0.5s; }
.pricing-card.revealed .pricing-features li:nth-child(6) { transition-delay: 0.6s; }

.pricing-features li:hover {
    background: rgba(14, 165, 233, 0.05);
}

.pricing-features li:hover .pricing-feat-icon {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.2);
    transform: scale(1.1);
}

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

.pricing-feat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(14, 165, 233, 0.1);
    margin-top: 2px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pricing-feat-icon svg {
    width: 18px;
    height: 18px;
    stroke: #38bdf8;
}

.pricing-features li div {
    display: flex;
    flex-direction: column;
}

.pricing-features li strong {
    font-weight: 600;
    color: var(--text);
}

.pricing-features li span {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.pricing-note {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.pricing-urgency {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.urgency-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ===== MEMBER PAGE & CRASH GAME ===== */
.member-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.member-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.member-page-header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 16px;
    margin-bottom: 12px;
}

.btn-member-active {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(14, 165, 233, 0.5) !important;
    color: var(--primary-light) !important;
}

/* Rules card */
.crash-rules {
    max-width: 700px;
    margin: 0 auto 20px;
    padding: 24px 28px;
}

.crash-rules h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

.crash-rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.crash-rule {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.crash-rule strong {
    color: var(--text);
}

.crash-rule-icon {
    font-size: 1.4rem;
}

/* Spin animation for loading */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.member-zone {
    position: relative;
    padding: 100px 0;
}

/* Locked screen */
.member-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 40px;
}

.member-locked-icon {
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
    animation: pulse-lock 3s ease-in-out infinite;
}

@keyframes pulse-lock {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.4)); }
}

.member-locked-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.member-locked-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.member-locked-card {
    max-width: 460px;
    padding: 36px 40px;
    text-align: center;
}

.member-locked-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin-bottom: 24px;
}

.member-locked-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.member-locked-perk svg {
    flex-shrink: 0;
}

.member-locked-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.member-locked-connect-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.member-locked-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.member-locked-note a {
    color: var(--primary);
    text-decoration: underline;
}

.btn-discord-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-discord-login:hover {
    background: #4752c4;
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.35);
    transform: translateY(-2px);
}

/* ===== PROFILE CARD ===== */
.profile-card {
    max-width: 520px;
    margin: 0 auto 40px;
    padding: 28px 32px 24px;
    animation: profileSlideDown 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

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

.profile-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: linear-gradient(var(--bg-card), var(--bg-card)), linear-gradient(135deg, #0ea5e9, #06b6d4);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3), 0 0 40px rgba(6, 182, 212, 0.15);
    animation: avatarGlow 3s ease-in-out infinite;
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3), 0 0 40px rgba(6, 182, 212, 0.15); }
    50% { box-shadow: 0 0 25px rgba(14, 165, 233, 0.5), 0 0 50px rgba(6, 182, 212, 0.25); }
}

.profile-avatar-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-username {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-since {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-logout-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.profile-logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

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

.profile-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.profile-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-light);
}

.profile-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.profile-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.profile-badge-og {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
}

.profile-badge-active {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

/* Download card button */
.btn-download-card {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 0.85rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-download-card:hover {
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.btn-download-card:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Game header */
.crash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    margin-bottom: 20px;
    gap: 20px;
}

.crash-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.crash-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crash-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green);
}

.crash-stat-cooldown {
    color: var(--primary);
    font-size: 1rem;
}

.crash-progress-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.crash-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.crash-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 100px;
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.crash-progress-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.crash-progress-label strong {
    color: var(--primary-light);
}

/* Game board */
/* Round history strip */
.crash-history {
    max-width: 700px;
    margin: 0 auto 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px;
    scrollbar-width: none;
}
.crash-history::-webkit-scrollbar {
    display: none;
}
.crash-history-item {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    animation: crash-hist-in 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.crash-history-item.red {
    background: rgba(239,68,68,0.15);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
}
.crash-history-item.green {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.2);
}
.crash-history-item.gold {
    background: rgba(234,179,8,0.15);
    color: #facc15;
    border: 1px solid rgba(234,179,8,0.25);
}
.crash-history-item.purple {
    background: rgba(168,85,247,0.2);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.3);
}
@keyframes crash-hist-in {
    0% { transform: scale(0) translateX(-10px); opacity: 0; }
    100% { transform: scale(1) translateX(0); opacity: 1; }
}

.crash-board {
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.crash-chart {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, transparent 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

#crash-canvas {
    width: 100%;
    height: 100%;
}

.crash-multiplier {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--green);
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
    transition: color 0.3s, text-shadow 0.3s;
    pointer-events: none;
    z-index: 2;
}

.crash-multiplier.crashed {
    color: #ef4444;
    text-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.crash-multiplier.waiting {
    color: var(--text-muted);
    font-size: 2rem;
    text-shadow: none;
}

.crash-result {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 24px;
    border-radius: 8px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.crash-result.show {
    opacity: 1;
}

.crash-result.win {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.crash-result.lose {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Controls */
.crash-controls {
    padding: 24px 28px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.crash-bet-group {
    flex: 1;
}

.crash-bet-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crash-bet-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.crash-bet-quick {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.crash-bet-quick:hover,
.crash-bet-quick.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
}

.crash-bet-input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.crash-bet-input:focus {
    border-color: var(--primary);
}

.crash-btn-group {
    display: flex;
    gap: 10px;
}

.crash-play-btn {
    padding: 12px 28px !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
}

.crash-play-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

.btn-cashout {
    padding: 12px 28px;
    border: 2px solid var(--green);
    border-radius: 12px;
    background: transparent;
    color: var(--green);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cashout:hover:not(:disabled) {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-cashout:disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* Win overlay */
.crash-win-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crash-win-content {
    text-align: center;
    padding: 50px 40px;
    max-width: 440px;
    border-color: rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 0 60px rgba(14, 165, 233, 0.2);
    animation: modal-pop 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.crash-win-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.crash-win-content p {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.crash-win-code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 20px 0;
    letter-spacing: 2px;
}

/* Responsive crash */
@media (max-width: 768px) {
    .crash-header {
        flex-direction: column;
        text-align: center;
    }

    .crash-controls {
        flex-direction: column;
    }

    .crash-bet-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .crash-btn-group {
        width: 100%;
    }

    .crash-btn-group .btn,
    .crash-btn-group .btn-cashout {
        flex: 1;
    }

    .crash-multiplier {
        font-size: 3rem;
    }
}

/* ===== MEMBER TABS ===== */
.member-tabs {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 32px;
    background: rgba(15, 20, 40, 0.5);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.member-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.member-tab:hover {
    color: var(--text);
}

.member-tab.active {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3), 0 0 20px rgba(14, 165, 233, 0.1);
}

.member-tab svg {
    flex-shrink: 0;
}

.member-tab-content {
    display: none;
}

.member-tab-content.active {
    display: block;
    animation: tabFadeIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ===== GAMES SUB-NAV ===== */
.games-subnav {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
}

.games-subnav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
}

.games-subnav-btn:hover {
    color: var(--text);
    border-color: rgba(56, 189, 248, 0.15);
    background: rgba(14, 165, 233, 0.04);
}

.games-subnav-btn.active {
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.08);
}

.game-panel {
    display: none;
}

.game-panel.active {
    display: block;
    animation: tabFadeIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== COINFLIP ===== */
.coinflip-container {
    max-width: 700px;
    margin: 0 auto;
    overflow: visible !important;
}

.coinflip-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 32px;
    position: relative;
    min-height: 240px;
    perspective: 1000px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, transparent 100%);
}

.coinflip-coin {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    cursor: default;
}

.coinflip-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}

.coinflip-heads {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(6, 182, 212, 0.15));
    border: 2px solid rgba(14, 165, 233, 0.35);
    color: var(--primary-light);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.15), inset 0 0 30px rgba(14, 165, 233, 0.05);
}

.coinflip-tails {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(249, 115, 22, 0.15));
    border: 2px solid rgba(234, 179, 8, 0.35);
    color: #facc15;
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.15), inset 0 0 30px rgba(234, 179, 8, 0.05);
    transform: rotateY(180deg);
}

.coinflip-result {
    position: absolute;
    bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.coinflip-result.show { opacity: 1; }
.coinflip-result.win {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.coinflip-result.lose {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.coinflip-controls {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 1px solid var(--border);
}

.coinflip-choice label,
.coinflip-bet label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.coinflip-choice-btns {
    display: flex;
    gap: 10px;
}

.coinflip-choice-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
}

.coinflip-choice-btn:hover {
    border-color: rgba(14, 165, 233, 0.2);
    color: var(--text);
    background: rgba(14, 165, 233, 0.04);
}

.coinflip-choice-btn.active {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.08);
}

.coinflip-bet-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.coinflip-bet-quick {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.coinflip-bet-quick:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
}

.coinflip-bet-input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.coinflip-bet-input:focus { border-color: var(--primary); }

.coinflip-play-btn {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    width: 100%;
}

.coinflip-play-btn:disabled { opacity: 0.4; pointer-events: none; }

.coinflip-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 4px;
}

.coinflip-info strong { color: var(--primary-light); }

/* ===== DICE ===== */
.dice-container {
    max-width: 700px;
    margin: 0 auto;
}

.dice-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 24px;
    position: relative;
    min-height: 150px;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, transparent 100%);
}

.dice-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s, text-shadow 0.3s;
    line-height: 1;
}

.dice-number.rolling {
    color: var(--primary-light);
    text-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    animation: diceShake 0.08s ease infinite;
}

.dice-number.win {
    color: #22c55e;
    text-shadow: 0 0 35px rgba(34, 197, 94, 0.5);
}

.dice-number.lose {
    color: #ef4444;
    text-shadow: 0 0 35px rgba(239, 68, 68, 0.5);
}

@keyframes diceShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    75% { transform: translateX(3px) rotate(1deg); }
}

.dice-result {
    position: absolute;
    bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 5;
}

.dice-result.show { opacity: 1; }
.dice-result.win {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.dice-result.lose {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dice-slider-wrap {
    padding: 12px 28px 24px;
}

.dice-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dice-label-win { color: #22c55e; }
.dice-label-lose { color: #ef4444; }

.dice-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 100px;
    outline: none;
    cursor: pointer;
    --slider-pct: 50%;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.35) 0%, rgba(34, 197, 94, 0.35) var(--slider-pct), rgba(239, 68, 68, 0.3) var(--slider-pct), rgba(239, 68, 68, 0.3) 100%);
}

.dice-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5), 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.9);
}

.dice-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5), 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.9);
}

.dice-slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

#dice-target-display {
    font-weight: 600;
    color: var(--primary-light);
}

.dice-info-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 18px 28px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.dice-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dice-info-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dice-info-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
}

.dice-controls {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dice-bet label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dice-bet-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.dice-bet-quick {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.dice-bet-quick:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(14, 165, 233, 0.08);
}

.dice-bet-input {
    width: 80px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.dice-bet-input:focus { border-color: var(--primary); }

.dice-play-btn {
    padding: 14px 28px !important;
    font-size: 0.95rem !important;
    width: 100%;
}

.dice-play-btn:disabled { opacity: 0.4; pointer-events: none; }

/* ===== PORTFOLIO ===== */
.portfolio-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    border-color: rgba(255, 255, 255, 0.04);
}

.flip-search.glass-card,
.flip-summary.glass-card {
    border-color: rgba(255, 255, 255, 0.04);
}

.portfolio-chain-dropdown {
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 130px;
}

.portfolio-chain-dropdown:focus { border-color: var(--primary); }
.portfolio-chain-dropdown option { background: var(--bg); color: var(--text); }

.portfolio-address-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

.portfolio-address-input::placeholder {
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.portfolio-address-input:focus { border-color: var(--primary); }

.portfolio-search-btn {
    padding: 11px 22px !important;
    font-size: 0.85rem !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.portfolio-content {
    animation: tabFadeIn 0.4s ease;
}

/* Portfolio overview */
.portfolio-overview {
    padding: 0;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.015);
}

.portfolio-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
}

.portfolio-overview-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.portfolio-overview-total {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--green);
}

.portfolio-timeframes {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}

.portfolio-tf-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.portfolio-tf-btn:hover { color: var(--text); }

.portfolio-tf-btn.active {
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.12);
}

.portfolio-chart-wrap {
    height: 220px;
    position: relative;
}

.portfolio-chart-wrap canvas {
    width: 100%;
    height: 100%;
}

/* Portfolio sections */
.portfolio-section {
    margin-bottom: 24px;
}

.portfolio-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.portfolio-section-title svg { color: var(--primary-light); opacity: 0.6; }

/* Token rows */
.portfolio-tokens {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portfolio-token-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    transition: all 0.15s;
}

.portfolio-token-row:hover {
    border-color: rgba(255, 255, 255, 0.06);
    background: var(--bg-card-hover);
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.04);
}

.portfolio-token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-token-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.portfolio-token-logo-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid var(--border);
}

.portfolio-token-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.portfolio-token-fullname {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.portfolio-token-values { text-align: right; }

.portfolio-token-amount {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.portfolio-token-usd {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* NFT Controls */
.nft-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.nft-chain-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.nft-chain-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--chain-color, #627EEA) 30%, transparent);
    background: color-mix(in srgb, var(--chain-color, #627EEA) 8%, transparent);
    color: var(--text-muted);
    opacity: 0.45;
    transition: all 0.2s ease;
}

.nft-chain-chip:hover {
    opacity: 0.75;
    color: var(--chain-color, #627EEA);
}

.nft-chain-chip.active {
    opacity: 1;
    color: var(--chain-color, #627EEA);
    background: color-mix(in srgb, var(--chain-color, #627EEA) 15%, transparent);
    border-color: color-mix(in srgb, var(--chain-color, #627EEA) 50%, transparent);
}

.nft-chain-chip[data-chain="all"] {
    --chain-color: var(--accent, #0ea5e9);
}

.nft-chip-count {
    font-size: 0.62rem;
    opacity: 0.7;
}

.nft-chain-chip-logo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

.nft-sort-select {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.nft-sort-select:hover,
.nft-sort-select:focus {
    border-color: var(--border-hover);
}

/* NFT Layout: sidebar + grid */
.nft-layout {
    display: flex;
    gap: 16px;
}

.nft-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.nft-sidebar::-webkit-scrollbar { width: 4px; }
.nft-sidebar::-webkit-scrollbar-track { background: transparent; }
.nft-sidebar::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

.nft-sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.nft-collection-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nft-collection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text);
    transition: background 0.15s ease;
}

.nft-collection-item:hover {
    background: rgba(255,255,255,0.03);
}

.nft-collection-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.nft-collection-item input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 35%, transparent);
}

.nft-collection-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.nft-collection-item input[type="checkbox"]:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.nft-collection-img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    min-width: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nft-collection-name {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.nft-collection-count {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}

.nft-badge-logo {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 3px;
}

/* NFT grid */
.portfolio-nfts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.portfolio-nft-card {
    padding: 0;
    border-radius: 14px;
    border-color: transparent;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.portfolio-nft-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.06);
}

.portfolio-nft-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
}

.portfolio-nft-img-placeholder,
.portfolio-nft-img-placeholder[style*="display:flex"] {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(14, 165, 233, 0.04);
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.portfolio-nft-img-error {
    display: none !important;
}

.portfolio-nft-info { padding: 8px 10px; }

.portfolio-nft-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-nft-collection {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.portfolio-nft-chain-badge,
.portfolio-token-chain-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--chain-color, #627EEA);
    background: color-mix(in srgb, var(--chain-color, #627EEA) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--chain-color, #627EEA) 25%, transparent);
    border-radius: 6px;
}

.portfolio-nft-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    gap: 6px;
}

.portfolio-nft-price {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--green);
}

.portfolio-nft-chain-badge {
    margin-top: 0;
}

.portfolio-token-chain-badge {
    margin-left: 6px;
    vertical-align: middle;
    font-size: 0.58rem;
}

.portfolio-empty {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Portfolio loading / error */
.portfolio-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.portfolio-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.flip-loading-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 340px;
}

.flip-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.flip-progress-fill {
    height: 100%;
    width: 0%;
    min-width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.4);
    transition: width 0.4s ease-out;
}

.flip-progress-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.portfolio-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 60px 20px;
    color: #ef4444;
    font-size: 0.95rem;
}

/* ===== PORTFOLIO ANIMATIONS & INTERACTIONS ===== */

/* Scroll reveal */
@keyframes pfReveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
.pf-reveal {
    animation: pfReveal 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Token row hover */
.portfolio-token-row {
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    cursor: default;
    border-radius: 12px;
}
.portfolio-token-row:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

/* NFT card hover */
.portfolio-nft-card {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                border-color 0.3s;
    cursor: pointer;
}
.portfolio-nft-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.06);
    border-color: rgba(255, 255, 255, 0.06);
}
.portfolio-nft-card:hover .portfolio-nft-img {
    transform: scale(1.05);
}
.portfolio-nft-img {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* NFT Modal */
.nft-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}
.nft-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.nft-modal {
    max-width: 560px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    animation: nftModalIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes nftModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.nft-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
}
.nft-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.nft-modal-content {
    display: flex;
    flex-direction: column;
}
.nft-modal-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(139, 92, 246, 0.06));
    overflow: hidden;
    position: relative;
}
.nft-modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(0, 0, 0, 0.3);
}
.nft-modal-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.nft-modal-details {
    padding: 20px 24px 24px;
}
.nft-modal-collection {
    font-size: 0.78rem;
    color: var(--primary-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.nft-modal-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 2px;
}
.nft-modal-id {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.nft-modal-stats {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.nft-modal-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nft-modal-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}
.nft-modal-floor {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.nft-modal-floor-usd {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--green);
}
.nft-modal-purchase {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.nft-modal-purchase-usd {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent, #0ea5e9);
}
.nft-modal-purchase-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.nft-modal-pnl-eth {
    font-size: 0.95rem;
    font-weight: 700;
}
.nft-modal-pnl-usd {
    font-size: 0.82rem;
    font-weight: 600;
}
.pnl-up { color: var(--green); }
.pnl-down { color: #ef4444; }
.nft-modal-opensea {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(32, 129, 226, 0.12);
    border: 1px solid rgba(32, 129, 226, 0.3);
    color: #2081e2;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    width: fit-content;
}
.nft-modal-opensea:hover {
    background: rgba(32, 129, 226, 0.22);
    border-color: rgba(32, 129, 226, 0.5);
    transform: translateY(-1px);
}
.nft-modal-opensea svg {
    flex-shrink: 0;
}

/* Portfolio section title animation */
.portfolio-section-title {
    transition: color 0.2s;
}

/* Portfolio chart wrap subtle glow on hover */
.portfolio-chart-wrap {
    transition: box-shadow 0.3s;
}
.portfolio-overview:hover .portfolio-chart-wrap {
    box-shadow: 0 0 24px rgba(14, 165, 233, 0.06);
}

/* ===== FLIP TRACKER ===== */
.flip-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.flip-search .flip-chain-select select {
    min-width: 120px;
}

.flip-summary {
    padding: 28px 32px;
    margin-bottom: 24px;
}

.flip-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.flip-summary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flip-summary-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.flip-summary-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.flip-summary-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.flip-summary-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Flip sort bar */
.flip-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 16px;
}

.flip-sort-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.flip-sort-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.flip-sort-btn {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(15, 20, 40, 0.4);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.flip-sort-btn:hover {
    border-color: rgba(56, 189, 248, 0.25);
    color: var(--text);
    background: rgba(14, 165, 233, 0.06);
}

.flip-sort-btn.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.3);
    color: #38bdf8;
}

/* Flip privacy toggle */
.flip-privacy-toggle {
    display: flex;
    justify-content: center;
    padding: 12px 0 16px;
}

.flip-privacy-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    padding: 12px 24px;
    border-radius: 16px;
    background: rgba(15, 20, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(56, 189, 248, 0.08);
    transition: all 0.25s;
    width: 100%;
    max-width: 480px;
}

.flip-privacy-label:hover {
    background: rgba(15, 20, 40, 0.8);
    border-color: rgba(56, 189, 248, 0.2);
    color: var(--text);
}

.flip-privacy-label input {
    display: none;
}

.flip-privacy-label svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: all 0.25s;
}

.flip-privacy-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.flip-privacy-text strong {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.flip-privacy-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.flip-privacy-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.25s;
    flex-shrink: 0;
    order: -1;
}

.flip-privacy-switch::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7b8ba8;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.flip-privacy-label input:checked ~ .flip-privacy-switch {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.15);
}

.flip-privacy-label input:checked ~ .flip-privacy-switch::after {
    left: 23px;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.flip-privacy-label input:checked ~ svg {
    color: #ef4444;
    opacity: 1;
}

.flip-privacy-label input:checked ~ .flip-privacy-text strong {
    color: #f87171;
}

/* Active state: whole label gets a red tint */
.flip-privacy-label:has(input:checked) {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
}

/* Flip list */
.flip-list {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
}

/* Flip rows */
.flip-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    cursor: pointer;
}

.flip-row:last-child {
    border-bottom: none;
}

.flip-row:hover {
    background: rgba(255, 255, 255, 0.015);
}

.flip-nft-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.flip-nft-img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
}

.flip-nft-details {
    min-width: 0;
}

.flip-nft-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flip-nft-collection {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.flip-nft-dates {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 3px;
    opacity: 0.7;
}

.flip-prices {
    text-align: center;
}

.flip-price-line {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.flip-price-arrow {
    color: var(--text-muted);
    margin: 0 4px;
}

.flip-pnl-cell {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flip-pnl-eth {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.flip-pnl-usd {
    font-size: 0.8rem;
    font-weight: 600;
}

.flip-roi-badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 2px;
    width: fit-content;
    align-self: flex-end;
}

.flip-roi-badge.pnl-up {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

.flip-roi-badge.pnl-down {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.flip-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Flip P&L Card Preview Modal */
.flip-pnl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}

.flip-pnl-overlay.active {
    display: flex;
    opacity: 1;
}

.flip-pnl-modal {
    max-width: 780px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    animation: nftModalIn 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.flip-pnl-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s;
}

.flip-pnl-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.flip-pnl-preview {
    padding: 24px 24px 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.04), rgba(6, 182, 212, 0.03));
}

.flip-pnl-preview img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 60px rgba(14, 165, 233, 0.06);
}

.flip-pnl-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px 24px 24px;
    align-items: center;
}

.flip-pnl-actions .flip-privacy-toggle {
    padding: 0;
    width: 100%;
}

.flip-pnl-actions .flip-privacy-label {
    max-width: 100%;
    width: 100%;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.82rem;
}

.flip-pnl-actions .flip-privacy-switch {
    width: 38px;
    height: 20px;
    border-radius: 10px;
}

.flip-pnl-actions .flip-privacy-switch::after {
    width: 14px;
    height: 14px;
}

.flip-pnl-actions .flip-privacy-label input:checked ~ .flip-privacy-switch::after {
    left: 21px;
}

.flip-pnl-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.flip-pnl-btn {
    flex: 1;
    max-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.flip-pnl-btn.btn-primary {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
}

.flip-pnl-btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(14, 165, 233, 0.4);
}

.flip-pnl-btn.btn-glass {
    background: rgba(14, 165, 233, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.flip-pnl-btn.btn-glass:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

/* ===== COLLECTION P&L ===== */
.cpnl-search {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
}

.cpnl-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.cpnl-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.cpnl-coll-img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.cpnl-coll-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cpnl-coll-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cpnl-coll-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.cpnl-coll-floor { color: var(--text-muted); }
.cpnl-coll-held { color: #38bdf8; }
.cpnl-coll-sold { color: #eab308; }

.cpnl-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.cpnl-card-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
    gap: 8px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.cpnl-summary-grid {
    grid-template-columns: repeat(5, 1fr);
}

.cpnl-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #eab308;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cpnl-warning svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.cpnl-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 24px 0 14px;
    padding: 0 4px;
}

.cpnl-count-badge {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    padding: 3px 10px;
    border-radius: 12px;
}

.cpnl-nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.cpnl-nft-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cpnl-nft-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.cpnl-nft-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.cpnl-nft-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cpnl-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpnl-sold-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(234, 179, 8, 0.9);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.cpnl-sold-card {
    opacity: 0.75;
}

.cpnl-sold-card:hover {
    opacity: 1;
}

.cpnl-nft-body {
    padding: 12px 14px 14px;
}

.cpnl-nft-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.cpnl-nft-token {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.cpnl-nft-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.cpnl-nft-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.cpnl-price-label {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.cpnl-nft-pnl {
    font-size: 0.88rem;
    font-weight: 700;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cpnl-card-usd {
    font-size: 0.75rem;
    font-weight: 400;
}

.cpnl-source-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.cpnl-source-mint {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.cpnl-source-transfer {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

/* Responsive: new games + portfolio + flip */
@media (max-width: 768px) {
    .member-tabs {
        max-width: 100%;
    }

    .member-tab {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .games-subnav {
        gap: 4px;
    }

    .games-subnav-btn {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .coinflip-controls {
        padding: 18px;
    }

    .coinflip-choice-btns {
        flex-direction: column;
    }

    .coinflip-bet-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dice-slider-wrap {
        padding: 8px 18px 20px;
    }

    .dice-controls {
        padding: 18px;
    }

    .dice-bet-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dice-info-row {
        gap: 24px;
        padding: 14px 18px;
    }

    .portfolio-search {
        flex-direction: column;
        padding: 16px;
    }

    .portfolio-chain-dropdown,
    .portfolio-address-input,
    .portfolio-search-btn {
        width: 100%;
    }

    .portfolio-overview-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .portfolio-nfts {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .nft-layout {
        flex-direction: column;
    }

    .nft-sidebar {
        width: 100%;
        max-height: 150px;
    }

    .flip-search {
        flex-direction: column;
        padding: 16px;
    }

    .flip-search .flip-chain-select select,
    .flip-search .portfolio-address-input,
    .flip-search .portfolio-search-btn {
        width: 100%;
    }

    .flip-summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .flip-summary-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 12px;
    }

    .flip-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 16px;
    }

    .flip-nft-img {
        width: 44px;
        height: 44px;
    }

    .flip-prices {
        text-align: left;
        padding-left: 58px; /* 44px img + 14px gap */
    }

    .flip-pnl-cell {
        text-align: left;
        flex-direction: row;
        gap: 12px;
        padding-left: 58px;
    }

    .flip-pnl-overlay {
        padding: 12px;
    }

    .flip-pnl-modal {
        max-width: 100%;
    }

    .flip-pnl-preview {
        padding: 16px 16px 0;
    }

    .flip-pnl-actions {
        padding: 12px;
    }

    .flip-pnl-buttons {
        flex-direction: column;
    }

    .flip-pnl-btn {
        max-width: 100%;
    }

    /* Collection P&L responsive */
    .cpnl-search {
        flex-direction: column;
        padding: 16px;
    }

    .cpnl-search .portfolio-address-input,
    .cpnl-search .portfolio-search-btn,
    .cpnl-search .flip-chain-select,
    .cpnl-search .flip-chain-select select {
        width: 100%;
    }

    .cpnl-header {
        flex-direction: column;
        gap: 14px;
    }

    .cpnl-header-left {
        flex-direction: column;
        text-align: center;
    }

    .cpnl-coll-meta {
        justify-content: center;
    }

    .cpnl-card-btn {
        width: 100%;
        justify-content: center;
    }

    .cpnl-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cpnl-nft-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

}

/* ===== FAQ ===== */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    padding: 0;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-light);
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 28px 22px;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: var(--faq-height, 300px);
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 80px 0 120px;
}

.cta-box {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(6, 182, 212, 0.04));
}

.cta-box h2 {
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

/* ===== MINI CTA BANNERS ===== */
.mini-cta {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(6, 182, 212, 0.03));
    position: relative;
    z-index: 1;
}

.mini-cta-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    text-align: center;
}

.mini-cta p {
    font-size: 1rem;
    color: var(--text-muted);
}

.mini-cta strong {
    color: var(--primary-light);
}

.mini-cta-inset {
    background: none;
    padding: 48px 0 8px;
    margin-top: 24px;
}

.mini-cta-light p {
    color: #475569;
}

.mini-cta-light strong {
    color: #0284c7;
}

/* ===== PROOF PROFIT BADGE ===== */
.proof-profit {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
    text-shadow: 0 0 20px color-mix(in srgb, var(--primary) 40%, transparent);
}

.proof-card.spotlight .proof-profit {
    text-shadow: 0 0 28px color-mix(in srgb, var(--primary-light) 60%, transparent),
                 0 0 8px color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ===== COUNTDOWN ===== */
.countdown {
    margin-bottom: 40px;
    text-align: center;
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.countdown-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px;
    min-width: 72px;
}

.countdown-block span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-block small {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 6px;
}

.countdown-sep {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    opacity: 0.4;
    padding-bottom: 16px;
}

/* ===== PRICING GUARANTEE ===== */
.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 12px;
}

.pricing-guarantee svg {
    color: var(--green);
    flex-shrink: 0;
}

/* Pricing card Nexus-branded CTA */
.pricing-card .btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.25), 0 0 40px rgba(6, 182, 212, 0.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.pricing-card .btn-primary:hover {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.4), 0 0 60px rgba(6, 182, 212, 0.2);
    transform: translateY(-3px);
}

/* ===== TEAM ===== */
.team-stack {
    display: flex;
    flex-direction: column;
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.team-stack-item {
    position: sticky;
    top: calc(28vh + var(--stack-index, 0) * 24px);
    z-index: calc(var(--stack-index, 0) + 1);
    margin-bottom: 50vh;
    will-change: transform;
    contain: layout style;
}

.team-stack-item:last-child {
    margin-bottom: 50vh;
}

.team-card {
    padding: 48px 40px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: visible;
    text-align: left;
    will-change: transform;
}

.team-card:hover {
    border-color: rgba(14, 165, 233, 0.25);
}

/* Remove glass reflection on team member cards */
.team-card-founder::before,
.team-card-member::before {
    display: none !important;
}

/* ===== TEAM CARD DECORATIONS ===== */
.team-card-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
}

/* Parallax layer — moves with mouse via JS */
.team-card-deco .deco-layer {
    position: absolute;
    inset: -20px;
    transition: transform 0.3s ease-out;
}

.team-card > *:not(.team-card-deco) {
    position: relative;
    z-index: 1;
}

/* --- Fondateur: NFT diamonds + chart --- */
.deco-founder .deco-diamond {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(168,85,247,0.3));
}
.deco-founder .d1 { top: 8px; right: 30px; }
.deco-founder .d2 { top: 35%; left: 12px; }
.deco-founder .d3 { bottom: 30px; right: 80px; }
.deco-founder .d4 { bottom: 12px; left: 50px; }
.deco-founder .d5 { top: 20%; right: 50%; }
.deco-founder .deco-chart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    filter: drop-shadow(0 0 8px rgba(80,200,120,0.25));
}
.deco-chart-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
}

.team-card-founder.visible .deco-founder .deco-diamond {
    opacity: 1;
    animation: decoFloat 4s ease-in-out infinite;
}
.team-card-founder.visible .d1 { animation-delay: 0s; }
.team-card-founder.visible .d2 { animation-delay: 0.8s; }
.team-card-founder.visible .d3 { animation-delay: 1.6s; }
.team-card-founder.visible .d4 { animation-delay: 2.4s; }
.team-card-founder.visible .d5 { animation-delay: 0.4s; }
.team-card-founder.visible .deco-chart {
    opacity: 1;
    transition: opacity 0.6s 0.3s;
}
.team-card-founder.visible .deco-chart-line {
    animation: decoChartDraw 2.5s ease-out 0.5s forwards;
}

/* --- Pasdidie: Sniper scope --- */
.deco-pasdidie .deco-scope {
    position: absolute;
    top: 0;
    right: 10px;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(34,197,94,0.2));
}
.deco-pasdidie .deco-scope-sm {
    position: absolute;
    bottom: 5px;
    left: 15px;
    opacity: 0;
}
.deco-pasdidie .deco-locked {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(34,197,94,0.5);
    opacity: 0;
}
.deco-pasdidie .deco-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(34,197,94,0.6);
    opacity: 0;
}
.deco-pasdidie .dot1 { top: 20px; left: 40px; }
.deco-pasdidie .dot2 { bottom: 30px; right: 40%; }
.deco-pasdidie .dot3 { top: 40%; left: 60%; }

.team-card-member[data-member="pasdidie"].visible .deco-scope {
    opacity: 1;
    animation: decoPulse 3s ease-in-out infinite;
}
.team-card-member[data-member="pasdidie"].visible .deco-scope-sm {
    opacity: 1;
    animation: decoPulse 3s ease-in-out 1.5s infinite;
}
.team-card-member[data-member="pasdidie"].visible .deco-locked {
    opacity: 1;
    animation: decoLockedBlink 2s ease-in-out infinite;
}
.team-card-member[data-member="pasdidie"].visible .deco-dot {
    opacity: 1;
    animation: decoDotPing 3s ease-in-out infinite;
}
.team-card-member[data-member="pasdidie"].visible .dot1 { animation-delay: 0s; }
.team-card-member[data-member="pasdidie"].visible .dot2 { animation-delay: 1s; }
.team-card-member[data-member="pasdidie"].visible .dot3 { animation-delay: 2s; }

/* --- Whalemaire: Bars + megaphone + metrics --- */
.deco-whalemaire .deco-bars {
    position: absolute;
    bottom: 10px;
    left: 14px;
    opacity: 0;
}
.deco-whalemaire .deco-megaphone {
    position: absolute;
    top: 8px;
    right: 14px;
    opacity: 0;
    filter: drop-shadow(0 0 6px rgba(200,200,210,0.15));
}
.deco-whalemaire .bar {
    transform-origin: bottom center;
    transform: scaleY(0);
}
.deco-whalemaire .deco-metric {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    opacity: 0;
}
.deco-whalemaire .metric1 {
    top: 14px;
    left: 16px;
    font-size: 1rem;
    color: rgba(200,200,210,0.35);
}
.deco-whalemaire .metric2 {
    bottom: 14px;
    right: 20px;
    font-size: 0.8rem;
    color: rgba(200,200,210,0.25);
}

.team-card-member[data-member="whalemaire"].visible .deco-bars {
    opacity: 1;
    transition: opacity 0.4s;
}
.team-card-member[data-member="whalemaire"].visible .bar {
    animation: decoBarRise 0.8s ease-out forwards;
}
.team-card-member[data-member="whalemaire"].visible .b1 { animation-delay: 0.2s; }
.team-card-member[data-member="whalemaire"].visible .b2 { animation-delay: 0.4s; }
.team-card-member[data-member="whalemaire"].visible .b3 { animation-delay: 0.6s; }
.team-card-member[data-member="whalemaire"].visible .b4 { animation-delay: 0.8s; }
.team-card-member[data-member="whalemaire"].visible .b5 { animation-delay: 1.0s; }
.team-card-member[data-member="whalemaire"].visible .deco-megaphone {
    opacity: 1;
    transition: opacity 0.4s 0.3s;
}
.team-card-member[data-member="whalemaire"].visible .deco-wave {
    animation: decoWavePulse 2s ease-in-out infinite;
}
.team-card-member[data-member="whalemaire"].visible .w2 { animation-delay: 0.3s; }
.team-card-member[data-member="whalemaire"].visible .w3 { animation-delay: 0.6s; }
.team-card-member[data-member="whalemaire"].visible .deco-metric {
    animation: decoMetricFade 3s ease-in-out infinite;
}
.team-card-member[data-member="whalemaire"].visible .metric2 { animation-delay: 1.5s; }

/* --- Nerox: Floating sneakers --- */
.deco-nrox .deco-shoe {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 4px 8px rgba(234,179,8,0.15));
}
.deco-nrox .s1 { top: 6px; right: 20px; }
.deco-nrox .s2 { bottom: 10px; left: 14px; }
.deco-nrox .s3 { top: 40%; right: 35%; }
.deco-nrox .s4 { top: 15px; left: 30px; }
.deco-nrox .s5 { bottom: 20px; right: 30%; }
.deco-nrox .deco-price {
    position: absolute;
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    opacity: 0;
}
.deco-nrox .price1 {
    bottom: 14px;
    right: 16px;
    font-size: 0.85rem;
    color: rgba(234,179,8,0.35);
}
.deco-nrox .price2 {
    top: 12px;
    left: 50%;
    font-size: 0.7rem;
    color: rgba(94,184,196,0.3);
}

.team-card-member[data-member="nrox"].visible .deco-shoe {
    opacity: 1;
    animation: decoBounce 3.5s ease-in-out infinite;
}
.team-card-member[data-member="nrox"].visible .s1 { animation-delay: 0s; }
.team-card-member[data-member="nrox"].visible .s2 { animation-delay: 0.6s; }
.team-card-member[data-member="nrox"].visible .s3 { animation-delay: 1.2s; }
.team-card-member[data-member="nrox"].visible .s4 { animation-delay: 1.8s; }
.team-card-member[data-member="nrox"].visible .s5 { animation-delay: 0.3s; }
.team-card-member[data-member="nrox"].visible .deco-price {
    animation: decoMetricFade 3s ease-in-out infinite;
}
.team-card-member[data-member="nrox"].visible .price2 { animation-delay: 1.5s; }

/* --- Deco keyframes --- */
@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
}

@keyframes decoChartDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes decoPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

@keyframes decoLockedBlink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

@keyframes decoDotPing {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.8); opacity: 0.8; }
}

@keyframes decoBarRise {
    to { transform: scaleY(1); }
}

@keyframes decoWavePulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.7; }
}

@keyframes decoMetricFade {
    0%, 100% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-4px); }
}

@keyframes decoBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-14px) rotate(-5deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.2);
}

.team-avatar span {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.team-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--primary) !important;
    font-weight: 600;
    margin-bottom: 12px;
}

.team-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: left;
}


/* ===== FOUNDER CARD & MODAL ===== */
.team-card-founder {
    cursor: pointer;
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: linear-gradient(160deg, rgba(13, 11, 26, 0.7), rgba(50, 20, 80, 0.35), rgba(30, 70, 40, 0.25)) !important;
}

.team-card-founder:hover {
    border-color: rgba(168, 85, 247, 0.4) !important;
    box-shadow:
        10px 8px 30px rgba(0, 0, 0, 0.45),
        0 8px 40px rgba(168, 85, 247, 0.15) !important;
}


.team-avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
    border: 3px solid transparent;
    background-image: linear-gradient(135deg, #a855f7, #50c878);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
    transition: transform 0.4s, box-shadow 0.4s;
}

.team-card-founder:hover .team-avatar-img {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(168, 85, 247, 0.35);
}

.team-card-hint {
    display: block;
    margin-top: 14px;
    font-size: 0.75rem;
    color: #c4a8ff;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card-founder:hover .team-card-hint {
    opacity: 0.7;
}

/* Founder overlay */
.founder-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.4s ease;
    will-change: background;
}

.founder-overlay.active {
    background: rgba(0, 0, 0, 0.75);
    pointer-events: auto;
}

.founder-modal {
    width: 90%;
    max-width: 720px;
    padding: 0;
    opacity: 0;
    transform: scale(0.85) translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    background: linear-gradient(135deg, #0d0b1a 0%, #1a0e2e 40%, #0f1a12 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(168, 85, 247, 0.08);
    will-change: transform, opacity;
}

.founder-overlay.active .founder-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.founder-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a8fbf;
    cursor: pointer;
    transition: all 0.3s;
}

.founder-close:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
}

.founder-modal-content {
    display: flex;
    gap: 36px;
    padding: 44px;
}

.founder-modal-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.founder-modal-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-image: linear-gradient(135deg, #a855f7, #50c878);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3), 0 0 20px rgba(80, 200, 120, 0.15);
}

.founder-twitter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0d0ff;
    transition: all 0.3s;
}

.founder-twitter-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2);
}

.founder-modal-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.founder-modal-right h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
}

.founder-modal-right .team-role {
    margin-bottom: 16px;
    color: #a855f7 !important;
}

.founder-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.founder-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.founder-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7, #50c878);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founder-stat-label {
    font-size: 0.75rem;
    color: #8b7fa8;
}

.founder-bio {
    font-size: 0.92rem;
    color: #9a8fbf !important;
    line-height: 1.7;
    margin-bottom: 16px;
}

.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.founder-tags span {
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    color: #c4a8ff;
}

/* ===== PASDIDIE CARD & MODAL ===== */
.team-card-member {
    cursor: pointer;
}

.team-card-member:hover .team-card-hint {
    opacity: 0.7;
}

.team-card-member:hover .team-avatar-img {
    transform: scale(1.08);
}

/* Pasdidie colors: light blue #87ceeb + green #22c55e */
.team-card-member[data-member="pasdidie"] {
    border: 1px solid rgba(34, 197, 94, 0.2);
    background: linear-gradient(160deg, rgba(8, 28, 20, 0.7), rgba(15, 50, 35, 0.35), rgba(135, 206, 235, 0.15)) !important;
}

.team-card-member[data-member="pasdidie"]:hover {
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow:
        10px 8px 30px rgba(0, 0, 0, 0.45),
        0 8px 40px rgba(34, 197, 94, 0.12) !important;
}

.team-card-member[data-member="pasdidie"] .team-card-hint {
    color: #6ee7b7;
}


.team-avatar-img-pasdidie {
    background-image: linear-gradient(135deg, #22c55e, #87ceeb) !important;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2) !important;
}

.team-card-member[data-member="pasdidie"]:hover .team-avatar-img-pasdidie {
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.3) !important;
}

/* Pasdidie modal */
.member-modal-pasdidie {
    background: linear-gradient(135deg, #081c14 0%, #0a1420 40%, rgba(135, 206, 235, 0.08) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(34, 197, 94, 0.08), 0 0 30px rgba(135, 206, 235, 0.04);
}

.member-modal-pasdidie::before {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), transparent 50%, rgba(135, 206, 235, 0.08)) !important;
}

.member-modal-img-pasdidie {
    background-image: linear-gradient(135deg, #22c55e, #87ceeb) !important;
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.25), 0 0 20px rgba(135, 206, 235, 0.1) !important;
}

.member-twitter-btn-pasdidie {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
}

.member-twitter-btn-pasdidie:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.2);
}

.member-right-pasdidie h3 {
    color: #fff !important;
}

.member-right-pasdidie .team-role {
    color: #22c55e !important;
}

.member-stat-pasdidie {
    background: linear-gradient(135deg, #22c55e, #87ceeb) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.member-bio-pasdidie {
    color: #8bb8a0 !important;
}

.member-tags-pasdidie span {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #6ee7b7;
}

/* ===== NROX — gold/teal palette ===== */
.team-card-member[data-member="nrox"] {
    border: 1px solid rgba(234, 179, 8, 0.2);
    background: linear-gradient(160deg, rgba(20, 16, 5, 0.7), rgba(40, 30, 8, 0.4), rgba(94, 184, 196, 0.12)) !important;
}

.team-card-member[data-member="nrox"]:hover {
    border-color: rgba(234, 179, 8, 0.4) !important;
    box-shadow:
        10px 8px 30px rgba(0, 0, 0, 0.45),
        0 8px 40px rgba(234, 179, 8, 0.1) !important;
}

.team-card-member[data-member="nrox"] .team-card-hint {
    color: #fbbf24;
}


.team-avatar-img-nrox {
    background-image: linear-gradient(135deg, #eab308, #5eb8c4) !important;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.2) !important;
}

.team-card-member[data-member="nrox"]:hover .team-avatar-img-nrox {
    box-shadow: 0 12px 32px rgba(234, 179, 8, 0.3) !important;
}

/* Nrox modal */
.member-modal-nrox {
    background: linear-gradient(135deg, #141005 0%, #0a1214 40%, rgba(234, 179, 8, 0.05) 100%) !important;
    border: 1px solid rgba(234, 179, 8, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(234, 179, 8, 0.06);
}

.member-modal-img-nrox {
    background-image: linear-gradient(135deg, #eab308, #5eb8c4) !important;
    box-shadow: 0 12px 40px rgba(234, 179, 8, 0.2), 0 0 20px rgba(94, 184, 196, 0.08) !important;
}

.member-twitter-btn-nrox {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: #fde68a;
}

.member-twitter-btn-nrox:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(234, 179, 8, 0.15);
}

.member-right-nrox h3 {
    color: #fff !important;
}

.member-right-nrox .team-role {
    color: #fbbf24 !important;
}

.member-stat-nrox {
    background: linear-gradient(135deg, #eab308, #5eb8c4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.member-bio-nrox {
    color: #a09070 !important;
}

.member-tags-nrox span {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.18);
    color: #fbbf24;
}

.member-modal-nrox .member-close {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.18);
    color: #a09070;
}

.member-modal-nrox .member-close:hover {
    background: rgba(234, 179, 8, 0.15);
    color: #fff;
}

/* ===== WHALEMAIRE — black/silver palette ===== */
.team-card-member[data-member="whalemaire"] {
    border: 1px solid rgba(200, 200, 210, 0.15);
    background: linear-gradient(160deg, rgba(5, 5, 8, 0.8), rgba(25, 25, 35, 0.5), rgba(200, 200, 210, 0.1)) !important;
}

.team-card-member[data-member="whalemaire"]:hover {
    border-color: rgba(200, 200, 210, 0.35) !important;
    box-shadow:
        10px 8px 30px rgba(0, 0, 0, 0.45),
        0 8px 40px rgba(200, 200, 210, 0.08) !important;
}

.team-card-member[data-member="whalemaire"] .team-card-hint {
    color: #c8c8d2;
}


.team-avatar-img-whalemaire {
    background-image: linear-gradient(135deg, #c8c8d2, #fff) !important;
    box-shadow: 0 8px 24px rgba(200, 200, 210, 0.15) !important;
}

.team-card-member[data-member="whalemaire"]:hover .team-avatar-img-whalemaire {
    box-shadow: 0 12px 32px rgba(200, 200, 210, 0.25) !important;
}

/* Whalemaire modal */
.member-modal-whalemaire {
    background: linear-gradient(135deg, #050508 0%, #0f0f14 40%, rgba(200, 200, 210, 0.05) 100%) !important;
    border: 1px solid rgba(200, 200, 210, 0.15) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(200, 200, 210, 0.05);
}

.member-modal-whalemaire::before {
    background: linear-gradient(135deg, rgba(200, 200, 210, 0.1), transparent 50%, rgba(255, 255, 255, 0.03)) !important;
}

.member-modal-img-whalemaire {
    background-image: linear-gradient(135deg, #c8c8d2, #fff) !important;
    box-shadow: 0 12px 40px rgba(200, 200, 210, 0.2), 0 0 20px rgba(255, 255, 255, 0.05) !important;
}

.member-twitter-btn-whalemaire {
    background: rgba(200, 200, 210, 0.08);
    border: 1px solid rgba(200, 200, 210, 0.2);
    color: #e0e0e8;
}

.member-twitter-btn-whalemaire:hover {
    background: rgba(200, 200, 210, 0.15);
    border-color: rgba(200, 200, 210, 0.4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(200, 200, 210, 0.15);
}

.member-right-whalemaire h3 {
    color: #fff !important;
}

.member-right-whalemaire .team-role {
    color: #c8c8d2 !important;
}

.member-stat-whalemaire {
    background: linear-gradient(135deg, #c8c8d2, #fff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.member-bio-whalemaire {
    color: #8a8a96 !important;
}

.member-tags-whalemaire span {
    background: rgba(200, 200, 210, 0.08);
    border: 1px solid rgba(200, 200, 210, 0.15);
    color: #c8c8d2;
}

.member-modal-whalemaire .member-close {
    background: rgba(200, 200, 210, 0.08);
    border: 1px solid rgba(200, 200, 210, 0.15);
    color: #8a8a96;
}

.member-modal-whalemaire .member-close:hover {
    background: rgba(200, 200, 210, 0.15);
    color: #fff;
}

/* ===== KRYSKO — gold/amber palette ===== */
.member-modal-krysko {
    background: linear-gradient(135deg, #1a1504 0%, #0a1420 40%, rgba(250, 204, 21, 0.08) 100%) !important;
    border: 1px solid rgba(250, 204, 21, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(250, 204, 21, 0.08), 0 0 30px rgba(234, 179, 8, 0.04);
}

.member-modal-krysko::before {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), transparent 50%, rgba(234, 179, 8, 0.08)) !important;
}

.member-modal-img-krysko {
    background-image: linear-gradient(135deg, #facc15, #eab308) !important;
    box-shadow: 0 12px 40px rgba(250, 204, 21, 0.25), 0 0 20px rgba(234, 179, 8, 0.1) !important;
}

.member-twitter-btn-krysko {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.25);
    color: #fef08a;
}

.member-twitter-btn-krysko:hover {
    background: rgba(250, 204, 21, 0.2);
    border-color: rgba(250, 204, 21, 0.5);
    color: #fff;
}

.member-right-krysko h3 {
    color: #fff !important;
}

.member-right-krysko .team-role {
    color: #facc15 !important;
}

.member-stat-krysko {
    background: linear-gradient(135deg, #facc15, #eab308) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.member-bio-krysko {
    color: #b8a86a !important;
}

.member-tags-krysko span {
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    color: #fde68a;
}

.member-modal-krysko .member-close {
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.15);
    color: #b8a86a;
}

.member-modal-krysko .member-close:hover {
    background: rgba(250, 204, 21, 0.15);
    color: #fff;
}

/* ===== SLOKA — silver/slate palette ===== */
.member-modal-sloka {
    background: linear-gradient(135deg, #0e1118 0%, #0a1420 40%, rgba(226, 232, 240, 0.08) 100%) !important;
    border: 1px solid rgba(226, 232, 240, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(226, 232, 240, 0.06);
}

.member-modal-sloka::before {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.12), transparent 50%) !important;
}

.member-modal-img-sloka {
    background-image: linear-gradient(135deg, #e2e8f0, #94a3b8) !important;
    box-shadow: 0 12px 40px rgba(226, 232, 240, 0.2) !important;
}

.member-twitter-btn-sloka {
    background: rgba(226, 232, 240, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.25);
    color: #cbd5e1;
}

.member-twitter-btn-sloka:hover {
    background: rgba(226, 232, 240, 0.2);
    border-color: rgba(226, 232, 240, 0.5);
    color: #fff;
}

.member-right-sloka h3 { color: #fff !important; }
.member-right-sloka .team-role { color: #e2e8f0 !important; }

.member-stat-sloka {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.member-bio-sloka { color: #8a96a8 !important; }

.member-tags-sloka span {
    background: rgba(226, 232, 240, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.15);
    color: #cbd5e1;
}

.member-modal-sloka .member-close {
    background: rgba(226, 232, 240, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.15);
    color: #8a96a8;
}

.member-modal-sloka .member-close:hover {
    background: rgba(226, 232, 240, 0.15);
    color: #fff;
}

/* ===== TOTINHO — orange palette ===== */
.member-modal-totinho {
    background: linear-gradient(135deg, #1a0e04 0%, #0a1420 40%, rgba(249, 115, 22, 0.08) 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(249, 115, 22, 0.08);
}

.member-modal-totinho::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), transparent 50%) !important;
}

.member-modal-img-totinho {
    background-image: linear-gradient(135deg, #f97316, #ea580c) !important;
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.25) !important;
}

.member-twitter-btn-totinho {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.25);
    color: #fdba74;
}

.member-twitter-btn-totinho:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: rgba(249, 115, 22, 0.5);
    color: #fff;
}

.member-right-totinho h3 { color: #fff !important; }
.member-right-totinho .team-role { color: #f97316 !important; }

.member-stat-totinho {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.member-bio-totinho { color: #b8845a !important; }

.member-tags-totinho span {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

.member-modal-totinho .member-close {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.15);
    color: #b8845a;
}

.member-modal-totinho .member-close:hover {
    background: rgba(249, 115, 22, 0.15);
    color: #fff;
}

/* ===== LISSA — blue palette ===== */
.member-modal-lissa {
    background: linear-gradient(135deg, #040e1a 0%, #0a1420 40%, rgba(96, 165, 250, 0.08) 100%) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(96, 165, 250, 0.08);
}

.member-modal-lissa::before {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), transparent 50%) !important;
}

.member-modal-img-lissa {
    background-image: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    box-shadow: 0 12px 40px rgba(96, 165, 250, 0.25) !important;
}

.member-twitter-btn-lissa {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: #93c5fd;
}

.member-twitter-btn-lissa:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    color: #fff;
}

.member-right-lissa h3 { color: #fff !important; }
.member-right-lissa .team-role { color: #60a5fa !important; }

.member-stat-lissa {
    background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.member-bio-lissa { color: #6a8ab8 !important; }

.member-tags-lissa span {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #93c5fd;
}

.member-modal-lissa .member-close {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.15);
    color: #6a8ab8;
}

.member-modal-lissa .member-close:hover {
    background: rgba(96, 165, 250, 0.15);
    color: #fff;
}

/* ===== HAMOULEH — copper/brown palette ===== */
.member-modal-hamouleh {
    background: linear-gradient(135deg, #1a1008 0%, #0a1420 40%, rgba(212, 165, 116, 0.08) 100%) !important;
    border: 1px solid rgba(212, 165, 116, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 165, 116, 0.08);
}

.member-modal-hamouleh::before {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15), transparent 50%) !important;
}

.member-modal-img-hamouleh {
    background-image: linear-gradient(135deg, #d4a574, #b8875a) !important;
    box-shadow: 0 12px 40px rgba(212, 165, 116, 0.25) !important;
}

.member-twitter-btn-hamouleh {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.25);
    color: #e8c9a4;
}

.member-twitter-btn-hamouleh:hover {
    background: rgba(212, 165, 116, 0.2);
    border-color: rgba(212, 165, 116, 0.5);
    color: #fff;
}

.member-right-hamouleh h3 { color: #fff !important; }
.member-right-hamouleh .team-role { color: #d4a574 !important; }

.member-stat-hamouleh {
    background: linear-gradient(135deg, #d4a574, #b8875a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.member-bio-hamouleh { color: #a08a6e !important; }

.member-tags-hamouleh span {
    background: rgba(212, 165, 116, 0.1);
    border: 1px solid rgba(212, 165, 116, 0.2);
    color: #e8c9a4;
}

.member-modal-hamouleh .member-close {
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.15);
    color: #a08a6e;
}

.member-modal-hamouleh .member-close:hover {
    background: rgba(212, 165, 116, 0.15);
    color: #fff;
}

/* ===== TAHEM — teal palette ===== */
.member-modal-tahem {
    background: linear-gradient(135deg, #041a17 0%, #0a1420 40%, rgba(94, 234, 212, 0.08) 100%) !important;
    border: 1px solid rgba(94, 234, 212, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(94, 234, 212, 0.08), 0 0 30px rgba(45, 212, 191, 0.04);
}

.member-modal-tahem::before {
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.15), transparent 50%, rgba(45, 212, 191, 0.08)) !important;
}

.member-modal-img-tahem {
    background-image: linear-gradient(135deg, #5eead4, #2dd4bf) !important;
    box-shadow: 0 12px 40px rgba(94, 234, 212, 0.25), 0 0 20px rgba(45, 212, 191, 0.1) !important;
}

.member-twitter-btn-tahem {
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.25);
    color: #a7f3d0;
}

.member-twitter-btn-tahem:hover {
    background: rgba(94, 234, 212, 0.2);
    border-color: rgba(94, 234, 212, 0.5);
    color: #fff;
}

.member-right-tahem h3 {
    color: #fff !important;
}

.member-right-tahem .team-role {
    color: #5eead4 !important;
}

.member-stat-tahem {
    background: linear-gradient(135deg, #5eead4, #2dd4bf) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.member-bio-tahem {
    color: #7aab9e !important;
}

.member-tags-tahem span {
    background: rgba(94, 234, 212, 0.1);
    border: 1px solid rgba(94, 234, 212, 0.2);
    color: #a7f3d0;
}

.member-modal-tahem .member-close {
    background: rgba(94, 234, 212, 0.08);
    border: 1px solid rgba(94, 234, 212, 0.15);
    color: #7aab9e;
}

.member-modal-tahem .member-close:hover {
    background: rgba(94, 234, 212, 0.15);
    color: #fff;
}

/* Member overlay (shared for all members) */
.member-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: background 0.4s ease;
    will-change: background;
}

.member-overlay.active {
    background: rgba(0, 0, 0, 0.75);
    pointer-events: auto;
}

.member-modal-pasdidie,
.member-modal {
    width: 90%;
    max-width: 720px;
    padding: 0;
    opacity: 0;
    transform: scale(0.85) translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    will-change: transform, opacity;
}

.member-overlay.active .member-modal-pasdidie,
.member-overlay.active .member-modal {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.member-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8bb8a0;
    cursor: pointer;
    transition: all 0.3s;
}

.member-close:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #fff;
}

.member-modal-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.member-twitter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s;
}

.member-twitter-btn:hover {
    transform: translateY(-2px);
}


/* Mobile modal */
@media (max-width: 768px) {
    .founder-modal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 36px 24px;
        gap: 24px;
    }

    .founder-modal-img {
        width: 120px;
        height: 120px;
    }

    .founder-stats {
        justify-content: center;
    }

    .founder-tags {
        justify-content: center;
    }

    .founder-modal-right {
        text-align: center;
    }

    .founder-modal-right h3,
    .founder-modal-right .team-role {
        text-align: center;
    }

    .team-stack {
        max-width: 100%;
    }

    .team-stack-item {
        top: calc(22vh + var(--stack-index, 0) * 18px);
        margin-bottom: 45vh;
    }

    .team-stack-item:last-child {
        margin-bottom: 40vh;
    }

    .team-card {
        padding: 32px 20px;
    }
}

/* ===== TEAM CARDS GRID ===== */
.team-cards-leader {
    display: flex;
    justify-content: center;
    max-width: 960px;
    margin: 40px auto 0;
}
.team-cards-leader .team-card-simple {
    max-width: 240px;
    width: 100%;
}
.team-cards-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 960px;
    margin: 24px auto 0;
}
.team-cards-bottom .team-card-simple {
    max-width: 240px;
    width: 100%;
}
.team-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 24px auto 0;
}

.team-card-simple {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 24px 28px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card-simple::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, var(--card-color, #0ea5e9), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.team-card-simple:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--card-color, #0ea5e9);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3),
                0 0 24px color-mix(in srgb, var(--card-color, #0ea5e9) 25%, transparent);
}

.team-card-simple:hover::before {
    opacity: 0.08;
}

.team-card-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    display: block;
    border: 3px solid var(--card-color, #0ea5e9);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--card-color, #0ea5e9) 30%, transparent);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.team-card-simple:hover .team-card-avatar {
    transform: scale(1.08);
    box-shadow: 0 10px 28px color-mix(in srgb, var(--card-color, #0ea5e9) 40%, transparent);
}

.team-card-simple h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.team-card-role {
    font-size: 0.85rem;
    color: var(--card-color, #0ea5e9);
    font-weight: 600;
    margin-bottom: 14px;
}

.team-card-link {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.team-card-simple:hover .team-card-link {
    opacity: 1;
    color: var(--card-color, #0ea5e9);
}

/* Responsive */
@media (max-width: 768px) {
    .team-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .team-card-simple {
        padding: 28px 16px 22px;
    }

    .team-card-avatar {
        width: 76px;
        height: 76px;
    }
}

@media (max-width: 400px) {
    .team-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
}

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
    background: var(--bg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 8px;
    font-size: 0.75rem !important;
    opacity: 0.5;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children — driven by --stagger-index set in JS */
.result-card-v2.reveal,
.proof-card.reveal,
.team-stack-item .team-card.reveal,
.faq-item.reveal {
    transition-delay: calc(var(--stagger-index, 0) * 0.12s);
}

/* ===== RESELL TRACKER ===== */
.member-tabs {
    max-width: 620px;
}

.resell-summary {
    padding: 24px;
    margin-bottom: 20px;
}

.resell-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.resell-summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resell-summary-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.resell-summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text);
}

.resell-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.resell-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.88rem;
}

.resell-subtabs {
    display: flex;
    gap: 4px;
    background: rgba(15, 20, 40, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    max-width: 280px;
    margin: 0 auto 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.resell-subtab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.resell-subtab:hover {
    color: var(--text);
}

.resell-subtab.active {
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.resell-subtab-count {
    background: rgba(14, 165, 233, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.resell-subtab.active .resell-subtab-count {
    background: rgba(255, 255, 255, 0.2);
}

.resell-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.resell-sort-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.resell-sort-options {
    display: flex;
    gap: 6px;
}

.resell-sort-btn {
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(15, 20, 40, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
}

.resell-sort-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.resell-sort-btn.active {
    color: #fff;
    background: rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.resell-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    min-height: 120px;
}

.resell-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

.resell-empty p {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.resell-empty span {
    font-size: 0.8rem;
    opacity: 0.6;
}

.resell-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.resell-item-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.12);
}

.resell-card-img-wrap {
    position: relative;
}

.resell-item-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: rgba(15, 20, 40, 0.3);
    padding: 12px;
}

.resell-item-card-img-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 40, 0.3);
}

/* 3-dot quick menu */
.resell-card-menu-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
    padding: 0;
}

.resell-item-card:hover .resell-card-menu-btn,
.resell-card-menu-btn.active {
    opacity: 1;
}

.resell-card-menu-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.resell-card-menu-dropdown {
    display: none;
    position: absolute;
    top: 44px;
    right: 8px;
    min-width: 160px;
    background: rgba(15, 20, 40, 0.97);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 6px;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.resell-card-menu-dropdown.open {
    display: block;
}

.resell-menu-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.resell-menu-option:hover {
    background: rgba(14, 165, 233, 0.15);
}

.resell-menu-option[data-menu-status="sold"] {
    color: #22c55e;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
}

.resell-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 6px;
}

.resell-item-card-body {
    padding: 16px;
}

.resell-item-card-name {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.resell-item-card-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-family: 'Space Grotesk', monospace;
}

.resell-item-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.resell-item-card-size {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.resell-item-card-price {
    font-size: 0.92rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.resell-item-card-market {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.resell-item-card-market strong {
    color: #22c55e;
    font-family: 'Space Grotesk', sans-serif;
}

.resell-item-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.resell-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.resell-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.resell-status-badge[data-status="stock"] {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}
.resell-status-badge[data-status="stock"]::before { background: #38bdf8; }

.resell-status-badge[data-status="ordered"] {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}
.resell-status-badge[data-status="ordered"]::before { background: #c084fc; }

.resell-status-badge[data-status="shipped"] {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}
.resell-status-badge[data-status="shipped"]::before { background: #fb923c; }

.resell-status-badge[data-status="delivered"] {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}
.resell-status-badge[data-status="delivered"]::before { background: #4ade80; }

.resell-status-badge[data-status="sold"] {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}
.resell-status-badge[data-status="sold"]::before { background: #22c55e; }

.resell-item-card-profit {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.resell-item-card-profit.positive { color: #22c55e; }
.resell-item-card-profit.negative { color: #ef4444; }

/* Resell Modal Overlay */
.resell-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.resell-modal-overlay.active {
    display: flex;
}

.resell-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(15, 20, 40, 0.97);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    animation: resellModalIn 0.3s ease;
}

@keyframes resellModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.resell-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
    z-index: 1;
}

.resell-modal-close:hover { color: var(--text); }

.resell-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.resell-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resell-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resell-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.resell-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.resell-input {
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: rgba(15, 20, 40, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.resell-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.resell-input::placeholder { color: rgba(255, 255, 255, 0.25); }

.resell-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.resell-textarea {
    resize: vertical;
    min-height: 60px;
}

.resell-sku-row {
    display: flex;
    gap: 8px;
}

.resell-sku-row .resell-input { flex: 1; }

.resell-sku-search-btn {
    padding: 10px 14px;
    flex-shrink: 0;
}

.resell-sku-status {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-height: 16px;
}

.resell-sku-status.success { color: #22c55e; }
.resell-sku-status.error { color: #ef4444; }
.resell-sku-status.loading { color: var(--primary); }

.resell-modal-img-preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(15, 20, 40, 0.3);
    padding: 12px;
    text-align: center;
}

.resell-modal-img-preview img {
    max-height: 140px;
    object-fit: contain;
}

.resell-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.resell-modal-cancel {
    padding: 10px 20px;
}

/* Detail Modal */
.resell-detail-modal {
    max-width: 640px;
}

.resell-detail-content {
    display: flex;
    gap: 24px;
}

.resell-detail-img-wrap {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 20, 40, 0.3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.resell-detail-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.resell-detail-info {
    flex: 1;
    min-width: 0;
}

.resell-detail-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.resell-detail-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Space Grotesk', monospace;
    margin-bottom: 16px;
    display: block;
}

.resell-detail-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.resell-detail-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.resell-detail-meta-item span:last-child {
    font-weight: 600;
    font-size: 0.92rem;
}

.resell-detail-notes-wrap {
    grid-column: 1 / -1;
}

.resell-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.resell-detail-actions .btn {
    padding: 8px 16px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.resell-delete-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-family: inherit;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.resell-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Sell Modal */
.resell-sell-modal {
    max-width: 400px;
}

.resell-sell-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(15, 20, 40, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.resell-sell-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.resell-sell-preview strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.resell-sell-preview span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.resell-sell-profit-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(15, 20, 40, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 4px;
}

.resell-sell-profit-value {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.resell-sell-profit-value.positive { color: #22c55e; }
.resell-sell-profit-value.negative { color: #ef4444; }

/* ===== RESELL RESPONSIVE ===== */
@media (max-width: 768px) {
    .resell-summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .resell-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .resell-item-card-img,
    .resell-item-card-img-placeholder {
        height: 90px;
        padding: 6px;
    }

    .resell-item-card-body {
        padding: 8px;
    }

    .resell-item-card-name {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .resell-item-card-sku {
        display: none;
    }

    .resell-item-card-row {
        margin-bottom: 2px;
    }

    .resell-item-card-size {
        font-size: 0.65rem;
    }

    .resell-item-card-price {
        font-size: 0.7rem;
    }

    .resell-item-card-market {
        font-size: 0.6rem;
        margin-top: 2px;
    }

    .resell-item-card-bottom {
        margin-top: 6px;
        padding-top: 6px;
    }

    .resell-status-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .resell-card-menu-btn {
        width: 24px;
        height: 24px;
        top: 4px;
        right: 4px;
        opacity: 1;
    }

    /* Detail modal — NFT-style card on mobile */
    .resell-modal-overlay {
        padding: 40px 12px 20px;
    }

    .resell-modal {
        max-width: 92vw;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-radius: 16px;
        padding: 0;
    }

    .resell-detail-modal {
        max-width: 92vw;
    }

    .resell-detail-content {
        flex-direction: column;
    }

    .resell-detail-img-wrap {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        border-radius: 16px 16px 0 0;
        border: none;
    }

    .resell-detail-info {
        padding: 16px;
    }

    .resell-detail-info h3 {
        font-size: 1.05rem;
    }

    .resell-detail-sku {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .resell-detail-meta {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }

    .resell-detail-meta-item span:last-child {
        font-size: 0.85rem;
    }

    .resell-label {
        font-size: 0.65rem;
    }

    .resell-detail-actions {
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .resell-detail-actions .btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .resell-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #fff;
    }

    /* Edit/Add modal compact */
    .resell-field-row {
        grid-template-columns: 1fr;
    }

    /* 3-dot menu → bottom sheet style */
    .resell-card-menu-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 16px 16px 0 0;
        padding: 12px 16px 28px;
        min-width: auto;
        width: 100%;
        z-index: 10001;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
    }

    .resell-card-menu-dropdown.open {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .resell-menu-option {
        padding: 14px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .member-tabs {
        max-width: 100%;
    }

    .member-tab {
        padding: 10px 12px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .member-tab svg {
        width: 14px;
        height: 14px;
    }

    .resell-sort-options {
        flex-wrap: wrap;
    }
}

/* ===== MEMECOIN TRACKER ===== */
.memecoin-search {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.memecoin-address-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.memecoin-address-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    font-family: 'Inter', sans-serif;
}

.memecoin-address-input:focus {
    border-color: #00d4aa;
}

.memecoin-scan-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(135deg, #00d4aa, #00b896);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.memecoin-scan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.4);
}

.memecoin-scan-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Summary cards */
.memecoin-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.memecoin-summary-card {
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(0, 212, 170, 0.1);
    transition: border-color 0.3s, transform 0.3s;
}

.memecoin-summary-card:hover {
    border-color: rgba(0, 212, 170, 0.25);
    transform: translateY(-2px);
}

.memecoin-summary-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.memecoin-summary-value {
    display: block;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.memecoin-summary-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.memecoin-summary-card:nth-child(3) .memecoin-summary-value.positive {
    color: #00d4aa;
}

.memecoin-summary-card:nth-child(3) .memecoin-summary-value.negative {
    color: #ef4444;
}

/* Token table */
.memecoin-table {
    padding: 0;
    overflow: hidden;
}

.memecoin-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.6fr;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 212, 170, 0.03);
}

.memecoin-token-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.6fr;
    padding: 16px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    cursor: pointer;
}

.memecoin-token-row:hover {
    background: rgba(0, 212, 170, 0.04);
}

.memecoin-token-row:last-child {
    border-bottom: none;
}

.mc-token-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mc-token-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00d4aa;
    flex-shrink: 0;
    overflow: hidden;
}

.mc-token-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mc-token-symbol {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.mc-token-mint {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.mc-col-qty,
.mc-col-avg,
.mc-col-price {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.88rem;
    color: var(--text);
}

.mc-col-pnl {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.mc-col-pct {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.mc-pnl-positive {
    color: #00d4aa;
}

.mc-pnl-negative {
    color: #ef4444;
}

/* Expanded trades */
.memecoin-trades {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(0, 212, 170, 0.08);
    padding: 12px 20px 12px 62px;
    display: none;
}

.memecoin-trades.open {
    display: block;
    animation: mc-trades-in 0.3s ease;
}

@keyframes mc-trades-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.memecoin-trade-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.memecoin-trade-row:last-child {
    border-bottom: none;
}

.mc-trade-type {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mc-trade-buy {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.mc-trade-sell {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.mc-trade-amount {
    font-family: 'Space Grotesk', monospace;
    color: var(--text);
}

.mc-trade-price {
    font-family: 'Space Grotesk', monospace;
    color: var(--text-muted);
}

.mc-trade-sol {
    font-family: 'Space Grotesk', monospace;
    font-weight: 600;
    margin-left: auto;
}

.mc-trade-date {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Loading */
.memecoin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.memecoin-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(0, 212, 170, 0.15);
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: mc-spin 0.8s linear infinite;
}

@keyframes mc-spin {
    to { transform: rotate(360deg); }
}

.memecoin-loading-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.memecoin-loading-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.memecoin-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.memecoin-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d4aa, #00b896);
    border-radius: 4px;
    transition: width 0.3s;
}

.memecoin-progress-detail {
    font-size: 0.78rem !important;
    opacity: 0.6;
}

/* Error */
.memecoin-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    color: #ef4444;
    text-align: center;
}

/* Expand chevron */
.mc-expand-icon {
    transition: transform 0.3s;
    color: var(--text-muted);
    margin-left: 6px;
}

.mc-expand-icon.open {
    transform: rotate(90deg);
}

/* ===== MEMECOIN RESPONSIVE ===== */
@media (max-width: 768px) {
    .memecoin-search {
        flex-direction: column;
    }

    .memecoin-scan-btn {
        width: 100%;
        justify-content: center;
    }

    .memecoin-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .memecoin-summary-card {
        padding: 14px 12px;
    }

    .memecoin-summary-value {
        font-size: 1.1rem;
    }

    .memecoin-table-header {
        display: none;
    }

    .memecoin-token-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px;
    }

    .memecoin-token-row > *:not(.mc-token-name) {
        padding-left: 42px;
    }

    .mc-col-qty::before { content: 'Qty: '; color: var(--text-muted); font-size: 0.75rem; }
    .mc-col-avg::before { content: 'Avg: '; color: var(--text-muted); font-size: 0.75rem; }
    .mc-col-price::before { content: 'Price: '; color: var(--text-muted); font-size: 0.75rem; }
    .mc-col-pnl::before { content: 'P&L: '; color: var(--text-muted); font-size: 0.75rem; }

    .memecoin-trades {
        padding-left: 20px;
    }

    .memecoin-trade-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ===== MEMECOIN PUMP SIMULATOR ===== */
.meme-pump {
    background: rgba(10, 14, 30, 0.85);
    border: 1px solid rgba(250, 204, 21, 0.12);
    border-radius: 16px;
    padding: 20px;
    contain: layout style;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.meme-pump-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.meme-pump-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.meme-pump-info { flex: 1; min-width: 0; }
.meme-pump-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}
.meme-pump-ticker {
    display: inline-block;
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}
.meme-pump-ca {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}
.meme-pump-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.meme-pump-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: memeLivePulse 1.5s ease-in-out infinite;
}
@keyframes memeLivePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}
.meme-pump-chart {
    flex: 1;
    min-height: 120px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}
.meme-pump-canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.meme-pump-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.meme-pump-stat {
    text-align: center;
    padding: 10px 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.meme-pump-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.meme-pump-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.meme-flash {
    animation: memeFlash 0.4s ease;
}
@keyframes memeFlash {
    0% { color: #22c55e; transform: scale(1.08); }
    100% { color: var(--text); transform: scale(1); }
}
.meme-pump-amounts {
    display: flex;
    gap: 0;
    justify-content: center;
    transition: opacity 0.3s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.meme-pump-amount {
    flex: 1;
    padding: 10px 16px;
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.meme-pump-amount:last-child {
    border-right: none;
}
.meme-pump-amount:hover {
    background: rgba(250, 204, 21, 0.08);
    color: var(--text);
}
.meme-pump-amount.active {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    box-shadow: inset 0 -2px 0 #facc15;
}
.meme-pump-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.meme-pump-pnl {
    font-size: 1.6rem;
    font-weight: 800;
    color: #22c55e;
    text-align: center;
    min-height: 38px;
}
.meme-pnl-pulse {
    animation: memePnlPulse 0.8s ease-in-out infinite;
}
@keyframes memePnlPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
.meme-pnl-neg {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.meme-pnl-sold {
    animation: memeSold 0.5s ease;
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}
.meme-pnl-sold.meme-pnl-neg {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}
@keyframes memeSold {
    0% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}
.meme-pump-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #000;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.meme-pump-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(250, 204, 21, 0.3);
}
.meme-pump-btn:active { transform: translateY(0); }
.meme-pump-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.meme-pump-btn--sell {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}
.meme-pump-btn--sell:hover {
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.3);
}

/* ---- Fondateur — purple/green neon ---- */

/* ---- Pasdidie — green/cyan neon ---- */

/* ---- Whalemaire — silver/white neon ---- */

/* ---- Nrox — gold/amber neon ---- */

/* ===== GLOBAL ORBS (floating background) ===== */
.global-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.global-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    animation: orb-drift var(--orb-duration, 35s) ease-in-out infinite alternate;
    top: var(--orb-top, 30%);
    left: var(--orb-left, 50%);
}

.global-orb--cyan {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0.10) 30%, transparent 55%);
}

.global-orb--purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.20) 0%, rgba(168, 85, 247, 0.08) 30%, transparent 55%);
}

.global-orb--teal {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0.09) 30%, transparent 55%);
}

@keyframes orb-drift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(var(--orb-dx, 60px), var(--orb-dy, -40px)) scale(1.1); }
    66% { transform: translate(calc(var(--orb-dx, 60px) * -0.5), calc(var(--orb-dy, -40px) * 1.5)) scale(0.9); }
    100% { transform: translate(calc(var(--orb-dx, 60px) * 0.3), calc(var(--orb-dy, -40px) * -0.7)) scale(1.05); }
}

/* ===== HERO ENTRANCE ANIMATION ===== */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-anim.hero-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTON MICRO-INTERACTIONS ===== */
.btn {
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97) !important;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: btn-ripple-anim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes btn-ripple-anim {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* ===== CARD SPOTLIGHT (cursor follow) ===== */
.result-card-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

.result-card-v2:hover::after {
    opacity: 1;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--gradient);
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
    transition: width 0.05s linear;
    z-index: 10;
}

/* ===== PRICING ANIMATED BORDER ===== */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.pricing-card {
    position: relative;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from var(--angle), #a855f7, #0ea5e9, #06b6d4, #a855f7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: pricing-border-spin 4s linear infinite;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s;
    opacity: 0.7;
}

.pricing-card:hover::before {
    opacity: 1;
}

@keyframes pricing-border-spin {
    to { --angle: 360deg; }
}

/* ===== GRADIENT TEXT SHIMMER ===== */
.gradient-text-shimmer {
    background: linear-gradient(135deg, #0ea5e9, #38bdf8, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 0px transparent); }
    50% { filter: brightness(1.3) drop-shadow(0 0 20px rgba(14, 165, 233, 0.4)); }
}

/* ===== NAV LINK ACTIVE ===== */
.nav-links a.nav-active {
    color: var(--text);
}

.nav-links a.nav-active::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ===== COUNTDOWN FLIP ===== */
.countdown-block span.flip {
    animation: number-flip 0.3s ease-out;
}

@keyframes number-flip {
    0% { transform: translateY(-8px); opacity: 0.4; }
    50% { transform: translateY(2px); }
    100% { transform: translateY(0); opacity: 1; }
}

/* ===== ORBITAL SYSTEM — TEAM v2 PREMIUM ===== */

.orbital-wrapper {
    position: relative;
    width: 100%;
    height: 740px;
    overflow: hidden;
    margin-top: 50px;
}

#orbital-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---- CENTER LOGO ---- */
.orbital-center-el {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

/* Double rotating rings around center */
.orbital-center-ring-outer {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(6,182,212,0.9) 0deg,
        rgba(168,85,247,0.6) 90deg,
        rgba(6,182,212,0.1) 160deg,
        transparent 200deg,
        rgba(6,182,212,0.9) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #fff calc(100% - 2px));
    animation: orb-center-spin 5s linear infinite;
}

.orbital-center-ring-inner {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(168,85,247,0.7) 0deg,
        rgba(6,182,212,0.3) 120deg,
        transparent 180deg,
        rgba(168,85,247,0.7) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #fff calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #fff calc(100% - 1.5px));
    animation: orb-center-spin 9s linear infinite reverse;
}

@keyframes orb-center-spin { to { transform: rotate(360deg); } }

.orbital-logo-img {
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 24px rgba(6,182,212,0.9)) drop-shadow(0 0 60px rgba(168,85,247,0.4));
    animation: orb-logo-breathe 4s ease-in-out infinite;
}

@keyframes orb-logo-breathe {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

/* Pulse rings */
.orbital-pulse-ring {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(6,182,212,0.5);
    animation: orb-pulse 3.4s ease-out infinite;
}
.orbital-pulse-ring.r1 { animation-delay: 0s; }
.orbital-pulse-ring.r2 { animation-delay: 1.13s; }
.orbital-pulse-ring.r3 { animation-delay: 2.26s; }

@keyframes orb-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(3); opacity: 0; }
}

/* ---- MEMBER NODES ---- */
.orbital-member {
    position: absolute;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 20;
    left: -9999px;
    top: -9999px;
}

/* Glow behind avatar */
.orbital-avatar-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orb-c1, #06b6d4) 0%, transparent 70%);
    opacity: 0;
    z-index: 0;
    filter: blur(8px);
    transition: opacity 0.35s ease;
}

.orbital-member:hover .orbital-avatar-glow { opacity: 0.45; }

/* Conic gradient border ring */
.orbital-avatar-border {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        var(--orb-c1, #06b6d4),
        var(--orb-c2, #a855f7),
        transparent 60%,
        var(--orb-c1, #06b6d4)
    );
    animation: orb-ring-spin 3.5s linear infinite;
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.orbital-member:hover .orbital-avatar-border {
    opacity: 1;
    filter: brightness(1.4);
    animation-duration: 1.5s;
}

@keyframes orb-ring-spin { to { transform: rotate(360deg); } }

/* Avatar image */
.orbital-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255,255,255,0.15);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.orbital-member:hover .orbital-avatar {
    transform: scale(1.14);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 28px var(--orb-c1, #06b6d4), 0 8px 32px rgba(0,0,0,0.5);
}

/* Member-specific accent colors */
#orbital-founder    { --orb-c1: #06b6d4; --orb-c2: #a855f7; }
#orbital-pasdidie   { --orb-c1: #22c55e; --orb-c2: #06b6d4; }
#orbital-whalemaire { --orb-c1: #a855f7; --orb-c2: #ec4899; }
#orbital-nrox       { --orb-c1: #eab308; --orb-c2: #5eb8c4; }

/* ---- MEMBER LABELS (always visible) ---- */
.orbital-label {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    z-index: 3;
}

.orbital-label-name {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: color 0.25s ease;
}

.orbital-member:hover .orbital-label-name {
    color: var(--orb-c1, #06b6d4);
    text-shadow: 0 0 12px var(--orb-c1, #06b6d4);
}

.orbital-label-role {
    display: block;
    color: rgba(255,255,255,0.35);
    font-size: 10px;
    margin-top: 2px;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.orbital-member:hover .orbital-label-role {
    color: rgba(255,255,255,0.65);
}

/* ---- HINT ---- */
.orbital-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.2);
    font-size: 11px;
    pointer-events: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: orb-hint-pulse 3s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes orb-hint-pulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.8; }
}

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .orbital-wrapper  { height: 560px; }
    .orbital-member   { width: 68px; height: 68px; }
    .orbital-label-name { font-size: 11px; }
    .orbital-label-role { font-size: 9px; }
    .orbital-center-el  { width: 110px; height: 110px; }
}

@media (max-width: 480px) {
    .orbital-wrapper { height: 440px; }
    .orbital-member  { width: 56px; height: 56px; }
}

/* ===== INTRO OVERLAY ===== */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #050510;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
/* Mobile: overlay is used as scroll guard — hide all animation children */
@media (max-width: 768px) {
    .intro-overlay > * { display: none !important; }
}

.intro-overlay.exit {
    background: transparent;
    transition: background 0.6s ease;
    pointer-events: none;
}

.intro-overlay.exit .intro-glow,
.intro-overlay.exit .intro-letters {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.intro-overlay.exit .intro-chart,
.intro-overlay.exit .intro-chart-grid {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-overlay.exit .intro-ghost {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}

.intro-overlay.hidden {
    display: none;
}

.intro-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: -30vh;
}

/* Chart grid background */
.intro-chart-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.intro-chart-grid.visible {
    opacity: 1;
}

/* Chart SVG */
.intro-chart {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-chart.visible {
    opacity: 1;
}

#intro-chart-area {
    opacity: 0;
    transition: opacity 1.2s ease;
}

#intro-chart-area.visible {
    opacity: 1;
}

/* Glow behind logo */
.intro-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%) scale(0.5);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(6, 182, 212, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.intro-glow.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Logo */
.intro-logo-assembly {
    position: relative;
    width: min(500px, 60vw);
    height: min(500px, 60vw);
}

/* Ghost trails — blurry energy coming from each side */
.intro-ghost {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    will-change: transform, opacity, filter;
    filter: blur(35px) brightness(1.6);
    transition:
        opacity 0.8s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1),
        filter 1s ease;
}

.intro-ghost-l {
    transform: translateX(-180px) scale(0.65);
}

.intro-ghost-r {
    transform: translateX(180px) scale(0.65);
}

.intro-ghost.fly-in {
    opacity: 0.4;
    transform: translateX(0) scale(1);
    filter: blur(14px) brightness(1.4);
}

.intro-ghost.merge {
    opacity: 0;
    transform: translateX(0) scale(1);
    filter: blur(0px) brightness(1);
    transition:
        opacity 0.4s ease,
        filter 0.4s ease;
}

/* Main logo — appears sharp when ghosts merge */
.intro-logo-main {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.92);
    filter: blur(4px);
    transition:
        opacity 0.4s ease,
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.4s ease;
}

.intro-logo-main.reveal {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
}

@keyframes intro-settle {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.intro-logo-assembly.settled {
    animation: intro-settle 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Letters stagger */
.intro-letters {
    position: absolute;
    bottom: 38%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.intro-letters span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 10px;
    color: #fff;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-letters span.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Progress line */
.intro-line-wrap {
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.intro-line-wrap.visible {
    opacity: 1;
}

.intro-line {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1565C0, #42A5F5);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-line.fill {
    width: 100%;
}

.intro-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.intro-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* ===== MUSIC TOGGLE ===== */
.music-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 300;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.15);
    background: rgba(15, 20, 40, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.music-toggle:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(15, 20, 40, 0.8);
    transform: scale(1.08);
}

.music-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.music-bars span {
    display: block;
    width: 3px;
    background: var(--primary-light);
    border-radius: 2px;
    height: 4px;
    transition: height 0.3s ease;
}

.music-toggle.music-playing .music-bars span:nth-child(1) {
    animation: eq-bar 0.6s ease-in-out infinite alternate;
}
.music-toggle.music-playing .music-bars span:nth-child(2) {
    animation: eq-bar 0.5s ease-in-out infinite alternate 0.1s;
}
.music-toggle.music-playing .music-bars span:nth-child(3) {
    animation: eq-bar 0.7s ease-in-out infinite alternate 0.2s;
}
.music-toggle.music-playing .music-bars span:nth-child(4) {
    animation: eq-bar 0.55s ease-in-out infinite alternate 0.05s;
}

@keyframes eq-bar {
    0% { height: 4px; }
    100% { height: 18px; }
}

.music-icon-off {
    display: none;
    color: var(--text-muted);
}

.music-toggle:not(.music-playing) .music-bars {
    display: none;
}

.music-toggle:not(.music-playing) .music-icon-off {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Prevent iOS auto-zoom on input focus (needs font-size >= 16px) */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Navbar: logo left, hamburger right */
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    /* Fullscreen mobile menu overlay */
    .navbar.mobile-open {
        height: 100vh;
        height: 100dvh;
        background: rgba(6, 6, 17, 0.99);
    }

    .navbar.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        padding: 16px 24px 0;
        gap: 0;
        list-style: none;
        width: 100%;
        order: 2;
    }

    .navbar.mobile-open .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .navbar.mobile-open .nav-links a {
        display: flex;
        align-items: center;
        padding: 16px 0;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--text);
        min-height: 48px;
    }

    .navbar.mobile-open .nav-actions {
        display: flex;
        flex-direction: column;
        padding: 20px 24px 32px;
        gap: 10px;
        width: 100%;
        align-items: stretch;
        margin-top: auto;
        order: 3;
        border-top: 1px solid rgba(56, 189, 248, 0.1);
    }

    .navbar.mobile-open .nav-actions .btn-member-nav,
    .navbar.mobile-open .nav-actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .navbar.mobile-open .lang-toggle {
        margin: 0 auto;
    }

    .navbar.mobile-open .nav-content {
        flex-wrap: wrap;
        height: 100%;
        align-content: flex-start;
    }

    .navbar.mobile-open .mobile-menu-btn {
        order: 1;
    }

    .navbar.mobile-open .logo {
        order: 0;
    }

    .hero-stats {
        gap: 12px;
    }

    .hero-stat {
        min-width: 100px;
        padding: 16px 14px;
    }

    .hero-stat-value {
        font-size: 1.6rem;
    }

    .hero-cta .btn-lg {
        width: 100%;
    }

    .coin {
        width: 200px;
        height: 200px;
    }

    .coin-glow {
        width: 240px;
        height: 240px;
    }

    .discord-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .results-total-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .results-total-card {
        padding: 24px 20px;
    }

    .results-total-value {
        font-size: 2rem;
    }

    .rc-gain {
        font-size: 1.6rem;
    }

    .pricing-card {
        padding: 32px 20px;
    }

    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pricing-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border);
        padding-top: 32px;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .profile-card {
        padding: 22px 20px 18px;
        margin-bottom: 30px;
    }

    .profile-card-top {
        gap: 14px;
    }

    .profile-avatar {
        width: 52px;
        height: 52px;
    }

    .profile-username {
        font-size: 1.2rem;
    }

    .profile-stat-value {
        font-size: 1.1rem;
    }

    .profile-badges {
        flex-wrap: wrap;
    }

    /* ── Scroll indicator: hide on mobile ── */
    .scroll-indicator {
        display: none;
    }

    /* ── Hero adjustments ── */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    /* ── Section titles ── */
    section h2 {
        font-size: 1.75rem;
    }

    /* ── Sections padding ── */
    section {
        padding: 52px 0 60px;
    }

    /* ── Proof / témoignages ── */
    .proof-stage {
        height: 260px;
    }

    .proof-card {
        width: 90vw;
        max-width: 360px;
        padding: 24px;
    }

    .proof-card.spot-left {
        transform: translate(calc(-50% - 180px), -50%) scale(0.72) rotateY(8deg);
    }

    .proof-card.spot-right {
        transform: translate(calc(-50% + 180px), -50%) scale(0.72) rotateY(-8deg);
    }

    .proof-dots {
        max-width: 240px;
    }

    /* ── Results grid gap ── */
    .results-grid {
        gap: 24px;
    }

    /* ── NFT / Crypto / Resell cards — reduce min-height ── */
    .nft-orbit-card,
    .crypto-map-card,
    .resell-stack-card {
        min-height: 280px;
    }

    /* ── FAQ ── */
    .faq-question {
        font-size: 0.95rem;
        padding: 18px 16px;
    }

    /* ── Mini CTA ── */
    .mini-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    /* ── Member modals ── */
    .member-overlay {
        padding: 60px 0 20px;
        align-items: center;
    }

    .member-modal-pasdidie,
    .member-modal,
    .member-modal-nrox,
    .member-modal-whalemaire,
    .member-modal-krysko,
    .member-modal-tahem,
    .member-modal-sloka,
    .member-modal-totinho,
    .member-modal-lissa,
    .member-modal-hamouleh {
        width: 92vw;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        margin: auto;
    }

    .founder-modal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
    }

    .founder-modal-img,
    .member-modal-img {
        width: 80px;
        height: 80px;
    }

    .member-twitter-btn {
        padding: 7px 16px;
        font-size: 0.8rem;
    }

    .founder-modal-right h3 {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .team-role {
        font-size: 0.82rem;
    }

    .founder-stats {
        justify-content: center;
        gap: 16px;
        margin-bottom: 10px;
    }

    .founder-stat-value {
        font-size: 1.1rem;
    }

    .founder-stat-label {
        font-size: 0.7rem;
    }

    .founder-bio {
        font-size: 0.82rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    .founder-tags {
        justify-content: center;
        gap: 6px;
    }

    .founder-tags span {
        padding: 4px 10px;
        font-size: 0.72rem;
    }

    .member-close {
        width: 32px;
        height: 32px;
        top: 10px;
        right: 10px;
    }

    /* ── NFT detail modal ── */
    .nft-modal-overlay {
        padding: 40px 12px 20px;
        align-items: center;
    }

    .nft-modal {
        max-width: 92vw;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nft-modal-img-wrap {
        aspect-ratio: 4 / 3;
    }

    .nft-modal-img {
        object-fit: contain;
    }

    .nft-modal-details {
        padding: 14px 16px 18px;
    }

    .nft-modal-name {
        font-size: 1.15rem;
    }

    .nft-modal-stats {
        gap: 14px;
        margin-top: 12px;
        padding-top: 12px;
    }

    .nft-modal-opensea {
        margin-top: 12px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* ── Founder modal ── */
    .founder-overlay {
        padding: 60px 0 20px;
        align-items: center;
    }

    .founder-modal {
        width: 92vw;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        margin: auto;
    }

    /* ── Hamburger → X animation ── */
    .navbar.mobile-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.mobile-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .navbar.mobile-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* ── Discord: hide sidebar, show mobile channel tabs ── */
    .dc-sidebar {
        display: none;
    }

    .dc-mobile-tabs {
        display: flex !important;
    }

    .discord-app {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .dc-chat {
        min-height: 280px;
        max-height: 380px;
        overflow: hidden;
    }

    .dc-messages {
        padding: 12px 14px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dc-chat-header {
        padding: 10px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dc-input-bar {
        padding: 0 12px 12px;
    }

    .dc-input-real {
        padding: 10px 14px;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    .dc-msg-avatar {
        width: 32px;
        height: 32px;
    }

    .dc-msg {
        gap: 10px;
    }

    .dc-msg-name {
        font-size: 0.82rem;
    }

    .dc-msg-text {
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .dc-msg-embed {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    /* Hide hover reaction bar on touch — reactions still work via tap */
    .dc-msg-react-bar {
        display: none !important;
    }

    /* Discord section header tighter */
    .discord-section-header {
        margin-bottom: 28px;
    }

    /* ── Footer ── */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
        margin: 12px auto 0;
    }

    .footer-links a {
        padding: 8px 0;
    }

    .footer {
        padding: 40px 0 24px;
    }

    .footer-bottom {
        padding-top: 24px;
    }

    /* ── Services stepper: overflow scroll on mobile ── */
    .services-stepper-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 4px;
    }

    .services-stepper-track::-webkit-scrollbar {
        display: none;
    }

    .services-step-label {
        font-size: 0.68rem;
        white-space: nowrap;
    }

    /* ── Pricing toggle touch targets ── */
    .pricing-toggle-btn {
        padding: 12px 14px;
        min-height: 44px;
    }

    /* ── CTA box ── */
    .cta-box {
        padding: 40px 20px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    /* ── Blobs: shrink on mobile to prevent overflow ── */
    .blob-1 {
        width: 300px;
        height: 300px;
    }

    .blob-2 {
        width: 200px;
        height: 200px;
    }

    .blob-3 {
        width: 180px;
        height: 180px;
    }

    /* ── Waves: reduce height ── */
    .wave-top svg,
    .wave-bottom svg {
        height: 40px;
    }

    /* ── Disable 3D tilt on touch devices ── */
    .discord-tilt-wrap {
        transform: none !important;
    }

    .result-tilt-wrap {
        perspective: none;
    }

    /* ── Cursor glow: hide on mobile ── */
    .cursor-glow {
        display: none;
    }

    /* ── Global visual effects: simplify ── */
    .global-grid {
        opacity: 0.3;
    }
}

/* ===== MOBILE NFT GRID ===== */
.nft-mobile-grid {
    display: none;
}

@media (max-width: 768px) {
    .nft-mobile-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        width: 100%;
    }

    .nft-mobile-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        transition: transform 0.2s;
    }

    .nft-mobile-item:active {
        transform: scale(0.92);
    }

    .nft-mobile-item img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(6, 182, 212, 0.2);
        box-shadow: 0 2px 12px rgba(6, 182, 212, 0.15);
        transition: border-color 0.2s, box-shadow 0.2s;
    }

    .nft-mobile-item span {
        font-size: 0.62rem;
        color: var(--text-muted);
        font-weight: 500;
        text-align: center;
        line-height: 1.2;
    }

    /* Remove the pseudo-element "Mint & Flip" since we already have it */
    .nft-orbit-card::after {
        content: 'Mint & Flip';
        display: block;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
        text-align: center;
        margin-bottom: 12px;
        order: -1;
    }
}

/* ===== MOBILE DISCORD CHANNEL TABS ===== */
.dc-mobile-tabs {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 12px 14px;
    background: #2b2d31;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dc-mobile-tabs::-webkit-scrollbar {
    display: none;
}

.dc-mobile-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #949ba4;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-height: 40px;
    -webkit-tap-highlight-color: rgba(88, 101, 242, 0.15);
}

.dc-mobile-tab.active {
    background: rgba(88, 101, 242, 0.3);
    color: #fff;
    box-shadow: 0 0 12px rgba(88, 101, 242, 0.15);
}

.dc-mobile-tab:active {
    transform: scale(0.95);
    background: rgba(88, 101, 242, 0.2);
}

/* ===== RESPONSIVE — 480px ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 8px;
    }

    .hero-stat {
        width: 100%;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn-lg {
        text-align: center;
        justify-content: center;
    }

    .coin {
        width: 140px;
        height: 140px;
    }

    .coin-glow {
        width: 180px;
        height: 180px;
    }

    .coin-hint {
        font-size: 0.75rem;
    }

    /* ── Proof: hide side cards, single card view ── */
    .proof-card.spot-left,
    .proof-card.spot-right {
        opacity: 0;
        pointer-events: none;
    }

    .proof-stage {
        height: 240px;
    }

    .proof-card {
        padding: 20px;
        font-size: 0.9rem;
    }

    .proof-card > p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    /* ── Music toggle ── */
    .music-toggle {
        bottom: 16px;
        right: 16px;
    }

    /* ── CTA box ── */
    .cta-box {
        padding: 36px 16px;
    }

    /* ── Results cards ── */
    .results-total-card {
        padding: 20px 16px;
    }

    .results-total-value {
        font-size: 1.6rem;
    }

    .nft-orbit-card,
    .crypto-map-card,
    .resell-stack-card {
        min-height: 240px;
    }

    /* ── Pricing ── */
    .pricing-card {
        padding: 24px 16px;
    }

    .pricing-layout {
        gap: 24px;
    }

    .pricing-amount .price {
        font-size: 2rem;
    }

    /* ── Team cards ── */
    .team-card-simple {
        padding: 16px 10px 14px;
    }

    .team-card-simple h3 {
        font-size: 0.95rem;
    }

    .team-card-role {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .team-card-link {
        font-size: 0.72rem;
    }

    .team-card-avatar {
        width: 56px;
        height: 56px;
        margin-bottom: 10px;
    }

    /* ── Footer ── */
    .footer-content {
        gap: 24px;
    }

    /* ── Section subtitle ── */
    .section-subtitle {
        font-size: 0.92rem;
        padding: 0 8px;
    }

    /* ── Discord ── */
    .dc-chat {
        min-height: 300px;
        max-height: 380px;
    }

    .dc-mobile-tab {
        font-size: 0.78rem;
        padding: 9px 14px;
        min-height: 38px;
    }

    /* ── Services stepper ── */
    .services-step-label {
        font-size: 0.62rem;
    }

    .services-step-num {
        width: 30px;
        height: 30px;
    }

    .services-slide {
        padding: 20px 14px;
    }

    /* ── Badge ── */
    .badge {
        font-size: 0.75rem;
    }
}

/* ===== RESPONSIVE — 360px ===== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    section h2 {
        font-size: 1.4rem;
    }

    .team-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .btn-lg {
        font-size: 0.9rem;
        padding: 14px 24px;
    }

    .proof-card {
        padding: 16px;
    }

    .proof-card > p {
        font-size: 0.82rem;
    }

    .proof-stage {
        height: 220px;
    }

    .founder-modal-content {
        padding: 20px 14px;
    }

    .pricing-card {
        padding: 20px 12px;
    }

    .container {
        padding: 0 12px;
    }
}

/* ===== MOBILE LAYOUT OPTIMIZATION ===== */

/* ── Services: stacked cards on mobile ── */
.services-mobile-stack {
    display: none;
}

@media (max-width: 768px) {
    .services-stepper,
    .services-slide {
        display: none !important;
    }

    .services-mobile-stack {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .services-mobile-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 24px 20px;
        position: relative;
        overflow: hidden;
        transition: border-color 0.3s ease;
    }

    .services-mobile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--svc-color);
        border-radius: 16px 16px 0 0;
    }

    .services-mobile-card .services-slide-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .services-mobile-card .services-slide-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: color-mix(in srgb, var(--svc-color) 15%, transparent);
        flex-shrink: 0;
    }

    .services-mobile-card .services-slide-icon svg {
        width: 18px;
        height: 18px;
        color: var(--svc-color);
    }

    .services-mobile-card .services-slide-title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
    }

    .services-mobile-card .services-mobile-features {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .services-mobile-card .services-mobile-features li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.85rem;
        color: var(--text);
        padding: 6px 0;
    }

    .services-mobile-card .services-mobile-check {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: color-mix(in srgb, var(--svc-color) 15%, transparent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .services-mobile-card .services-mobile-check svg {
        width: 10px;
        height: 10px;
        color: var(--svc-color);
    }
}

/* ── Hide 3 of 5 mini CTAs on mobile ── */
@media (max-width: 768px) {
    .mini-cta-mobile-hide {
        display: none;
    }

    /* ── Compact Hero ── */
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    /* ── Collapsible Team Grid ── */
    .team-cards .team-card-simple:nth-child(n+5) {
        display: none;
    }
    .team-cards-bottom {
        display: none;
    }
    .team-cards.team-expanded .team-card-simple:nth-child(n+5) {
        display: block;
    }
    .team-cards-bottom.team-expanded {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 960px;
        margin: 16px auto 0;
    }
    .team-cards-bottom.team-expanded .team-card-simple {
        max-width: 100%;
    }

    /* ── Collapsible Pricing Features ── */
    .pricing-features li:nth-child(n+4) {
        display: none;
    }
    .pricing-features.pricing-expanded li:nth-child(n+4) {
        display: flex;
    }

    /* ── NFT card: replace orbit with horizontal scroll grid ── */
    .nft-orbit-card {
        aspect-ratio: auto;
        min-height: auto;
        max-height: none;
        padding: 16px !important;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nft-orbit-ring,
    .nft-orbit-center,
    .nft-orbit-lines {
        display: none !important;
    }

    /* ── Crypto bubble map: compact ── */
    .crypto-map-card {
        aspect-ratio: auto;
        min-height: 200px;
        max-height: 220px;
    }

    /* ── Resell: same size as Crypto card ── */
    .resell-stack-card {
        aspect-ratio: auto !important;
        min-height: 200px !important;
        max-height: 220px !important;
    }

    .resell-stack {
        width: 90px !important;
        height: 115px !important;
    }

    .resell-card {
        padding: 8px 6px;
        gap: 2px;
        border-radius: 10px;
    }

    .resell-card-icon {
        font-size: 1.5rem;
    }

    .resell-card-name {
        font-size: 0.6rem;
    }

    .resell-card-profit {
        font-size: 1rem;
    }
}

/* ── Team "show all" button ── */
.team-show-all {
    display: none;
}

@media (max-width: 768px) {
    .team-show-all {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 20px auto 0;
        padding: 10px 24px;
        background: rgba(14, 165, 233, 0.08);
        border: 1px solid rgba(14, 165, 233, 0.2);
        border-radius: 12px;
        color: var(--primary-light);
        font-family: inherit;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .team-show-all:hover {
        background: rgba(14, 165, 233, 0.15);
        border-color: rgba(14, 165, 233, 0.35);
    }

    .team-show-all .team-show-count {
        color: var(--text-muted);
        font-weight: 400;
        font-size: 0.82rem;
    }

    .team-show-all.expanded {
        margin-bottom: 0;
    }
}

/* ── Pricing "show all" toggle ── */
.pricing-features-toggle {
    display: none;
}

@media (max-width: 768px) {
    .pricing-features-toggle {
        display: inline-block;
        margin-top: 8px;
        padding: 6px 0;
        background: none;
        border: none;
        color: var(--primary-light);
        font-family: inherit;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .pricing-features-toggle:hover {
        color: var(--primary);
    }
}

/* ── Results stats row: span full grid on desktop ── */
.results-stats-row {
    display: contents;
}

/* ── Stats 2-column grid on small screens ── */
@media (max-width: 600px) {
    .results-stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        grid-column: 1 / -1;
    }

    .results-stats-row .results-total-card {
        min-width: 0;
    }

    .results-stats-row .results-total-card:last-child {
        grid-column: 1 / -1;
    }

    .nft-orbit-card,
    .crypto-map-card,
    .resell-stack-card {
        min-height: 200px;
    }
}

/* ── Section padding overrides at 480px ── */
@media (max-width: 480px) {
    section {
        padding: 40px 0 48px;
    }

    .section-light {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }

    .final-cta {
        padding: 40px 0 48px;
    }

    .mini-cta {
        padding: 24px 0;
    }

    .wave-top svg,
    .wave-bottom svg {
        height: 24px;
    }

    section h2 {
        margin-bottom: 12px;
    }

    .section-subtitle {
        margin-bottom: 20px;
    }

    /* ── Compact Hero at 480px ── */
    .hero {
        padding-top: 70px;
        padding-bottom: 32px;
    }

    .hero-stats {
        gap: 6px;
    }

    .hero-stat {
        padding: 12px 10px;
    }

    .hero-cta {
        gap: 10px;
        margin-top: 20px;
    }

    .coin-container,
    .hero-logo {
        margin-bottom: 16px;
    }

    /* ── Tighter FAQ ── */
    .faq-question {
        padding: 14px 12px;
        font-size: 0.9rem;
        justify-content: center;
        text-align: center;
    }

    .faq-question svg {
        position: absolute;
        right: 12px;
    }

    .faq-item {
        position: relative;
    }

    .faq-answer p {
        text-align: center;
    }

    .faq-answer p {
        padding: 0 12px 14px;
        font-size: 0.88rem;
    }

    .faq-list {
        gap: 8px;
    }

    /* ── Compact Footer ── */
    .footer {
        padding: 32px 0 20px;
    }

    .footer-content {
        gap: 20px;
    }

    .footer-bottom {
        padding-top: 16px;
    }
}

/* ── Section padding at 360px ── */
@media (max-width: 360px) {
    section {
        padding: 32px 0 40px;
    }

    .section-light {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }

    .final-cta {
        padding: 32px 0 40px;
    }
}

/* ===== ACCESSIBILITY — reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== TOUCH DEVICES — disable hover effects ===== */
@media (hover: none) {
    .cursor-glow {
        display: none;
    }

    .discord-app {
        transform: none !important;
    }

    .result-interactive {
        transform: none !important;
    }
}

/* ===== LEGAL PAGE ===== */
.legal-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(6, 6, 17, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.legal-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.legal-page {
    padding-top: 80px;
}

.legal-content {
    min-height: calc(100vh - 160px);
    padding: 40px 0 80px;
}

.legal-toc {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.legal-toc-link {
    padding: 8px 20px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.legal-toc-link:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(14, 165, 233, 0.05);
}

.legal-section {
    margin-bottom: 64px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-section ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 8px 0 16px 20px;
}

.legal-section ul li {
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.legal-date {
    font-style: italic;
    opacity: 0.6;
    font-size: 0.85rem !important;
}

@media (max-width: 640px) {
    .legal-section h1 {
        font-size: 1.5rem;
    }

    .legal-toc {
        gap: 8px;
    }

    .legal-toc-link {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .legal-content {
        padding: 24px 0 48px;
    }
}
