:root {
  --bg: #06101d;
  --ink: #e8f3ff;
  --muted: #8fb0d4;
  --line: rgba(120,180,255,.16);
  --mint: #3ec6ff;
  --ok: #1ec98a;
  --card: #0c1b2e;
  --shadow: 0 18px 50px rgba(0,20,40,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--mint); text-decoration: none; }
.topbar {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 7vw; background: rgba(4,12,24,.78); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
  flex-wrap: wrap;
}
.logo { color: #fff; font-weight: 800; font-size: 22px; display: inline-flex; align-items: center; gap: 8px; }
.logo .mark {
  width: 28px; height: 28px; border-radius: 9px; background: var(--mint); color: #031018;
  display: grid; place-items: center; font-size: 14px;
}
.nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nav a { color: #d7e8f8; font-weight: 600; }
.btn, .wallet-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px;
  padding: 11px 16px; font-weight: 700; cursor: pointer; font: inherit;
}
.btn { background: var(--mint); color: #031018; }
.btn:hover { background: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-ok { background: var(--ok); color: #031018; }
.btn-bad { background: #ff5c7a; color: #fff; }
.lang-switch { display: inline-flex; gap: 4px; }
.lang-switch button {
  background: transparent; color: #9ec4e6; border: 1px solid rgba(120,180,255,.2);
  border-radius: 999px; padding: 6px 9px; cursor: pointer; font-weight: 700;
}
.lang-switch button.on { background: var(--mint); color: #031018; border-color: var(--mint); }
.wallet-box {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: #0b1a2c; border-radius: 999px; padding: 4px 6px 4px 10px;
}
.wallet-box.is-connected .wallet-dot { background: var(--ok); }
.wallet-dot { width: 8px; height: 8px; border-radius: 50%; background: #5d7384; }
.wallet-btn { background: transparent; color: #d7e8f8; padding: 6px 10px; }
button.linkish { background: none; border: 0; color: #d7e8f8; cursor: pointer; font: inherit; font-weight: 600; }

.hero {
  margin: 0; padding: 56px 7vw; min-height: 72vh;
  background:
    linear-gradient(90deg, rgba(4,10,22,.88) 8%, rgba(4,16,32,.55) 48%, rgba(4,10,22,.25) 100%),
    url("../img/hero-earth.jpg") center/cover no-repeat;
  color: #fff; display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tags span {
  border: 1px solid rgba(80,190,255,.45); background: rgba(20,70,120,.35); color: #bfe7ff;
  border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700;
}
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1; margin: 0 0 16px; letter-spacing: -1px; }
.hero .lead { color: rgba(255,255,255,.86); font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin: 24px 0 8px; flex-wrap: wrap; }
.phone-shot {
  width: min(420px, 100%); display: block; margin-left: auto;
  mix-blend-mode: lighten; filter: drop-shadow(0 18px 40px rgba(30,170,255,.28));
  transform: rotate(-7deg); mask-image: radial-gradient(ellipse 70% 72% at 50% 48%, #000 58%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 48%, #000 58%, transparent 78%);
}
.service-logos { background: #071427; padding: 28px 7vw; border-bottom: 1px solid var(--line); }
.service-logos p { margin: 0 0 14px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.service-logos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.service-logos li {
  display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(120,180,255,.18); border-radius: 999px; padding: 10px 14px; font-weight: 700;
}
.service-logos svg { width: 18px; height: 18px; flex: 0 0 18px; }
.section { padding: 48px 7vw; background: #071427; }
.section h2 { font-size: 32px; margin: 0 0 10px; }
.section .lead { color: var(--muted); max-width: 640px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: rgba(10,24,44,.86); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow);
}
.step-n { color: var(--mint); font-weight: 800; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; background: rgba(8,20,36,.9); border-radius: 16px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; color: var(--ink); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; }
.globe-band {
  height: 220px; background:
    linear-gradient(180deg, #071427 0%, rgba(7,20,39,.2) 35%, #050d18 100%),
    url("../img/section-globe.jpg") center 28% / cover no-repeat;
  border-top: 1px solid var(--line);
}
.footer {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 28px 7vw; background: #050d18; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.page, .auth, .cabinet-wrap { padding: 36px 7vw 40px; }
.auth {
  max-width: 460px; margin: 40px auto; background: var(--card); border-radius: 24px;
  padding: 28px; box-shadow: var(--shadow);
}
.auth form, form.stack { display: flex; flex-direction: column; gap: 14px; }
.auth .btn { width: 100%; justify-content: center; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
input, select, textarea {
  background: #0b1a2c; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; font: inherit; width: 100%;
}
.cabinet-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 24px; }
.side {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px; height: fit-content;
}
.side a, .side button.nav-link {
  display: block; width: 100%; text-align: left; color: #d7e8f8; padding: 8px 0;
  font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit;
}
.side-title { font-weight: 800; margin: 0 0 8px; }
.panel { display: none; }
.panel.active { display: block; }
.grid-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.big { font-size: 28px; margin: 8px 0 0; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.plastic {
  background: linear-gradient(145deg, #1d2a38, #31485d 60%, #1ec98a); color: #fff;
  border-radius: 22px; padding: 24px; min-height: 180px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 16px;
}
.plastic-top, .plastic-bottom { display: flex; justify-content: space-between; }
.plastic-num { font-size: 22px; letter-spacing: .12em; font-family: ui-monospace, Consolas, monospace; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.plastic.small { min-height: 150px; cursor: pointer; }
.badge {
  display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge.ok { background: rgba(30,201,138,.15); color: var(--ok); }
.badge.warn { background: rgba(240,180,41,.15); color: #f0b429; }
.flash {
  margin: 12px 7vw 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(62,198,255,.12); border: 1px solid var(--line);
}
.chat-widget { position: fixed; right: 18px; bottom: 18px; z-index: 40; }
.chat-toggle {
  border: 0; border-radius: 999px; padding: 12px 18px; background: var(--mint);
  color: #031018; font-weight: 800; cursor: pointer; box-shadow: var(--shadow);
}
.chat-panel {
  width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden;
}
.chat-head { padding: 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
.chat-log { height: 240px; overflow-y: auto; padding: 12px; background: #071427; }
.chat-msg { margin-bottom: 10px; font-size: 13px; }
.chat-msg b { color: var(--muted); }
.chat-form { display: flex; gap: 6px; padding: 10px; }
.chat-form input { flex: 1; }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .hero, .cabinet-wrap, .grid-3, .grid-stats { grid-template-columns: 1fr; }
  .phone-shot { margin: 0 auto; }
}

/* Wallet modal */
.nc-wallet-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,8,20,.72); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.nc-wallet-modal-overlay[hidden] { display: none !important; }
.nc-wallet-modal {
  width: min(420px, 100%); background: #0c1b2e; border: 1px solid rgba(120,180,255,.2);
  border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.45); color: #e8f3ff;
}
.nc-wallet-modal h3 { margin: 0 0 8px; font-size: 20px; }
.nc-wallet-modal p { color: #8fb0d4; margin: 0 0 16px; font-size: 14px; }
.nc-wallet-modal .nc-wallet-actions { display: flex; flex-direction: column; gap: 10px; }
.nc-wallet-modal .nc-wallet-actions button { width: 100%; justify-content: center; }
.nc-wallet-modal .nc-wallet-status { min-height: 20px; margin-top: 12px; font-size: 13px; color: #8fb0d4; }
.nc-wallet-modal .nc-wallet-close {
  position: absolute; top: 12px; right: 14px; background: none; border: 0; color: #8fb0d4;
  font-size: 22px; cursor: pointer; line-height: 1;
}
.nc-wallet-modal-wrap { position: relative; }
