/* Tokd mobile mockups — shared design tokens */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
    --bg: #0a0a12;
    --surface: #12121e;
    --surface-hover: #1a1a2a;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255,100,80,0.08);
    --text: #f0ece4;
    --text-dim: rgba(240,236,228,0.5);
    --text-dimmer: rgba(240,236,228,0.35);
    --coral: #ff6450;
    --coral-soft: rgba(255,100,80,0.12);
    --coral-glow: rgba(255,100,80,0.3);
    --accent: #ff6450;
    --lime: #c8ff00;
    --lime-soft: rgba(200,255,0,0.08);
    --lavender: #a78bfa;
    --lavender-soft: rgba(167,139,250,0.12);
    --green: #4ade80;
    --green-soft: rgba(74,222,128,0.1);
    --red: #ef4444;
    --yellow: #facc15;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 100px;

    /* Mobile-first spacing */
    --pad-page: 16px;
    --pad-page-sm: 12px;
    --touch: 48px; /* minimum touch target */
    --nav-top: 56px;
    --nav-bot: 64px;

    /* Shadows */
    --shadow-glass: 0 8px 32px rgba(0,0,0,0.35);
    --shadow-coral: 0 8px 32px rgba(255,100,80,0.25);
    --shadow-lift: 0 2px 12px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

/* Ambient coral/lime glow shared across mockups */
body::before {
    content: '';
    position: fixed;
    inset: -50%;
    background:
        radial-gradient(circle at 30% 15%, rgba(255,100,80,0.10) 0%, transparent 45%),
        radial-gradient(circle at 75% 85%, rgba(200,255,0,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 10%, rgba(167,139,250,0.06) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Typography helpers */
.display { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.heading { font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.dim { color: var(--text-dim); }
.dimmer { color: var(--text-dimmer); }

/* Universal utilities */
.flex { display: flex; }
.col { flex-direction: column; }
.center { align-items: center; justify-content: center; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }

/* Button system — mobile friendly (min 48px tap target) */
.btn {
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-pill);
    border: 0;
    font: 600 15px 'Space Grotesk', sans-serif;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--coral); color: #111; box-shadow: var(--shadow-coral); }
.btn-lime { background: var(--lime); color: #111; }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--glass-border); }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Chip / pill */
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--radius-pill);
    background: var(--glass); border: 1px solid var(--glass-border);
    font-size: 12px; font-weight: 500; color: var(--text-dim);
}
.chip-coral { background: var(--coral-soft); color: var(--coral); border-color: rgba(255,100,80,0.25); }
.chip-lime  { background: var(--lime-soft);  color: var(--lime);  border-color: rgba(200,255,0,0.25); }
.chip-lav   { background: var(--lavender-soft); color: var(--lavender); border-color: rgba(167,139,250,0.25); }

/* Card */
.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Top nav */
.topnav {
    position: sticky; top: 0; z-index: 50;
    height: var(--nav-top);
    padding: 0 var(--pad-page);
    background: rgba(10,10,18,0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.brand { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand::after { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--coral); border-radius: 50%; margin-left: 3px; vertical-align: super; }

.icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--glass); border: 1px solid var(--glass-border);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text); cursor: pointer;
}

/* Bottom tab nav (mobile) */
.bottomnav {
    position: sticky; bottom: 0; z-index: 50;
    height: calc(var(--nav-bot) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10,10,18,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.bottomnav .tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 4px;
    color: var(--text-dimmer); font-size: 10px; font-weight: 600; letter-spacing: 0.03em;
    position: relative;
}
.bottomnav .tab.active { color: var(--coral); }
.bottomnav .tab.active::before {
    content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 2px;
    background: var(--coral); border-radius: 0 0 3px 3px;
}
.bottomnav svg { width: 22px; height: 22px; }

/* Scroll area for mocked viewports */
.scroll {
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
