/* ═══════════════════════════════════════════════════════════════
   CRYPTO AGGREGATOR - PROFESSIONAL REFINED DESIGN
   Premium fintech aesthetic with sophisticated polish
   Inspired by: Apple, Stripe, Linear, Mercury
   ═══════════════════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REFINED COLOR PALETTE - Professional Tones
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
    /* Black/Orange Professional Palette */
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-400: #FF8C42;
    --orange-500: #FF6B35;
    --orange-600: #E85D2A;
    --orange-700: #D24F1F;

    --orange-light-50: #fff7ed;
    --orange-light-100: #ffedd5;
    --orange-light-400: #FFA466;
    --orange-light-500: #FF8C42;
    --orange-light-600: #FF6B35;

    /* Neutral palette */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

/* Dark theme refinement - Pure Black with Orange */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --bg-elevated: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #CCCCCC;
    --text-tertiary: #999999;

    --border-subtle: #333333;
    --border-medium: #444444;
    --border-strong: #555555;

    --accent-orange: #FFA500;
    --accent-orange-light: #FF8C00;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Light theme - LUXURY MINIMAL with Warm Cream Aesthetic */
/* Inspired by: Premium fintech apps, Figma, high-end banking interfaces */
[data-theme="light"] {
    /* Luxury cream/beige base - warm, inviting, sophisticated like premium stationery */
    --bg-primary: #f7f5f0;      /* Soft cream - premium paper quality */
    --bg-secondary: #ede8e0;    /* Rich beige - warm sections */
    --bg-tertiary: #e3ddd3;     /* Deep beige - anchoring elements */
    --bg-elevated: rgba(255, 253, 248, 0.9); /* Cards - luminous with soft inner glow */

    /* Deep warm text - luxurious brown-blacks with perfect contrast */
    --text-primary: #2a2520;    /* Deep warm espresso - primary content */
    --text-secondary: #4a4238;  /* Medium warm brown - secondary text */
    --text-tertiary: #6b6258;   /* Soft warm taupe - subtle text */

    /* Refined borders with golden warmth - subtle luxury */
    --border-subtle: rgba(42, 37, 32, 0.06);
    --border-medium: rgba(42, 37, 32, 0.10);
    --border-strong: rgba(42, 37, 32, 0.14);

    /* Ambient shadows with golden warmth - depth and sophistication */
    --shadow-sm: 0 1px 3px 0 rgba(42, 37, 32, 0.04), 0 1px 2px 0 rgba(139, 92, 46, 0.02);
    --shadow-md: 0 4px 8px -2px rgba(42, 37, 32, 0.08), 0 2px 4px -1px rgba(139, 92, 46, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(42, 37, 32, 0.1), 0 4px 8px -2px rgba(139, 92, 46, 0.05);
    --shadow-xl: 0 24px 48px -12px rgba(42, 37, 32, 0.12), 0 8px 16px -4px rgba(139, 92, 46, 0.06);
    --shadow-2xl: 0 32px 64px -12px rgba(42, 37, 32, 0.16), 0 12px 24px -6px rgba(139, 92, 46, 0.08);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TYPOGRAPHY - Professional & Refined
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

/* Display headings - DM Sans for elegance */
h1, h2, h3,
.hero-title,
.section-title,
.premium-hero-title {
    font-family: 'DM Sans', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.1 !important;
}

/* Subtitle with default font */
.hero-subtitle,
.premium-hero-subtitle {
    font-family: 'Inter', sans-serif !important;
    font-style: normal;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

/* Platform names and card titles */
.platform-name,
.card-back-title,
.modal-title {
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

/* Technical elements stay clean */
.rating-badge,
.kyc-badge,
.tag {
    font-family: 'Inter', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BACKGROUND - Clean & Minimal (Remove Cyber Effects)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Remove ALL background effects */
body::after,
body::before,
.hero-section::before,
.hero-section::after,
section::before,
section::after {
    display: none !important;
    background: none !important;
}

body {
    background: #000000 !important;
    background-attachment: fixed !important;
    background-image: none !important;
}

[data-theme="light"] body {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
}

/* Subtle paper texture overlay for luxury feel */
[data-theme="light"] body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(42, 37, 32, 0.008) 2px, rgba(42, 37, 32, 0.008) 4px);
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: multiply;
    opacity: 0.5;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HEADER - Refined Navigation
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.header {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid #FFA500 !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .header {
    background: rgba(255, 253, 248, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    box-shadow:
        0 1px 3px 0 rgba(42, 37, 32, 0.06),
        0 8px 16px -4px rgba(139, 92, 46, 0.03),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.6) !important;
    z-index: 100;
}

/* Logo - subtle elegance */
.logo-text {
    text-shadow: none !important;
    color: #FFFFFF !important;
    transition: all 0.3s ease;
}

/* Logo text stays white on hover */
.logo:hover .logo-text {
    color: #FFFFFF !important;
}

.logo-svg {
    filter: drop-shadow(0 2px 8px rgba(255, 107, 53, 0.2));
    transition: filter 0.3s ease;
}

.logo:hover .logo-svg {
    filter: drop-shadow(0 2px 12px rgba(255, 107, 53, 0.3));
}

/* Navigation - clean buttons */
.nav-menu a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #01dba2 0%, #a9d9df 100%) !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a9d9df, #01dba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-menu a:hover::before {
    opacity: 1;
}

.nav-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(1, 219, 162, 0.4) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO SECTION - Sophisticated Entrance
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero-section {
    padding: 60px 0 80px;
    min-height: auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--orange-500) 0%,
        var(--orange-400) 100%
    ) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    filter: none !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PREMIUM HERO BANNER - Glassmorphism
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.premium-hero-banner {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-hero-banner::before {
    display: none !important;
}

.premium-hero-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl) !important;
    border-color: var(--border-strong) !important;
}

/* Premium logo - clean elevation and even larger for better visibility */
.premium-hero-logo {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.premium-hero-banner:hover .premium-hero-logo {
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--border-strong) !important;
}

/* CTA button - refined gradient */
.premium-cta-button {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 16px;
    color: white !important;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-light-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.premium-cta-button:hover::before {
    opacity: 1;
}

.premium-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION TITLES - Refined Hierarchy
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.section-title {
    position: relative;
    display: inline-block;
    padding: 0;
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 48px;
}

.section-title::before,
.section-title::after {
    display: none !important;
}

/* Section titles - white in dark mode, orange in light mode */
.section-title,
.section-title span {
    text-shadow: none !important;
    color: #FFFFFF !important;
}

[data-theme="light"] .section-title,
[data-theme="light"] .section-title span {
    color: #FFA500 !important;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-tertiary);
    margin-top: -40px;
    margin-bottom: 40px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PLATFORM CARDS - Premium Glassmorphism
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.platform-card {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-lg) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger */
.platform-card:nth-child(1) { animation-delay: 0.05s; }
.platform-card:nth-child(2) { animation-delay: 0.1s; }
.platform-card:nth-child(3) { animation-delay: 0.15s; }
.platform-card:nth-child(4) { animation-delay: 0.2s; }
.platform-card:nth-child(5) { animation-delay: 0.25s; }
.platform-card:nth-child(6) { animation-delay: 0.3s; }

/* Remove holographic effect */
.platform-card::before {
    display: none !important;
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl) !important;
    border-color: var(--border-strong) !important;
}

/* Click to flip cards - Desktop and Mobile */
.platform-card {
    cursor: pointer;
}

/* Ensure card-back is ALWAYS interactive */
.card-back,
.card-back *,
.card-back a,
.card-back button,
.card-back-buttons,
.card-back-buttons * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.platform-card.flipped .card-back {
    pointer-events: auto !important;
    z-index: 100;
}

.platform-card.flipped .card-back a,
.platform-card.flipped .card-back button {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 101;
}

/* Platform logo - refined and even larger for better visibility */
.platform-logo {
    width: 104px;
    height: 104px;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-md) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    transition: all 0.3s ease;
}

.platform-card:hover .platform-logo {
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border-medium) !important;
}

/* Rating badge - elegant */
.rating-badge {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    border: none !important;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: var(--shadow-md) !important;
    text-shadow: none !important;
    color: white !important;
    font-size: 13px;
    font-weight: 600;
}

/* KYC badges - refined colors */
.kyc-badge {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.kyc-free {
    background: rgba(255, 107, 53, 0.1) !important;
    border: 1px solid var(--orange-500) !important;
    color: var(--orange-500) !important;
    text-shadow: none !important;
}

.kyc-required {
    background: rgba(251, 146, 60, 0.1) !important;
    border: 1px solid #fb923c !important;
    color: #fb923c !important;
    text-shadow: none !important;
}

/* Tags - minimalist */
.tag {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    text-shadow: none !important;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-medium) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARD FRONT - LOGO ONLY REDESIGN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Hide rating badge, KYC badge, and tags on front */
.card-front .rating-badge,
.card-front .kyc-badge,
.card-front .platform-tags {
    display: none !important;
}

/* Card front - centered logo + name only */
.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px !important;
    gap: 20px;
}

.card-front .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

/* Logo - clean, no circle background */
.card-front .platform-logo {
    width: 120px !important;
    height: 120px !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-front .platform-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Platform name - centered */
.card-front .platform-name {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: var(--text-primary);
    margin: 0 !important;
    text-align: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARD BACK - Refined CTAs
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Ensure card back is fully functional */
.card-back {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    pointer-events: auto !important;
}

/* Enable interactions when card is flipped */
.platform-card.flipped .card-back {
    pointer-events: auto !important;
}

.card-back a,
.card-back button {
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
    position: relative;
    z-index: 1000;
    display: inline-block;
}

.card-back-buttons {
    pointer-events: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
}

.card-back-buttons a,
.card-back-buttons button {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.card-btn-primary {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    border: none !important;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    text-align: center;
}

.card-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-400), var(--orange-light-400));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-btn-primary:hover::after {
    opacity: 1;
}

.card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
}

.card-btn-secondary {
    background: transparent !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.card-btn-secondary:hover {
    background: var(--bg-elevated) !important;
    border-color: var(--border-strong) !important;
    color: var(--text-primary) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CAROUSEL CONTROLS - Minimalist
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.carousel-arrow {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-medium) !important;
    border-radius: 10px;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-strong) !important;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg) !important;
}

/* HIDE scroll indicators - only keep arrows */
.scroll-dot {
    display: none !important;
}

.scroll-dot.active {
    display: none !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS - Professional Polish
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.theme-btn, .lang-btn {
    background: var(--bg-elevated) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn::before,
.lang-btn::before {
    display: none !important;
}

.theme-btn:hover,
.lang-btn:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-medium) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.lang-btn.active {
    background: linear-gradient(135deg, #01dba2, #a9d9df) !important;
    color: white !important;
    border-color: transparent !important;
}

/* Connect and PRO buttons */
.connect-button, .pro-button,
.mobile-connect-button, .mobile-pro-button {
    background: linear-gradient(135deg, #01dba2 0%, #a9d9df 100%) !important;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    color: white !important;
    box-shadow: var(--shadow-md) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.connect-button:hover, .pro-button:hover,
.mobile-connect-button:hover, .mobile-pro-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PREMIUM ELEMENTS - Refined Versions
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Trust badges - professional */
.trust-badge {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 16px;
    box-shadow: var(--shadow-lg) !important;
}

.trust-badge::before {
    display: none !important;
}

.trust-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--border-strong) !important;
}

.badge-title {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

.badge-icon {
    filter: none !important;
    font-size: 42px;
}

/* FAB - refined */
.fab-button {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-400)) !important;
    box-shadow: var(--shadow-xl) !important;
}

.fab-button:hover {
    box-shadow: var(--shadow-2xl) !important;
}

.fab-menu-item {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-medium) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* Toast - refined */
.toast {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 12px;
    box-shadow: var(--shadow-xl) !important;
}

.toast-title {
    text-shadow: none !important;
}

/* Modal - glassmorphism */
.premium-modal {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(32px) saturate(200%) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 24px;
    box-shadow: var(--shadow-2xl) !important;
}

.premium-modal::before {
    display: none !important;
}

.premium-modal-title {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

/* Tooltips - minimal */
[data-tech-tooltip]::before {
    background: var(--bg-elevated) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-medium) !important;
    box-shadow: var(--shadow-lg) !important;
    text-shadow: none !important;
    color: var(--text-primary) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE REFINEMENTS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .premium-hero-banner {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .section-title {
        margin-bottom: 32px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SMOOTH MICRO-INTERACTIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Smooth all transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states - accessible and beautiful */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--orange-500);
    outline-offset: 2px;
}

/* Selection colors */
::selection {
    background: rgba(255, 107, 53, 0.2);
    color: var(--text-primary);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FEATURED CARDS - PREMIUM REFINED ELEVATION
   Sophisticated premium cards that showcase site quality
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Featured section - elegant spacing */
.featured-section {
    position: relative;
    padding: 80px 20px 100px;
    margin-bottom: 60px;
}

/* Featured cards grid - 3 columns responsive */
.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 245, 160, 0.3) rgba(255, 255, 255, 0.1);
}

.featured-cards-grid::-webkit-scrollbar {
    height: 8px;
}

.featured-cards-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.featured-cards-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 4px;
}

.featured-cards-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

/* Featured card - premium elevation */
.featured-card {
    width: 100%;
    max-width: 400px;
    min-height: 500px;
    margin: 0 auto;
    transform-origin: center;
    position: relative;
    animation: featuredCardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.featured-card:nth-child(1) { animation-delay: 0.1s; }
.featured-card:nth-child(2) { animation-delay: 0.2s; }
.featured-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes featuredCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.featured-section .platform-card {
    margin: 0;
}

/* Premium card inner - layered sophistication */
.featured-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 28px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

/* Featured card faces - proper 3D flip structure */
.featured-card .card-front,
.featured-card .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: 28px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Front face - default position */
.featured-card .card-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    background: var(--bg-elevated);

    /* Layered premium shadows */
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 8px 24px rgba(255, 107, 53, 0.12),
        0 16px 48px rgba(255, 140, 66, 0.08),
        0 24px 80px rgba(139, 92, 246, 0.05),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);

    transition: box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Refined gradient border on front face */
.featured-card .card-front::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.4) 0%,
        rgba(255, 140, 66, 0.3) 50%,
        rgba(255, 140, 66, 0.3) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Subtle inner glow on front face */
.featured-card .card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 100%);
    border-radius: 28px 28px 0 0;
    pointer-events: none;
}

/* Back face - rotated 180deg */
.featured-card .card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background: var(--bg-elevated);
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Fix featured section links - ensure they work */
.featured-card .card-back a,
.featured-card .card-back button {
    pointer-events: auto !important;
    z-index: 1000;
    cursor: pointer !important;
}

.featured-card.flipped .card-back {
    pointer-events: auto !important;
}

/* When flipped, rotate the entire card-inner */
.featured-card.flipped .card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* Hide badges when card is flipped */
.featured-card.flipped .rating-badge,
.featured-card.flipped .kyc-badge {
    opacity: 0;
    pointer-events: none;
}

/* Premium hover state - elegant lift (only when not flipped) */
.featured-card:not(.flipped):hover .card-front {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 12px 32px rgba(255, 107, 53, 0.18),
        0 20px 60px rgba(255, 140, 66, 0.12),
        0 32px 100px rgba(139, 92, 246, 0.08),
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 107, 53, 0.15);
}

.featured-card:not(.flipped):hover .card-front::before {
    opacity: 1;
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.6) 0%,
        rgba(255, 140, 66, 0.5) 50%,
        rgba(255, 140, 66, 0.4) 100%);
}

/* Featured card logo - clean, no background */
.featured-card .card-front .platform-logo {
    width: 120px !important;
    height: 120px !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Featured cards - click to flip */
.featured-card {
    cursor: pointer;
}

/* Ensure featured card-back is ALWAYS interactive */
.featured-card .card-back,
.featured-card .card-back *,
.featured-card .card-back a,
.featured-card .card-back button,
.featured-card .card-back-buttons,
.featured-card .card-back-buttons * {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.featured-card.flipped .card-back {
    pointer-events: auto !important;
    z-index: 100;
}

.featured-card.flipped .card-back a,
.featured-card.flipped .card-back button {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 101;
}

/* Featured card name - refined typography */
.featured-card .platform-name {
    font-size: 24px;
    margin-top: 18px;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* Featured card tags - elegant spacing */
.featured-card .platform-tags {
    margin-top: 16px;
    gap: 10px;
}

.featured-card .tag {
    font-size: 11px;
    padding: 6px 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.featured-card:hover .tag {
    border-color: var(--border-medium);
    background: rgba(255, 255, 255, 0.05);
}

/* Featured rating badge - premium elevation */
.featured-card .rating-badge {
    font-size: 15px;
    padding: 9px 16px;
    box-shadow:
        0 4px 12px rgba(255, 107, 53, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-card:hover .rating-badge {
    transform: translateY(-2px);
    box-shadow:
        0 6px 16px rgba(255, 107, 53, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Featured KYC badge - refined */
.featured-card .kyc-badge {
    font-size: 12px;
    padding: 8px 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Featured Navigation Arrows */
.featured-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.featured-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #FF6B35;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #FF6B35;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.featured-arrow:hover {
    background: #FF6B35;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.featured-arrow:active {
    transform: scale(0.95);
}

/* Mobile responsiveness - featured cards premium */
@media (max-width: 768px) {
    .featured-section {
        padding: 60px 16px 80px;
    }

    .featured-cards-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 16px;
    }

    .featured-card {
        min-height: 480px;
        max-width: 100%;
        margin: 0 auto;
    }

    .featured-card .card-inner,
    .featured-card .card-front,
    .featured-card .card-back {
        min-height: 480px;
    }

    .featured-card .platform-logo {
        width: 110px;
        height: 110px;
        padding: 18px;
    }

    .featured-card .platform-name {
        font-size: 22px;
        margin-top: 16px;
    }

    .featured-card .platform-tags {
        margin-top: 14px;
        gap: 8px;
    }

    .featured-card .tag {
        font-size: 10px;
        padding: 5px 12px;
    }

    .featured-badge {
        font-size: 11px;
        padding: 8px 18px;
        top: -12px;
    }

    .featured-card:not(.flipped):hover .card-front {
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.05),
            0 8px 20px rgba(255, 107, 53, 0.15),
            0 12px 36px rgba(255, 140, 66, 0.1),
            0 16px 60px rgba(139, 92, 246, 0.06);
    }

    .featured-navigation {
        margin-top: 24px;
    }

    .featured-arrow {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIGHT THEME ENHANCEMENTS - Luxury Details
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Featured cards - light theme */
[data-theme="light"] .featured-card .card-front {
    background: rgba(255, 254, 252, 0.98) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(255, 107, 53, 0.15),
        0 16px 48px rgba(255, 140, 66, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] .featured-card .card-back {
    background: linear-gradient(135deg, rgba(255, 254, 252, 0.98) 0%, rgba(252, 250, 247, 0.96) 100%) !important;
    border: 2px solid rgba(255, 107, 53, 0.38) !important;
}

[data-theme="light"] .featured-card:not(.flipped):hover .card-front {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 12px 32px rgba(255, 107, 53, 0.22),
        0 20px 60px rgba(255, 140, 66, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 1) !important;
}

/* Platform cards - luminous with soft inner glow */
[data-theme="light"] .platform-card {
    background: var(--bg-elevated) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .platform-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow:
        var(--shadow-2xl),
        inset 0 1px 2px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(42, 37, 32, 0.04) !important;
}

/* Premium hero banner - radiant luxury */
[data-theme="light"] .premium-hero-banner {
    background: rgba(255, 253, 248, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        var(--shadow-xl),
        inset 0 2px 4px 0 rgba(255, 255, 255, 0.95),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"] .premium-hero-banner:hover {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow:
        var(--shadow-2xl),
        inset 0 2px 4px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

/* Modals and overlays - luminous glass */
[data-theme="light"] .premium-modal {
    background: rgba(255, 253, 248, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        var(--shadow-2xl),
        inset 0 2px 4px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6) !important;
}

/* Trust badges - refined with subtle glow */
[data-theme="light"] .trust-badge {
    background: rgba(255, 253, 248, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.9) !important;
}

[data-theme="light"] .trust-badge:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow:
        var(--shadow-xl),
        inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
}

/* Logo containers - premium elevation */
[data-theme="light"] .platform-logo,
[data-theme="light"] .premium-hero-logo {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95) !important;
}

[data-theme="light"] .platform-card:hover .platform-logo,
[data-theme="light"] .premium-hero-banner:hover .premium-hero-logo {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 2px 0 rgba(255, 255, 255, 1) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SCROLL FIX - Smooth scroll without white scrollbar
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Ensure page scrolls smoothly */
body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Remove forced scrollbar */
html {
    overflow-y: auto !important;
    scroll-behavior: smooth;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CRITICAL CARD BUTTON FIX - Ensure buttons always work
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Maximum priority fix to ensure ALL card buttons work when flipped */
.platform-card.flipped .card-back,
.featured-card.flipped .card-back {
    pointer-events: auto !important;
    z-index: 100 !important;
}

.platform-card.flipped .card-back a,
.platform-card.flipped .card-back button,
.platform-card.flipped .card-back .card-btn-primary,
.platform-card.flipped .card-back .card-btn-secondary,
.platform-card.flipped .card-back .card-back-buttons,
.platform-card.flipped .card-back .card-back-buttons a,
.platform-card.flipped .card-back .card-back-buttons button,
.featured-card.flipped .card-back a,
.featured-card.flipped .card-back button,
.featured-card.flipped .card-back .card-btn-primary,
.featured-card.flipped .card-back .card-btn-secondary,
.featured-card.flipped .card-back .card-back-buttons,
.featured-card.flipped .card-back .card-back-buttons a,
.featured-card.flipped .card-back .card-back-buttons button {
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 1001 !important;
    position: relative !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   END OF PROFESSIONAL REFINED DESIGN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
