:root {
  --bg: #030814;
  --bg2: #071329;
  --card: rgba(13, 22, 42, .72);
  --card2: rgba(17, 31, 58, .82);
  --line: rgba(111, 151, 255, .18);
  --line2: rgba(111, 151, 255, .32);
  --text: #f4f8ff;
  --muted: #8d9bb6;
  --blue: #3577ff;
  --blue2: #65a0ff;
  --cyan: #22d3ee;
  --green: #31dd82;
  --violet: #7c5cff;
  --orange: #ffb33c;
  --red: #ff5265;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 5%, rgba(38, 112, 255, .25), transparent 34%),
    radial-gradient(circle at 10% 12%, rgba(38, 112, 255, .12), transparent 30%),
    linear-gradient(180deg, #061125 0%, #030814 42%, #02050d 100%);
  font: 15px/1.55 Manrope, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.page-orbs::before,
.page-orbs::after {
  content: "";
  position: fixed;
  z-index: -2;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  animation: float 12s ease-in-out infinite;
}
.page-orbs::before { right: -130px; top: 180px; background: #287bff; }
.page-orbs::after { left: -180px; bottom: 80px; background: #693dff; animation-delay: -5s; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 30, 58, .78), rgba(8, 14, 28, .7));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(22px);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(1640px, calc(100% - 36px));
  height: 70px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 0 12px 0 24px;
  border-radius: 18px;
  overflow: hidden;
}
.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 5%;
  width: 90%;
  height: 1px;
  pointer-events: none;
}
.topbar::before { top: 0; background: linear-gradient(90deg, transparent, rgba(98,158,255,.72) 32%, rgba(126,105,255,.45) 68%, transparent); }
.topbar::after { bottom: 0; background: linear-gradient(90deg, transparent, rgba(36,105,255,.2) 22%, rgba(60,122,255,.62) 50%, rgba(72,91,218,.18) 78%, transparent); box-shadow: 0 3px 18px rgba(53,119,255,.34); }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; font-size: 21px; letter-spacing: -.04em; }
.brand span span, .brand-mark { color: var(--blue2); }
.brand-mark {
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: url("/assets/brand/rexohost-avatar.png?v=20260715b") center / contain no-repeat;
  color: white;
  font-weight: 1000;
  font-size: 0;
  box-shadow: none;
}

.topbar nav { display: flex; justify-content: center; gap: 4px; }
.topbar nav a {
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.topbar nav a.active, .topbar nav a:hover { color: white; background: rgba(75, 119, 255, .18); outline: 1px solid rgba(119, 157, 255, .32); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.logout-button[hidden] { display: none !important; }
.toast-stack { position: fixed; top: 86px; right: 24px; z-index: 3000; display: grid; gap: 10px; width: min(390px, calc(100vw - 32px)); }
.site-toast { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; padding: 14px; border: 1px solid rgba(112,151,225,.3); border-radius: 15px; color: #eaf2ff; background: rgba(10,22,43,.96); box-shadow: 0 18px 55px rgba(0,0,0,.34); backdrop-filter: blur(16px); animation: toastIn .2s ease-out; }
.site-toast > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #8db5ff; background: rgba(64,119,238,.18); font-weight: 900; }
.site-toast.success > span { color: #5af0a0; background: rgba(40,190,112,.15); }
.site-toast.error > span { color: #ff7d8c; background: rgba(229,61,83,.15); }
.site-toast p { margin: 0; line-height: 1.4; }
.site-toast button { color: #8c9ab5; background: transparent; font-size: 22px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.status-pill, .icon-button, .primary, .hollow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 12px;
  font-weight: 900;
}
.status-pill { gap: 8px; padding: 0 15px; color: #9dffc3; background: rgba(25, 170, 94, .15); border: 1px solid rgba(49, 221, 130, .32); }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); }
.icon-button { width: 42px; color: #bcd0ff; background: rgba(85, 119, 255, .14); border: 1px solid var(--line); }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.icon-button.tg-top { color: #60d8ff; }
.primary { padding: 0 26px; color: white; background: linear-gradient(135deg, #4384ff, #1f61f4); box-shadow: 0 14px 35px rgba(42, 108, 255, .35); }
.primary.small { min-height: 44px; padding: 0 20px; }
.primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.hollow { padding: 0 22px; color: #8db7ff; background: rgba(41, 104, 255, .08); border: 1px solid rgba(84, 130, 255, .34); }
.wide { width: 100%; }
.disabled { opacity: .45; cursor: not-allowed; }

main { width: min(1580px, calc(100% - 46px)); margin: 0 auto; }
.view { display: none; min-height: calc(100vh - 94px); padding: 82px 24px 80px; }
.view.active { display: block; animation: routeReveal .48s cubic-bezier(.22,.8,.28,1) both; }
.tariffs.active { animation-duration: .62s; }
#games, #locations { scroll-margin-top: 88px; }
.hero.active { display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: start; gap: 76px; padding-top: 68px; }
.rexo-hero { position: relative; isolation: isolate; }
.rexo-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: -120px;
  bottom: -100px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%) scale(1.015);
  background:
    linear-gradient(90deg, rgba(3,9,22,.97) 0%, rgba(3,9,22,.82) 34%, rgba(3,9,22,.46) 66%, rgba(4,13,31,.72) 100%),
    linear-gradient(0deg, rgba(3,9,22,.9), transparent 38%, rgba(3,9,22,.28)),
    url("/assets/showcase/minecraft.jpg") center 38%/cover no-repeat;
  filter: saturate(.82) blur(3px);
  opacity: .58;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
  pointer-events: none;
}
.rexo-hero::before {
  content: "";
  position: absolute;
  right: 80px;
  top: 110px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53,119,255,.42), transparent 64%);
  filter: blur(12px);
  z-index: -1;
}

.rating { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.rating span { color: #ffc24a; letter-spacing: .11em; text-shadow: 0 0 18px rgba(255,194,74,.18); }
.rating b { color: white; font-size: 14px; }
h1, h2, h3 { margin-top: 0; line-height: .98; letter-spacing: -.055em; }
h1 { max-width: 880px; margin-bottom: 32px; font-size: clamp(59px, 5.8vw, 90px); font-weight: 800; text-transform: uppercase; }
h1 span, h2 span { color: #67a1ff; }
.hero-copy p { max-width: 690px; color: #c6d2e6; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.chips span { padding: 9px 14px; border-radius: 9px; color: #9dc1ff; background: rgba(36, 86, 185, .18); border: 1px solid rgba(104, 148, 255, .28); font-size: 14px; font-weight: 750; }
.price-line strong { font-size: 32px; }
.price-line strong::after { content: ""; color: #6da0ff; }
.price-line small { color: var(--muted); margin-left: 6px; }
.hero-copy .price-note { max-width: 620px; margin: 9px 0 0; color: #8798b5; font-size: 14px; line-height: 1.55; }
.hero-buttons { display: flex; align-items: center; gap: 22px; margin-top: 18px; }
.hero-buttons .link { color: #cfd9ed; border-bottom: 1px dashed rgba(207,217,237,.4); }

.control-hub {
  position: relative;
  justify-self: center;
  width: min(520px, 100%);
  padding: 20px;
  border-radius: 28px;
  overflow: hidden;
}
.control-hub::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(100,170,255,.7), transparent 35%, rgba(124,92,255,.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hub-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hub-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #4384ff, #7c5cff); font-weight: 1000; box-shadow: 0 0 28px rgba(67,132,255,.45); }
.hub-top small { display: block; color: var(--muted); }
.hub-top em { margin-left: auto; padding: 6px 10px; border-radius: 999px; color: #93ffc0; background: rgba(49,221,130,.12); border: 1px solid rgba(49,221,130,.3); font-size: 12px; font-style: normal; font-weight: 1000; }
.hub-console { min-height: 190px; display: grid; align-content: start; gap: 8px; padding: 18px; border-radius: 18px; background: rgba(2,7,15,.72); border: 1px solid rgba(255,255,255,.07); font: 13px/1.45 Consolas, monospace; box-shadow: inset 0 0 45px rgba(0,0,0,.35); }
.hub-console .line { color: #d6e2f5; }
.hub-console .green { color: #7dffad; }
.hub-console .blue { color: #93c5ff; }
.hub-console .cyan { color: #67e8f9; }
.hub-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.hub-metrics div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hub-metrics small { color: var(--muted); }
.hub-metrics strong { display: block; margin: 4px 0 10px; font-size: 22px; }
.hub-metrics i { display: block; height: 5px; border-radius: 999px; background: linear-gradient(90deg, #4384ff var(--w), rgba(255,255,255,.08) var(--w)); }
.hub-socials { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 12px; }
.hub-socials a { flex: 1; padding: 9px; border: 1px solid rgba(106,151,255,.18); border-radius: 10px; color: #9db9ec; background: rgba(5,14,32,.48); text-align: center; text-decoration: none; font-size: 12px; font-weight: 900; }
.hub-socials a:hover { color: white; border-color: rgba(79,144,255,.62); background: rgba(45,105,230,.2); }
.hub-orbit { position: absolute; right: 28px; bottom: 28px; width: 92px; height: 92px; border: 1px solid rgba(120,160,255,.18); border-radius: 50%; animation: spin 10s linear infinite; opacity: .8; }
.hub-orbit span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #67a1ff; box-shadow: 0 0 18px #67a1ff; }
.hub-orbit span:nth-child(1) { left: 10px; top: 15px; }
.hub-orbit span:nth-child(2) { right: 4px; top: 44px; background: #31dd82; }
.hub-orbit span:nth-child(3) { left: 42px; bottom: -4px; background: #7c5cff; }

.phone-card { position: relative; width: 370px; justify-self: center; margin-top: 30px; padding: 15px; overflow: hidden; border-radius: 40px; background: linear-gradient(180deg, rgba(28,48,91,.9), rgba(13,24,49,.88)); box-shadow: 0 35px 100px rgba(0,0,0,.42), 0 0 65px rgba(54,119,255,.16); }
.phone-card::before,
.phone-card::after { content: ""; position: absolute; z-index: 2; left: 10%; width: 80%; height: 1px; pointer-events: none; }
.phone-card::before { top: 0; background: linear-gradient(90deg, transparent, rgba(116,178,255,.88), transparent); box-shadow: 0 4px 20px rgba(90,154,255,.28); }
.phone-card::after { bottom: 0; background: linear-gradient(90deg, transparent, rgba(81,102,255,.82), rgba(46,186,255,.5), transparent); box-shadow: 0 -5px 24px rgba(55,111,255,.25); }
.phone-screen { padding: 12px; border-radius: 28px; background: #050b16; }
.phone-image { height: 176px; display: grid; place-items: center; align-content: center; border-radius: 23px 23px 8px 8px; overflow: hidden; background: linear-gradient(0deg, rgba(3,9,19,.38), rgba(7,22,48,.08)), url("/assets/showcase/minecraft.jpg") center 42%/cover; }
.phone-image small { padding: 4px 9px; border-radius: 8px; color: #d7e8ff; background: rgba(4,11,24,.34); backdrop-filter: blur(8px); }
.phone-image strong { font-size: 48px; line-height: 1; }
.phone-row-head { display: flex; justify-content: space-between; margin: 18px 2px 10px; color: #91a0b8; font-weight: 900; text-transform: uppercase; font-size: 12px; }
.phone-row-head b { color: #65ffa5; text-transform: none; }
.phone-row-head i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.notice { display: flex; gap: 12px; align-items: center; margin: 10px 0; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.notice span { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #2d6dff; font-size: 20px; font-weight: 900; }
.notice.good span { background: #42df7a; color: #031407; }
.notice.support span { color: #9bb9ee; background: rgba(98,125,177,.22); border: 1px solid rgba(141,169,222,.2); }
.notice small { display: block; color: #98a5bc; }

.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.back-link { color: #9ba8be; font-weight: 800; }
.eyebrow { margin: 18px 0 18px; color: #83adff; text-transform: uppercase; letter-spacing: .22em; font-weight: 950; font-size: 12px; }
.section-head h2 { font-size: clamp(44px, 5vw, 74px); }
.section-head p { color: #c2cee0; font-size: 18px; }
.segmented { width: max-content; margin: 34px auto 0; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.segmented button { min-width: 120px; height: 44px; border-radius: 12px; color: #ffc95c; background: transparent; font-weight: 900; }
.segmented .active { color: white; background: var(--blue); }

.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan-card { position: relative; overflow: hidden; min-height: 430px; border-radius: 22px; padding: 22px; background: linear-gradient(180deg, rgba(37,88,201,.85), rgba(8,15,29,.96) 32%); border: 1px solid rgba(87, 134, 255, .32); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 28px 80px rgba(0,0,0,.22); }
.plan-card:nth-child(4n) { background: linear-gradient(180deg, rgba(20,126,160,.75), rgba(8,15,29,.96) 32%); }
.plan-card .mob { height: 112px; display: flex; justify-content: center; align-items: center; filter: drop-shadow(0 18px 16px rgba(0,0,0,.45)); }
.plan-card .mob img { max-width: 124px; max-height: 106px; object-fit: contain; transform: translateY(2px); transition: transform .25s ease, filter .25s ease; }
.plan-card:hover .mob img { transform: translateY(-5px) scale(1.06); filter: drop-shadow(0 0 20px rgba(104,161,255,.3)); }
.plan-card h3 { font-size: 28px; margin: 0 0 28px; }
.plan-kind { min-height: 34px; margin: -18px 0 22px; color: #9fb0ca; font-weight: 800; font-size: 13px; }
.plan-card .badge { position: absolute; top: 16px; right: 16px; padding: 6px 11px; border-radius: 999px; background: #33e77e; color: #041208; font-weight: 1000; font-size: 12px; }
.plan-price { font-size: 44px; font-weight: 1000; margin-bottom: 18px; }
.plan-price small { font-size: 14px; color: var(--muted); }
.features { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); }
.features div { display: flex; justify-content: space-between; gap: 12px; }
.features span { color: #c7d4ea; }
.features b { text-align: right; }
.plan-card .primary { width: 100%; margin-top: 18px; }
.included { display: grid; grid-template-columns: 1.3fr repeat(5, auto); align-items: center; gap: 28px; margin-top: 74px; padding: 32px; border-radius: 22px; }
.included div { display: flex; align-items: center; gap: 12px; }
.included span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(74, 121, 255, .16); border: 1px solid var(--line); }

.shell-view.active { display: grid; grid-template-columns: 258px minmax(0, 1fr); gap: 0; width: 100%; min-height: 100vh; margin-left: 0; padding: 0; }
.side { position: sticky; top: 0; min-height: 100vh; padding: 26px 14px; border-width: 0 1px 0 0; border-radius: 0; background: rgba(6, 12, 25, .78); overflow: hidden; }
.side.clone { display: block; }
.side-brand { margin: 0 14px 28px; }
.side-link { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 8px 0; padding: 12px 14px; border-radius: 10px; color: #9aa8be; font-weight: 800; }
.side-link.active, .side-link:hover { color: #67a1ff; background: rgba(47, 116, 255, .16); }
.side-link b { margin-left: auto; padding: 2px 7px; border-radius: 999px; color: white; background: #5d7cff; font-size: 10px; }
.side-user { position: absolute; left: 10px; right: 10px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 12px;
  color: #eaf2ff;
  background-color: #315fd7;
  background-image: linear-gradient(145deg, #4d87ff, #654fe5);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border: 1px solid rgba(126, 167, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-weight: 900;
}
.avatar.has-image { color: transparent; }
.avatar.big { width: 76px; height: 76px; border-radius: 18px; }
.side-user small { display: block; color: var(--muted); }
.side-user button { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; color: #a9b7ce; background: rgba(255,255,255,.06); }
.side-button {
  width: 100%;
  text-align: left;
  color: #9aa8be;
  background: transparent;
  font: inherit;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.side-link::first-letter { color: inherit; }
.side-ico {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  border-radius: 9px;
  color: #8eb6f7;
  background: #12213d;
  border: 1px solid rgba(115, 165, 255, .28);
  box-shadow: none;
  font-size: 12px;
}
.side-link.active .side-ico,
.side-link:hover .side-ico {
  color: white;
  background: #18305a;
  border-color: rgba(125, 180, 255, .55);
  box-shadow: none;
}
.panel-page, .create-page, .finance-page, .profile-page { position: relative; padding: 52px 74px 80px; }
.crumbs { color: #9ba8be; margin-bottom: 34px; font-weight: 800; }
.profile-chip { position: absolute; top: 40px; right: 74px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.05); }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { min-height: 142px; padding: 22px; border-radius: 16px; }
.stat-card span,
.order-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 12px;
  color: #7fb0ff;
  background:
    radial-gradient(circle at 68% 20%, rgba(68, 159, 255, .95), rgba(68, 159, 255, .18) 34%, transparent 35%),
    linear-gradient(145deg, rgba(49, 91, 210, .44), rgba(18, 38, 82, .55));
  border: 1px solid rgba(104, 154, 255, .42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 12px 32px rgba(56, 120, 255, .18);
}
.stat-card small { color: var(--muted); }
.stat-card strong { display: block; margin: 8px 0; font-size: 28px; }
.stat-card a { color: #57a0ff; font-weight: 900; }
.empty-server { min-height: 480px; display: grid; place-items: center; align-content: center; text-align: center; }
.orbit-icon { width: 128px; height: 128px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 24px rgba(72, 117, 255, .04); }
.orbit-icon span { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px; color: #67a1ff; background: rgba(74, 121, 255, .12); font-size: 30px; }
.empty-server h2 { margin: 38px 0 4px; font-size: 28px; }
.empty-server p { color: var(--muted); }

.create-title { display: flex; align-items: center; gap: 14px; margin: 34px 0; }
.create-title > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #4384ff, #725cff); box-shadow: 0 0 30px rgba(74, 121, 255, .45); font-size: 26px; }
.create-title h2 { margin: 0; font-size: 34px; }
.create-title p { margin: 4px 0 0; color: var(--muted); }
.edition-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.edition-tab { width: max-content; padding: 14px 24px; border-radius: 14px; color: #b9c8e4; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 950; }
.edition-tab.active { color: white; background: linear-gradient(135deg, #4384ff, #725cff); border-color: rgba(122,156,255,.65); box-shadow: 0 0 30px rgba(74, 121, 255, .35); }
.create-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.order-steps { display: grid; gap: 20px; }
.step { padding: 28px; border-radius: 18px; }
.step h3 { font-size: 20px; letter-spacing: -.02em; }
.step h3 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); font-size: 12px; margin-right: 8px; }
.choice { position: relative; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(49, 104, 255, .08); }
.choice small { display: block; color: var(--muted); }
.choice em { position: absolute; right: 18px; top: 22px; color: var(--blue2); }
.mini-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mini-plan { padding: 14px; border-radius: 14px; color: #f4f8ff; background: linear-gradient(180deg, rgba(45, 69, 160, .34), rgba(13, 22, 45, .78)); border: 1px solid rgba(130, 98, 255, .34); text-align: center; transition: .18s ease; }
.mini-plan:hover,
.mini-plan.active { transform: translateY(-2px); border-color: rgba(96, 150, 255, .85); box-shadow: 0 18px 40px rgba(44, 99, 255, .22), inset 0 1px 0 rgba(255,255,255,.08); }
.mini-plan .mob { height: 46px; display: grid; place-items: center; }
.mini-plan .mob img { max-width: 50px; max-height: 44px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.mini-plan b { display: block; margin: 8px 0; }
.mini-plan small { color: #b5c3db; }
.mini-plan strong { display: block; margin-top: 8px; padding: 8px; border-radius: 8px; color: white; background: rgba(255,255,255,.09); }
label { display: grid; gap: 8px; color: #aebbd0; font-weight: 800; margin: 16px 0; }
input,
select { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; color: white; background: rgba(255,255,255,.06); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8fb5ff 50%), linear-gradient(135deg, #8fb5ff 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 12px) 20px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
select option { color: #eef5ff; background: #101a31; }
select option:checked,
select option:hover { color: #fff; background: #2568e8; }
input:focus,
select:focus { border-color: #4d86ff; box-shadow: 0 0 0 4px rgba(69, 126, 255, .16); }
.field-hint { color: #7f8ca6; font-size: 12px; font-weight: 700; }
.field-error {
  display: none;
  color: #ff6b7a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}
.field-error:not([hidden]) { display: block; }
.field-invalid input,
.field-invalid select {
  border-color: rgba(255, 82, 103, .95);
  background: rgba(255, 82, 103, .08);
  box-shadow: 0 0 0 4px rgba(255, 82, 103, .12);
}
.agree.field-invalid {
  border-color: rgba(255, 82, 103, .85);
  background: rgba(255, 82, 103, .08);
}
.order-card.field-invalid {
  border-color: rgba(255, 82, 103, .72);
  box-shadow: 0 0 0 4px rgba(255, 82, 103, .1), inset 0 1px 0 rgba(255,255,255,.07);
}
.periods { display: grid; grid-template-columns: repeat(2, minmax(160px, 1fr)); gap: 10px; }
.periods button { min-height: 72px; border-radius: 14px; color: white; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-weight: 900; }
.periods small { display: block; margin-top: 8px; color: #8fb5ff; }
.periods .active { border-color: #4384ff; background: rgba(47, 116, 255, .1); }
.periods b { display: block; width: max-content; margin: 6px auto 0; padding: 2px 8px; border-radius: 999px; color: #29e282; background: rgba(41, 226, 130, .12); font-size: 12px; }
.agree { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.04); }
.agree input { width: auto; height: auto; }
.agree .field-error { flex-basis: 100%; padding-left: 26px; }
.order-card { position: sticky; top: 110px; min-height: 344px; padding: 26px; border-radius: 18px; text-align: left; }
.order-card h3 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.order-card h3 em { margin-left: auto; padding: 6px 10px; border-radius: 999px; color: #41f39a; background: rgba(38, 213, 129, .12); font-size: 12px; font-style: normal; }
.order-icon { width: 32px; height: 32px; margin: 0; border-radius: 10px; }
.empty-box { margin: 46px 0 28px; color: #44536d; }
.empty-box:first-line { font-size: 50px; }
.order-card small { display: block; margin-top: 14px; color: #6f7b90; }
.order-summary { display: grid; gap: 18px; margin: 18px 0; }
.order-plan { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid rgba(82, 131, 255, .35); border-radius: 14px; background: rgba(63, 94, 190, .13); }
.order-plan img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45)); }
.order-plan b { display: block; color: white; }
.order-plan small { margin: 2px 0 0; color: #8fa1bd; }
.order-plan strong { color: white; font-size: 20px; }
.order-summary dl { display: grid; gap: 12px; margin: 0; }
.order-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.order-summary dt { color: #8795ad; }
.order-summary dd { margin: 0; color: #e8f1ff; font-weight: 900; text-align: right; }
.order-summary .total { align-items: end; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.order-summary .total dd { font-size: 28px; }
.checkout-pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 8px; }
.checkout-pay-methods button { min-height: 72px; padding: 14px; text-align: left; color: #eaf2ff; border: 1px solid rgba(93, 145, 255, .25); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: inset 0 1px rgba(255,255,255,.05); cursor: pointer; }
.checkout-pay-methods button b { display: block; font-size: 14px; }
.checkout-pay-methods button small { display: block; margin-top: 5px; color: #8fa4c8; }
.checkout-pay-methods button.active { border-color: #5d91ff; background: linear-gradient(135deg, rgba(58, 126, 255, .25), rgba(55, 35, 190, .14)); box-shadow: 0 14px 32px rgba(42, 100, 240, .18), inset 0 1px rgba(255,255,255,.08); }
.checkout-pay-methods button.insufficient { border-color: rgba(255, 93, 121, .58); }
.checkout-pay-methods button.insufficient small { color: #ff8aa1; }
.checkout-pay-hint { min-height: 34px; margin: 0 0 12px; color: #8fa4c8; font-size: 13px; line-height: 1.35; }
.checkout-pay-hint.error { color: #ff8aa1; }

.payment { display: grid; grid-template-columns: 260px 1fr; border-radius: 18px; overflow: hidden; }
.payment aside { padding: 34px 28px; border-right: 1px solid var(--line); }
.payment aside p, .payment section > p { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 900; }
.payment aside strong { font-size: 42px; }
.payment aside > span { display: block; width: max-content; margin: 10px 0 190px; padding: 6px 12px; border-radius: 999px; color: #54ffa0; background: rgba(49, 221, 130, .12); border: 1px solid rgba(49, 221, 130, .32); font-weight: 900; }
.pay-facts { display: grid; gap: 10px; }
.pay-facts b { display: flex; justify-content: space-between; padding: 12px; border-radius: 10px; background: rgba(255,255,255,.05); color: #7f8da5; }
.pay-facts em { color: white; font-style: normal; }
.payment section { padding: 34px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-methods button { min-height: 126px; padding: 22px; text-align: left; color: white; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-weight: 950; }
.pay-methods button.active { background: linear-gradient(135deg, #4384ff, #245bea); border-color: #70a0ff; box-shadow: 0 18px 42px rgba(48, 102, 255, .25); }
.pay-methods small { display: block; color: #b3c0d6; margin-top: 4px; }
.amounts { display: flex; gap: 8px; margin: 12px 0 24px; }
.amounts button { padding: 9px 15px; border-radius: 9px; color: #9dabbe; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.amounts button:hover { color: white; border-color: rgba(101, 155, 255, .6); background: rgba(58, 118, 255, .14); }

.profile-hero { display: flex; align-items: center; gap: 24px; padding: 34px; border-radius: 18px; border-top-color: #c829ff; }
.profile-hero h2 { margin: 0 0 8px; font-size: 28px; }
.profile-hero p { margin: 0 0 6px; color: var(--muted); }
.profile-hero small { color: #ff5265; }
.balance { margin-left: auto; min-width: 110px; height: 56px; border-radius: 14px; color: #39f098; background: rgba(49,221,130,.12); border: 1px solid rgba(49,221,130,.25); font-size: 22px; font-weight: 1000; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.profile-grid article { min-height: 216px; padding: 26px; border-radius: 18px; }
.profile-grid p { color: var(--muted); }

.footer { width: min(1600px, calc(100% - 36px)); margin: 60px auto 24px; padding: 38px; border-radius: 24px; display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }
.footer p, .footer a, .footer small { color: #8f9db4; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav b { color: #8b9ab1; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
.footer > small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }

.ghost.small {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #f4f7ff;
  background: rgba(255,255,255,.055);
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.ghost.small:hover {
  color: white;
  border-color: rgba(101,160,255,.65);
  background: rgba(53,119,255,.18);
  transform: translateY(-1px);
}
.auth-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  min-height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(39, 115, 255, .12), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(34, 211, 238, .08), transparent 30%),
    linear-gradient(135deg, #070a12 0%, #101119 48%, #080b14 100%);
  overflow-x: hidden;
  overflow-y: auto;
}
.auth-dialog[open] { display: block; }
.auth-dialog::backdrop { background: #050711; }
.auth-dialog .auth-shell::after {
  content: none;
}
.auth-dialog::before,
.auth-dialog::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  opacity: .42;
}
.auth-dialog::before {
  left: -50px;
  top: 58px;
  width: 360px;
  height: 160px;
  border: 1px solid rgba(40, 105, 255, .16);
  border-radius: 0 0 90px 0;
  transform: rotate(-34deg);
}
.auth-dialog::after {
  right: -80px;
  bottom: 36px;
  width: 360px;
  height: 180px;
  border: 1px solid rgba(40, 105, 255, .13);
  border-radius: 90px 0 0 0;
  transform: rotate(-24deg);
}
.auth-shell {
  position: relative;
  z-index: 3;
  width: min(420px, calc(100vw - 34px));
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin: 52px auto 36px;
  padding: 18px 32px 32px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(180deg, rgba(24, 25, 32, .96), rgba(18, 19, 26, .97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 90px rgba(0,0,0,.42);
}
.auth-close {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  width: auto;
  min-width: 98px;
  height: 39px;
  padding: 0 17px;
  border-radius: 999px;
  color: #f4f7ff;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  font-size: 14px;
  font-weight: 900;
  z-index: 1;
}
.auth-close:hover { color: white; background: rgba(255,255,255,.12); }
.auth-mini-brand {
  position: static;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  color: #f8fbff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  z-index: 1;
}
.auth-mini-brand .brand-mark {
  width: 36px;
  height: 31px;
  border-radius: 0;
  font-size: 0;
}
.auth-head { grid-column: 1 / -1; text-align: center; }
.auth-head h2 {
  margin: 0 0 10px;
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: 0;
}
.auth-head p {
  margin: 0;
  color: #a0a2ad;
  font-weight: 700;
}
.auth-tabs {
  grid-column: 1 / -1;
  order: 2;
  width: min(216px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.auth-tabs button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  color: #a2a5b0;
  background: transparent;
  font-weight: 900;
  font-size: 13px;
}
.auth-tabs button svg { display: none; }
.auth-tabs button.active {
  color: white;
  background: linear-gradient(135deg, #4384ff, #2f72f5);
  box-shadow: 0 12px 28px rgba(53,119,255,.28);
}
.auth-pane { grid-column: 1 / -1; order: 3; display: none; gap: 18px; }
.auth-pane.active { display: grid; }
.auth-pane [hidden], .auth-pane .is-hidden, [data-telegram-register-only].is-hidden { display: none !important; }
.auth-pane label {
  position: relative;
  display: grid;
  gap: 9px;
  margin: 0;
  color: #f2f4fb;
  font-size: 14px;
  font-weight: 900;
}
.auth-pane > label:not(.auth-field) { gap: 9px; font-size: 14px; }
.auth-pane input {
  height: 48px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #eaf4ff;
  color: #111827;
  font-weight: 750;
  box-shadow: none;
}
.auth-pane input::placeholder { color: #707985; }
.auth-field svg { display: none; }
.auth-field input { padding-left: 16px; }
.auth-pane input:focus {
  border-color: rgba(64,132,255,.95);
  box-shadow: 0 0 0 4px rgba(53,119,255,.18);
}
.auth-pane .primary {
  min-height: 46px;
  margin-top: 2px;
  border-radius: 999px;
  font-size: 14px;
}
.auth-message { grid-column: 1 / -1; order: 4; }
.auth-socials {
  grid-column: 1 / -1;
  order: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}
.auth-socials::before {
  content: "Или через соцсети";
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9699a5;
  font-size: 14px;
  font-weight: 750;
}
.auth-socials::before {
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.1)) left center / 31% 1px no-repeat,
              linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.1)) right center / 31% 1px no-repeat;
  justify-content: center;
}
.auth-social {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  color: #f3f6ff;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 950;
}
.auth-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.auth-social.tg { color: #62d6ff; }
.auth-social.discord { color: #8ea4ff; }
.auth-social.mail { color: #79a8ff; }
.auth-social:hover {
  transform: translateY(-1px);
  border-color: rgba(101,160,255,.52);
  background: rgba(53,119,255,.13);
}
.auth-divider { display: none; }
.auth-bottom { grid-column: 1 / -1; order: 6; }
.mail-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9ec2ff;
}
.mail-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.telegram-code-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  color: #e9fbff;
  text-decoration: none;
  font-weight: 950;
  background: linear-gradient(135deg, rgba(34,211,238,.22), rgba(53,119,255,.2));
  border: 1px solid rgba(34,211,238,.35);
}
.telegram-code-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.telegram-code-button:hover {
  border-color: rgba(34,211,238,.75);
  box-shadow: 0 0 28px rgba(34,211,238,.16);
}
.auth-message {
  min-height: 20px;
  margin: 0;
  color: #ff7282;
  text-align: center;
  font-weight: 850;
}
.auth-message.ok { color: #54ffa0; }
.auth-bottom {
  margin: 2px 0 0;
  color: #56637c;
  text-align: center;
  font-weight: 800;
}
.auth-bottom button {
  color: #5da0ff;
  background: transparent;
  font-weight: 950;
}

/* Games and locations */
.games-page,
.locations-page {
  width: min(1450px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-strip article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(109, 153, 255, .18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(21, 39, 75, .78), rgba(8, 16, 34, .74));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(20px);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid rgba(85, 145, 255, .4);
  border-radius: 15px;
  color: #82b2ff;
  background: linear-gradient(145deg, rgba(45,83,155,.56), rgba(16,34,73,.92));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 12px 30px rgba(36,91,226,.18);
}
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-strip article:nth-child(2) .feature-icon { color: #70a9ff; }
.feature-strip article:nth-child(3) .feature-icon { color: #79d5ff; }
.feature-strip article:nth-child(4) .feature-icon { color: #8b9dff; }
.feature-strip h3 { margin: 0 0 10px; font-size: 20px; }
.feature-strip p { margin: 0; color: #91a2c1; line-height: 1.65; }
.launch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 0 90px;
  padding: 30px 38px;
  overflow: hidden;
  border: 1px solid rgba(105,161,255,.5);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(44,105,245,.96), rgba(20,66,174,.88)),
    repeating-linear-gradient(90deg, transparent 0 54px, rgba(255,255,255,.08) 55px);
  box-shadow: 0 24px 70px rgba(36,93,228,.24);
}
.launch-banner h2 { margin: 0 0 5px; font-size: clamp(25px, 3vw, 38px); }
.launch-banner p { margin: 0; color: #d7e5ff; }
.launch-banner .primary { flex: 0 0 auto; color: #11204a; background: #fff; }
.games-title { margin-bottom: 28px; }
.games-title .eyebrow,
.locations-copy > .eyebrow {
  color: #68a4ff;
  font-weight: 950;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.games-title h2,
.locations-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.055em;
}
.games-title h2 span,
.locations-copy h2 span { color: #5a91ff; }
.games-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
}
.game-card {
  position: relative;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(107,153,255,.25);
  border-radius: 28px;
  background-color: #0c1730;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.32);
}
.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(77,144,255,.5), transparent 28%),
    linear-gradient(90deg, rgba(3,9,21,.95) 10%, rgba(3,9,21,.38), rgba(3,9,21,.8));
}
.minecraft-card { background: linear-gradient(90deg, rgba(3,9,21,.97) 4%, rgba(3,9,21,.42) 65%, rgba(3,9,21,.76)), url("/assets/showcase/minecraft.jpg") center/cover; }
.coding-card { background: linear-gradient(90deg, rgba(3,9,21,.97) 8%, rgba(13,7,31,.42) 68%, rgba(3,9,21,.74)), url("/assets/showcase/coding.jpg") center/cover; }
.game-card > * { position: relative; z-index: 1; }
.game-card h3 { margin: 0 0 10px; font-size: 38px; }
.game-card p { max-width: 590px; margin: 0; color: #c1cee5; font-size: 17px; line-height: 1.55; }
.game-card .chips { margin: 18px 0; }
.game-card strong { margin-bottom: 20px; color: white; font-size: 22px; }
.game-card .primary { width: fit-content; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.game-tags span {
  padding: 8px 12px;
  border: 1px solid rgba(132,170,255,.2);
  border-radius: 9px;
  color: #d8e4fa;
  background: rgba(5,12,27,.55);
  font-size: 12px;
  font-weight: 900;
}
.locations-page.active {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 70px;
}
.location-group { margin-top: 34px; }
.location-group > small {
  margin: 0 0 12px;
  color: #657694;
  font-size: 13px;
  letter-spacing: .18em;
}
.location-pill {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  min-width: 285px;
  margin: 10px 0;
  padding: 15px 18px;
  border: 1px solid rgba(117,153,231,.2);
  border-radius: 14px;
  color: #eef4ff;
  background: rgba(15,27,53,.74);
  font-weight: 900;
}
.location-pill.active { border-color: rgba(52,211,153,.38); box-shadow: 0 0 34px rgba(52,211,153,.08); }
.location-pill.soon { color: #8592ab; }
.location-pill em {
  margin-left: auto;
  color: #f6b94d;
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}
.country-flag { flex: 0 0 auto; width: 25px; height: 17px; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,.28); }
.flag-de { background: linear-gradient(#161616 0 33.33%, #d31f2b 33.33% 66.66%, #f1c542 66.66%); }
.flag-pl { background: linear-gradient(#fff 0 50%, #dc143c 50%); }
.flag-ru { background: linear-gradient(#fff 0 33.33%, #2457c5 33.33% 66.66%, #d72e3d 66.66%); }
.globe-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(94,142,255,.22);
  border-radius: 42px;
  background: radial-gradient(circle at 50% 45%, rgba(50,108,235,.24), transparent 48%), rgba(6,13,29,.55);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 50px 140px rgba(12,53,155,.18);
}
.world-map { position: absolute; inset: 6%; width: 88%; height: 88%; filter: drop-shadow(0 20px 38px rgba(32,95,230,.25)); }
.map-grid { fill: none; stroke: rgba(123,161,255,.08); stroke-width: 1; }
.continents { fill: rgba(48,91,179,.48); stroke: rgba(126,167,255,.52); stroke-width: 2; }
.active-countries .germany { fill: #38e29d; stroke: #8effcb; stroke-width: 3; }
.active-countries .poland { fill: #38e29d; stroke: #8effcb; stroke-width: 3; }
.active-countries .russia { fill: rgba(246,185,77,.5); stroke: rgba(246,205,118,.75); stroke-width: 2; }
.pin {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(105,160,255,.36);
  border-radius: 13px;
  color: white;
  background: rgba(6,15,34,.86);
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
  font-size: 12px;
  font-weight: 950;
}
.pin::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #43e693; box-shadow: 0 0 16px #43e693; }
.pin.frankfurt { top: 34%; left: 16%; }
.pin.warsaw { top: 34%; left: 22%; }
.pin.moscow { top: 48%; left: 35%; opacity: .68; }
.pin.moscow::before { background: #f6b94d; box-shadow: 0 0 16px #f6b94d; }

.europe-map {
  width: 100%;
  height: 100%;
  padding: 28px;
  overflow: visible;
}
.europe-countries .country {
  fill: rgba(42, 83, 151, .52);
  stroke: rgba(111, 166, 255, .72);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill .25s ease, filter .25s ease;
}
.europe-countries .country.active {
  fill: rgba(35, 210, 145, .7);
  stroke: #75ffd0;
  filter: drop-shadow(0 0 12px rgba(49, 234, 166, .42));
}
.europe-countries .country.soon {
  fill: rgba(205, 158, 74, .42);
  stroke: rgba(245, 199, 115, .75);
}
.europe-labels text {
  fill: rgba(224, 235, 255, .78);
  font: 600 13px Manrope, sans-serif;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(5, 15, 34, .9);
  stroke-width: 4px;
  stroke-linejoin: round;
  pointer-events: none;
}
.city-marker circle {
  fill: #42e7a6;
  stroke: rgba(218, 255, 241, .95);
  stroke-width: 3;
  filter: drop-shadow(0 0 9px #42e7a6);
}
.city-marker.soon circle {
  fill: #d4a24b;
  stroke: #f7d99c;
  filter: drop-shadow(0 0 9px rgba(212, 162, 75, .75));
}
.city-marker text {
  fill: #fff;
  font: 700 15px Manrope, sans-serif;
  paint-order: stroke;
  stroke: rgba(7, 17, 37, .95);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.map-error {
  fill: #9eb0cf;
  font: 600 18px Manrope, sans-serif;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.side-ico svg,
.stat-card span svg,
.order-icon svg,
.orbit-icon svg,
.create-title > span svg,
.inline-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inline-icon {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  color: #75aaff;
}
.stat-card span,
.order-icon {
  background: #12264a;
  border-color: rgba(105, 157, 255, .46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

/* Built-in support */
.support-launcher {
  position: fixed; z-index: 80; right: 26px; bottom: 26px;
  width: 62px; height: 62px; display: grid; place-items: center;
  border: 1px solid rgba(115,172,255,.58); border-radius: 20px; color: white;
  background: linear-gradient(145deg, #4b85ff, #2958e9);
  box-shadow: 0 18px 50px rgba(42,94,232,.42), inset 0 1px rgba(255,255,255,.26);
}
.support-launcher:hover { transform: translateY(-3px) scale(1.03); }
.support-launcher svg { width: 28px; fill: currentColor; }
.support-widget {
  position: fixed; z-index: 90; right: 26px; bottom: 100px;
  width: min(390px, calc(100vw - 28px)); height: min(620px, calc(100vh - 130px));
  display: none; grid-template-rows: auto 1fr auto; overflow: hidden;
  border: 1px solid rgba(101,157,255,.34); border-radius: 24px;
  background: rgba(6,14,31,.96);
  box-shadow: 0 32px 100px rgba(0,0,0,.65), 0 0 75px rgba(50,109,242,.18);
}
.support-widget.open { display: grid; animation: supportIn .2s ease-out; }
.support-widget header { display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(90deg, rgba(47,102,229,.2), rgba(13,26,52,.45)); }
.support-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 0; color: white; background: url("/assets/brand/rexohost-avatar.png?v=20260715b") center / contain no-repeat; font-weight: 1000; font-size: 0; box-shadow: none; }
.support-widget header div { display: grid; gap: 4px; }
.support-widget header small { display: flex; align-items: center; gap: 6px; color: #8494b1; }
.support-widget header small i { width: 7px; height: 7px; border-radius: 50%; background: #42df91; box-shadow: 0 0 12px #42df91; }
.support-widget header button { margin-left: auto; color: #8c9ab5; background: transparent; font-size: 28px; }
.support-messages { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.support-message { max-width: 86%; padding: 12px 14px; border-radius: 17px 17px 17px 5px; color: #dce7fa; background: rgba(255,255,255,.07); }
.support-message.user { align-self: flex-end; border-radius: 17px 17px 5px 17px; background: linear-gradient(145deg, #3e7bf3, #315cd5); }
.support-message b { color: #78a8ff; font-size: 12px; }
.support-message.user b { color: #dce9ff; }
.support-message p { margin: 5px 0 0; line-height: 1.45; white-space: pre-wrap; }
.support-guest { padding: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.support-guest p { margin: 0 0 12px; color: #94a3bc; text-align: center; }
.support-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px; border-top: 1px solid rgba(255,255,255,.08); }
.support-form textarea { min-height: 48px; max-height: 110px; resize: vertical; padding: 13px; border: 1px solid rgba(112,151,225,.2); border-radius: 14px; color: white; background: rgba(14,27,51,.88); font: inherit; }
.support-form button { width: 48px; border-radius: 14px; color: white; background: linear-gradient(145deg, #4b85ff, #2958e9); font-size: 20px; }

@media (max-width: 720px) {
  .auth-shell {
    width: min(420px, calc(100vw - 24px));
    margin: 34px auto 28px;
    padding: 28px 20px 24px;
  }
  .auth-mini-brand {
    font-size: 18px;
  }
  .auth-close {
    min-width: 84px;
    padding: 0 13px;
  }
  .auth-head h2 { font-size: 28px; }
  .auth-socials { grid-template-columns: 1fr; }
  .auth-socials::before { background-size: 23% 1px, 23% 1px; }
}

@keyframes supportIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes routeReveal {
  from { opacity: 0; transform: translateY(18px) scale(.992); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(28px,-18px,0) scale(1.07); }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 1fr auto; height: auto; padding: 14px; }
  .topbar nav { order: 3; grid-column: 1 / -1; overflow: auto; justify-content: flex-start; }
  .top-actions .status-pill { display: none; }
  .hero.active { grid-template-columns: 1fr; }
  .phone-card, .control-hub { display: none; }
  .plans-grid, .stats-cards, .profile-grid { grid-template-columns: 1fr 1fr; }
  .shell-view.active { grid-template-columns: 1fr; margin: 0; width: 100%; }
  .side { position: relative; min-height: auto; display: flex; overflow: auto; gap: 8px; padding: 12px; }
  .side .side-user, .side-brand { display: none; }
  .side-link { white-space: nowrap; }
  .side.clone { display: none; }
  .panel-page, .create-page, .finance-page, .profile-page { padding: 30px 18px; }
  .create-layout, .payment { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .games-grid, .locations-page.active { grid-template-columns: 1fr; }
  .globe-card { min-height: 440px; }
}

@media (max-width: 720px) {
  main { width: 100%; }
  .view { padding: 48px 18px; }
  .plans-grid, .stats-cards, .mini-plans, .profile-grid, .included, .footer { grid-template-columns: 1fr; }
  h1 { font-size: 46px; }
  .section-head h2 { font-size: 40px; }
  .hero-buttons, .pay-methods, .periods, .checkout-pay-methods { grid-template-columns: 1fr; display: grid; }
  .top-actions .icon-button { display: none; }
  .games-page, .locations-page { width: calc(100% - 28px); padding: 44px 0 70px; }
  .feature-strip { grid-template-columns: 1fr; }
  .launch-banner { align-items: flex-start; flex-direction: column; margin-bottom: 60px; padding: 25px; }
  .games-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 330px; padding: 26px; }
  .globe-card { min-height: 360px; }
  .support-launcher { right: 14px; bottom: 14px; }
  .support-widget { right: 14px; bottom: 88px; }
}

.provision-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 20, .62);
  backdrop-filter: blur(14px);
}
.provision-card {
  width: min(460px, calc(100vw - 32px));
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  border-color: rgba(84, 139, 255, .38);
  box-shadow: 0 28px 90px rgba(0,0,0,.48), 0 0 80px rgba(48, 111, 255, .18);
}
.provision-card h3 { margin: 14px 0 8px; font-size: 28px; }
.provision-card p { margin: 0 0 20px; color: #aebdda; line-height: 1.55; }
.provision-spinner {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(135deg, #3d86ff, #705cff);
  position: relative;
  box-shadow: 0 0 34px rgba(65, 132, 255, .45);
}
.provision-spinner::after {
  content: '';
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: provisionSpin .85s linear infinite;
}
.provision-overlay.success .provision-spinner::after {
  content: '✓';
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 1000;
  animation: none;
}
@keyframes provisionSpin { to { transform: rotate(360deg); } }
.renew-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 8, 20, .68);
  backdrop-filter: blur(14px);
}
.renew-confirm-card {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  border-radius: 24px;
  border-color: rgba(84, 139, 255, .4);
  box-shadow: 0 28px 90px rgba(0,0,0,.5), 0 0 80px rgba(72, 240, 191, .14);
}
.renew-confirm-card h3 {
  margin: 0 0 10px;
  font-size: 26px;
}
.renew-confirm-card p {
  margin: 0;
  color: #c6d6f3;
  line-height: 1.55;
}
.renew-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.renew-confirm-actions .primary {
  justify-content: center;
}
@media (max-width: 560px) {
  .renew-confirm-actions { grid-template-columns: 1fr; }
}
.empty-server.has-servers {
  border: 1px solid rgba(77, 134, 255, .28);
  border-radius: 24px;
  padding: 42px;
  background: rgba(18, 35, 64, .35);
}

.dashboard-services-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin: 6px auto 30px;
}
.dashboard-services-head p { margin: 0; color: #93a4c2; }
.services-title {
  width: min(100%, 980px);
  margin: 0 auto 18px;
  text-align: left;
  font-size: 24px;
}
.services-grid {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 26px;
  border-radius: 20px;
  text-align: left;
  background: rgba(8, 16, 31, .72);
}
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.service-head h3 { margin: 0; font-size: 19px; }
.service-status {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
}
.service-status.online { color: #4dff9b; background: rgba(45, 210, 112, .13); border: 1px solid rgba(45, 210, 112, .35); }
.service-status.starting { color: #ffd166; background: rgba(255, 190, 64, .13); border: 1px solid rgba(255, 190, 64, .35); }
.service-status.offline { color: #ff6574; background: rgba(255, 71, 92, .13); border: 1px solid rgba(255, 71, 92, .36); }
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 176, 230, .14);
}
.service-grid div:first-child { grid-column: 1 / -1; }
.service-grid small {
  display: block;
  margin-bottom: 8px;
  color: #6f7f9c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.service-grid b {
  color: #f4f7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.muted-text { color: #91a1bd; text-align: center; }
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

.orbit-icon.loading span { animation: orbitPulse 1.05s ease-in-out infinite; }
@keyframes orbitPulse { 0%, 100% { transform: scale(1); opacity: .65; } 50% { transform: scale(1.08); opacity: 1; } }

.renew-menu{display:grid;gap:8px;margin-top:8px}.renew-options{display:grid;gap:8px}.renew-options[hidden]{display:none}.renew-menu .primary{justify-content:center}


/* RexoHost motion layer */
@keyframes rxFadeUp {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes rxSoftFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
@keyframes rxGlowSweep {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(220%) skewX(-18deg); }
}
@keyframes rxPulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 231, 126, .22); }
  50% { box-shadow: 0 0 0 9px rgba(51, 231, 126, 0); }
}
.hero.active .hero-copy,
.hero.active .hero-panel,
.plans-grid .plan-card,
.feature-strip article,
.locations-copy,
.location-pill,
.games-grid > *,
.stats-cards > *,
.mini-plan,
.included > *,
.footer > * {
  animation: rxFadeUp .55s cubic-bezier(.2, .8, .2, 1) both;
}
.hero.active .hero-panel { animation-delay: .08s; }
.plans-grid .plan-card:nth-child(2), .feature-strip article:nth-child(2) { animation-delay: .06s; }
.plans-grid .plan-card:nth-child(3), .feature-strip article:nth-child(3) { animation-delay: .12s; }
.plans-grid .plan-card:nth-child(4), .feature-strip article:nth-child(4) { animation-delay: .18s; }
.plan-card,
.feature-strip article,
.location-pill,
.mini-plan,
.primary,
.secondary,
.ghost {
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease;
}
.plan-card:hover,
.feature-strip article:hover,
.location-pill:hover,
.mini-plan:hover {
  transform: translateY(-4px);
  border-color: rgba(106, 166, 255, .54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 24px 70px rgba(20, 98, 220, .18);
}
.primary,
.hero-buttons .primary,
.plan-card .primary {
  position: relative;
  overflow: hidden;
}
.primary::after,
.hero-buttons .primary::after,
.plan-card .primary::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
.primary:hover::after,
.hero-buttons .primary:hover::after,
.plan-card .primary:hover::after { animation: rxGlowSweep .75s ease; }
.primary:hover, .secondary:hover, .ghost:hover { transform: translateY(-2px); }
.primary:active, .secondary:active, .ghost:active { transform: translateY(0) scale(.99); }
.hero.active .phone, .hero-device, .server-preview { animation: rxSoftFloat 5s ease-in-out infinite; }

/* RexoHost 2026: quieter hosting UI */
:root { --bg:#080b12; --bg2:#0d111a; --card:#121722; --card2:#171e2b; --line:#252d3c; --line2:#36445c; --blue:#3d81f6; --blue2:#73a6fb; --muted:#98a4b7; }
body { background:#080b12; }
body::before,.page-orbs::before,.page-orbs::after { display:none; }
.glass { background:#121722; border-color:#252d3c; box-shadow:none; backdrop-filter:none; }
.topbar { top:0; width:100%; max-width:none; height:72px; margin:0; padding-inline:max(24px,calc((100vw - 1240px)/2)); border-radius:0; background:#111318; border-width:0 0 1px; box-shadow:none; }
.topbar::before,.topbar::after { display:none; }
.topbar nav a.active,.topbar nav a:hover { background:#1c273b; outline:none; }
.primary,.hero-buttons .primary,.plan-card .primary { background:#3d81f6; box-shadow:none; }
.primary::after,.hero-buttons .primary::after,.plan-card .primary::after { display:none; }
.primary:hover,.secondary:hover,.ghost:hover { transform:none; filter:brightness(1.1); }
.hero.active { gap:54px; }
.hero.active .hero-copy,.hero.active .hero-panel,.hero.active .phone,.hero-device,.server-preview { animation:none; }
.eyebrow { color:#73a6fb; letter-spacing:.14em; }
.segmented { background:#131821; border-color:#2b3444; }
.segmented button { color:#a8b5c9; }
.segmented .active { background:#3d81f6; color:#fff; }
.plan-card,.plan-card:nth-child(4n) { min-height:390px; border-radius:16px; background:#131821; border-color:#2a3241; box-shadow:none; }
.plan-card:hover { transform:none; border-color:#3d81f6; box-shadow:none; }
.plan-card .mob { height:70px; filter:none; }
.plan-card .mob img { max-height:62px; }
.plan-card:hover .mob img { transform:none; filter:none; }
.plan-card .badge { background:#214579; color:#cfe0ff; }
.plan-price { color:#73a6fb; }
.side { background:#0e121b; }
.side-link.active,.side-link:hover { background:#17243a; color:#79adff; }
.stat-card,.step,.order-card { background:#131821; box-shadow:none; }
.stat-card span,.order-icon,.create-title > span { background:#192a47; border-color:#293f66; box-shadow:none; }
.edition-tab.active { background:#244e91; box-shadow:none; }
.mini-plan,.mini-plan:hover,.mini-plan.active { background:#151d2b; box-shadow:none; }
.profile-chip { background:#151d2b; }
@media(max-width:760px) { .topbar { padding-inline:16px; } }
.location-pill.active, .online-pill, .status-online { animation: rxPulseRing 2.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Cleaner project banners */
.game-card::before {
  background: linear-gradient(90deg, rgba(3,9,21,.96) 7%, rgba(3,9,21,.46) 58%, rgba(3,9,21,.86) 100%) !important;
}
.game-card:hover { box-shadow: inset 0 1px rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.32) !important; }

.service-warning { margin: 10px 0 12px; color: #ffd37a; font-size: 13px; line-height: 1.45; }

/* Landing page: compact hosting overview */
#home.hero.active {
  display: block;
  width: min(1180px, 100%);
  min-height: 0;
  margin: 0 auto;
  padding: 100px 24px 74px;
  text-align: center;
}
#home.rexo-hero::before,
#home.rexo-hero::after { display: none; }
#home .hero-copy { max-width: 850px; margin: 0 auto; }
#home h1 {
  max-width: none;
  margin: 0 0 24px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -.055em;
  text-transform: none;
}
#home .hero-copy p {
  max-width: 640px;
  margin: 0 auto;
  color: #aeb7c6;
  font-size: 18px;
  line-height: 1.65;
}
#home .hero-buttons { justify-content: center; margin-top: 32px; }
#home .hero-buttons .primary { min-height: 50px; border-radius: 11px; }
#home .home-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 88px;
  text-align: left;
}
#home .home-features article {
  min-height: 194px;
  padding: 25px;
  border: 1px solid #292d38;
  border-radius: 14px;
  background: #15161b;
}
#home .home-feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 10px;
  color: #5e9eff;
  background: #19263c;
}
#home .home-feature-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#home .home-features h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
#home .home-features p { margin: 0; color: #99a3b4; font-size: 15px; line-height: 1.55; }
#tariffs { padding-top: 70px; }
#tariffs .section-head h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.12; }
@media (max-width: 800px) {
  #home.hero.active { padding-top: 70px; }
  #home .home-features { grid-template-columns: 1fr; margin-top: 60px; }
  #home .home-features article { min-height: 0; }
}

/* Keep the account header and dashboard navigation readable on phones. */
@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 14px 10px;
  }
  .topbar .brand { min-width: 0; gap: 8px; font-size: 18px; white-space: nowrap; }
  .topbar .brand-mark { flex: 0 0 32px; width: 32px; height: 30px; }
  .top-actions { min-width: 0; gap: 0; }
  .top-actions .primary.small { display: none; }
  .top-actions .ghost.small { max-width: 120px; min-height: 38px; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar nav {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .topbar nav::-webkit-scrollbar, .side::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: 0 0 auto; padding: 8px 11px; }

  .shell-view.active { min-width: 0; }
  .side {
    position: relative;
    top: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: 6px;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .side-link {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 42px;
    margin: 0;
    padding: 6px 10px;
    gap: 7px;
    white-space: nowrap;
    font-size: 13px;
  }
  .side-ico { flex: 0 0 28px; width: 28px; height: 28px; margin: 0; }
  .side-ico svg { width: 17px; height: 17px; }

  .panel-page, .create-page, .finance-page, .profile-page { min-width: 0; padding: 20px 16px 64px; }
  .crumbs { margin-bottom: 10px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
  .profile-chip { position: static; width: max-content; max-width: 100%; margin: 0 0 18px auto; }
  .stats-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-width: 0; min-height: 150px; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; }
  .stat-card span { width: 34px; height: 34px; margin-bottom: 8px; }
  .stat-card span svg { width: 18px; height: 18px; }
  .stat-card small { line-height: 1.3; }
  .stat-card strong { margin: 6px 0; font-size: 25px; }
  .stat-card a { margin-top: auto; }
}
@media (max-width: 360px) {
  .topbar .brand { font-size: 16px; }
  .top-actions .ghost.small { max-width: 92px; }
  .stats-cards { grid-template-columns: 1fr; }
  .stat-card { min-height: 118px; }
}
