/* LemonBitcoin MVP — static frontend, no PHP, no bundled font files. */
:root {
  --bg: #151a23;
  --bg-deep: #0f141c;
  --panel: #1d2430;
  --panel-2: #232c3a;
  --line: #303b4c;
  --line-soft: rgba(255,255,255,.065);
  --text: #eef2f7;
  --muted: #9da9ba;
  --muted-2: #758398;
  --lemon: #f4d44d;
  --lemon-2: #ffeb7a;
  --green: #58d68d;
  --red: #ff7272;
  --blue: #72a7ff;
  --sidebar: 268px;
  --header: 72px;
  --radius: 16px;
  --shadow: 0 16px 45px rgba(0,0,0,.20);
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 22px 22px;
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(244,212,77,.28); color: #fff; }

.app-sidebar {
  position: fixed; z-index: 50; inset: 0 auto 0 0;
  width: var(--sidebar); padding: 20px 14px;
  background: rgba(15,20,28,.96); border-right: 1px solid var(--line-soft);
  backdrop-filter: blur(14px); overflow-y: auto;
  transition: transform .22s ease;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 7px 10px 20px; }
.brand-mark { width: 40px; height: 40px; position: relative; border-radius: 50% 50% 46% 54% / 52% 48% 55% 45%; background: var(--lemon); box-shadow: 0 0 0 5px rgba(244,212,77,.08); transform: rotate(-8deg); flex: 0 0 auto; }
.brand-mark:after { content:""; position:absolute; width:12px; height:7px; border-radius:100% 0 100% 0; background:#72bd65; right:-3px; top:-3px; transform:rotate(23deg); }
.brand-copy strong { display:block; font-size: 18px; letter-spacing: .01em; }
.brand-copy small { display:block; color: var(--muted-2); margin-top: 2px; font-size: 11px; letter-spacing:.12em; text-transform:uppercase; }
.nav-kicker { margin: 19px 12px 8px; color: var(--muted-2); font-weight:700; font-size:10px; letter-spacing:.14em; text-transform:uppercase; }
.nav-list { list-style:none; padding:0; margin:0; }
.nav-link { display:flex; align-items:center; gap:12px; padding:11px 12px; margin:3px 0; border-radius:11px; color:#aeb8c7; font-size:14px; font-weight:600; transition:.18s ease; }
.nav-link:hover { background:rgba(255,255,255,.045); color:#fff; }
.nav-link.active { color:#fff; background:linear-gradient(90deg, rgba(244,212,77,.16), rgba(244,212,77,.035)); box-shadow: inset 3px 0 0 var(--lemon); }
.nav-icon { width:20px; height:20px; display:grid; place-items:center; color:var(--muted-2); }
.nav-link.active .nav-icon { color: var(--lemon); }
.nav-icon svg { width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sidebar-note { margin: 22px 7px 5px; padding:14px; border:1px solid rgba(244,212,77,.15); border-radius:14px; background:linear-gradient(145deg, rgba(244,212,77,.08), rgba(255,255,255,.02)); }
.sidebar-note strong { display:block; font-size:13px; }
.sidebar-note p { font-size:12px; line-height:1.55; color:var(--muted); margin:6px 0 0; }

.app-header { position:fixed; z-index:40; top:0; right:0; left:var(--sidebar); height:var(--header); display:flex; align-items:center; justify-content:space-between; padding:0 26px; background:rgba(21,26,35,.83); border-bottom:1px solid var(--line-soft); backdrop-filter:blur(16px); }
.header-left { display:flex; align-items:center; gap:12px; min-width:0; }
.menu-button { display:none; width:42px; height:42px; border:1px solid var(--line); background:var(--panel); border-radius:12px; cursor:pointer; }
.menu-button svg { width:20px; height:20px; stroke:currentColor; }
.page-label { min-width:0; }
.page-label strong { display:block; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.page-label small { color:var(--muted-2); font-size:11px; }
.header-right { display:flex; align-items:center; gap:10px; }
.live-chip { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; padding:8px 11px; border:1px solid var(--line-soft); border-radius:999px; background:rgba(255,255,255,.025); }
.live-dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 5px rgba(88,214,141,.1); }
.header-action { display:inline-flex; align-items:center; justify-content:center; min-height:38px; padding:0 14px; border-radius:10px; border:1px solid rgba(244,212,77,.28); background:rgba(244,212,77,.08); color:var(--lemon-2); font-size:12px; font-weight:800; }

.app-main { margin-left:var(--sidebar); padding:calc(var(--header) + 28px) 28px 52px; min-height:100vh; }
.container { width:min(1240px, 100%); margin:0 auto; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--lemon); font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.eyebrow:before { content:""; width:22px; height:1px; background:var(--lemon); opacity:.6; }
.hero { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.75fr); gap:18px; margin-bottom:18px; }
.hero-copy,.market-card,.panel,.tool-card,.service-card,.guide-card { border:1px solid var(--line-soft); background:linear-gradient(145deg, rgba(35,44,58,.95), rgba(25,31,42,.94)); box-shadow:var(--shadow); }
.hero-copy { min-height:330px; border-radius:22px; padding:38px; position:relative; overflow:hidden; }
.hero-copy:after { content:"₿"; position:absolute; right:-18px; bottom:-73px; font-size:250px; font-weight:900; color:rgba(244,212,77,.04); transform:rotate(-8deg); }
.hero h1 { font-size:clamp(38px,5vw,68px); line-height:.98; letter-spacing:-.045em; margin:13px 0 20px; max-width:780px; }
.hero h1 span { color:var(--lemon); }
.hero-lead { max-width:670px; font-size:17px; line-height:1.65; color:var(--muted); margin:0; }
.hero-actions { display:flex; gap:10px; margin-top:28px; flex-wrap:wrap; position:relative; z-index:2; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 17px; border-radius:11px; font-size:13px; font-weight:800; border:1px solid var(--line); cursor:pointer; transition:.16s ease; }
.btn-primary { background:var(--lemon); color:#1c1c17; border-color:var(--lemon); }
.btn-primary:hover { background:var(--lemon-2); transform:translateY(-1px); }
.btn-secondary { background:rgba(255,255,255,.035); color:#e8edf4; }
.btn-secondary:hover { background:rgba(255,255,255,.07); }

.market-card { border-radius:22px; padding:24px; display:flex; flex-direction:column; justify-content:space-between; min-height:330px; }
.market-head { display:flex; align-items:center; justify-content:space-between; }
.coin-badge { display:flex; align-items:center; gap:10px; }
.coin-icon { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--lemon); color:#171717; font-weight:900; font-size:21px; }
.coin-badge strong { display:block; }
.coin-badge small { color:var(--muted-2); }
.status-tag { font-size:10px; letter-spacing:.12em; font-weight:900; color:var(--green); }
.price { font-size:clamp(38px,4vw,54px); letter-spacing:-.045em; font-weight:800; margin:30px 0 6px; }
.change { font-weight:800; font-size:13px; }
.change.up { color:var(--green); } .change.down { color:var(--red); }
.market-meta { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:23px; }
.mini-stat { padding:12px; background:rgba(255,255,255,.025); border:1px solid var(--line-soft); border-radius:11px; }
.mini-stat span { display:block; color:var(--muted-2); font-size:10px; text-transform:uppercase; letter-spacing:.09em; margin-bottom:5px; }
.mini-stat strong { font-size:13px; }

.section { margin-top:18px; }
.section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 2px 14px; }
.section-head h2 { margin:5px 0 0; font-size:24px; letter-spacing:-.025em; }
.section-head p { margin:0; max-width:620px; color:var(--muted); font-size:13px; line-height:1.55; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.panel { border-radius:16px; padding:19px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.panel-title h3 { margin:0; font-size:15px; }
.panel-title small { color:var(--muted-2); font-size:10px; }
.metric { padding:14px 0; border-top:1px solid var(--line-soft); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.metric:first-of-type { border-top:0; }
.metric span { color:var(--muted); font-size:12px; }
.metric strong { font-size:13px; text-align:right; }

.tool-card,.service-card,.guide-card { border-radius:16px; padding:20px; transition:.18s ease; position:relative; overflow:hidden; }
.tool-card:hover,.service-card:hover,.guide-card:hover { transform:translateY(-2px); border-color:rgba(244,212,77,.22); }
.card-icon { width:42px; height:42px; border-radius:12px; background:rgba(244,212,77,.10); color:var(--lemon); display:grid; place-items:center; margin-bottom:18px; }
.card-icon svg { width:21px; height:21px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.tool-card h3,.service-card h3,.guide-card h3 { margin:0 0 8px; font-size:15px; }
.tool-card p,.service-card p,.guide-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.card-link { display:inline-flex; align-items:center; gap:6px; margin-top:18px; color:var(--lemon-2); font-size:11px; font-weight:800; }

.feature-strip { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; border:1px solid var(--line-soft); border-radius:16px; overflow:hidden; background:var(--line-soft); }
.feature { padding:18px; background:rgba(29,36,48,.96); }
.feature strong { display:block; font-size:13px; margin-bottom:6px; }
.feature p { margin:0; color:var(--muted); font-size:11px; line-height:1.5; }

.page-hero { border:1px solid var(--line-soft); border-radius:20px; background:linear-gradient(145deg,rgba(35,44,58,.96),rgba(24,30,40,.96)); padding:30px; margin-bottom:18px; }
.page-hero h1 { margin:8px 0 10px; font-size:clamp(32px,4vw,48px); letter-spacing:-.035em; }
.page-hero p { margin:0; color:var(--muted); line-height:1.65; max-width:780px; font-size:14px; }

.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field label { color:#cdd4de; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.input-wrap { position:relative; }
.input-wrap input,.field select { width:100%; height:46px; border-radius:11px; border:1px solid var(--line); background:#151b24; color:#eef2f7; padding:0 14px; outline:none; transition:.16s ease; }
.input-wrap input:focus,.field select:focus { border-color:rgba(244,212,77,.55); box-shadow:0 0 0 3px rgba(244,212,77,.07); }
.input-suffix { position:absolute; right:13px; top:50%; transform:translateY(-50%); color:var(--muted-2); font-size:11px; font-weight:800; }
.result-box { margin-top:14px; padding:17px; border-radius:13px; background:linear-gradient(145deg,rgba(244,212,77,.08),rgba(255,255,255,.02)); border:1px solid rgba(244,212,77,.13); }
.result-box small { display:block; color:var(--muted-2); text-transform:uppercase; letter-spacing:.11em; font-weight:800; font-size:9px; margin-bottom:5px; }
.result-box strong { font-size:24px; letter-spacing:-.025em; }
.result-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:12px; }
.result-mini { padding:11px; border-radius:10px; border:1px solid var(--line-soft); background:rgba(0,0,0,.08); }
.result-mini span { display:block; color:var(--muted-2); font-size:9px; text-transform:uppercase; margin-bottom:5px; }
.result-mini strong { font-size:12px; }
.note { margin-top:12px; color:var(--muted-2); font-size:10px; line-height:1.55; }
.table { width:100%; border-collapse:collapse; }
.table th,.table td { padding:13px 12px; border-bottom:1px solid var(--line-soft); text-align:left; font-size:12px; }
.table th { color:var(--muted-2); text-transform:uppercase; letter-spacing:.08em; font-size:9px; }
.table td { color:#dbe1e9; }
.badge { display:inline-flex; align-items:center; min-height:23px; padding:0 8px; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.badge-good { color:var(--green); border-color:rgba(88,214,141,.2); background:rgba(88,214,141,.06); }
.badge-warn { color:var(--lemon-2); border-color:rgba(244,212,77,.2); background:rgba(244,212,77,.06); }

.footer { margin-top:32px; padding:22px 3px 0; border-top:1px solid var(--line-soft); display:flex; align-items:flex-start; justify-content:space-between; gap:22px; color:var(--muted-2); font-size:10px; line-height:1.6; }
.footer nav { display:flex; gap:14px; flex-wrap:wrap; }
.footer a:hover { color:var(--lemon); }

.mobile-overlay { display:none; position:fixed; z-index:45; inset:0; background:rgba(0,0,0,.55); backdrop-filter:blur(2px); }
.mobile-overlay.show { display:block; }
.loading-skeleton { display:inline-block; min-width:72px; color:transparent!important; border-radius:5px; background:linear-gradient(90deg,#2c3543 25%,#3a4556 50%,#2c3543 75%); background-size:200% 100%; animation:shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position:-200% 0; } }
.toast { position:fixed; z-index:100; right:22px; bottom:22px; padding:12px 15px; border-radius:12px; border:1px solid var(--line); background:#10151d; color:#e9eef5; font-size:12px; box-shadow:var(--shadow); opacity:0; transform:translateY(8px); pointer-events:none; transition:.2s ease; }
.toast.show { opacity:1; transform:translateY(0); }

@media (max-width: 1120px) {
  .hero { grid-template-columns:1fr; }
  .market-card { min-height:auto; }
  .grid-4 { grid-template-columns:repeat(2,1fr); }
  .grid-3 { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 850px) {
  :root { --sidebar: 0px; }
  .app-sidebar { width:268px; transform:translateX(-100%); }
  .app-sidebar.open { transform:translateX(0); }
  .app-header { left:0; padding:0 15px; }
  .menu-button { display:grid; place-items:center; }
  .app-main { margin-left:0; padding-left:15px; padding-right:15px; }
  .header-action { display:none; }
}
@media (max-width: 620px) {
  .hero-copy,.market-card,.page-hero { padding:21px; border-radius:17px; }
  .hero-copy { min-height:auto; }
  .hero h1 { font-size:39px; }
  .grid-4,.grid-3,.grid-2,.form-grid,.result-grid { grid-template-columns:1fr; }
  .feature-strip { grid-template-columns:1fr; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .market-meta { grid-template-columns:1fr 1fr; }
  .live-chip span:last-child { display:none; }
  .footer { flex-direction:column; }
}
