@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-warm: #faf8f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #52525b;
    --border-color: #e4e4e7;
    --surface: #ffffff;
    --surface-alt: #faf8f5;
    --hero-from: #fff8f0;
    --hero-to: #ffe8d6;
}

[data-theme="dark"] {
    --bg-warm: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --surface: #1a1a1a;
    --surface-alt: #111111;
    --hero-from: #1c1008;
    --hero-to: #1a0e00;
}

* { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logo-font { font-family: 'Space Grotesk', sans-serif; }

.hero-bg {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    transition: background 0.3s ease;
}

.surface-card {
    background-color: var(--surface);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.text-primary-c { color: var(--text-primary); }
.text-secondary-c { color: var(--text-secondary); }

.card-hover { transition: all 0.3s cubic-bezier(0.4,0,0.2,1); }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -4px rgba(249,115,22,0.15); }
.card-hover:active { transform: translateY(0) scale(0.98); }

.bottom-nav {
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: var(--surface);
    border-color: var(--border-color);
    transition: background-color 0.3s ease;
}

.token-row { transition: all 0.2s ease; }
[data-theme="dark"] .token-row:hover { background-color: #1f1505 !important; }
.token-row:hover { background-color: #fff8f0; }

.service-card { transition: all 0.25s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(249,115,22,0.12); }
.service-card:active { transform: scale(0.95); }

.gradient-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.3s ease;
}
.gradient-btn:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(249,115,22,0.3); }
.gradient-btn:active { transform: scale(0.97); }

.exchange-btn {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    transition: all 0.3s ease;
}
.exchange-btn:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 12px 32px rgba(249,115,22,0.5); }
.exchange-btn:active { transform: scale(0.95); }

.section-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #f97316, #fbbf24);
    border-radius: 2px;
    display: inline-block;
}

.faq-item { transition: all 0.3s ease; cursor: pointer; }
.faq-item:hover { border-color: #fed7aa !important; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

.nav-item { transition: all 0.2s ease; position: relative; }
.nav-item.active { color: #f97316; }
.nav-item.active::after { content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: #f97316; border-radius: 2px; }

.seo-link { color: #f97316; text-decoration: underline; text-decoration-color: #fed7aa; text-underline-offset: 3px; transition: all 0.2s ease; }
.seo-link:hover { color: #ea580c; text-decoration-color: #f97316; }

.coming-soon-badge {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.coming-soon-badge::before { content: ''; width: 6px; height: 6px; background: #f59e0b; border-radius: 50%; animation: pulse-dot 2s infinite; }

@keyframes pulse-dot { 0%,100% { opacity:1;transform:scale(1); } 50% { opacity:0.5;transform:scale(0.8); } }

.token-sparkline { width: 60px; height: 30px; }

.stagger-fade-in { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
@keyframes fadeInUp { from { opacity:0;transform:translateY(20px); } to { opacity:1;transform:translateY(0); } }

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #fed7aa; border-radius: 2px; }

.trust-badge { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 1px solid rgba(249,115,22,0.1); }
[data-theme="dark"] .trust-badge { background: rgba(30,20,5,0.8); }

/* Slide-up menu */
.slide-menu {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 448px;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
    max-height: 88vh;
    overflow-y: auto;
}
.slide-menu.open { transform: translateX(-50%) translateY(0); }
.menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0); z-index: 190; pointer-events: none; transition: background 0.4s ease; }
.menu-overlay.open { background: rgba(0,0,0,0.5); pointer-events: all; backdrop-filter: blur(4px); }
.menu-drag-handle { width: 40px; height: 4px; background: var(--border-color); border-radius: 2px; margin: 12px auto 0; }

.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.menu-grid-item:hover { background: rgba(249,115,22,0.08); transform: translateY(-2px); }
.menu-grid-item:active { transform: scale(0.95); }
.menu-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.menu-label { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-align: center; }

[data-theme="dark"] .surface-card { background-color: #1a1a1a; border-color: #27272a; }
[data-theme="dark"] .token-row { background-color: #1a1a1a !important; border-color: #27272a !important; }
[data-theme="dark"] .faq-item { background-color: #1a1a1a !important; border-color: #27272a !important; }
[data-theme="dark"] .troubleshoot-card { background-color: #1a1a1a !important; border-color: #27272a !important; }
[data-theme="dark"] .nav-item { color: #a1a1aa; }
[data-theme="dark"] .nav-item.active { color: #f97316; }
[data-theme="dark"] .disclaimer-box { background: rgba(30,20,5,0.8) !important; border-color: #78350f !important; }

@media (max-width: 480px) {
    .nav-text { font-size: 9px; }
    .service-icon { width: 44px; height: 44px; }
    .service-icon i { font-size: 20px !important; }
}

.price-flash { animation: flashGreen 0.6s ease; }
.price-flash-red { animation: flashRed 0.6s ease; }
@keyframes flashGreen { 0%,100% { background: transparent; } 50% { background: rgba(16,185,129,0.15); } }
@keyframes flashRed { 0%,100% { background: transparent; } 50% { background: rgba(239,68,68,0.1); } }

/* Dark mode for hero banner and services */
[data-theme="dark"] .defi-banner { background: linear-gradient(to right, #1c1008, #1a1000) !important; border-color: #78350f !important; }
[data-theme="dark"] .services-card { background: #1a1a1a !important; border-color: #27272a !important; }
[data-theme="dark"] .stat-card { background: rgba(30,20,5,0.6) !important; }
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-warm: #faf8f5;
    --text-primary: #1a1a1a;
    --text-secondary: #52525b;
    --border-color: #e4e4e7;
    --surface: #ffffff;
    --surface-alt: #faf8f5;
    --hero-from: #fff8f0;
    --hero-to: #ffe8d6;
}
[data-theme="dark"] {
    --bg-warm: #0f0f0f;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --surface: #1a1a1a;
    --surface-alt: #111111;
    --hero-from: #1c1008;
    --hero-to: #1a0e00;
}

* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.logo-font {
    font-family: 'Space Grotesk', sans-serif;
}

.surface-card {
    background-color: var(--surface);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.bottom-nav {
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.gradient-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.3s ease;
}
.gradient-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}
.gradient-btn:active {
    transform: scale(0.97);
}

.exchange-btn {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
}
.exchange-btn:active {
    transform: scale(0.95);
}

.nav-item {
    transition: all 0.2s ease;
    position: relative;
}
.nav-item.active {
    color: #f97316;
}

.seo-link {
    color: #f97316;
    text-decoration: underline;
    text-decoration-color: #fed7aa;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
}
.seo-link:hover {
    color: #ea580c;
    text-decoration-color: #f97316;
}

.wallet-card {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    border: 1px solid rgba(249, 115, 22, 0.15);
    border-radius: 24px;
}

.token-row {
    transition: all 0.2s ease;
    cursor: pointer;
}
.token-row:hover {
    background: rgba(249, 115, 22, 0.04);
}
.token-row:active {
    transform: scale(0.98);
}

.chart-container {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.price-pulse {
    animation: pricePulse 6s ease-in-out infinite;
}
@keyframes pricePulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.stagger-fade {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    cursor: pointer;
}
.faq-item:hover {
    border-color: #fed7aa !important;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform 0.3s ease;
}

.connect-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}
.connect-btn:hover {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

html {
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #fed7aa;
    border-radius: 2px;
}

[data-theme="dark"] .nav-item {
    color: #a1a1aa;
}
[data-theme="dark"] .nav-item.active {
    color: #f97316;
}
[data-theme="dark"] .info-card {
    background-color: #1a1a1a !important;
    border-color: #27272a !important;
}
[data-theme="dark"] .faq-item {
    background-color: #1a1a1a !important;
    border-color: #27272a !important;
}
[data-theme="dark"] .disclaimer-box {
    background: rgba(30, 20, 5, 0.8) !important;
    border-color: #78350f !important;
}

@media(max-width:480px) {
    .nav-text {
        font-size: 9px;
    }
}

.chart-time-btn {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    cursor: pointer;
}
.chart-time-btn:hover {
    background: rgba(249, 115, 22, 0.08);
    color: var(--text-primary);
}
.chart-time-btn.active {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}
[data-theme="dark"] .chart-time-btn.active {
    background: #f97316;
    color: #fff;
}
.chart-time-btn:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.token-search-input {
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-primary);
    width: 100%;
    transition: border 0.2s ease;
    outline: none;
}
.token-search-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.token-search-input::placeholder {
    color: var(--text-secondary);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.slide-menu {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    max-width: 480px;
    width: 100%;
    background: var(--surface);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
    z-index: 70;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}
.slide-menu.open {
    transform: translateX(-50%) translateY(0);
}
.menu-drag-handle {
    width: 48px;
    height: 5px;
    border-radius: 4px;
    background: var(--border-color);
    margin: 10px auto 6px;
}
.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 12px;
    transition: background 0.15s;
}
.menu-grid-item:active {
    background: rgba(249, 115, 22, 0.08);
}
.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-warm: #faf8f5;
    --text-primary: #1a1a1a;
    --text-secondary: #52525b;
    --border-color: #e4e4e7;
    --surface: #ffffff;
    --surface-alt: #faf8f5;
    --hero-from: #fff8f0;
    --hero-to: #ffe8d6;
}
[data-theme="dark"] {
    --bg-warm: #0f0f0f;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --surface: #1a1a1a;
    --surface-alt: #111111;
    --hero-from: #1c1008;
    --hero-to: #1a0e00;
}

* { -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.logo-font { font-family: 'Space Grotesk', sans-serif; }

/* Surface cards */
.surface-card {
    background-color: var(--surface);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Bottom nav */
.bottom-nav {
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.gradient-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.3s ease;
}
.gradient-btn:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(249,115,22,0.3); }
.gradient-btn:active { transform: scale(0.97); }

.exchange-btn {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    transition: all 0.3s ease;
}
.exchange-btn:active { transform: scale(0.95); }

.nav-item { transition: all 0.2s ease; position: relative; }
.nav-item.active { color: #f97316; }
.nav-item.active::after { content:''; position:absolute; bottom:-2px; left:50%; transform:translateX(-50%); width:20px; height:3px; background:#f97316; border-radius:2px; }

.seo-link { color: #f97316; text-decoration: underline; text-decoration-color: #fed7aa; text-underline-offset: 3px; transition: all 0.2s ease; }
.seo-link:hover { color: #ea580c; text-decoration-color: #f97316; }

.section-title { position:relative; display:inline-flex; align-items:center; gap:0.5rem; }
.section-title::before { content:''; width:4px; height:24px; background:linear-gradient(to bottom,#f97316,#fbbf24); border-radius:2px; display:inline-block; }

.coming-soon-badge {
    background: linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);
    color:#92400e; font-size:10px; font-weight:600; padding:2px 8px; border-radius:12px;
    display:inline-flex; align-items:center; gap:3px;
}
.coming-soon-badge::before { content:''; width:6px; height:6px; background:#f59e0b; border-radius:50%; animation:pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.5;transform:scale(0.8);} }

/* Swap widget */
.swap-card {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    border: 1px solid rgba(249,115,22,0.15);
    border-radius: 24px;
}
.swap-input-box {
    background: var(--surface);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.swap-input-box:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}
.swap-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    width: 100%;
}
.swap-input::placeholder { color: var(--border-color); }
.token-select-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--surface-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px; padding: 8px 12px;
    cursor: pointer; transition: all 0.2s ease;
    white-space: nowrap; min-width: 110px;
}
.token-select-btn:hover { border-color: #f97316; background: rgba(249,115,22,0.05); }

.swap-arrow-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease;
    margin: -4px auto;
    position: relative; z-index: 2;
}
.swap-arrow-btn:hover { border-color: #f97316; color: #f97316; transform: rotate(180deg); }

.rate-row { background: rgba(249,115,22,0.05); border-radius: 12px; }

/* Slippage modal */
.slip-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);z-index:160;display:none;align-items:flex-end;justify-content:center; }
.slip-overlay.open { display:flex; }
.slip-sheet { background:var(--surface);border-radius:24px 24px 0 0;padding:20px;width:100%;max-width:448px; }
.slip-btn { border:1.5px solid var(--border-color);border-radius:12px;padding:10px 16px;font-weight:600;font-size:14px;cursor:pointer;transition:all 0.2s ease;background:var(--surface);color:var(--text-primary); }
.slip-btn.active { background:linear-gradient(135deg,#f97316,#ea580c);color:white;border-color:#f97316; }
.slip-btn:hover:not(.active) { border-color:#f97316;color:#f97316; }
.slip-input { background:var(--surface-alt);border:1.5px solid var(--border-color);border-radius:12px;padding:10px 14px;font-weight:600;font-size:14px;color:var(--text-primary);outline:none;transition:border-color 0.2s ease; }
.slip-input:focus { border-color:#f97316; }

/* Token picker */
.picker-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);z-index:170;display:none;align-items:flex-end;justify-content:center; }
.picker-overlay.open { display:flex; }
.picker-sheet { background:var(--surface);border-radius:24px 24px 0 0;width:100%;max-width:448px;max-height:75vh;display:flex;flex-direction:column; }
.picker-search { background:var(--surface-alt);border:1.5px solid var(--border-color);border-radius:12px;padding:10px 14px;font-size:14px;color:var(--text-primary);outline:none;width:100%;transition:border-color 0.2s ease; }
.picker-search:focus { border-color:#f97316; }
.picker-token-row { display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;transition:background 0.15s ease;border-radius:12px; }
.picker-token-row:hover { background:rgba(249,115,22,0.06); }
.picker-token-row:active { transform:scale(0.98); }

/* Slide menu */
.slide-menu { position:fixed;bottom:0;left:50%;transform:translateX(-50%) translateY(100%);width:100%;max-width:448px;background:var(--surface);border-radius:24px 24px 0 0;z-index:200;transition:transform 0.4s cubic-bezier(0.32,0.72,0,1);box-shadow:0 -20px 60px rgba(0,0,0,0.2);max-height:88vh;overflow-y:auto; }
.slide-menu.open { transform:translateX(-50%) translateY(0); }
.menu-overlay { position:fixed;inset:0;background:rgba(0,0,0,0);z-index:190;pointer-events:none;transition:background 0.4s ease; }
.menu-overlay.open { background:rgba(0,0,0,0.5);pointer-events:all;backdrop-filter:blur(4px); }
.menu-drag-handle { width:40px;height:4px;background:var(--border-color);border-radius:2px;margin:12px auto 0; }
.menu-grid-item { display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 8px;border-radius:16px;transition:all 0.2s ease;text-decoration:none; }
.menu-grid-item:hover { background:rgba(249,115,22,0.08);transform:translateY(-2px); }
.menu-grid-item:active { transform:scale(0.95); }
.menu-icon { width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center; }
.menu-label { font-size:11px;font-weight:600;color:var(--text-secondary);text-align:center; }

/* FAQ accordion */
.faq-item { cursor:pointer; }
.faq-item:hover { border-color:#fed7aa !important; }
.faq-answer { max-height:0;overflow:hidden;transition:max-height 0.4s ease,padding 0.3s ease; }
.faq-item.open .faq-answer { max-height:300px; }
.faq-item.open .faq-chevron { transform:rotate(180deg); }
.faq-chevron { transition:transform 0.3s ease; }

/* Stagger fade */
.stagger-fade { animation:fadeInUp 0.6s ease forwards;opacity:0; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);} }

html { scroll-behavior:smooth; }
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:#f1f1f1; }
::-webkit-scrollbar-thumb { background:#fed7aa;border-radius:2px; }

[data-theme="dark"] .swap-input { color: var(--text-primary); }
[data-theme="dark"] .rate-row { background: rgba(249,115,22,0.08); }
[data-theme="dark"] .picker-token-row:hover { background: rgba(249,115,22,0.08); }
[data-theme="dark"] .faq-item { background-color:#1a1a1a !important;border-color:#27272a !important; }
[data-theme="dark"] .info-card { background-color:#1a1a1a !important;border-color:#27272a !important; }
[data-theme="dark"] .nav-item { color:#a1a1aa; }
[data-theme="dark"] .nav-item.active { color:#f97316; }
[data-theme="dark"] .disclaimer-box { background:rgba(30,20,5,0.8) !important;border-color:#78350f !important; }

@media(max-width:480px){
    .nav-text{font-size:9px;}
    .swap-input{font-size:22px;}
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-warm: #faf8f5;
    --text-primary: #1a1a1a;
    --text-secondary: #52525b;
    --border-color: #e4e4e7;
    --surface: #ffffff;
    --surface-alt: #faf8f5;
    --hero-from: #fff8f0;
    --hero-to: #ffe8d6;
    --kyc-accent: #4f46e5; /* indigo accent for KYCPort blend */
}
[data-theme="dark"] {
    --bg-warm: #0f0f0f;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --surface: #1a1a1a;
    --surface-alt: #111111;
    --hero-from: #1c1008;
    --hero-to: #1a0e00;
    --kyc-accent: #818cf8;
}

* { -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.logo-font { font-family: 'Space Grotesk', sans-serif; }

.surface-card {
    background-color: var(--surface);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.bottom-nav {
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.gradient-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.3s ease;
}
.gradient-btn:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(249,115,22,0.3); }
.gradient-btn:active { transform: scale(0.97); }

.kyc-gradient-btn {
    background: linear-gradient(135deg, var(--kyc-accent) 0%, #7c3aed 100%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}
.kyc-gradient-btn:hover { background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79,70,229,0.4); }
.kyc-gradient-btn:active { transform: scale(0.95); }

.exchange-btn {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    transition: all 0.3s ease;
}
.exchange-btn:active { transform: scale(0.95); }

.nav-item { transition: all 0.2s ease; position: relative; }
.nav-item.active { color: #f97316; }

.seo-link { color: #f97316; text-decoration: underline; text-decoration-color: #fed7aa; text-underline-offset: 3px; transition: all 0.2s ease; }
.seo-link:hover { color: #ea580c; text-decoration-color: #f97316; }
.kyc-seo-link { color: var(--kyc-accent); text-decoration: underline; text-decoration-color: #c7d2fe; text-underline-offset: 3px; transition: all 0.2s ease; }
.kyc-seo-link:hover { color: #4338ca; text-decoration-color: var(--kyc-accent); }

.kyc-card {
    background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 24px;
}

.stagger-fade { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);} }

.faq-item { cursor: pointer; }
.faq-item:hover { border-color: #c7d2fe !important; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c7d2fe; border-radius: 2px; }

[data-theme="dark"] .nav-item { color: #a1a1aa; }
[data-theme="dark"] .nav-item.active { color: #f97316; }
[data-theme="dark"] .info-card { background-color: #1a1a1a !important; border-color: #27272a !important; }
[data-theme="dark"] .faq-item { background-color: #1a1a1a !important; border-color: #27272a !important; }
[data-theme="dark"] .disclaimer-box { background: rgba(30,20,5,0.8) !important; border-color: #78350f !important; }

@media(max-width:480px){
    .nav-text{font-size:9px;}
}

/* KYCPort status badge */
.status-badge {
    background: rgba(79, 70, 229, 0.12);
    color: var(--kyc-accent);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(79,70,229,0.2);
}
.status-badge i { margin-right: 4px; }
/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Slide Menu – Bottom Drawer */
.slide-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: var(--surface);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    padding-bottom: env(safe-area-inset-bottom);
}
.slide-menu.open {
    transform: translateY(0);
}

/* Drag handle (the little pill at the top) */
.slide-menu .menu-drag-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--border-color);
    margin: 12px auto 0;
    flex-shrink: 0;
}

/* Menu grid items */
.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 4px 0;
    border-radius: 12px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.menu-grid-item:active {
    transform: scale(0.94);
}
.menu-grid-item .menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.menu-grid-item .menu-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --bg-warm: #faf8f5;
    --text-primary: #1a1a1a;
    --text-secondary: #52525b;
    --border-color: #e4e4e7;
    --surface: #ffffff;
    --surface-alt: #faf8f5;
    --kyc-accent: #4f46e5;
    --toast-bg: #1a1a1a;
}
[data-theme="dark"] {
    --bg-warm: #0f0f0f;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border-color: #27272a;
    --surface: #1a1a1a;
    --surface-alt: #111111;
    --kyc-accent: #818cf8;
    --toast-bg: #2a2a2a;
}
* { -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-warm);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.logo-font { font-family: 'Space Grotesk', sans-serif; }
.surface-card {
    background-color: var(--surface);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.bottom-nav {
    box-shadow: 0 -8px 32px rgba(0,0,0,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}
.gradient-btn {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transition: all 0.3s ease;
}
.gradient-btn:hover { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(249,115,22,0.3); }
.gradient-btn:active { transform: scale(0.97); }
.kyc-gradient-btn {
    background: linear-gradient(135deg, var(--kyc-accent) 0%, #7c3aed 100%);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}
.kyc-gradient-btn:hover { background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79,70,229,0.4); }
.kyc-gradient-btn:active { transform: scale(0.95); }
.exchange-btn {
    background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    transition: all 0.3s ease;
}
.exchange-btn:active { transform: scale(0.95); }
.nav-item { transition: all 0.2s ease; position: relative; }
.nav-item.active { color: #f97316; }
.social-btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}
.social-btn:hover { background: var(--surface-alt); border-color: var(--kyc-accent); }
.social-btn:active { transform: scale(0.96); }
.toggle-link { color: var(--kyc-accent); cursor: pointer; font-weight: 600; }
.toggle-link:hover { text-decoration: underline; }
.wallet-status { font-size: 0.8rem; color: var(--text-secondary); }

/* Toast notification */
#toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--toast-bg);
    color: #fff;
    padding: 12px 28px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}
#toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
#toast i { margin-right: 10px; }

/* Menu overlay + slide (reused) */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.slide-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--surface);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    padding-bottom: env(safe-area-inset-bottom);
}
.slide-menu.open { transform: translateY(0); }
.slide-menu .menu-drag-handle {
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--border-color);
    margin: 12px auto 0;
    flex-shrink: 0;
}
.menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 4px 0;
    border-radius: 12px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.menu-grid-item:active { transform: scale(0.94); }
.menu-grid-item .menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.menu-grid-item .menu-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}
body.menu-open { overflow: hidden; }

/* FAQ */
.faq-item { cursor: pointer; }
.faq-item:hover { border-color: #c7d2fe !important; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 600px; padding-top: 8px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* SEO links */
.seo-link { color: #f97316; text-decoration: underline; text-decoration-color: #fed7aa; text-underline-offset: 3px; transition: all 0.2s ease; }
.seo-link:hover { color: #ea580c; text-decoration-color: #f97316; }
.kyc-seo-link { color: var(--kyc-accent); text-decoration: underline; text-decoration-color: #c7d2fe; text-underline-offset: 3px; transition: all 0.2s ease; }
.kyc-seo-link:hover { color: #4338ca; text-decoration-color: var(--kyc-accent); }

/* Spinner on button */
.spinner { display: none; }
.connecting .spinner { display: inline-block; }
.connecting .btn-text { display: none; }
.connecting { pointer-events: none; opacity: 0.7; }