/* ═══════════════════════════════════════════════════════════
   CryptoMiner — Deep Space Futuristic Theme
   Inspired by: Figma Cloud Mining concept
   Font stack: Rajdhani (display) + DM Sans (body)
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Backgrounds — deep navy/indigo cosmos */
    --c-bg:           #141320;
    --c-bg-alt:       #1C1B28;
    --c-surface:      #252433;
    --c-surface2:     #2E2C3E;
    --c-surface3:     #383649;
    --c-border:       #3D3B50;
    --c-border-hi:    #4D4A66;

    /* Text */
    --c-text:         #E8E6F0;
    --c-text-2:       #8C89A8;
    --c-text-3:       #4E4B68;

    /* Accent palette */
    --c-cyan:         #9E9BBE;
    --c-cyan-glow:    rgba(158,155,190,.14);
    --c-purple:       #7A77A0;
    --c-purple-glow:  rgba(122,119,160,.14);
    --c-gold:         #E8A838;
    --c-gold-glow:    rgba(232,168,56,.12);
    --c-green:        #5FC49A;
    --c-green-glow:   rgba(95,196,154,.12);
    --c-orange:       #C8834A;
    --c-red:          #C05A5A;

    /* Legacy compat (modals use these) */
    --c-neon-cyan:    #9E9BBE;
    --c-neon-purple:  #7A77A0;
    --c-neon-green:   #5FC49A;
    --c-neon-orange:  #C8834A;
    --c-primary:      #4A4860;
    --c-primary-l:    #6A6888;
    --c-silver:       #8A9098;
    --c-energy:       #9E9BBE;
    --c-success:      #5FC49A;
    --c-error:        #C05A5A;
    --c-warning:      #C8834A;

    --r-sm: 8px;   --r-md: 12px;
    --r-lg: 16px;  --r-xl: 20px; --r-2xl: 24px;
    --nav-h: 64px;
    --top-h: 60px;
    --shadow-sm:   0 1px 4px rgba(0,0,0,.35);
    --shadow-md:   0 4px 24px rgba(0,0,0,.5);
    --shadow-neon: 0 0 28px rgba(158,155,190,.12);
    --t-fast: 140ms ease;
    --t-med:  240ms ease;
    --t-slow: 380ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%; overflow-x: hidden;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 14px; font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body {
    display: flex; flex-direction: column;
    max-width: 480px; margin: 0 auto;
    position: relative;
}

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img    { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   LOADING SCREEN
═══════════════════════════════════════════════════════════ */
#loading-screen {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--c-bg); gap: 18px;
}
.loader-logo {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, #4A4860, #7E8A94);
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    box-shadow: 0 0 0 1px rgba(158,155,190,.3), 0 0 48px rgba(158,155,190,.3);
    animation: loaderPulse 2s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(158,155,190,.25), 0 0 30px rgba(158,155,190,.2); transform: scale(1); }
    50%       { box-shadow: 0 0 0 2px rgba(158,155,190,.4),  0 0 60px rgba(158,155,190,.4); transform: scale(1.04); }
}
.loader-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 600;
    color: var(--c-text-2); letter-spacing: 3px; text-transform: uppercase;
}
.loader-dots::after {
    content: ''; animation: dots 1.2s steps(3,end) infinite;
}
@keyframes dots { 0%{content:'';} 33%{content:'.';} 66%{content:'..';} 100%{content:'...';} }

/* ═══════════════════════════════════════════════════════════
   ERROR SCREEN
═══════════════════════════════════════════════════════════ */
#error-screen {
    display: none; position: fixed; inset: 0; z-index: 9998;
    flex-direction: column; align-items: center; justify-content: center;
    background: var(--c-bg); gap: 12px; padding: 32px; text-align: center;
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR — User Profile Header
═══════════════════════════════════════════════════════════ */
#top-bar {
    position: sticky; top: 0; z-index: 100;
    height: var(--top-h);
    background: rgba(8,13,34,.97);
    border-bottom: 1px solid rgba(99,88,194,.22);
    display: flex; align-items: center;
    padding: 0 14px; gap: 10px;
    box-shadow: 0 2px 24px rgba(0,0,0,.45);
}
#top-bar::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, rgba(99,88,194,.5) 30%, rgba(92,181,212,.5) 60%, transparent 100%);
    pointer-events: none;
}

.tb-user {
    display: flex; align-items: center; gap: 10px;
    flex: 1; min-width: 0;
}
.tb-avatar {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2D2B4A 0%, #3D3B5E 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px rgba(99,88,194,.45), 0 3px 12px rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 17px; font-weight: 700; color: var(--c-text);
    overflow: hidden;
    user-select: none;
}
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tb-user-info { min-width: 0; }
.tb-username {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--c-text);
    letter-spacing: .3px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-subtitle {
    font-size: 10px;
    background: linear-gradient(90deg, #6358C2, #5CB5D4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase; letter-spacing: 1px; line-height: 1;
    margin-top: 2px; font-weight: 700;
}

.top-bar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#btn-lang, #btn-help {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.09);
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast); color: rgba(160,155,195,.7);
    flex-shrink: 0;
}
#btn-lang svg, #btn-help svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#btn-lang:hover, #btn-help:hover {
    background: rgba(99,88,194,.18);
    border-color: rgba(99,88,194,.45);
    color: rgba(180,175,215,1);
}

/* ═══════════════════════════════════════════════════════════
   BALANCE BAR
═══════════════════════════════════════════════════════════ */
#balance-bar {
    display: flex; gap: 6px; padding: 8px 12px 10px;
    background: rgba(6,9,26,.98);
    border-bottom: 1px solid rgba(99,88,194,.15);
}
.bal-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 8px 4px; border-radius: 12px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    gap: 2px; min-width: 0;
    transition: all var(--t-fast);
    position: relative; overflow: hidden;
}
.bal-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(99,88,194,.06) 0%, transparent 60%);
    pointer-events: none;
}
.bal-icon  { font-size: 16px; line-height: 1; }
.bal-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700; color: var(--c-text);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.bal-label { font-size: 8px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .8px; }

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════ */
#app-content {
    flex: 1; overflow-y: auto;
    padding-bottom: calc(var(--nav-h) + 8px);
    -webkit-overflow-scrolling: touch;
}
.page { display: none; animation: pageFade var(--t-med); }
.page.active { display: block; }
@keyframes pageFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Other pages (tasks, referral, wallet, market) */
#page-tasks, #page-referral, #page-wallet, #page-market {
    padding: 16px;
}
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.section-title { font-family: 'Rajdhani', sans-serif; font-size: 19px; font-weight: 700; color: var(--c-text); letter-spacing: .5px; }

/* ═══════════════════════════════════════════════════════════
   HOME PAGE — CLOUD MINING DASHBOARD
═══════════════════════════════════════════════════════════ */
#page-home {
    padding: 0; position: relative; overflow: hidden;
    min-height: calc(100dvh - var(--top-h) - 42px);
    background: radial-gradient(ellipse 110% 60% at 50% 0%, #0D1840 0%, #141320 55%);
}

/* ── Ambient atmospheric layers ──────────────────────────── */
.home-ambience {
    position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.amb-glow-1 {
    position: absolute; top: -15%; left: 38%; transform: translateX(-50%);
    width: 360px; height: 360px;
    background: radial-gradient(circle at center, rgba(122,119,160,.15) 0%, transparent 65%);
    animation: drift1 10s ease-in-out infinite;
}
.amb-glow-2 {
    position: absolute; top: 30%; right: -5%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(158,155,190,.09) 0%, transparent 70%);
    animation: drift2 14s ease-in-out infinite;
}
.amb-glow-3 {
    position: absolute; top: 55%; left: -8%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(122,119,160,.07) 0%, transparent 70%);
    animation: drift3 12s ease-in-out infinite;
}
@keyframes drift1 { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(-22px);} }
@keyframes drift2 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(18px);} }
@keyframes drift3 { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-14px);} }

/* Subtle dot grid */
.amb-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(158,155,190,.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 55% at 50% 20%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 20%, black 0%, transparent 75%);
}

/* ── Status row ───────────────────────────────────────────── */
.home-status-row {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px 0;
}
.mining-live-dot {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; color: var(--c-text-2);
    text-transform: uppercase; letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
}
.live-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #5FC49A;
    box-shadow: 0 0 8px rgba(95,196,154,.6), 0 0 16px rgba(95,196,154,.2);
    animation: livePulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.75); }
}

/* Claim All — Figma glassmorphism style */
#btn-claim-all {
    display: none; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 20px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1),
                inset 0 30px 0 rgba(255,255,255,.03);
    transition: box-shadow var(--t-fast), transform var(--t-fast), background var(--t-fast);
    position: relative; overflow: hidden;
}
#btn-claim-all::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(122,119,160,.25) 0%, rgba(158,155,190,.15) 100%);
    pointer-events: none;
}
#btn-claim-all:active { transform: scale(.95); }
#btn-claim-all:hover  { background: rgba(255,255,255,.08); }

/* ── Hero Cluster (Isometric server visualization) ─────── */
.hero-cluster-wrap {
    position: relative; z-index: 2;
    display: flex; align-items: flex-end; justify-content: center;
    height: 255px;
    padding: 0 0 0;
}
.hero-ground-glow {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 260px; height: 80px;
    background: radial-gradient(ellipse at center bottom, rgba(158,155,190,.14) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Isometric SVG ──────────────────────────────────────── */
.iso-svg {
    width: 100%; max-width: 350px; height: auto;
    filter: drop-shadow(0 12px 40px rgba(32,30,45,.35))
            drop-shadow(0 0 1px rgba(158,155,190,.15));
}

/* LED blink animations */
.iso-led         { animation: ledBlink 2.8s ease-in-out infinite; }
.iso-led-2       { animation-delay: .7s;  animation-duration: 3.3s; }
.iso-led-3       { animation-delay: 1.4s; animation-duration: 2.6s; }
.iso-led-4       { animation-delay: 2.1s; animation-duration: 3.8s; }
@keyframes ledBlink {
    0%,88%,100% { opacity: 1; }
    92%          { opacity: .1; }
}
.iso-led-5 { animation-delay: 0.3s;  animation-duration: 2.2s; }
.iso-led-6 { animation-delay: 1.9s;  animation-duration: 3.1s; }
.iso-led-7 { animation-delay: 2.6s;  animation-duration: 4.4s; }
.iso-led-8 { animation-delay: 0.9s;  animation-duration: 2.9s; }
/* Floating particles */
.float-particle  { animation: ptFloat 4.5s ease-in-out infinite; }
.float-p2        { animation-delay: 1.1s; animation-duration: 5.8s; }
.float-p3        { animation-delay: 2.3s; animation-duration: 4.2s; }
.float-p4        { animation-delay: .6s;  animation-duration: 6.1s; }
@keyframes ptFloat {
    0%,100% { transform: translateY(0);   opacity: .7; }
    50%      { transform: translateY(-8px); opacity: 1; }
}
.float-p5 { animation-delay: 1.8s; animation-duration: 5.2s; }
.float-p6 { animation-delay: 3.1s; animation-duration: 4.8s; }
.float-p7 { animation-delay: 0.4s; animation-duration: 7.1s; }
.float-p8 { animation-delay: 2.7s; animation-duration: 3.9s; }
.float-p9 { animation-delay: 1.2s; animation-duration: 6.3s; }

/* ── Cluster live rate badge ────────────────────────────── */
.cluster-rate-badge {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 6px;
    background: rgba(8,13,34,.78);
    border: 1px solid rgba(158,155,190,.22);
    border-radius: 99px; padding: 6px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
}
.crb-icon { font-size: 15px; line-height: 1; }
.crb-val  {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px; font-weight: 700; color: var(--c-gold);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.crb-unit { font-size: 10px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .7px; }

/* ── Hero total accumulated gold (center of SVG cluster) ── */
.hero-total-wrap {
    position: absolute;
    bottom: 26px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    pointer-events: none;
}
.hero-total-gold {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px; font-weight: 700;
    color: var(--c-gold);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px; line-height: 1;
    text-shadow: 0 0 20px rgba(232,168,56,.4), 0 2px 8px rgba(0,0,0,.5);
    animation: goldPulse 3s ease-in-out infinite;
}
.hero-total-lbl {
    font-size: 9px; font-weight: 600; color: var(--c-text-3);
    text-transform: uppercase; letter-spacing: 1.2px;
}
@keyframes goldPulse {
    0%, 100% { text-shadow: 0 0 16px rgba(232,168,56,.35), 0 2px 8px rgba(0,0,0,.5); }
    50%       { text-shadow: 0 0 32px rgba(232,168,56,.65), 0 0 48px rgba(232,168,56,.2), 0 2px 8px rgba(0,0,0,.5); }
}

/* ── Nodes section (horizontal scroll) ─────────────────── */
.nodes-section {
    position: relative; z-index: 2;
    padding: 0 14px 14px;
}
.nodes-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px; font-weight: 700;
    color: var(--c-text-3);
    text-transform: uppercase; letter-spacing: 1.2px;
}
.nodes-count-badge {
    font-size: 10px; font-weight: 700;
    background: var(--c-cyan-glow);
    color: var(--c-cyan);
    border: 1px solid rgba(158,155,190,.2);
    padding: 2px 9px; border-radius: 99px;
    font-family: 'DM Sans', sans-serif;
}

/* GPU Grid — 4 column, shows all 12 slots */
#grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-bottom: 4px;
}

/* Individual GPU node slot */
.grid-slot {
    aspect-ratio: 4/5;
    border-radius: 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    overflow: hidden; position: relative;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
    cursor: pointer;
}
.grid-slot:active { transform: scale(.96); }
.grid-slot.active {
    border-color: rgba(95,196,154,.3);
    box-shadow: 0 0 16px rgba(95,196,154,.1);
}
.grid-slot.inactive { border-color: rgba(200,131,74,.3); }
.grid-slot.empty {
    border-style: dashed; border-color: var(--c-border-hi);
    display: flex; align-items: center; justify-content: center;
    opacity: .5;
}
.grid-slot.empty:hover { opacity: .85; border-color: var(--c-cyan); }

/* Glow strip at top of active/inactive nodes */
.grid-slot.active::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 10%, #5FC49A 50%, transparent 90%);
}
.grid-slot.inactive::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 10%, #C8834A 50%, transparent 90%);
}

.slot-empty { font-size: 28px; color: var(--c-text-3); text-align: center; padding: 8px; line-height: 1; }

/* GPU card inner content */
.gpu-card {
    width: 100%; height: 100%;
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 4px 7px; gap: 3px; position: relative;
}
.gpu-badge {
    position: absolute; top: 5px; right: 5px;
    font-size: 7px; font-weight: 700; letter-spacing: .3px;
    padding: 1px 4px; border-radius: 99px; text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}
.badge-active   { background: rgba(95,196,154,.12); color: var(--c-green); }
.badge-inactive { background: rgba(200,131,74,.12); color: var(--c-orange); }
.badge-device   { background: rgba(232,168,56,.12); color: var(--c-gold);   font-size: 7px; padding: 1px 4px; border-radius: 99px; font-family: 'Rajdhani',sans-serif; font-weight:700; }

.gpu-image { display: flex; align-items: center; justify-content: center; }
.gpu-image img { width: 50px; height: 50px; object-fit: contain; }
.gpu-icon-fallback { font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center; }

.gpu-name {
    font-size: 10px; font-weight: 600; color: var(--c-text-2);
    text-align: center; line-height: 1.2; letter-spacing: .2px;
}

.card-earnings { width: 100%; text-align: center; }
.earn-g {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700;
    color: var(--c-gold); font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.earn-epd {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px; font-weight: 700;
    color: var(--c-gold); font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.earn-s { display: none; }
.card-no-energy {
    font-size: 13px; color: var(--c-orange); text-align: center;
    line-height: 1;
}

/* Energy device active slot */
.grid-slot.dev-active {
    border-color: rgba(232,168,56,.3);
    box-shadow: 0 0 12px rgba(232,168,56,.08);
}
.grid-slot.dev-active::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--c-gold) 50%, transparent 90%);
}
:root { --c-energy-bar: var(--c-gold); }

/* Energy bar at bottom of node */
.node-ebar-wrap {
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: rgba(255,255,255,.06);
}
.node-ebar { height: 100%; border-radius: 0 3px 3px 0; transition: width 1s linear; }
.card-energy-txt {
    font-size: 9px; color: rgba(255,255,255,.45); text-align: center;
    padding: 2px 0 0; line-height: 1; letter-spacing: .2px;
}

/* Loading placeholder */
.node-loading {
    font-size: 12px; color: var(--c-text-3); padding: 20px; white-space: nowrap;
}

/* ── Floating Glass Dock ────────────────────────────────── */
.home-dock {
    position: relative; z-index: 10;
    margin: 10px 12px 10px;
    padding: 12px 14px;
    background: var(--c-surface);           /* #252433 — matches header */
    border: 1px solid var(--c-border-hi);
    border-radius: 16px;
    display: flex; align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.dock-stat { flex: 1; text-align: center; padding: 0 4px; }
.dock-stat-lbl {
    font-size: 9px; font-weight: 600; color: #cecce1;
    text-transform: uppercase; letter-spacing: .8px;
    margin-bottom: 3px;
}
.dock-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px; font-weight: 700; color: var(--c-gold);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.dock-divider {
    width: 1px; height: 38px;
    background: linear-gradient(to bottom, transparent, var(--c-border-hi), transparent);
    flex-shrink: 0; margin: 0 8px;
}

/* Dock action button — Figma style bright CTA */
.dock-expand-btn {
    padding: 8px 16px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--c-cyan);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: .5px;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1),
                inset 0 30px 0 rgba(255,255,255,.03),
                0 0 20px rgba(158,155,190,.15);
    transition: box-shadow var(--t-fast), transform var(--t-fast);
    white-space: nowrap;
    position: relative; overflow: hidden;
}
.dock-expand-btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(158,155,190,.12) 0%, rgba(106,104,136,.06) 100%);
    pointer-events: none;
}
.dock-expand-btn:hover  { box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1), inset 0 30px 0 rgba(255,255,255,.03), 0 0 32px rgba(158,155,190,.3); }
.dock-expand-btn:active { transform: scale(.95); }

.expand-cost-badge {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    background: rgba(0,0,0,.2);
    padding: 2px 7px; border-radius: 6px; margin-left: 2px;
}

#claim-info { text-align: center; font-size: 12px; color: var(--c-green); padding: 4px 0; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
═══════════════════════════════════════════════════════════ */
#bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    height: var(--nav-h);
    background: rgba(5,8,24,.97);
    border-top: 1px solid rgba(99,88,194,.2);
    display: flex; align-items: center;
    padding: 0 10px; z-index: 200;
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    box-shadow: 0 -12px 48px rgba(0,0,0,.55), 0 -1px 0 rgba(99,88,194,.15);
    gap: 4px;
}
.nav-item {
    flex: 1; height: calc(100% - 8px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; cursor: pointer;
    transition: all var(--t-fast);
    color: rgba(160,155,195,.5);
    border-radius: 14px; padding: 6px 2px;
    position: relative;
}
.nav-item:active { transform: scale(.94); }
.nav-item:hover  { color: rgba(160,155,195,.8); }
.nav-item.active {
    color: #fff;
    background: rgba(99,88,194,.15);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.nav-item.active .nav-icon-wrap {
    background: linear-gradient(135deg, #5448A8, #4899B8);
    box-shadow: 0 4px 16px rgba(99,88,194,.45);
}
.nav-icon-wrap {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--t-fast);
    background: transparent;
    font-size: 18px; line-height: 1;
}
.nav-icon  { font-size: 19px; line-height: 1; }
.nav-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 9.5px; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */
#toast {
    position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2E2C3E; color: #E8E6F0;
    border: 1px solid #4D4A66;
    padding: 10px 22px; border-radius: 99px;
    font-size: 13px; font-weight: 600;
    z-index: 9500; white-space: nowrap;
    opacity: 0; transition: opacity .18s, transform .18s;
    max-width: calc(100% - 32px); text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,.5);
}
#toast.show          { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.toast-success { background: #1A3A28; color: #78F0B0; border-color: rgba(120,240,176,.35); }
#toast.toast-error   { background: #3C1818; color: #FF9090; border-color: rgba(255,100,100,.35); }
#toast.toast-info    { background: #1A2040; color: #A8B8FF; border-color: rgba(140,160,255,.35); }
#toast.toast-warning { background: #2A2010; color: #FFD080; border-color: rgba(255,180,50,.35); }

/* ═══════════════════════════════════════════════════════════
   CARDS (general component)
═══════════════════════════════════════════════════════════ */
.card {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: 16px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS (general)
═══════════════════════════════════════════════════════════ */
.btn {
    padding: 13px 22px; border-radius: var(--r-lg);
    font-size: 14px; font-weight: 600;
    transition: opacity var(--t-fast), transform var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:active   { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    box-shadow: 0 4px 4px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.12),
                inset 0 24px 0 rgba(255,255,255,.04);
    border-radius: 10px;
    position: relative; overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(122,119,160,.35) 0%, rgba(106,104,136,.2) 100%);
    pointer-events: none;
}
.btn-primary:hover { background: rgba(255,255,255,.09); }

.btn-secondary {
    width: 100%;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--c-text-2);
    box-shadow: 0 2px 8px rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.04);
    border-radius: 10px;
}
.btn-ghost { color: var(--c-cyan); font-size: 13px; padding: 8px 16px; }

/* ── Wallet tabs ──────────────────────────────────────────── */
.wallet-tab {
    flex: 1; padding: 9px 8px;
    border-radius: 10px;
    background: var(--c-surface2); border: 1px solid var(--c-border);
    color: var(--c-text-2); font-size: 12px; font-weight: 600;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.wallet-tab.active { background: var(--c-surface3); color: var(--c-cyan); border-color: rgba(158,155,190,.3); }

/* ── Market tabs ──────────────────────────────────────────── */
#market-tabs {
    display: flex; gap: 6px;
    padding: 14px 14px 0;
}
.market-tab {
    flex: 1; padding: 10px 8px 11px;
    border-radius: 10px;
    background: var(--c-surface2); border: 1px solid var(--c-border);
    color: var(--c-text-2);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .4px;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.market-tab.active {
    background: var(--c-surface3);
    color: var(--c-gold);
    border-color: rgba(232,168,56,.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

/* ── Market balance pill ────────────────────────────────── */
.market-balance-pill {
    display: flex; align-items: center; gap: 5px;
    margin: 10px 14px 0;
    padding: 8px 14px;
    background: var(--c-surface2);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    font-size: 12px; color: var(--c-text-2);
}
.market-bal-icon { font-size: 14px; }
.market-bal-val  {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; font-weight: 700; color: var(--c-text);
    font-variant-numeric: tabular-nums;
}
.market-bal-lbl { font-size: 10px; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .7px; }

/* ── Market section wrapper ─────────────────────────────── */
/* .market-section defined below in row styles */
.market-loading {
    padding: 40px 0; text-align: center;
    color: var(--c-text-3); font-size: 13px;
}
.market-empty {
    padding: 60px 0; text-align: center;
    color: var(--c-text-3); font-size: 13px; line-height: 2;
}

/* ═══════════════════════════════════════════════════════════
   MARKET ROW — compact [img | info | price | buy]
═══════════════════════════════════════════════════════════ */
.market-row {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, rgba(46,44,62,.7) 0%, rgba(37,36,51,.5) 100%);
    border: 0.5px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 10px 10px 10px 10px;
    position: relative; overflow: hidden;
    transition: border-color var(--t-fast), background var(--t-fast);
}
.market-row::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232,168,56,.2), transparent);
}
.market-row:not(.mr-locked):active { background: rgba(46,44,62,.9); }

/* Image box */
.mr-img {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 8px;
    background: rgba(37,36,51,.8);
    border: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.mr-img img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.mr-img-e   { background: rgba(232,168,56,.06); border-color: rgba(232,168,56,.12); }

/* Info */
.mr-info { flex: 1; min-width: 0; }
.mr-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700; color: var(--c-text);
    line-height: 1.2; letter-spacing: .2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px;
}
.mr-chips { display: flex; flex-wrap: wrap; gap: 3px; }
.mr-chip {
    font-size: 10px; font-weight: 600;
    padding: 2px 6px; border-radius: 6px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--c-text-2); white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.mr-gold   { color: var(--c-gold);  border-color: rgba(232,168,56,.2);  background: rgba(232,168,56,.07); }
.mr-energy { color: var(--c-gold);  border-color: rgba(232,168,56,.2);  background: rgba(232,168,56,.07); }
.mr-owned  { color: var(--c-green); border-color: rgba(95,196,154,.25); background: rgba(95,196,154,.08); }

/* Price */
.mr-price {
    display: flex; flex-direction: column; align-items: center;
    gap: 1px; flex-shrink: 0;
    min-width: 52px; text-align: center;
}
.mr-price-ico  { font-size: 12px; line-height: 1; }
.mr-price-val  {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    color: var(--c-text); font-variant-numeric: tabular-nums;
    line-height: 1;
}
.mr-price-dim .mr-price-val { color: var(--c-text-3); }

/* Buy button */
.mr-buy {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 10px;
    background: rgba(232,168,56,.12);
    border: 1px solid rgba(232,168,56,.3);
    color: var(--c-gold);
    font-size: 22px; font-weight: 300; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(232,168,56,.15), inset 0 1px 0 rgba(255,255,255,.08);
    transition: background var(--t-fast), transform .1s;
    cursor: pointer;
}
.mr-buy:hover  { background: rgba(232,168,56,.2); }
.mr-buy:active { transform: scale(.93); }
.mr-buy-off    {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.07);
    color: var(--c-text-3); opacity: .5; cursor: not-allowed;
    box-shadow: none;
}
.mr-locked { opacity: .7; }

/* List wrappers */
.market-section {
    padding: 8px 14px 80px;
    display: flex; flex-direction: column; gap: 6px;
}

/* ── Market Confirm Modal ──────────────────────────────── */
.mmc-sheet {
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 28px;
    max-width: 420px;
}

/* Header: icon + name */
.mmc-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.mmc-icon-wrap {
    font-size: 32px; line-height: 1; flex-shrink: 0;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}
.mmc-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px; font-weight: 700; color: var(--c-text);
    letter-spacing: .3px; line-height: 1.1;
}

/* Price / balance rows */
.mmc-rows { margin-bottom: 14px; }
.mmc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
}
.mmc-row:last-child { border-bottom: none; }
.mmc-lbl { color: var(--c-text-2); }
.mmc-val { color: var(--c-text); font-variant-numeric: tabular-nums; }
.mmc-val b { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; }
.mmc-row-after { opacity: .7; }
.mmc-val-after {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700; color: var(--c-gold);
}

/* Stat change block: before → after output */
.mmc-stat-block {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.mmc-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
}
.mmc-stat-lbl {
    font-size: 11px; color: var(--c-text-3);
    text-transform: uppercase; letter-spacing: .6px;
}
.mmc-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mmc-stat-cur { color: var(--c-text-2); }
.mmc-stat-up  { color: var(--c-gold); }
.mmc-stat-arrow {
    text-align: center; font-size: 11px;
    color: var(--c-text-3); padding: 4px 0;
    letter-spacing: 2px;
}

/* Buttons */
.mmc-btns { display: flex; gap: 10px; }
.mmc-btn  { flex: 1; padding: 11px 8px 13px; font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: .5px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

/* ── Safe area ────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #bottom-nav { height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
    #app-content { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); }
}

/* ── Tour (unchanged structure, dark-adapted colors) ──────── */

/* ────────────────────────────────────────────────────────── */
/*  MODALS                                                     */
/* ────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end; justify-content: center;
    padding: 0;
}

.modal-overlay.open {
    display: flex;
    animation: fadein var(--t-fast);
}

.modal-sheet {
    position: relative;
    width: 100%; max-width: 480px;
    background: var(--c-surface);
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 32px;
    animation: slideup var(--t-slow);
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes slideup {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.modal-handle {
    width: 40px; height: 4px;
    background: var(--c-border);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 18px; font-weight: 700;
    margin-bottom: 6px; text-align: center;
}

.modal-sub {
    font-size: 13px; color: var(--c-text-2);
    text-align: center; margin-bottom: 24px; line-height: 1.5;
}

/* ── PIN Modal ────────────────────────────────────────────── */
.pin-input-wrap {
    margin-bottom: 16px;
}

.pin-input {
    width: 100%; padding: 16px;
    border: 2px solid var(--c-border);
    border-radius: var(--r-lg);
    font-size: 24px; font-weight: 700; letter-spacing: 8px;
    text-align: center; color: var(--c-text);
    background: var(--c-surface2);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    -webkit-text-security: disc;
}

.pin-input:focus {
    outline: none;
    border-color: var(--c-primary-l);
    box-shadow: 0 0 0 3px rgba(100,98,130,.15);
}

.pin-label {
    font-size: 12px; color: var(--c-text-2);
    margin-bottom: 6px; font-weight: 600;
}

.pin-error {
    color: var(--c-error); font-size: 12px;
    margin-top: 8px; text-align: center;
    min-height: 18px;
}

/* ── Language Modal ───────────────────────────────────────── */
.lang-subtitle {
    font-size: 12px; color: var(--c-text-3);
    text-align: center; margin: -4px 0 12px;
}

.lang-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.lang-option {
    padding: 12px 10px;
    border: 2px solid var(--c-border);
    border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
    background: var(--c-surface2);
    position: relative;
}

.lang-option:active { transform: scale(.96); }
.lang-option:hover  { border-color: var(--c-primary-l); background: rgba(74,72,96,.04); }
.lang-option.selected {
    border-color: var(--c-primary);
    background: rgba(74,72,96,.08);
    box-shadow: 0 0 0 1px var(--c-primary);
}

.lang-flag   { font-size: 36px; line-height: 1; }
.lang-name   { font-size: 12px; font-weight: 700; color: var(--c-text); text-align: center; }
.lang-check  {
    display: none;
    position: absolute; top: 6px; right: 8px;
    font-size: 13px; color: var(--c-primary); font-weight: 900;
}
.lang-option.selected .lang-check { display: block; }
.lang-option.lang-soon {
    opacity: .4; cursor: not-allowed; pointer-events: none;
}
.lang-option.lang-soon small {
    display: block; font-size: 9px; color: var(--c-neon-orange);
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    margin-top: 2px;
}

/* ────────────────────────────────────────────────────────── */
/*  BUTTONS (Genel)                                            */
/* ────────────────────────────────────────────────────────── */
.btn {
    padding: 14px 24px;
    border-radius: var(--r-lg);
    font-size: 15px; font-weight: 700;
    transition: opacity var(--t-fast), transform var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.btn:active  { transform: scale(.97); }
.btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
    color: #fff;
    box-shadow: 0 4px 12px rgba(74,72,96,.3);
    width: 100%;
}

.btn-secondary {
    background: var(--c-surface2);
    border: 2px solid var(--c-border);
    color: var(--c-text);
    width: 100%;
}

.btn-ghost {
    color: var(--c-primary-l); font-size: 13px;
    padding: 8px 16px;
}

/* ────────────────────────────────────────────────────────── */
/*  TOAST                                                      */
/* ────────────────────────────────────────────────────────── */
/* Toast styles defined above */

/* ────────────────────────────────────────────────────────── */
/*  KART BİLEŞENİ                                             */
/* ────────────────────────────────────────────────────────── */
.card {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: 16px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

/* ────────────────────────────────────────────────────────── */
/*  SCROLLBAR STYLING                                          */
/* ────────────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--c-border); border-radius: 2px; }

/* ────────────────────────────────────────────────────────── */
/*  RESPONSIVE / SAFE AREA                                     */
/* ────────────────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #bottom-nav {
        height: calc(var(--nav-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
    #app-content {
        padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
    }
}

/* ── Tour ─────────────────────────────────────────────────── */
/* Overlay: şeffaf, tüm ekranı kaplar, tıklamayı yakalar      */
#tour-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9000;
    background: transparent;
    pointer-events: all;
}

/* Spotlight: fixed, şeffaf arka plan, box-shadow etrafı karartır.
   z-index overlay'den yüksek → arkadaki içerik görünür kalır.  */
#tour-spotlight {
    display: none;
    position: fixed;
    z-index: 9010;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.76);
    outline: 2px solid rgba(99,88,194,.75);
    outline-offset: 2px;
    transition: top .24s ease, left .24s ease, width .24s ease, height .24s ease;
}

/* Tooltip: fixed, JS ile hedef elementin altına veya üstüne    */
#tour-tooltip {
    /* display / left / top / width: JS tarafından setlenir */
    /* display: none kaldırıldı — JS inline ile kontrol eder */
    position: fixed;
    z-index: 9020;
    pointer-events: all;
    background: linear-gradient(160deg, #1b192c 0%, #100f1e 100%);
    border: 1px solid rgba(99,88,194,.35);
    border-radius: 16px;
    padding: 13px 14px 11px;
    box-shadow: 0 16px 48px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(20px);
}
#tour-tooltip-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}

#tour-step-counter {
    font-size: 10px; font-weight: 700; color: var(--c-cyan);
    background: rgba(158,155,190,.1); padding: 2px 10px;
    border: 1px solid rgba(158,155,190,.2);
    border-radius: 99px; letter-spacing: .5px;
    font-family: 'Rajdhani', sans-serif;
}

#tour-btn-skip {
    font-size: 11px; color: rgba(255,255,255,.35); background: none;
    padding: 3px 8px; border-radius: 6px;
    transition: color var(--t-fast);
}
#tour-btn-skip:hover { color: rgba(255,255,255,.6); }

#tour-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; font-weight: 700; color: #fff;
    margin: 0 0 7px; line-height: 1.3; letter-spacing: .3px;
}

#tour-body {
    font-size: 12.5px; color: rgba(195,215,245,.8); line-height: 1.55;
    margin: 0 0 12px;
    max-height: 32vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#tour-body b  { font-weight: 700; color: #fff; }
#tour-body br { line-height: 1.8; }

#tour-tooltip-footer {
    display: flex; gap: 8px; justify-content: flex-end;
}

#tour-btn-prev {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4);
    padding: 8px 14px; border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    transition: background var(--t-fast);
}
#tour-btn-prev:hover { background: rgba(255,255,255,.09); }

#tour-btn-next {
    font-size: 12px; font-weight: 700; color: #fff;
    padding: 8px 20px 10px; border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1),
                inset 0 20px 0 rgba(255,255,255,.04),
                0 0 16px rgba(158,155,190,.2);
    position: relative; overflow: hidden;
}
#tour-btn-next::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(122,119,160,.3) 0%, rgba(158,155,190,.2) 100%);
    pointer-events: none;
}
#tour-btn-next:hover { background: rgba(255,255,255,.09); }

/* Demo GPU slot (tur için inject edilir) */
.tour-demo-slot {
    border: 2px solid #4EA882 !important;
    box-shadow: 0 0 16px rgba(78,168,130,.35) !important;
    animation: tour-pulse 1.5s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(78,168,130,.3); }
    50%       { box-shadow: 0 0 24px rgba(78,168,130,.6); }
}

.tour-demo-gpu-icon {
    font-size: 32px; line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}


/* ── Kart Canlı Kazanç ────────────────────────────────────── */
.card-earnings {
    display: flex; flex-direction: column; align-items: center;
    gap: 1px; margin-top: 2px; width: 100%;
}
.earn-g, .earn-s {
    font-size: 12px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.earn-g { color: #E8A838; }
.earn-s { color: #94a3b8; }
.card-no-energy {
    font-size: 8px; color: var(--c-neon-orange);
    text-align: center; margin-top: 2px;
    font-weight: 600;
}
.expand-cost-badge {
    font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,.12);
    padding: 3px 8px; border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   GPU MODAL — Premium Redesign
═══════════════════════════════════════════════════════════ */

/* Sheet override — dark surface */
.gm-sheet {
    background: linear-gradient(180deg, #141618 0%, #141320 100%);
    border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 24px 24px 0 0;
    padding: 16px 18px 36px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.gm-sheet .modal-handle { background: rgba(255,255,255,.18); }

/* ── HEADER ── */
.gm-top {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.gm-icon-wrap {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
}
.gm-icon-wrap img { width: 40px; height: 40px; object-fit: contain; }
.gm-top-info { flex: 1; min-width: 0; }
.gm-gpu-name {
    font-size: 18px; font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2; margin-bottom: 5px;
}
.gm-top-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.gm-pill {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 99px; letter-spacing: .2px;
}
.gm-pill-lv {
    background: rgba(100,98,130,.35);
    color: #B0B8C0;
    border: 1px solid rgba(100,98,130,.4);
}
.gm-pill-status.status-active {
    background: rgba(78,168,130,.2); color: #5FC49A;
    border: 1px solid rgba(78,168,130,.3);
}
.gm-pill-status.status-inactive {
    background: rgba(192,90,90,.15); color: #C87070;
    border: 1px solid rgba(192,90,90,.25);
}

/* Rate column (right side of header) */
.gm-rate-col { text-align: right; flex-shrink: 0; }
.gm-rate-val {
    font-size: 16px; font-weight: 800; color: #E8A838;
    font-variant-numeric: tabular-nums; line-height: 1;
}
.gm-rate-sub { font-size: 9px; color: rgba(255,255,255,.35); margin-top: 3px; text-transform: uppercase; letter-spacing: .4px; }

/* ── KAZANÇ STRIP ── */
.dm-earn-strip {
    background: linear-gradient(135deg, rgba(232,168,56,.08) 0%, rgba(46,44,62,.6) 100%);
    border-color: rgba(232,168,56,.15);
}
.dm-earn-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px; font-weight: 700; color: var(--c-gold);
    font-variant-numeric: tabular-nums; line-height: 1;
}

.gm-earn-strip {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, rgba(37,36,51,.8) 0%, rgba(37,36,51,.2) 100%);
    border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 18px 16px;
    margin-bottom: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.05);
}
.gm-earn-inner { display: flex; align-items: center; gap: 8px; }
.gm-earn-ico { font-size: 20px; line-height: 1; }
.gm-earn-num {
    font-size: 22px; font-weight: 800; color: #E8A838;
    font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.gm-claim-pill {
    padding: 8px 18px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--c-gold);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    border-radius: 8px;
    letter-spacing: .5px;
    box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1),
                inset 0 24px 0 rgba(255,255,255,.04),
                0 0 16px rgba(232,168,56,.15);
    transition: box-shadow .15s, transform .1s;
    white-space: nowrap;
    position: relative; overflow: hidden;
}
.gm-claim-pill::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(232,168,56,.18) 0%, rgba(232,168,56,.08) 100%);
    pointer-events: none;
}
.gm-claim-pill:active   { transform: scale(.95); }
.gm-claim-pill:disabled { opacity: .35; cursor: not-allowed; }
.gm-claim-hint-txt {
    font-size: 11px; color: rgba(255,255,255,.3);
    text-align: center; padding: 4px 0 14px; min-height: 20px;
}

/* ── ENERJİ ── */
.gm-energy-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.gm-energy-left { display: flex; align-items: center; gap: 6px; }
.gm-energy-lbl { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .4px; }
.gm-energy-pct { font-size: 12px; font-weight: 800; color: #9E9BBE; }
.gm-fill-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700; color: var(--c-cyan);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    padding: 6px 14px 8px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15), inset 0 20px 0 rgba(255,255,255,.03),
                0 0 12px rgba(158,155,190,.1);
    transition: background .15s, box-shadow .15s;
}
.gm-fill-btn:active { background: rgba(255,255,255,.07); }
.gm-ebar-wrap {
    height: 5px; background: rgba(255,255,255,.08);
    border-radius: 99px; overflow: hidden; margin-bottom: 18px;
}
.gm-ebar { height: 100%; border-radius: 99px; transition: width .5s ease; }

/* ── BLOCK CONTAINER ── */
.gm-block {
    background: linear-gradient(180deg, rgba(37,36,51,.8) 0%, rgba(37,36,51,.2) 100%);
    border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.05);
}
.gm-block-hd {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,.45);
    text-transform: uppercase; letter-spacing: .5px;
}
.gm-cur-rate {
    font-size: 11px; font-weight: 700;
    color: #E8A838; font-variant-numeric: tabular-nums;
}

/* ── LEVEL TABLOSU ── */
.gm-tbl { margin-bottom: 12px; }
.gm-tbl-head, .gm-tbl-row {
    display: grid;
    grid-template-columns: 38px 1fr 90px;
    align-items: center;
    padding: 7px 4px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.gm-tbl-head {
    font-size: 9px; font-weight: 700;
    color: rgba(255,255,255,.3);
    text-transform: uppercase; letter-spacing: .5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 2px;
}
.gm-tbl-row {
    color: rgba(255,255,255,.5);
    border-radius: 8px;
}
.gm-tbl-row + .gm-tbl-row { margin-top: 1px; }
.gm-tbl-row .c1 { font-weight: 700; }
.gm-tbl-row .c2 { text-align: right; }
.gm-tbl-row .c3 { text-align: right; color: rgba(255,255,255,.3); font-size: 10px; }
.gm-tbl-row.row-cur {
    background: rgba(100,98,130,.2);
    color: #fff;
    border: 1px solid rgba(100,98,130,.3);
}
.gm-tbl-row.row-cur .c1 { color: #9AA2AA; }
.gm-tbl-row.row-cur .c2 { color: #E8A838; }
.gm-tbl-row.row-next { color: rgba(255,255,255,.75); }
.gm-tbl-row.row-next .c1 { color: #5FC49A; }
.gm-tbl-row.row-dots { opacity: .3; }
.gm-tbl-head .c2, .gm-tbl-head .c3 { text-align: right; }

/* MAX row */
.gm-tbl-row.row-max .c1 { color: #E8A838; }

/* ── UPGRADE ── */
.gm-upg-meta {
    font-size: 12px; color: rgba(255,255,255,.45);
    text-align: center; margin-bottom: 8px;
}
.gm-upg-meta b { color: #fff; }
.gm-upg-btn {
    width: 100%; padding: 10px 16px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff; font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700;
    border-radius: 8px; transition: box-shadow .15s, transform .1s;
    letter-spacing: .5px;
    box-shadow: 0 4px 4px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.08),
                inset 0 30px 0 rgba(255,255,255,.03);
    position: relative; overflow: hidden;
}
.gm-upg-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(122,119,160,.3) 0%, rgba(106,104,136,.2) 100%);
    pointer-events: none;
}
.gm-upg-btn:hover   { box-shadow: 0 4px 4px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.08), inset 0 30px 0 rgba(255,255,255,.03), 0 0 24px rgba(122,119,160,.3); }
.gm-upg-btn:active   { transform: scale(.98); }
.gm-upg-btn:disabled { opacity: .4; cursor: not-allowed; }
.gm-max-badge {
    text-align: center; font-size: 13px; font-weight: 800;
    color: #E8A838; padding: 10px;
    background: rgba(232,168,56,.08);
    border: 1px solid rgba(232,168,56,.2);
    border-radius: 10px;
}

/* ── CALCULATOR ── */
.gm-calc-badge {
    font-size: 13px; font-weight: 800; color: #9AA2AA;
}
.gm-slider {
    width: 100%; -webkit-appearance: none; height: 4px;
    border-radius: 99px; outline: none; cursor: pointer;
    background: rgba(255,255,255,.12);
    margin: 4px 0 14px;
    position: relative;
}
.gm-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: #6A6888;
    box-shadow: 0 0 0 3px rgba(100,98,130,.3), 0 2px 8px rgba(0,0,0,.4);
    cursor: pointer; transition: box-shadow .15s;
}
.gm-slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 5px rgba(100,98,130,.4), 0 2px 8px rgba(0,0,0,.4);
}
.gm-calc-rows { display: flex; flex-direction: column; gap: 0; }
.gm-calc-r {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 12px; color: rgba(255,255,255,.4);
}
.gm-calc-r:last-child { border-bottom: none; }
.gm-calc-r b { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.gm-calc-r b.gold  { color: #E8A838; }
.gm-calc-r b.green { color: #5FC49A; }
#gm-calc-afford {
    font-size: 11px; font-weight: 700; border-radius: 8px; padding: 7px 10px;
    text-align: center; margin-top: 6px;
}
.calc-yes { background: rgba(95,196,154,.1); color: #5FC49A; border: 1px solid rgba(95,196,154,.2); }
.calc-no  { background: rgba(248,113,113,.08); color: #C87070; border: 1px solid rgba(248,113,113,.2); }

/* ── Calculator Toggle Button ── */
.gm-calc-toggle {
    width: 100%; margin-top: 10px; padding: 8px 12px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1), inset 0 20px 0 rgba(255,255,255,.02);
    color: rgba(255,255,255,.5);
    font-size: 12px; font-weight: 700;
    text-align: left;
    transition: background .15s, color .15s;
    display: none;
}
.gm-calc-toggle:hover  { background: rgba(100,98,130,.2); color: #B0B8C0; }
.gm-calc-toggle.calc-open { color: #9AA2AA; background: rgba(100,98,130,.18); }
.gm-calc-toggle.calc-open::after { content: ' ▲'; }
.gm-calc-toggle:not(.calc-open)::after { content: ' ▼'; }

/* ── Calculator slider row ── */
.gm-calc-slider-row {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 0 6px;
}
.gm-calc-cur   { font-size: 10px; color: rgba(255,255,255,.35); white-space: nowrap; }
.gm-calc-badge { font-size: 13px; font-weight: 800; color: #9AA2AA; white-space: nowrap; min-width: 36px; text-align: right; }
.gm-slider     { flex: 1; }/* ═══════════════════════════════════════════════════════════
   MARKET ROW — compact horizontal card
   ┌────────────────────────────────────────────────────┐
   │  Item Name                              [×N badge] │
   │  [thumb]  stat1                [🥈 1,200  Satın Al]│
   │           stat2                                    │
   └────────────────────────────────────────────────────┘
═══════════════════════════════════════════════════════════ */
.market-row {
    position: relative;
    display: flex; flex-direction: row; align-items: center; gap: 12px;
    background: linear-gradient(180deg, rgba(46,44,62,.8) 0%, rgba(37,36,51,.5) 100%);
    border: 0.5px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 11px 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04);
}
.market-row::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(232,168,56,.25) 45%, rgba(158,155,190,.18) 70%, transparent 90%);
}
.mr-locked { opacity: .55; }
.mr-device::before { background: linear-gradient(90deg, transparent 10%, rgba(232,168,56,.4) 50%, transparent 90%); }

.mr-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--c-text);
    letter-spacing: .2px; line-height: 1.1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mr-badge-owned {
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 99px;
    font-family: 'Rajdhani', sans-serif;
    background: rgba(95,196,154,.15); color: var(--c-green);
    border: 1px solid rgba(95,196,154,.25);
}

/* Info column */
.mr-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.mr-info-line {
    font-size: 11px; color: var(--c-text-2);
    font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.4;
}
.mr-info-gold {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700; color: var(--c-gold);
}

/* Thumb */
.mr-thumb {
    width: 52px; height: 52px; flex-shrink: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.mr-thumb img {
    width: 40px; height: 40px; object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}
.mr-fallback { font-size: 28px; line-height: 1; }
.mr-thumb-e { background: rgba(232,168,56,.06); border-color: rgba(232,168,56,.15); }

/* Buy button */
.mr-buy-btn {
    flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px;
    padding: 8px 12px 10px;
    min-width: 72px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15),
                inset 0 18px 0 rgba(255,255,255,.04),
                0 0 16px rgba(232,168,56,.08);
    cursor: pointer; transition: background var(--t-fast), box-shadow var(--t-fast), transform .1s;
    position: relative; overflow: hidden;
}
.mr-buy-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(232,168,56,.15) 0%, transparent 100%);
    pointer-events: none;
}
.mr-buy-btn:hover  { background: rgba(255,255,255,.08); box-shadow: 0 2px 8px rgba(0,0,0,.15), inset 0 18px 0 rgba(255,255,255,.04), 0 0 22px rgba(232,168,56,.18); }
.mr-buy-btn:active { transform: scale(.97); }
.mr-buy-off        { opacity: .4; cursor: not-allowed; }
.mr-buy-off::after { display: none; }

.mr-buy-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700; color: var(--c-gold);
    font-variant-numeric: tabular-nums; line-height: 1;
}
.mr-buy-lbl {
    font-size: 9px; font-weight: 600; color: var(--c-text-3);
    text-transform: uppercase; letter-spacing: .8px; line-height: 1;
}

/* ── Market Confirm Modal ──────────────────────────────── */
.mmc-sheet {
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 28px;
    max-width: 420px;
}

/* Header: icon + name */
.mmc-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.mmc-icon-wrap {
    font-size: 32px; line-height: 1; flex-shrink: 0;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}
.mmc-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px; font-weight: 700; color: var(--c-text);
    letter-spacing: .3px; line-height: 1.1;
}

/* Price / balance rows */
.mmc-rows { margin-bottom: 14px; }
.mmc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
}
.mmc-row:last-child { border-bottom: none; }
.mmc-lbl { color: var(--c-text-2); }
.mmc-val { color: var(--c-text); font-variant-numeric: tabular-nums; }
.mmc-val b { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; }
.mmc-row-after { opacity: .7; }
.mmc-val-after {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700; color: var(--c-gold);
}

/* Stat change block: before → after output */
.mmc-stat-block {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.mmc-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px;
}
.mmc-stat-lbl {
    font-size: 11px; color: var(--c-text-3);
    text-transform: uppercase; letter-spacing: .6px;
}
.mmc-stat-val {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.mmc-stat-cur { color: var(--c-text-2); }
.mmc-stat-up  { color: var(--c-gold); }
.mmc-stat-arrow {
    text-align: center; font-size: 11px;
    color: var(--c-text-3); padding: 4px 0;
    letter-spacing: 2px;
}

/* Buttons */
.mmc-btns { display: flex; gap: 10px; }
.mmc-btn  { flex: 1; padding: 11px 8px 13px; font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: .5px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

/* ── Safe area ────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #bottom-nav { height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
    #app-content { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); }
}

/* ── Tour (unchanged structure, dark-adapted colors) ──────── */

/* ────────────────────────────────────────────────────────── */
/*  MODALS                                                     */
/* ────────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end; justify-content: center;
    padding: 0;
}

.modal-overlay.open {
    display: flex;
    animation: fadein var(--t-fast);
}

.modal-sheet {
    width: 100%; max-width: 480px;
    background: var(--c-surface);
    border-radius: 24px 24px 0 0;
    padding: 20px 20px 32px;
    animation: slideup var(--t-slow);
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes slideup {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.modal-handle {
    width: 40px; height: 4px;
    background: var(--c-border);
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title {
    font-size: 18px; font-weight: 700;
    margin-bottom: 6px; text-align: center;
}

.modal-sub {
    font-size: 13px; color: var(--c-text-2);
    text-align: center; margin-bottom: 24px; line-height: 1.5;
}

/* ── PIN Modal ────────────────────────────────────────────── */
.pin-input-wrap {
    margin-bottom: 16px;
}

.pin-input {
    width: 100%; padding: 16px;
    border: 2px solid var(--c-border);
    border-radius: var(--r-lg);
    font-size: 24px; font-weight: 700; letter-spacing: 8px;
    text-align: center; color: var(--c-text);
    background: var(--c-surface2);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    -webkit-text-security: disc;
}

.pin-input:focus {
    outline: none;
    border-color: var(--c-primary-l);
    box-shadow: 0 0 0 3px rgba(100,98,130,.15);
}

.pin-label {
    font-size: 12px; color: var(--c-text-2);
    margin-bottom: 6px; font-weight: 600;
}

.pin-error {
    color: var(--c-error); font-size: 12px;
    margin-top: 8px; text-align: center;
    min-height: 18px;
}

/* ── Language Modal ───────────────────────────────────────── */
.lang-subtitle {
    font-size: 12px; color: var(--c-text-3);
    text-align: center; margin: -4px 0 12px;
}

.lang-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.lang-option {
    padding: 12px 10px;
    border: 2px solid var(--c-border);
    border-radius: 14px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
    background: var(--c-surface2);
    position: relative;
}

.lang-option:active { transform: scale(.96); }
.lang-option:hover  { border-color: var(--c-primary-l); background: rgba(74,72,96,.04); }
.lang-option.selected {
    border-color: var(--c-primary);
    background: rgba(74,72,96,.08);
    box-shadow: 0 0 0 1px var(--c-primary);
}

.lang-flag   { font-size: 36px; line-height: 1; }
.lang-name   { font-size: 12px; font-weight: 700; color: var(--c-text); text-align: center; }
.lang-check  {
    display: none;
    position: absolute; top: 6px; right: 8px;
    font-size: 13px; color: var(--c-primary); font-weight: 900;
}
.lang-option.selected .lang-check { display: block; }
.lang-option.lang-soon {
    opacity: .4; cursor: not-allowed; pointer-events: none;
}
.lang-option.lang-soon small {
    display: block; font-size: 9px; color: var(--c-neon-orange);
    font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    margin-top: 2px;
}

/* ────────────────────────────────────────────────────────── */
/*  BUTTONS (Genel)                                            */
/* ────────────────────────────────────────────────────────── */
.btn {
    padding: 14px 24px;
    border-radius: var(--r-lg);
    font-size: 15px; font-weight: 700;
    transition: opacity var(--t-fast), transform var(--t-fast);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}

.btn:active  { transform: scale(.97); }
.btn:disabled{ opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
    color: #fff;
    box-shadow: 0 4px 12px rgba(74,72,96,.3);
    width: 100%;
}

.btn-secondary {
    background: var(--c-surface2);
    border: 2px solid var(--c-border);
    color: var(--c-text);
    width: 100%;
}

.btn-ghost {
    color: var(--c-primary-l); font-size: 13px;
    padding: 8px 16px;
}

/* ────────────────────────────────────────────────────────── */
/*  TOAST                                                      */
/* ────────────────────────────────────────────────────────── */
/* Toast styles defined above */

/* ────────────────────────────────────────────────────────── */
/*  KART BİLEŞENİ                                             */
/* ────────────────────────────────────────────────────────── */
.card {
    background: var(--c-surface);
    border-radius: var(--r-xl);
    padding: 16px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
}

/* ────────────────────────────────────────────────────────── */
/*  SCROLLBAR STYLING                                          */
/* ────────────────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--c-border); border-radius: 2px; }

/* ────────────────────────────────────────────────────────── */
/*  RESPONSIVE / SAFE AREA                                     */
/* ────────────────────────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #bottom-nav {
        height: calc(var(--nav-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
    #app-content {
        padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px);
    }
}

/* ── Tour ─────────────────────────────────────────────────── */
/* Overlay: şeffaf, tüm ekranı kaplar, tıklamayı yakalar      */
#tour-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 9000;
    background: transparent;
    pointer-events: all;
}

/* Spotlight: fixed, şeffaf arka plan, box-shadow etrafı karartır.
   z-index overlay'den yüksek → arkadaki içerik görünür kalır.  */
#tour-spotlight {
    display: none;
    position: fixed;
    z-index: 9010;
    pointer-events: none;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.76);
    outline: 2px solid rgba(99,88,194,.75);
    outline-offset: 2px;
    transition: top .24s ease, left .24s ease, width .24s ease, height .24s ease;
}

/* Tooltip: fixed, JS ile hedef elementin altına veya üstüne    */
#tour-tooltip {
    /* display / left / top / width: JS tarafından setlenir */
    /* display: none kaldırıldı — JS inline ile kontrol eder */
    position: fixed;
    z-index: 9020;
    pointer-events: all;
    background: linear-gradient(160deg, #1b192c 0%, #100f1e 100%);
    border: 1px solid rgba(99,88,194,.35);
    border-radius: 16px;
    padding: 13px 14px 11px;
    box-shadow: 0 16px 48px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(20px);
}
#tour-tooltip-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}

#tour-step-counter {
    font-size: 10px; font-weight: 700; color: var(--c-cyan);
    background: rgba(158,155,190,.1); padding: 2px 10px;
    border: 1px solid rgba(158,155,190,.2);
    border-radius: 99px; letter-spacing: .5px;
    font-family: 'Rajdhani', sans-serif;
}

#tour-btn-skip {
    font-size: 11px; color: rgba(255,255,255,.35); background: none;
    padding: 3px 8px; border-radius: 6px;
    transition: color var(--t-fast);
}
#tour-btn-skip:hover { color: rgba(255,255,255,.6); }

#tour-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px; font-weight: 700; color: #fff;
    margin: 0 0 7px; line-height: 1.3; letter-spacing: .3px;
}

#tour-body {
    font-size: 12.5px; color: rgba(195,215,245,.8); line-height: 1.55;
    margin: 0 0 12px;
    max-height: 32vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#tour-body b  { font-weight: 700; color: #fff; }
#tour-body br { line-height: 1.8; }

#tour-tooltip-footer {
    display: flex; gap: 8px; justify-content: flex-end;
}

#tour-btn-prev {
    font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4);
    padding: 8px 14px; border-radius: 8px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    transition: background var(--t-fast);
}
#tour-btn-prev:hover { background: rgba(255,255,255,.09); }

#tour-btn-next {
    font-size: 12px; font-weight: 700; color: #fff;
    padding: 8px 20px 10px; border-radius: 8px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1),
                inset 0 20px 0 rgba(255,255,255,.04),
                0 0 16px rgba(158,155,190,.2);
    position: relative; overflow: hidden;
}
#tour-btn-next::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(122,119,160,.3) 0%, rgba(158,155,190,.2) 100%);
    pointer-events: none;
}
#tour-btn-next:hover { background: rgba(255,255,255,.09); }

/* Demo GPU slot (tur için inject edilir) */
.tour-demo-slot {
    border: 2px solid #4EA882 !important;
    box-shadow: 0 0 16px rgba(78,168,130,.35) !important;
    animation: tour-pulse 1.5s ease-in-out infinite;
}

@keyframes tour-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(78,168,130,.3); }
    50%       { box-shadow: 0 0 24px rgba(78,168,130,.6); }
}

.tour-demo-gpu-icon {
    font-size: 32px; line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}


/* ── Kart Canlı Kazanç ────────────────────────────────────── */
.card-earnings {
    display: flex; flex-direction: column; align-items: center;
    gap: 1px; margin-top: 2px; width: 100%;
}
.earn-g, .earn-s {
    font-size: 12px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}
.earn-g { color: #E8A838; }
.earn-s { color: #94a3b8; }
.card-no-energy {
    font-size: 8px; color: var(--c-neon-orange);
    text-align: center; margin-top: 2px;
    font-weight: 600;
}
.expand-cost-badge {
    font-size: 11px; font-weight: 700;
    background: rgba(255,255,255,.12);
    padding: 3px 8px; border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   GPU MODAL — Premium Redesign
═══════════════════════════════════════════════════════════ */

/* Sheet override — dark surface */
.gm-sheet {
    background: linear-gradient(180deg, #141618 0%, #141320 100%);
    border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 24px 24px 0 0;
    padding: 16px 18px 36px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.gm-sheet .modal-handle { background: rgba(255,255,255,.18); }

/* ── HEADER ── */
.gm-top {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
}
.gm-icon-wrap {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
}
.gm-icon-wrap img { width: 40px; height: 40px; object-fit: contain; }
.gm-top-info { flex: 1; min-width: 0; }
.gm-gpu-name {
    font-size: 18px; font-weight: 800; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2; margin-bottom: 5px;
}
.gm-top-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.gm-pill {
    font-size: 10px; font-weight: 700; padding: 2px 8px;
    border-radius: 99px; letter-spacing: .2px;
}
.gm-pill-lv {
    background: rgba(100,98,130,.35);
    color: #B0B8C0;
    border: 1px solid rgba(100,98,130,.4);
}
.gm-pill-status.status-active {
    background: rgba(78,168,130,.2); color: #5FC49A;
    border: 1px solid rgba(78,168,130,.3);
}
.gm-pill-status.status-inactive {
    background: rgba(192,90,90,.15); color: #C87070;
    border: 1px solid rgba(192,90,90,.25);
}

/* Rate column (right side of header) */
.gm-rate-col { text-align: right; flex-shrink: 0; }
.gm-rate-val {
    font-size: 16px; font-weight: 800; color: #E8A838;
    font-variant-numeric: tabular-nums; line-height: 1;
}
.gm-rate-sub { font-size: 9px; color: rgba(255,255,255,.35); margin-top: 3px; text-transform: uppercase; letter-spacing: .4px; }

/* ── KAZANÇ STRIP ── */
.gm-earn-strip {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, rgba(37,36,51,.8) 0%, rgba(37,36,51,.2) 100%);
    border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 12px; padding: 18px 16px;
    margin-bottom: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.05);
}
.gm-earn-inner { display: flex; align-items: center; gap: 8px; }
.gm-earn-ico { font-size: 20px; line-height: 1; }
.gm-earn-num {
    font-size: 22px; font-weight: 800; color: #E8A838;
    font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.gm-claim-pill {
    padding: 8px 18px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--c-gold);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700;
    border-radius: 8px;
    letter-spacing: .5px;
    box-shadow: 0 4px 4px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.1),
                inset 0 24px 0 rgba(255,255,255,.04),
                0 0 16px rgba(232,168,56,.15);
    transition: box-shadow .15s, transform .1s;
    white-space: nowrap;
    position: relative; overflow: hidden;
}
.gm-claim-pill::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(232,168,56,.18) 0%, rgba(232,168,56,.08) 100%);
    pointer-events: none;
}
.gm-claim-pill:active   { transform: scale(.95); }
.gm-claim-pill:disabled { opacity: .35; cursor: not-allowed; }
.gm-claim-hint-txt {
    font-size: 11px; color: rgba(255,255,255,.3);
    text-align: center; padding: 4px 0 14px; min-height: 20px;
}

/* ── ENERJİ ── */
.gm-energy-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.gm-energy-left { display: flex; align-items: center; gap: 6px; }
.gm-energy-lbl { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .4px; }
.gm-energy-pct { font-size: 12px; font-weight: 800; color: #9E9BBE; }
.gm-fill-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700; color: var(--c-cyan);
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.04);
    padding: 6px 14px 8px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15), inset 0 20px 0 rgba(255,255,255,.03),
                0 0 12px rgba(158,155,190,.1);
    transition: background .15s, box-shadow .15s;
}
.gm-fill-btn:active { background: rgba(255,255,255,.07); }
.gm-ebar-wrap {
    height: 5px; background: rgba(255,255,255,.08);
    border-radius: 99px; overflow: hidden; margin-bottom: 18px;
}
.gm-ebar { height: 100%; border-radius: 99px; transition: width .5s ease; }

/* ── BLOCK CONTAINER ── */
.gm-block {
    background: linear-gradient(180deg, rgba(37,36,51,.8) 0%, rgba(37,36,51,.2) 100%);
    border: 0.5px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.05);
}
.gm-block-hd {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,.45);
    text-transform: uppercase; letter-spacing: .5px;
}
.gm-cur-rate {
    font-size: 11px; font-weight: 700;
    color: #E8A838; font-variant-numeric: tabular-nums;
}

/* ── LEVEL TABLOSU ── */
.gm-tbl { margin-bottom: 12px; }
.gm-tbl-head, .gm-tbl-row {
    display: grid;
    grid-template-columns: 38px 1fr 90px;
    align-items: center;
    padding: 7px 4px;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.gm-tbl-head {
    font-size: 9px; font-weight: 700;
    color: rgba(255,255,255,.3);
    text-transform: uppercase; letter-spacing: .5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 2px;
}
.gm-tbl-row {
    color: rgba(255,255,255,.5);
    border-radius: 8px;
}
.gm-tbl-row + .gm-tbl-row { margin-top: 1px; }
.gm-tbl-row .c1 { font-weight: 700; }
.gm-tbl-row .c2 { text-align: right; }
.gm-tbl-row .c3 { text-align: right; color: rgba(255,255,255,.3); font-size: 10px; }
.gm-tbl-row.row-cur {
    background: rgba(100,98,130,.2);
    color: #fff;
    border: 1px solid rgba(100,98,130,.3);
}
.gm-tbl-row.row-cur .c1 { color: #9AA2AA; }
.gm-tbl-row.row-cur .c2 { color: #E8A838; }
.gm-tbl-row.row-next { color: rgba(255,255,255,.75); }
.gm-tbl-row.row-next .c1 { color: #5FC49A; }
.gm-tbl-row.row-dots { opacity: .3; }
.gm-tbl-head .c2, .gm-tbl-head .c3 { text-align: right; }

/* MAX row */
.gm-tbl-row.row-max .c1 { color: #E8A838; }

/* ── UPGRADE ── */
.gm-upg-meta {
    font-size: 12px; color: rgba(255,255,255,.45);
    text-align: center; margin-bottom: 8px;
}
.gm-upg-meta b { color: #fff; }
.gm-upg-btn {
    width: 100%; padding: 10px 16px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff; font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700;
    border-radius: 8px; transition: box-shadow .15s, transform .1s;
    letter-spacing: .5px;
    box-shadow: 0 4px 4px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.08),
                inset 0 30px 0 rgba(255,255,255,.03);
    position: relative; overflow: hidden;
}
.gm-upg-btn::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(130deg, rgba(122,119,160,.3) 0%, rgba(106,104,136,.2) 100%);
    pointer-events: none;
}
.gm-upg-btn:hover   { box-shadow: 0 4px 4px rgba(0,0,0,.05), 0 8px 16px rgba(0,0,0,.08), inset 0 30px 0 rgba(255,255,255,.03), 0 0 24px rgba(122,119,160,.3); }
.gm-upg-btn:active   { transform: scale(.98); }
.gm-upg-btn:disabled { opacity: .4; cursor: not-allowed; }
.gm-max-badge {
    text-align: center; font-size: 13px; font-weight: 800;
    color: #E8A838; padding: 10px;
    background: rgba(232,168,56,.08);
    border: 1px solid rgba(232,168,56,.2);
    border-radius: 10px;
}

/* ── CALCULATOR ── */
.gm-calc-badge {
    font-size: 13px; font-weight: 800; color: #9AA2AA;
}
.gm-slider {
    width: 100%; -webkit-appearance: none; height: 4px;
    border-radius: 99px; outline: none; cursor: pointer;
    background: rgba(255,255,255,.12);
    margin: 4px 0 14px;
    position: relative;
}
.gm-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: #6A6888;
    box-shadow: 0 0 0 3px rgba(100,98,130,.3), 0 2px 8px rgba(0,0,0,.4);
    cursor: pointer; transition: box-shadow .15s;
}
.gm-slider::-webkit-slider-thumb:active {
    box-shadow: 0 0 0 5px rgba(100,98,130,.4), 0 2px 8px rgba(0,0,0,.4);
}
.gm-calc-rows { display: flex; flex-direction: column; gap: 0; }
.gm-calc-r {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 12px; color: rgba(255,255,255,.4);
}
.gm-calc-r:last-child { border-bottom: none; }
.gm-calc-r b { color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; }
.gm-calc-r b.gold  { color: #E8A838; }
.gm-calc-r b.green { color: #5FC49A; }
#gm-calc-afford {
    font-size: 11px; font-weight: 700; border-radius: 8px; padding: 7px 10px;
    text-align: center; margin-top: 6px;
}
.calc-yes { background: rgba(95,196,154,.1); color: #5FC49A; border: 1px solid rgba(95,196,154,.2); }
.calc-no  { background: rgba(248,113,113,.08); color: #C87070; border: 1px solid rgba(248,113,113,.2); }

/* ── Calculator Toggle Button ── */
.gm-calc-toggle {
    width: 100%; margin-top: 10px; padding: 8px 12px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1), inset 0 20px 0 rgba(255,255,255,.02);
    color: rgba(255,255,255,.5);
    font-size: 12px; font-weight: 700;
    text-align: left;
    transition: background .15s, color .15s;
    display: none;
}
.gm-calc-toggle:hover  { background: rgba(100,98,130,.2); color: #B0B8C0; }
.gm-calc-toggle.calc-open { color: #9AA2AA; background: rgba(100,98,130,.18); }
.gm-calc-toggle.calc-open::after { content: ' ▲'; }
.gm-calc-toggle:not(.calc-open)::after { content: ' ▼'; }

/* ── Calculator slider row ── */
.gm-calc-slider-row {
    display: flex; align-items: center; gap: 8px;
    margin: 10px 0 6px;
}
.gm-calc-cur   { font-size: 10px; color: rgba(255,255,255,.35); white-space: nowrap; }
.gm-calc-badge { font-size: 13px; font-weight: 800; color: #9AA2AA; white-space: nowrap; min-width: 36px; text-align: right; }
.gm-slider     { flex: 1; }

/* ════════════════════════════════════════════════════════════
   GÖREV SAYFASI
════════════════════════════════════════════════════════════ */
.tasks-scroll-wrap {
    padding: 12px 16px 100px;
    display: flex; flex-direction: column; gap: 20px;
}

.tasks-section {}
.tasks-section-hd {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--c-text-3);
    padding: 0 2px 8px;
}

.tasks-list { display: flex; flex-direction: column; gap: 8px; }
.tasks-loading { text-align: center; padding: 24px; color: var(--c-text-3); font-size: 13px; }
.tasks-empty   { text-align: center; padding: 20px; color: var(--c-text-3); font-size: 13px; }

/* ── Görev Kartı ── */
.task-card {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, rgba(46,44,62,.85) 0%, rgba(37,36,51,.6) 100%);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 13px 12px;
    transition: opacity .2s;
}
.task-card-done {
    opacity: .55;
}
.task-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
    border-radius: 14px 14px 0 0;
}
.task-card { position: relative; }

/* Icon */
.task-icon {
    font-size: 26px; line-height: 1; flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
}

/* Info */
.task-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 3px;
}
.task-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700; color: var(--c-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.15;
}
.task-reward {
    font-size: 12px; color: var(--c-gold);
    font-family: 'Rajdhani', sans-serif; font-weight: 600;
}

/* Progress bar */
.task-progress-wrap {
    height: 4px; border-radius: 99px;
    background: rgba(255,255,255,.08);
    overflow: hidden; margin: 3px 0 2px;
}
.task-progress-bar {
    height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--c-neon-cyan), var(--c-gold));
    transition: width .4s ease;
}
.task-progress-lbl {
    font-size: 10px; color: var(--c-text-3);
    font-variant-numeric: tabular-nums;
}

/* Action area */
.task-action { flex-shrink: 0; }

/* Butonlar */
.task-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    padding: 7px 14px;
    border-radius: 10px; border: none; cursor: pointer;
    transition: all .15s; white-space: nowrap;
}

/* Go — canlı, amber */
.task-btn-go {
    background: linear-gradient(135deg, var(--c-gold), #c8840a);
    color: #000;
    box-shadow: 0 2px 12px rgba(232,168,56,.35);
}
.task-btn-go:hover { filter: brightness(1.1); }

/* Check — cyan */
.task-btn-check {
    background: linear-gradient(135deg, var(--c-neon-cyan), #0aa8b0);
    color: #000;
    box-shadow: 0 2px 10px rgba(0,210,230,.3);
}
.task-btn-check:hover { filter: brightness(1.1); }

/* Claim — yeşil */
.task-btn-claim {
    background: linear-gradient(135deg, var(--c-green), #1e8a4f);
    color: #fff;
    box-shadow: 0 2px 10px rgba(95,196,154,.3);
}
.task-btn-claim:hover { filter: brightness(1.1); }

/* Done — soluk */
.task-btn-done {
    background: rgba(255,255,255,.07);
    color: var(--c-text-3);
    cursor: default;
}

/* Locked (milestone hedefine ulaşılmadı) */
.task-btn-locked {
    background: rgba(255,255,255,.05);
    color: var(--c-text-3);
    cursor: default;
    font-size: 12px;
}

/* ── Telegram görev: çift buton alt alta ── */
.task-btn-stack {
    display: flex; flex-direction: column; gap: 6px;
    align-items: stretch;
}
.task-btn-stack .task-btn {
    width: 100%; min-width: 90px;
}

/* Kontrol Et butonu — henüz Git'e tıklanmamış, soluk */
.task-btn-check-dim {
    opacity: 0.45;
}

/* ── Görev Sekmeler ── */
.tasks-tabbar {
    display: flex; gap: 0;
    margin: 12px 16px 0;
    background: rgba(255,255,255,.05);
    border-radius: 12px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.07);
}
.tasks-tab {
    flex: 1; padding: 9px 8px;
    background: none; border: none; cursor: pointer;
    color: var(--c-text-3);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: .4px;
    border-radius: 9px;
    transition: all .18s;
    white-space: nowrap;
}
.tasks-tab.active {
    background: linear-gradient(135deg, rgba(232,168,56,.25), rgba(0,210,230,.15));
    color: var(--c-text);
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.tasks-tab-pane {
    display: none;
    padding: 12px 16px 100px;
}
.tasks-tab-pane.active {
    display: block;
}

/* Referral list item sub-line */
.ref-item-sub {
    font-size: 11px; color: var(--c-text-3);
    margin-top: 2px; line-height: 1.4;
}
.ref-item-sub-pending {
    color: var(--c-neon-orange); opacity: .85;
}

/* ── Modal kapat butonu ── */
.modal-close-btn {
    position: absolute; top: 14px; right: 16px;
    width: 30px; height: 30px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    color: var(--c-text-2);
    font-size: 13px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
    z-index: 10;
}
.modal-close-btn:hover { background: rgba(255,255,255,.15); color: var(--c-text); }

/* ── Referral bonus tab ── */
.ref-bonus-total {
    background: rgba(0,210,230,.08);
    border: 1px solid rgba(0,210,230,.2);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px; color: var(--c-neon-cyan);
    margin-bottom: 12px;
}
.ref-bonus-empty {
    color: var(--c-text-3);
    text-align: center;
    padding: 32px;
}

/* ── GPU Sat butonu ── */
.gm-sell-btn {
    width: 100%;
    padding: 10px 0;
    background: rgba(239,68,68,.10);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: 12px;
    color: #f87171;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.gm-sell-btn:hover  { background: rgba(239,68,68,.20); border-color: rgba(239,68,68,.45); }
.gm-sell-btn:active { background: rgba(239,68,68,.30); }

/* ── Wallet Sayfası ── */
.wallet-network-tabs {
    display: flex; gap: 8px;
}
.wallet-net-btn {
    flex: 1; padding: 10px 0;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: var(--c-text-2); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.wallet-net-btn.active {
    background: linear-gradient(135deg, rgba(94,92,154,.3), rgba(0,210,230,.15));
    border-color: var(--c-primary);
    color: var(--c-text);
}
.wnet-icon { font-size: 16px; }

/* History filter buttons */
.wallet-hist-filter {
    padding: 4px 10px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    color: var(--c-text-3); font-size: 11px;
    cursor: pointer; transition: all .15s;
}
.wallet-hist-filter.active {
    background: rgba(94,92,154,.2);
    border-color: var(--c-primary);
    color: var(--c-text);
}

/* Transaction item */
.tx-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.tx-item:last-child { border-bottom: none; }
.tx-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,.06);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.tx-info { flex: 1; min-width: 0; }
.tx-amount { font-size: 13px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta   { font-size: 11px; color: var(--c-text-3); margin-top: 2px; }
.tx-badge  { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.tx-badge-ok   { background: rgba(16,185,129,.12); color: var(--c-neon-green); }
.tx-badge-pend { background: rgba(245,158,11,.12);  color: var(--c-neon-orange); }
.tx-badge-fail { background: rgba(239,68,68,.12);   color: #f87171; }

/* ═══════════════════════════════════════════════════════════
   YARIŞMA — Contest Styles
═══════════════════════════════════════════════════════════ */

/* Ana sayfa badge */
.contest-badge-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, rgba(255,215,0,.18), rgba(255,165,0,.08));
    border: 1px solid rgba(255,215,0,.4);
    color: #FFD700;
    font-size: 12px; font-weight: 700;
    padding: 5px 11px; border-radius: 20px;
    cursor: pointer;
    animation: contestPulse 3s ease-in-out infinite;
}
@keyframes contestPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,215,0,.25); }
    50%      { box-shadow: 0 0 10px 3px rgba(255,215,0,.12); }
}

/* Kendi skor kartı */
.contest-my-card {
    display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(255,215,0,.08), rgba(255,140,0,.04));
    border: 1px solid rgba(255,215,0,.2);
    border-radius: 14px;
    padding: 14px 16px;
    gap: 0;
}
.contest-my-stat { flex: 1; }
.contest-my-lbl { font-size: 11px; color: var(--text2); margin-bottom: 4px; }
.contest-my-val { font-size: 20px; font-weight: 700; color: #FFD700; }
.contest-my-unit { font-size: 11px; color: var(--text2); font-weight: 400; margin-left: 3px; }
.contest-my-divider {
    width: 1px; height: 36px;
    background: rgba(255,215,0,.2);
    margin: 0 14px; flex-shrink: 0;
}

/* Leaderboard rows */
.lb-row {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.lb-row:last-child { border-bottom: none; }
.lb-row.is-me {
    background: rgba(255,215,0,.07);
    border-radius: 10px;
    padding: 11px 10px;
    margin: 0 -10px;
    border: 1px solid rgba(255,215,0,.18);
    border-bottom: 1px solid rgba(255,215,0,.18);
}
.lb-rank {
    width: 34px; text-align: center;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0; color: var(--text2);
    line-height: 1;
}
.lb-rank.top1 { font-size: 22px; }
.lb-rank.top2 { font-size: 20px; }
.lb-rank.top3 { font-size: 18px; }
.lb-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--text1);
    flex-shrink: 0;
}
.lb-name {
    flex: 1; font-size: 13px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-name-you { font-size: 10px; color: #FFD700; margin-left: 4px; }
.lb-score {
    font-size: 13px; font-weight: 700; color: #FFD700;
    white-space: nowrap; text-align: right;
}
.lb-score-unit { font-size: 10px; color: var(--text2); font-weight: 400; }
.lb-right { text-align: right; flex-shrink: 0; }
.lb-prize {
    font-size: 11px; font-weight: 600;
    color: #4ade80;
    margin-top: 2px; white-space: nowrap;
}

/* Info sekme kartları */
.contest-info-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.contest-info-card.gold-card {
    background: rgba(255,215,0,.05);
    border-color: rgba(255,215,0,.2);
}
.contest-info-card h3 {
    font-size: 14px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 6px;
}
.contest-info-card p {
    font-size: 13px; color: var(--text2); margin: 0; line-height: 1.65;
}
.contest-date-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
}
.contest-date-row:last-child { border-bottom: none; padding-bottom: 0; }
.contest-date-lbl { color: var(--text2); }
.contest-date-val { font-weight: 600; color: var(--text1); }
.prize-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.prize-row:last-child { border-bottom: none; }
.prize-medal { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.prize-desc { flex: 1; font-size: 13px; line-height: 1.4; }
.prize-desc strong { color: var(--text1); display: block; }
.prize-desc span { color: var(--text2); font-size: 12px; }