/* ============================================
   DOLLARHUB — MODERN GRADIENT THEME
   Purple / Blue / Emerald premium design
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Brand */
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --secondary-color: #3b82f6;
    --accent-emerald: #10b981;
    --accent-gold: #fbbf24;
    --accent-rose: #f43f5e;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #0b1020 0%, #1c2333 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   DEFAULT THEME: DARK MODE (Deep Premium)
   ============================================ */
:root, html {
    --bg-body: #0b1020;
    --bg-soft: #131829;
    --bg-muted: #1c2333;
    --card-bg: #1c2333;
    --text-primary: #f8fafc;
    --text-secondary: #a1a9bd;
    --text-muted: #6b7280;
    --border-light: #262d40;
    --border-soft: #1c2333;
    
    /* Dark overrides for specific sections */
    --dark-bg: #0b1020;
    --dark-bg-soft: #131829;
    --dark-card: #1c2333;
    --dark-border: #262d40;
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #a1a9bd;
    --dark-text-muted: #6b7280;
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
html[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-soft: #f8fafc;
    --bg-muted: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    --border-soft: #f1f5f9;

    --dark-bg: #ffffff;
    --dark-bg-soft: #f8fafc;
    --dark-card: #ffffff;
    --dark-border: #e2e8f0;
    --dark-text-primary: #0f172a;
    --dark-text-secondary: #475569;
    --dark-text-muted: #94a3b8;
}

/* Base Styles */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.4s ease, border-color 0.4s ease;
}

html[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.navbar { padding: 0.85rem 0; }

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo { display: flex; align-items: center; flex-shrink: 0; transition: transform 0.3s ease; }
.logo img {
    height: 80px; width: auto; max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.4));
    transition: transform 0.3s ease;
}
.logo:hover { transform: translateY(-1px); }
.logo:hover img { transform: scale(1.04); }

/* Nav menu */
.nav-menu { display: flex; list-style: none; gap: 1.75rem; align-items: center; }
.nav-link {
    color: var(--text-secondary);
    font-weight: 500; font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative; padding: 0.25rem 0; white-space: nowrap;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 2px; background: var(--gradient-1);
    transition: width 0.3s ease; border-radius: 2px;
}
.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }

/* Auth buttons */
.nav-actions { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }

.btn-login, .btn-signup {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.55rem 1.15rem; border-radius: 50px;
    font-size: 0.88rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; white-space: nowrap;
}
.btn-login {
    background: transparent; color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}
.btn-login:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px); box-shadow: 0 6px 14px rgba(139, 92, 246, 0.25);
}
.btn-signup {
    background: var(--gradient-1); color: #fff; border: none;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.btn-signup:hover {
    transform: translateY(-2px); box-shadow: 0 10px 22px rgba(139, 92, 246, 0.5);
}

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: transparent;
    border: 1px solid var(--border-light); border-radius: 12px;
    cursor: pointer; padding: 10px; transition: all 0.3s ease; flex-shrink: 0;
}
.hamburger:hover { border-color: var(--primary-color); background: rgba(139, 92, 246, 0.1); }
.hamburger span {
    display: block; width: 100%; height: 2.5px;
    background: var(--text-primary); border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; top: 70px; left: 0; width: 100%;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 1.25rem 1.5rem 1.75rem;
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999; max-height: calc(100vh - 70px); overflow-y: auto;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }

.mobile-nav-menu { list-style: none; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-menu li { border-bottom: 1px solid var(--border-light); }
.mobile-nav-menu li:last-child { border-bottom: none; }

.mobile-nav-link {
    display: block; padding: 0.85rem 0.5rem;
    color: var(--text-primary); font-weight: 600; font-size: 1rem;
    transition: all 0.25s ease; border-radius: 8px;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
    color: var(--primary-color); background: rgba(139, 92, 246, 0.08); padding-left: 1rem;
}

.mobile-auth-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; padding-top: 0.5rem; }
.btn-login-mobile, .btn-signup-mobile {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.85rem 1rem; border-radius: 12px; font-size: 0.92rem;
    font-weight: 700; cursor: pointer; transition: all 0.3s ease; border: none;
}
.btn-login-mobile { background: transparent; color: var(--primary-color); border: 1.5px solid var(--primary-color); }
.btn-signup-mobile { background: var(--gradient-1); color: #fff; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); }

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 50%; cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease; flex-shrink: 0;
    position: relative; overflow: hidden;
}
.theme-toggle:hover {
    background: rgba(139, 92, 246, 0.2); border-color: var(--primary-color);
    color: var(--primary-color); transform: rotate(15deg) scale(1.05);
}
.theme-toggle svg { position: absolute; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.theme-toggle .moon-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .sun-icon { opacity: 1; transform: rotate(0deg) scale(1); }

html[data-theme="light"] .theme-toggle .moon-icon { opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="light"] .theme-toggle .sun-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
html[data-theme="light"] .theme-toggle { background: #f1f5f9; border-color: #e2e8f0; }

.nav-mobile-actions { display: none; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.theme-toggle-mobile { width: 40px; height: 40px; }


/* ============================================
   FEATURES SECTION — ENHANCED
   ============================================ */
.features-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.features-stats {
    display: flex;
    gap: 24px;
    margin: 28px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.feature-stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.feature-stat span {
    font-size: 0.78rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-cta {
    margin-top: 8px;
}

/* Enhanced feature boxes */
.feature-box {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.feature-box .feature-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(16, 185, 129, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.35);
}

.feature-box:hover .feature-glow {
    opacity: 1;
}

.feature-box .feature-icon {
    transition: transform 0.35s ease, color 0.35s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(-4deg);
    color: #10b981;
}

.feature-box h3 {
    transition: color 0.3s ease;
}

.feature-box:hover h3 {
    color: #10b981;
}

.feature-box p {
    font-size: 0.8rem;
    line-height: 1.5;
    opacity: 0.65;
    margin: 8px 0 0;
}

.feature-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ============================================
   LIVE CRYPTO TABLE
   ============================================ */
.crypto-table-wrap {
    margin-top: 80px;
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.85) 0%, rgba(15, 18, 30, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.crypto-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px;
}

.crypto-table-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: livePulse 2s infinite;
    flex-shrink: 0;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============================================
   LIVE CRYPTO TABLE — PREMIUM POLISHED
   ============================================ */
.crypto-table-wrap {
    margin-top: 80px;
    position: relative;
    background: linear-gradient(180deg, rgba(28, 35, 51, 0.92) 0%, rgba(15, 18, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: tableFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tableFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Top gradient glow accent */
.table-glow-accent {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 200px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* Light theme */
html[data-theme="light"] .crypto-table-wrap {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(139, 92, 246, 0.06);
}
html[data-theme="light"] .table-glow-accent {
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

/* --- Header --- */
.crypto-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}
html[data-theme="light"] .crypto-table-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.crypto-table-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.live-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    animation: livePulse 2s infinite;
    flex-shrink: 0;
}

.crypto-table-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.01em;
}
html[data-theme="light"] .crypto-table-title { color: #0f172a; }

.crypto-table-subtitle {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: 0.02em;
}
html[data-theme="light"] .crypto-table-subtitle { color: #64748b; }

/* --- Filters --- */
.crypto-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-filter {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
html[data-theme="light"] .table-filter {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #64748b;
}

.table-filter:hover {
    border-color: rgba(139, 92, 246, 0.5);
    color: #a78bfa;
    transform: translateY(-1px);
}
html[data-theme="light"] .table-filter:hover {
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.4);
}

.table-filter.active {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}
html[data-theme="light"] .table-filter.active {
    color: #fff;
}

.table-view-all {
    margin-left: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #a78bfa;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}
html[data-theme="light"] .table-view-all { color: #7c3aed; }

.table-view-all:hover {
    transform: translateX(4px);
    color: #c4b5fd;
}
html[data-theme="light"] .table-view-all:hover { color: #8b5cf6; }

/* --- Scroll wrapper --- */
.crypto-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.4) transparent;
}
.crypto-table-scroll::-webkit-scrollbar { height: 6px; }
.crypto-table-scroll::-webkit-scrollbar-track { background: transparent; }
.crypto-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 10px;
}

/* --- Table --- */
.crypto-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.crypto-table thead th {
    text-align: left;
    padding: 16px 22px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 2;
}
html[data-theme="light"] .crypto-table thead th {
    color: #64748b;
    background: #f8fafc;
    border-bottom-color: #e2e8f0;
}

.crypto-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.25s ease, transform 0.25s ease;
}
html[data-theme="light"] .crypto-table tbody tr {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

.crypto-table tbody tr:hover {
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.08) 0%,
        rgba(16, 185, 129, 0.04) 50%,
        rgba(59, 130, 246, 0.06) 100%);
}
html[data-theme="light"] .crypto-table tbody tr:hover {
    background: linear-gradient(90deg,
        rgba(139, 92, 246, 0.05) 0%,
        rgba(16, 185, 129, 0.03) 50%,
        rgba(59, 130, 246, 0.04) 100%);
}

.crypto-table tbody tr:last-child { border-bottom: none; }

.crypto-table td {
    padding: 18px 22px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
}
html[data-theme="light"] .crypto-table td { color: #334155; }

/* Rank */
.table-rank {
    opacity: 0.5;
    font-weight: 700;
    font-size: 0.85rem;
    width: 40px;
}

/* Asset cell */
.table-asset {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.crypto-table tbody tr:hover .table-asset-icon {
    transform: scale(1.08) rotate(-4deg);
}

.table-asset-icon.btc  { background: linear-gradient(135deg, #f7931a 0%, #b87116 100%); }
.table-asset-icon.eth  { background: linear-gradient(135deg, #627eea 0%, #4556a8 100%); }
.table-asset-icon.sol  { background: linear-gradient(135deg, #14f195 0%, #0a9f63 100%); }
.table-asset-icon.bnb  { background: linear-gradient(135deg, #f3ba2f 0%, #c29222 100%); font-size: 0.7rem; }
.table-asset-icon.xrp  { background: linear-gradient(135deg, #23292f 0%, #4a5158 100%); }
.table-asset-icon.ada  { background: linear-gradient(135deg, #0033ad 0%, #001f6b 100%); }
.table-asset-icon.doge { background: linear-gradient(135deg, #c2a633 0%, #8a7421 100%); }
.table-asset-icon.avax { background: linear-gradient(135deg, #e84142 0%, #a82c2d 100%); }

.table-asset strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.2;
}
html[data-theme="light"] .table-asset strong { color: #0f172a; }

.table-asset span {
    display: block;
    font-size: 0.72rem;
    opacity: 0.55;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.05em;
}
html[data-theme="light"] .table-asset span { color: #64748b; opacity: 1; }

/* Price */
.table-price {
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}
html[data-theme="light"] .table-price { color: #0f172a; }

/* Change */
.table-change {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.table-change svg { flex-shrink: 0; }

.table-change.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 10px;
    border-radius: 100px;
}

.table-change.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 5px 10px;
    border-radius: 100px;
}

html[data-theme="light"] .table-change.up {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
html[data-theme="light"] .table-change.down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Volume */
.table-volume {
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
html[data-theme="light"] .table-volume { opacity: 1; color: #475569; }

/* AI Signal pills */
.ai-signal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
}

.signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
    animation: signalBlink 2s ease-in-out infinite;
}

@keyframes signalBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; }
}

.ai-signal.buy {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.ai-signal.sell {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.ai-signal.hold {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.crypto-table tbody tr:hover .ai-signal.buy {
    background: rgba(16, 185, 129, 0.25);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.3);
}
.crypto-table tbody tr:hover .ai-signal.sell {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}
.crypto-table tbody tr:hover .ai-signal.hold {
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

/* Trade button */
.table-trade-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a78bfa;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.03em;
}

html[data-theme="light"] .table-trade-btn {
    color: #7c3aed;
}

.table-trade-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.45);
}

.table-trade-btn:active {
    transform: translateY(0) scale(0.98);
}

/* --- Footer --- */
.crypto-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}
html[data-theme="light"] .crypto-table-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.crypto-table-footer a {
    color: #a78bfa;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}
html[data-theme="light"] .crypto-table-footer a { color: #7c3aed; }

.crypto-table-footer a:hover {
    transform: translateX(4px);
    color: #c4b5fd;
}
html[data-theme="light"] .crypto-table-footer a:hover { color: #8b5cf6; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .crypto-table-wrap { margin-top: 60px; border-radius: 22px; }
}

@media (max-width: 768px) {
    .crypto-table-header { padding: 20px 20px; }
    .crypto-table-title { font-size: 1.1rem; }
    .crypto-table-subtitle { font-size: 0.72rem; }
    .crypto-table td,
    .crypto-table thead th { padding: 14px 14px; font-size: 0.85rem; }
    .crypto-table-actions { width: 100%; }
    .crypto-table-footer { padding: 16px 20px; font-size: 0.78rem; }
    .table-asset-icon { width: 34px; height: 34px; font-size: 0.85rem; }
    .table-asset strong { font-size: 0.88rem; }
    .table-price { font-size: 0.88rem; }
    .ai-signal { padding: 5px 10px; font-size: 0.66rem; }
    .table-trade-btn { padding: 7px 14px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
    .crypto-table-wrap { border-radius: 18px; margin-top: 40px; }
    .crypto-table-header { padding: 16px 16px; flex-direction: column; align-items: stretch; }
    .crypto-table-title-wrap { width: 100%; }
    .crypto-table-actions { width: 100%; justify-content: space-between; }
    .table-view-all { margin-left: 0; font-size: 0.8rem; }
    .crypto-table td,
    .crypto-table thead th { padding: 12px 12px; }
    .table-rank { display: none; }
    .crypto-table thead th:first-child { display: none; }
    .crypto-table-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Light theme support (if you use one) */
@media (prefers-color-scheme: light) {
    .crypto-table-wrap {
        background: #ffffff;
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    }
    .crypto-table thead th { color: rgba(0, 0, 0, 0.5); }
    .crypto-table td { color: rgba(0, 0, 0, 0.8); }
    .table-asset strong,
    .table-price { color: #111827; }
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-table-header { padding: 18px 20px; }
    .crypto-table td,
    .crypto-table thead th { padding: 12px 14px; font-size: 0.82rem; }
    .crypto-table-title { font-size: 1.05rem; }
    .crypto-table-actions { width: 100%; }
    .crypto-table-footer { padding: 14px 20px; }
    .features-stats { gap: 16px; }
    .feature-stat strong { font-size: 1.2rem; }
}
/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 7rem 2rem 3rem; overflow: hidden;
    background:
        radial-gradient(ellipse at 15% 25%, rgba(139, 92, 246, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 55%),
        var(--bg-body);
    gap: 3rem; transition: background 0.4s ease;
}
html[data-theme="light"] .hero {
    background:
        radial-gradient(ellipse at 15% 25%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 75%, rgba(59, 130, 246, 0.05) 0%, transparent 55%),
        var(--bg-body);
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    pointer-events: none;
}

.hero-content { flex: 1; max-width: 620px; z-index: 2; position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem; background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 1.25rem; backdrop-filter: blur(8px);
}
.badge-dot { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; animation: livePulse 1.8s infinite; }

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.25rem);
    font-weight: 900; margin-bottom: 1.25rem; line-height: 1.15;
    color: var(--text-primary); letter-spacing: -0.02em;
}
.dollar-symbol {
    display: inline-block; background: var(--gradient-gold);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite; margin-right: 0.15em;
}
.typing-text {
    display: inline-block; overflow: hidden; white-space: nowrap;
    border-right: 4px solid var(--primary-color);
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
    color: var(--primary-color); vertical-align: bottom;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--text-secondary);
    margin-bottom: 2rem; max-width: 540px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 1rem 1.85rem; border: none; border-radius: 50px;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: var(--gradient-1); color: #fff;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(139, 92, 246, 0.55); }
.btn-secondary {
    background: rgba(139, 92, 246, 0.1); color: var(--text-primary);
    border: 2px solid var(--border-light); backdrop-filter: blur(8px);
}
.btn-secondary:hover { border-color: var(--primary-color); background: rgba(139, 92, 246, 0.15); transform: translateY(-3px); }

.hero-trust {
    display: flex; align-items: center; gap: 1.25rem;
    padding-top: 1.5rem; border-top: 1px solid var(--border-light); flex-wrap: wrap;
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.trust-item span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.trust-divider { width: 1px; height: 32px; background: var(--border-light); }

/* Hero visual */
.hero-visual {
    flex: 1; position: relative; height: 560px;
    display: flex; align-items: center; justify-content: center; max-width: 560px;
}
.hero-image-main {
    position: relative; width: 100%; max-width: 460px; border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.2);
    transform: rotate(-2deg); transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid var(--border-light); z-index: 1;
}
.hero-image-main::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, transparent 50%, rgba(59, 130, 246, 0.15) 100%);
    pointer-events: none;
}
.hero-image-main img { display: block; width: 100%; height: 420px; object-fit: cover; transition: transform 0.6s ease; }
.hero-image-main:hover { transform: rotate(0deg) scale(1.02); }
.hero-image-main:hover img { transform: scale(1.05); }

.hero-image-overlay {
    position: absolute; bottom: 16px; left: 16px; right: 16px;
    background: rgba(28, 35, 51, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 0.85rem 1.1rem; z-index: 2;
}
html[data-theme="light"] .hero-image-overlay { background: rgba(255, 255, 255, 0.95); border-color: #e2e8f0; }
.overlay-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.overlay-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.overlay-stat strong { font-size: 1.25rem; font-weight: 900; color: var(--text-primary); line-height: 1.1; }
.overlay-change { font-size: 0.78rem; color: var(--accent-emerald); font-weight: 700; }

/* Tickers & Floating Cards */
.price-ticker, .floating-card {
    position: absolute; background: var(--bg-soft); border: 1px solid var(--border-light);
    border-radius: 14px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); z-index: 3; transition: background 0.4s ease;
}
.price-ticker { top: 8%; left: -6%; display: flex; flex-direction: column; gap: 0.5rem; padding: 0.85rem 1rem; animation: float 4.5s ease-in-out infinite; animation-delay: 0.3s; }
.floating-card { padding: 1rem 1.15rem; border-radius: 16px; }
.card-chart { top: 8%; right: -4%; width: 210px; animation: float 4s ease-in-out infinite; }

.ticker-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.78rem; font-weight: 600; }
.ticker-symbol { color: var(--text-secondary); min-width: 55px; }
.ticker-price { color: var(--text-primary); font-weight: 800; min-width: 70px; text-align: right; }
.ticker-change { font-weight: 800; min-width: 50px; text-align: right; font-size: 0.72rem; }
.ticker-change.up { color: var(--accent-emerald); }
.ticker-change.down { color: var(--accent-rose); }

.card-header { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.card-dot { width: 8px; height: 8px; border-radius: 50%; }
.card-dot.green { background: var(--accent-emerald); }
.card-change { margin-left: auto; font-weight: 700; }
.card-change.up { color: var(--accent-emerald); }
.mini-chart { height: 32px; margin-bottom: 0.4rem; }
.mini-chart svg { width: 100%; height: 100%; }
.card-value { font-size: 0.95rem; font-weight: 800; color: var(--text-primary); }

/* Floating Elements */
.floating-coin { position: absolute; border-radius: 50%; overflow: hidden; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); border: 4px solid var(--border-light); animation: float 3s ease-in-out infinite; z-index: 2; }
.floating-coin img { width: 100%; height: 100%; object-fit: cover; }
.coin-1 { width: 90px; height: 90px; top: 6%; left: -2%; animation-delay: 0s; }
.coin-2 { width: 76px; height: 76px; bottom: 10%; left: 4%; animation-delay: 0.8s; }
.coin-3 { width: 86px; height: 86px; bottom: 18%; right: -2%; animation-delay: 1.4s; }

.floating-badge {
    position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem;
    background: var(--gradient-1); color: #fff; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; box-shadow: 0 12px 24px rgba(139, 92, 246, 0.5);
    animation: float 3.5s ease-in-out infinite; animation-delay: 0.4s; z-index: 4; white-space: nowrap;
}

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse { width: 30px; height: 50px; border: 2px solid var(--primary-color); border-radius: 15px; position: relative; }
.mouse::after { content: ''; width: 4px; height: 8px; background: var(--primary-color); position: absolute; top: 10px; left: 50%; transform: translateX(-50%); border-radius: 2px; animation: scroll 2s infinite; }

/* ============================================
   MARKETS SECTION
   ============================================ */
.markets { padding: 5rem 2rem; background: var(--bg-soft); transition: background 0.4s ease; }
.markets-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.markets-tag { display: inline-block; padding: 0.4rem 1.1rem; background: rgba(139, 92, 246, 0.1); color: var(--primary-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
html[data-theme="light"] .markets-tag { color: var(--primary-color); }
.section-title { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 1rem; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }
.markets-lead { font-size: 1.1rem; color: var(--text-secondary); margin-top: 1rem; }

.markets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.market-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow-sm); transition: all 0.3s ease; overflow: hidden; }
.market-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); border-color: var(--primary-color); }
.market-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.market-asset { display: flex; align-items: center; gap: 0.75rem; }
.asset-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; color: #fff; flex-shrink: 0; }
.asset-icon.btc { background: linear-gradient(135deg, #f7931a 0%, #fbbf24 100%); }
.asset-icon.eth { background: linear-gradient(135deg, #627eea 0%, #8b5cf6 100%); }
.asset-icon.usd { background: var(--gradient-1); }
.asset-icon.eur { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.asset-icon.gbp { background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%); }
.asset-icon.gold { background: var(--gradient-gold); }

.market-asset strong { display: block; font-size: 0.98rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.market-asset span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.asset-price { text-align: right; }
.asset-price strong { display: block; font-size: 1rem; font-weight: 900; color: var(--text-primary); line-height: 1.2; }
.asset-change { font-size: 0.78rem; font-weight: 800; }
.asset-change.up { color: var(--accent-emerald); }
.asset-change.down { color: var(--accent-rose); }
.market-chart { height: 80px; margin-top: 0.5rem; }
.market-chart svg { width: 100%; height: 100%; }

/* ============================================
   NEW PREMIUM STAGGERED FEATURES SECTION
   ============================================ */
.features {
    padding: 8rem 2rem;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

/* Background Gradients/Glows */
.features::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Left Side: Text Content --- */
.features-text {
    max-width: 500px;
}

.features-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.features-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.features-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* --- Right Side: Staggered Grid --- */
.features-grid-wrap {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.features-staggered-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 600px;
}

/* Staggered Positioning */
.feature-box {
    background: linear-gradient(145deg, rgba(28, 35, 51, 0.9) 0%, rgba(19, 24, 41, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Dark/Light Theme specific backgrounds for boxes */
html[data-theme="light"] .feature-box {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

/* Staggered Column Effects */
.feature-box:nth-child(1) { margin-top: 2rem; }
.feature-box:nth-child(2) { margin-top: -2rem; }
.feature-box:nth-child(3) { margin-top: 1rem; }
.feature-box:nth-child(4) { margin-top: 0rem; }
.feature-box:nth-child(5) { margin-top: 3rem; }
.feature-box:nth-child(6) { margin-top: -1rem; }

/* Hover Effects (Magical Glow & Lift) */
.feature-box:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25), 
                0 0 20px rgba(139, 92, 246, 0.15) inset;
    z-index: 10;
}

/* Animated Glowing Background on Hover */
.feature-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.feature-box:hover::before { opacity: 1; }

/* Icons */
.feature-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.4s ease, color 0.4s ease;
}

.feature-icon svg {
    width: 100%; height: 100%;
    stroke-width: 1.5;
}

.feature-box:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.8));
}

/* Text inside boxes */
.feature-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-box:hover h3 {
    color: var(--primary-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .features-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .features-text {
        max-width: 100%;
        margin: 0 auto;
    }
    .features-staggered-grid {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .features { padding: 5rem 1.25rem; }
    .features-staggered-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    /* Reset staggered margins for a clean 2x3 grid */
    .feature-box { margin-top: 0 !important; min-height: 150px; }
}

@media (max-width: 480px) {
    .features-staggered-grid {
        grid-template-columns: 1fr;
    }
    .feature-box {
        flex-direction: row;
        text-align: left;
        padding: 1.25rem;
        min-height: auto;
        gap: 1rem;
    }
    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .feature-box h3 {
        font-size: 0.95rem;
    }
}


/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 8rem 2rem;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Left Side: Image --- */
.faq-image-wrap {
    position: relative;
}

.faq-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.faq-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.faq-image:hover img {
    transform: scale(1.03);
}

/* Background Glow */
.faq-bg-glow {
    position: absolute;
    top: -10%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
}

/* Floating Glass Cards */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 5s ease-in-out infinite;
}

html[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.faq-floating-card {
    top: 10%;
    left: -10%;
}

.faq-floating-card.card-bottom {
    bottom: 10%;
    right: -10%;
    left: auto;
    animation-delay: 1.5s;
}

.faq-float-icon {
    width: 40px; height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.faq-float-icon svg { width: 20px; height: 20px; }

.faq-float-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
}
.faq-float-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Avatars in bottom card */
.avatars { display: flex; }
.avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-size: cover;
    background-position: center;
    margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.av1 { background-image: url('https://i.pravatar.cc/100?img=1'); }
.av2 { background-image: url('https://i.pravatar.cc/100?img=2'); }
.av3 { background-image: url('https://i.pravatar.cc/100?img=3'); }

/* --- Right Side: Content --- */
.faq-header {
    margin-bottom: 2.5rem;
}

.faq-tag {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.faq-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.faq-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Accordion --- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

html[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.02);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-icon {
    width: 28px; height: 28px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s ease, background 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .faq-icon { background: rgba(255,255,255,0.05); }

.faq-icon svg {
    width: 16px; height: 16px;
    transition: transform 0.4s ease;
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    background: var(--gradient-1);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.4);
}

.faq-item.active .faq-icon svg {
    transform: rotate(180deg);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .faq-image img {
        height: 450px;
    }
    .faq-floating-card {
        left: 5%;
    }
    .faq-floating-card.card-bottom {
        right: 5%;
    }
}

@media (max-width: 640px) {
    .faq-section { padding: 5rem 1rem; }
    .faq-image img { height: 350px; }
    .glass-card { padding: 0.75rem 1rem; border-radius: 12px; }
    .faq-float-icon { width: 32px; height: 32px; }
    .faq-float-text strong { font-size: 0.85rem; }
    .faq-float-text span { font-size: 0.7rem; }
    .faq-floating-card { top: 5%; left: 0%; }
    .faq-floating-card.card-bottom { bottom: 5%; right: 0%; }
    .faq-question { padding: 1rem; font-size: 0.95rem; }
    .faq-answer-content { padding: 0 1rem 1rem; }
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section { padding: 6rem 0; background: var(--bg-soft); position: relative; overflow: hidden; transition: background 0.4s ease; }
.calculator-section::before { content: ''; position: absolute; top: -150px; right: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.calculator-section::after { content: ''; position: absolute; bottom: -150px; left: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.calculator-container { position: relative; z-index: 1; width: 100%; max-width: 100%; margin: 0 auto; padding: 0 2rem; }

.calculator-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.calculator-tag { display: inline-block; padding: 0.4rem 1.1rem; background: rgba(139, 92, 246, 0.1); color: var(--primary-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
html[data-theme="light"] .calculator-tag { color: var(--primary-color); }
.calculator-title { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; color: var(--text-primary); letter-spacing: -0.02em; }
.calculator-title .gradient-text { background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.calculator-lead { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.7; }

.calculator-card { max-width: 1100px; margin: 0 auto; background: var(--card-bg); border-radius: 28px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12), 0 10px 30px rgba(139, 92, 246, 0.15); border: 1px solid var(--border-light); overflow: hidden; position: relative; transition: background 0.4s ease, border-color 0.4s ease; }

.rate-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.5rem; background: var(--gradient-1); color: #fff; position: relative; flex-wrap: wrap; }
.rate-item { display: flex; flex-direction: column; gap: 0.15rem; }
.rate-label { font-size: 0.68rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.06em; text-transform: uppercase; }
.rate-value { font-size: 0.92rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.rate-divider { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.2); }
.rate-pulse { position: absolute; top: 50%; right: 1.25rem; transform: translateY(-50%); width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; animation: livePulse 1.8s infinite; }

.calculator-body { padding: 3rem 4rem; display: flex; flex-direction: column; gap: 1.75rem; }

.calc-amount { display: flex; flex-direction: column; gap: 0.65rem; }
.calc-amount > label, .calc-currency-box > label { font-size: 0.8rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.06em; text-transform: uppercase; }
.amount-input-wrap { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.15rem; background: var(--bg-soft); border: 2px solid var(--border-light); border-radius: 16px; transition: all 0.3s ease; }
.amount-input-wrap:focus-within { border-color: var(--primary-color); background: var(--card-bg); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12); }
.amount-symbol { font-size: 1.5rem; font-weight: 900; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.amount-input-wrap input { flex: 1; border: none; background: transparent; font-size: 1.75rem; font-weight: 800; color: var(--text-primary); outline: none; padding: 0.35rem 0; font-family: inherit; min-width: 0; }
.amount-input-wrap input::placeholder { color: var(--text-muted); font-weight: 500; }
.amount-code { font-size: 0.85rem; font-weight: 800; color: var(--primary-dark); background: rgba(139, 92, 246, 0.12); padding: 0.35rem 0.75rem; border-radius: 50px; letter-spacing: 0.04em; }
html[data-theme="light"] .amount-code { color: var(--primary-color); }

.quick-amounts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.4rem 0.85rem; background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 50px; font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: all 0.25s ease; font-family: inherit; }
.chip:hover { background: rgba(139, 92, 246, 0.1); border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-2px); }
.chip.active { background: var(--gradient-1); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35); }

.calc-currency-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.75rem; align-items: end; }
.calc-currency-box { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-currency-box select { padding: 0.85rem 1rem; background: var(--bg-soft); border: 2px solid var(--border-light); border-radius: 14px; color: var(--text-primary); font-size: 0.92rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.3s ease; width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b5cf6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.calc-currency-box select:focus { outline: none; border-color: var(--primary-color); background-color: var(--card-bg); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12); }

.swap-btn { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border: none; border-radius: 50%; cursor: pointer; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; margin-bottom: 4px; }
.swap-btn:hover { transform: rotate(180deg) scale(1.08); box-shadow: 0 10px 24px rgba(139, 92, 246, 0.55); }
.swap-btn:active { transform: rotate(180deg) scale(0.95); }

.calc-convert-btn { width: 100%; padding: 1.1rem 1.5rem; font-size: 1.02rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; }

.result { min-height: 130px; padding: 1.5rem; background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(59, 130, 246, 0.06) 100%); border: 2px dashed rgba(139, 92, 246, 0.25); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: all 0.4s ease; position: relative; overflow: hidden; }
.result.has-value { background: var(--gradient-1); border: none; border-style: solid; box-shadow: 0 15px 35px rgba(139, 92, 246, 0.35); }
.result-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.65rem; color: var(--text-muted); }
.result-placeholder svg { opacity: 0.5; }
.result-placeholder span { font-size: 0.88rem; font-weight: 600; }
.result .result-value { font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .result-code { font-size: 0.95rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); margin-top: 0.35rem; letter-spacing: 0.08em; }
.result .result-rate { font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid rgba(255, 255, 255, 0.2); width: 100%; max-width: 260px; }

.result.error { background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, rgba(244, 63, 94, 0.05) 100%); border-color: rgba(244, 63, 94, 0.4); border-style: solid; }
.result.error span { color: var(--accent-rose); font-size: 0.92rem; font-weight: 700; }
.result .loading { width: 34px; height: 34px; border: 3px solid rgba(139, 92, 246, 0.2); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 0.8s linear infinite; }

.calc-note { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-size: 0.78rem; color: var(--text-muted); font-weight: 500; text-align: center; }
.calc-note svg { flex-shrink: 0; color: var(--accent-emerald); }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { padding: 6rem 2rem; background: var(--bg-body); position: relative; overflow: hidden; transition: background 0.4s ease; }
.about::before { content: ''; position: absolute; top: -200px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.about::after { content: ''; position: absolute; bottom: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.about .container { position: relative; z-index: 1; max-width: 1200px; }
.about-header { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.about-tag { display: inline-block; padding: 0.4rem 1.1rem; background: rgba(139, 92, 246, 0.1); color: var(--primary-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
html[data-theme="light"] .about-tag { color: var(--primary-color); }
.about-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; color: var(--text-primary); letter-spacing: -0.02em; }
.about-title .highlight { background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; position: relative; display: inline-block; }
.about-lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.75; }

.about-content { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.about-image-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; height: 520px; width: 100%; }

.about-img { position: relative; overflow: hidden; border-radius: 20px; background: var(--bg-muted); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease; cursor: pointer; min-height: 0; min-width: 0; opacity: 0; transform: translateY(30px); animation: aboutImgReveal 0.7s ease forwards; border: 1px solid var(--border-light); }
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.about-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 16, 32, 0.7) 100%); pointer-events: none; transition: background 0.4s ease; z-index: 1; }
.about-img:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(139, 92, 246, 0.25), 0 12px 24px rgba(139, 92, 246, 0.15); }
.about-img:hover img { transform: scale(1.08); }
.about-img:hover::after { background: linear-gradient(180deg, rgba(139, 92, 246, 0.2) 0%, rgba(11, 16, 32, 0.8) 100%); }

.about-img-large { grid-column: 1 / 2; grid-row: 1 / 3; }
.about-img-small.top-right { grid-column: 2 / 3; grid-row: 1 / 2; }
.about-img-small.bottom-right { grid-column: 2 / 3; grid-row: 2 / 3; }
.about-img-large { animation-delay: 0.1s; }
.about-img-small.top-right { animation-delay: 0.25s; }
.about-img-small.bottom-right { animation-delay: 0.4s; }

.img-tag { position: absolute; bottom: 14px; left: 14px; z-index: 2; display: inline-block; padding: 0.35rem 0.85rem; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50px; font-size: 0.7rem; font-weight: 700; color: #ffffff; letter-spacing: 0.06em; text-transform: uppercase; transition: all 0.3s ease; }
.about-img:hover .img-tag { background: var(--gradient-1); border-color: transparent; box-shadow: 0 6px 14px rgba(139, 92, 246, 0.5); }

.about-floating-stat { position: absolute; bottom: 20px; left: -20px; display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.15rem; background: var(--card-bg); border-radius: 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 6px 14px rgba(139, 92, 246, 0.15); border: 1px solid var(--border-light); z-index: 3; animation: float 4s ease-in-out infinite; transition: background 0.4s ease, border-color 0.4s ease; }
.about-floating-stat .stat-icon { font-size: 1.6rem; flex-shrink: 0; }
.about-floating-stat strong { display: block; font-size: 1.05rem; font-weight: 900; background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; }
.about-floating-stat span { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-top: 0.1rem; }

.about-text { padding: 0.5rem 0; }
.about-subtitle { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.25; margin-bottom: 1.25rem; color: var(--text-primary); letter-spacing: -0.02em; }
.about-subtitle .gradient-text { background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-text p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.1rem; }

.about-features-list { list-style: none; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.7rem; padding: 0; }
.about-features-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.check-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #ffffff; border-radius: 50%; font-size: 0.72rem; font-weight: 900; flex-shrink: 0; box-shadow: 0 4px 10px rgba(139, 92, 246, 0.35); }
.about-cta { padding: 0.9rem 1.6rem; font-size: 0.95rem; }

.about-quote { position: relative; max-width: 780px; margin: 0 auto 4rem; padding: 2.25rem 2rem 1.75rem; background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 24px; box-shadow: var(--shadow-sm); text-align: center; transition: background 0.4s ease, border-color 0.4s ease; }
.quote-icon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border-radius: 50%; box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35); }
.about-quote > p { font-size: 1.15rem; font-style: italic; color: var(--text-primary); line-height: 1.7; margin-bottom: 1.5rem; font-weight: 500; }
.quote-author { display: inline-flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.author-avatar { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border-radius: 50%; flex-shrink: 0; }
.quote-author strong { display: block; font-size: 0.92rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; text-align: left; }
.quote-author span { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

.about-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.showcase-card { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 20px; padding: 2rem 1.75rem; text-align: center; box-shadow: var(--shadow-sm); transition: all 0.3s ease; position: relative; overflow: hidden; }
.showcase-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-1); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.showcase-card:hover::before { transform: scaleX(1); }
.showcase-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15); border-color: var(--primary-color); }
.showcase-icon { width: 56px; height: 56px; margin: 0 auto 1.1rem; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border-radius: 16px; box-shadow: 0 8px 18px rgba(139, 92, 246, 0.35); transition: transform 0.3s ease; }
.showcase-card:hover .showcase-icon { transform: scale(1.08) rotate(-4deg); }
.showcase-card h3 { font-size: 1.05rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem; }
.showcase-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   PREMIUM GRADIENT CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 8rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%); /* Blue to Purple */
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

/* Background Curved Shapes */
.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 1;
}

/* Top Left large curve */
.cta-shape-1 {
    top: -30%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

/* Bottom Right large curve */
.cta-shape-2 {
    bottom: -40%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Solid White Button */
.btn-white {
    background: #ffffff;
    color: #7c3aed; /* Dark purple text */
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

/* Outline / Glass Button */
.btn-outline-white {
    background: transparent;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.cta-footer-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .cta-section {
        padding: 6rem 1.5rem;
        min-height: auto;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-white, .btn-outline-white {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact { padding: 6rem 2rem; background: var(--bg-body); position: relative; overflow: hidden; transition: background 0.4s ease; }
.contact::before { content: ''; position: absolute; top: -150px; left: -150px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.contact .container { position: relative; z-index: 1; }
.contact-header { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.contact-tag { display: inline-block; padding: 0.4rem 1.1rem; background: rgba(139, 92, 246, 0.1); color: var(--primary-dark); border-radius: 50px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
html[data-theme="light"] .contact-tag { color: var(--primary-color); }
.contact-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; color: var(--text-primary); }
.contact-title .highlight { background: var(--gradient-1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-lead { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; }

.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; max-width: 1100px; margin: 0 auto; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 1.4rem; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 16px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; }
.contact-info-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(139, 92, 246, 0.15); border-color: var(--primary-color); }
.contact-info-icon { flex-shrink: 0; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border-radius: 12px; box-shadow: 0 6px 14px rgba(139, 92, 246, 0.35); }
.contact-info-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.15rem; }
.contact-info-text a { display: block; font-size: 0.9rem; font-weight: 600; color: var(--primary-color); margin-bottom: 0.15rem; word-break: break-word; }
.contact-info-text a:hover { color: var(--primary-dark); text-decoration: underline; }
html[data-theme="light"] .contact-info-text a:hover { color: var(--primary-color); }
.contact-info-text span { display: block; font-size: 0.78rem; color: var(--text-muted); }

.contact-chat-box { display: flex; align-items: center; gap: 0.85rem; padding: 1.1rem 1.25rem; background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%); border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 16px; margin-top: 0.5rem; flex-wrap: wrap; }
.chat-pulse { width: 12px; height: 12px; background: var(--accent-emerald); border-radius: 50%; animation: livePulse 1.8s infinite; flex-shrink: 0; }
.contact-chat-box > div:nth-child(2) { flex: 1; min-width: 140px; }
.contact-chat-box strong { display: block; font-size: 0.92rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; }
.contact-chat-box span { font-size: 0.78rem; color: var(--text-secondary); }
.chat-btn { padding: 0.5rem 1rem; background: var(--gradient-1); color: #fff; border: none; border-radius: 50px; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; white-space: nowrap; }
.chat-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(139, 92, 246, 0.4); }

.contact-form-wrap { background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); transition: background 0.4s ease, border-color 0.4s ease; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 0.95rem; background: var(--bg-body); border: 1px solid var(--border-light); border-radius: 10px; color: var(--text-primary); font-size: 0.95rem; font-family: inherit; transition: all 0.3s ease; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15); }
.contact-submit { width: 100%; margin-top: 0.25rem; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; text-align: center; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--bg-body); border-top: 1px solid var(--border-light); color: var(--text-secondary); padding: 0; position: relative; overflow: hidden; transition: background 0.4s ease, border-color 0.4s ease; }
html[data-theme="light"] .footer { background: #0b1020; border-top-color: #262d40; color: #a1a9bd; }
.footer::before { content: ''; position: absolute; top: -200px; left: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.footer::after { content: ''; position: absolute; bottom: -200px; right: -200px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.footer-container { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.footer-cta { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2rem 2.5rem; background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%); border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 24px; margin: 3rem 0; position: relative; overflow: hidden; }
.footer-cta::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(139, 92, 246, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, 0.06) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); pointer-events: none; }
.footer-cta-content { display: flex; align-items: center; gap: 1.25rem; position: relative; z-index: 1; }
.footer-cta-icon { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border-radius: 16px; box-shadow: 0 10px 24px rgba(139, 92, 246, 0.4); }
.footer-cta-text h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.25rem; letter-spacing: -0.01em; }
html[data-theme="light"] .footer-cta-text h3 { color: #f8fafc; }
.footer-cta-text p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; }
html[data-theme="light"] .footer-cta-text p { color: #a1a9bd; }

.footer-newsletter { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 50px; padding: 0.35rem 0.35rem 0.35rem 1.25rem; position: relative; z-index: 1; min-width: 320px; transition: all 0.3s ease; }
html[data-theme="light"] .footer-newsletter { background: rgba(11, 16, 32, 0.6); border-color: #262d40; }
.footer-newsletter:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); }
.footer-newsletter input { flex: 1; border: none; background: transparent; color: var(--text-primary); font-size: 0.88rem; font-family: inherit; outline: none; padding: 0.5rem 0; min-width: 0; }
html[data-theme="light"] .footer-newsletter input { color: #f8fafc; }
.footer-newsletter input::placeholder { color: var(--text-muted); }
html[data-theme="light"] .footer-newsletter input::placeholder { color: #6b7280; }
.footer-newsletter button { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--gradient-1); color: #fff; border: none; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4); }
.footer-newsletter button:hover { transform: translateX(2px) scale(1.05); box-shadow: 0 6px 18px rgba(139, 92, 246, 0.55); }

.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding: 1rem 0 3rem; border-top: 1px solid var(--border-light); padding-top: 3rem; }
html[data-theme="light"] .footer-content { border-top-color: #262d40; }
.footer-section h3, .footer-section h4 { color: var(--text-primary); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; position: relative; padding-bottom: 0.6rem; }
html[data-theme="light"] .footer-section h3, html[data-theme="light"] .footer-section h4 { color: #f8fafc; }
.footer-section h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--gradient-1); border-radius: 2px; }
.footer-brand p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.25rem; max-width: 340px; }
html[data-theme="light"] .footer-brand p { color: #a1a9bd; }
.footer-logo { display: inline-block; margin-bottom: 1.25rem; transition: transform 0.3s ease; }
.footer-logo img { height: 100px; width: auto; max-width: 180px; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(139, 92, 246, 0.4)); }
.footer-logo:hover { transform: translateY(-2px); }

.footer-section ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-section ul li a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.92rem; font-weight: 500; transition: all 0.3s ease; position: relative; padding-left: 0; }
html[data-theme="light"] .footer-section ul li a { color: #a1a9bd; }
.footer-section ul li a::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 0; height: 2px; background: var(--gradient-1); border-radius: 2px; transition: width 0.3s ease, left 0.3s ease; }
.footer-section ul li a:hover { color: var(--primary-color); padding-left: 1rem; }
.footer-section ul li a:hover::before { width: 0.6rem; left: 0; }

.social-links { display: flex; gap: 0.65rem; margin-top: 0.5rem; flex-wrap: wrap; }
.social-link { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: rgba(139, 92, 246, 0.05); border: 1px solid var(--border-light); border-radius: 12px; color: var(--text-secondary); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
html[data-theme="light"] .social-link { background: rgba(255, 255, 255, 0.04); border-color: #262d40; color: #a1a9bd; }
.social-link svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.social-link:hover { background: var(--gradient-1); border-color: transparent; color: #fff; transform: translateY(-4px); box-shadow: 0 12px 24px rgba(139, 92, 246, 0.45); }
.social-link:hover svg { transform: scale(1.1); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--border-light); color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; }
html[data-theme="light"] .footer-bottom { border-top-color: #262d40; color: #6b7280; }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; align-items: center; gap: 0.75rem; }
.footer-bottom-links a { color: var(--text-muted); font-weight: 500; transition: color 0.3s ease; }
html[data-theme="light"] .footer-bottom-links a { color: #6b7280; }
.footer-bottom-links a:hover { color: var(--primary-color); }
.dot-sep { color: var(--border-light); font-size: 0.6rem; }
html[data-theme="light"] .dot-sep { color: #262d40; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink-caret { from, to { border-color: transparent; } 50% { border-color: var(--primary-color); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }
@keyframes scroll { 0% { opacity: 1; top: 10px; } 100% { opacity: 0; top: 30px; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes aboutImgReveal { to { opacity: 1; transform: translateY(0); } }

/* Coin & Sparkle Animations */
@keyframes floatAndSpin {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(90deg) scale(1.02); }
    50% { transform: translateY(-35px) rotate(180deg) scale(1.05); }
    75% { transform: translateY(-20px) rotate(270deg) scale(1.02); }
    100% { transform: translateY(0) rotate(360deg) scale(1); }
}

@keyframes sparkle-anim {
    0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}

@keyframes pulse-glow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero { gap: 2rem; }
    .floating-card.card-chart { right: 0; }
    .price-ticker { left: -2%; }
    .coin-1 { left: 0; }
    .coin-3 { right: 0; }
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-grid { height: 460px; max-width: 640px; margin: 0 auto; }
    .about-showcase { grid-template-columns: 1fr; gap: 1rem; }
    .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-info { order: 2; }
    .contact-form-wrap { order: 1; }
}

@media (max-width: 992px) {
    .nav-menu, .nav-actions { display: none; }
    .nav-mobile-actions { display: flex; }
    .hamburger { display: flex; }
    .nav-container { padding: 0 1.25rem; }
    .logo img { height: 46px; max-width: 160px; }
    .footer-container { padding: 0 1.5rem; }
    .footer-cta { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 2rem; margin: 2.5rem 0; text-align: center; }
    .footer-cta-content { flex-direction: column; text-align: center; gap: 1rem; }
    .footer-cta-text h3 { font-size: 1.05rem; }
    .footer-cta-text p { font-size: 0.85rem; }
    .footer-newsletter { min-width: 0; width: 100%; max-width: 480px; margin: 0 auto; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
    .footer-brand { grid-column: 1 / -1; text-align: center; }
    .footer-brand p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .footer-section h4::after { left: 50%; transform: translateX(-50%); }
    .footer-section h4 { text-align: center; }
    .footer-section ul { align-items: center; }
    .footer-section ul li a:hover { padding-left: 0; padding-right: 1rem; }
    .footer-section ul li a::before { left: auto; right: 0; }
    .footer-section ul li a:hover::before { left: auto; right: 0; }
    .social-links { justify-content: center; }
}

@media (max-width: 768px) {
    .hero { flex-direction: column; text-align: center; padding: 6rem 1.25rem 3rem; gap: 2.5rem; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: 2.5rem; }
    .typing-text { white-space: normal; border-right: none; animation: none; }
    .hero-subtitle { font-size: 1.05rem; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { height: 400px; width: 100%; max-width: 400px; }
    .hero-image-main { max-width: 320px; }
    .hero-image-main img { height: 300px; }
    .hero-image-overlay { bottom: 12px; left: 12px; right: 12px; padding: 0.7rem 0.9rem; }
    .overlay-stat strong { font-size: 1.05rem; }
    .price-ticker { top: 2%; left: 2%; padding: 0.6rem 0.8rem; transform: scale(0.9); }
    .card-chart { width: 170px; top: 4%; right: -4%; }
    .coin-1 { width: 70px; height: 70px; }
    .coin-2 { width: 60px; height: 60px; }
    .coin-3 { width: 66px; height: 66px; }
    .floating-badge { font-size: 0.75rem; padding: 0.5rem 0.9rem; }
    .markets { padding: 4rem 1.25rem; }
    .markets-grid { gap: 1rem; }
    .contact { padding: 4rem 1.25rem; }
    .contact-header { margin-bottom: 2.5rem; }
    .contact-title { font-size: 1.85rem; }
    .contact-lead { font-size: 1rem; }
    .contact-form-wrap { padding: 1.5rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .chat-btn { width: 100%; }
    .about-image-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; height: 340px; gap: 0.65rem; max-width: 100%; margin: 0 auto; }
    .about-img-large { grid-column: 1 / 2; grid-row: 1 / 3; }
    .about-img-small.top-right { grid-column: 2 / 3; grid-row: 1 / 2; }
    .about-img-small.bottom-right { grid-column: 2 / 3; grid-row: 2 / 3; }
}

@media (max-width: 640px) {
    .navbar { padding: 0.75rem 0; }
    .logo img { height: 40px; max-width: 140px; }
    .mobile-menu { top: 64px; padding: 1rem 1.25rem 1.5rem; }
    .mobile-auth-buttons { grid-template-columns: 1fr; }
    .container { padding: 0 1.25rem; }
    .calculator-section { padding: 3rem 0; }
    .calculator-container { padding: 0 1rem; }
    .calculator-header { margin-bottom: 1.75rem; padding: 0 0.5rem; }
    .calculator-title { font-size: 1.75rem; }
    .calculator-lead { font-size: 0.95rem; padding: 0 0.5rem; }
    .rate-strip { padding: 0.75rem 1rem; gap: 0.5rem; justify-content: space-between; }
    .rate-label { font-size: 0.6rem; }
    .rate-value { font-size: 0.78rem; }
    .rate-pulse { display: none; }
    .rate-divider { height: 22px; }
    .calculator-card { max-width: 100%; border-radius: 20px; margin: 0; }
    .calculator-body { padding: 1.5rem 1.25rem; gap: 1.25rem; }
    .amount-input-wrap { padding: 0.4rem 1rem; border-radius: 14px; }
    .amount-symbol { font-size: 1.2rem; }
    .amount-input-wrap input { font-size: 1.4rem; padding: 0.3rem 0; }
    .amount-code { font-size: 0.72rem; padding: 0.25rem 0.6rem; }
    .quick-amounts { gap: 0.4rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .quick-amounts::-webkit-scrollbar { display: none; }
    .chip { padding: 0.4rem 0.8rem; font-size: 0.75rem; flex-shrink: 0; }
    .calc-currency-row { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; position: relative; }
    .calc-currency-box { width: 100%; }
    .calc-currency-box select { padding: 0.85rem 1rem; font-size: 0.92rem; }
    .swap-btn { width: 40px; height: 40px; border-radius: 50%; align-self: center; margin: -0.35rem 0; transform: none; position: relative; z-index: 2; border: 3px solid var(--card-bg); }
    .swap-btn svg { width: 16px; height: 16px; transform: rotate(90deg); }
    .swap-btn:hover, .swap-btn:active { transform: scale(1.08); }
    .calc-convert-btn { padding: 1rem 1.25rem; font-size: 0.95rem; border-radius: 14px; }
    .result { min-height: 100px; padding: 1.25rem 1rem; border-radius: 16px; }
    .result .result-value { font-size: 1.5rem; }
    .result .result-code { font-size: 0.85rem; }
    .result .result-rate { font-size: 0.72rem; }
    .calc-note { font-size: 0.72rem; padding: 0 0.5rem; }
    .footer-container { padding: 0 1.25rem; }
    .footer-cta { padding: 1.5rem 1.25rem; border-radius: 20px; margin: 2rem 0; }
    .footer-cta-icon { width: 48px; height: 48px; border-radius: 14px; }
    .footer-cta-text h3 { font-size: 1rem; }
    .footer-cta-text p { font-size: 0.82rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
    .footer-section ul li a:hover { padding-left: 0.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.75rem; padding: 1.5rem 0; }
    .footer-bottom-links { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .trust-item strong { font-size: 1rem; }
    .trust-item span { font-size: 0.7rem; }
    .btn { padding: 0.85rem 1.4rem; font-size: 0.92rem; width: 100%; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .price-ticker { position: relative; top: auto; left: auto; width: 100%; margin-top: 1rem; flex-direction: row; overflow-x: auto; animation: none; transform: none; }
    .ticker-item { flex-shrink: 0; flex-direction: column; gap: 0.15rem; padding-right: 1rem; }
    .ticker-symbol, .ticker-price, .ticker-change { min-width: auto; text-align: center; }
    .contact-title { font-size: 1.6rem; }
    .about-image-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; height: 280px; gap: 0.5rem; }
    .about-floating-stat { left: 8px; bottom: 8px; padding: 0.55rem 0.75rem; border-radius: 12px; }
    .about-floating-stat .stat-icon { font-size: 1.1rem; }
    .about-floating-stat strong { font-size: 0.82rem; }
    .about-floating-stat span { font-size: 0.6rem; }
    .about-cta { width: 100%; }
    .about-features-list li { font-size: 0.88rem; }
    .img-tag { font-size: 0.6rem; padding: 0.25rem 0.6rem; bottom: 10px; left: 10px; }
}

@media (max-width: 400px) {
    .logo img { height: 36px; max-width: 130px; }
    .hamburger { width: 38px; height: 38px; padding: 8px; }
    .theme-toggle-mobile { width: 36px; height: 36px; }
    .mobile-nav-link { font-size: 0.95rem; padding: 0.75rem 0.5rem; }
    .btn-login-mobile, .btn-signup-mobile { padding: 0.75rem 0.9rem; font-size: 0.85rem; }
    .footer-logo img { height: 42px; max-width: 150px; }
    .footer-cta-text h3 { font-size: 0.95rem; }
    .footer-newsletter input { font-size: 0.82rem; }
    .social-link { width: 38px; height: 38px; }
    .social-link svg { width: 16px; height: 16px; }
}

/* ============================================
   PARTICLE CANVAS BACKGROUND
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: transparent;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
}

html[data-theme="light"] #particle-canvas {
    opacity: 0.6;
}

/* ============================================
   ABOUT COIN SECTION (Floating & Spinning)
   ============================================ */
.about-coin-section {
    padding: 8rem 2rem;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.about-coin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Left Side: Image & Animation --- */
.about-coin-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.coin-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The actual floating & spinning image */
.floating-coin-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    /* Combined Float & Spin Animation */
    animation: floatAndSpin 12s linear infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
    transform-style: preserve-3d;
}

/* Glow behind the coin */
.coin-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.25) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

/* Sparkles */
.sparkle {
    position: absolute;
    color: #fbbf24; /* Gold */
    font-size: 2rem;
    z-index: 3;
    opacity: 0;
    animation: sparkle-anim 3s ease-in-out infinite;
}

.sparkle-1 { top: 10%; left: 15%; animation-delay: 0s; font-size: 2.5rem; }
.sparkle-2 { top: 25%; right: 10%; animation-delay: 1s; font-size: 1.5rem; }
.sparkle-3 { bottom: 15%; left: 25%; animation-delay: 2s; font-size: 1.8rem; }

/* --- Right Side: Text Content --- */
.about-coin-text {
    max-width: 550px;
}

.about-coin-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.about-coin-title .highlight {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-coin-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .about-coin-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .about-coin-visual {
        order: -1;
    }
    .about-coin-text {
        max-width: 100%;
        margin: 0 auto;
    }
    .coin-wrapper {
        max-width: 350px;
    }
}

@media (max-width: 640px) {
    .about-coin-section {
        padding: 5rem 1.25rem;
    }
    .about-coin-title {
        font-size: 2rem;
    }
    .about-coin-desc {
        font-size: 0.95rem;
    }
    .sparkle { font-size: 1.5rem; }
    .sparkle-1 { font-size: 2rem; }
}