/* ============================ EliteHost — main.css =========================== */
:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --panel: #11131b;
  --panel-2: #161a25;
  --line: #1c2030;
  --text: #f3f5fb;
  --muted: #8a93a9;
  --green: #2dde74;
  --green-2: #1cb360;
  --orange: #ff9b3a;
  --red: #ff6463;
  --blue: #4aa3ff;
  --yellow: #ffd23f;
  --purple: #c374ff;
  --shadow-1: 0 10px 30px rgba(0,0,0,.45);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Rubik', system-ui, sans-serif;
  background:
    radial-gradient(1200px 800px at 80% -10%, #0e1622 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 110%, #122023 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0/40px 40px;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.m0 { margin: 0; }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }

h1, h2, h3, h4 { font-family: 'Press Start 2P', 'Rubik', monospace; letter-spacing: .03em; }
h1 { font-size: 3rem; }
h2 { font-size: 1.6rem; margin: 0 0 .5em; }
h3 { font-size: 1.05rem; margin: .2em 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #ff7878 0%, #ff5252 100%);
  color: #fff; font-weight: 700; letter-spacing: .12em;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  text-transform: uppercase; font-size: .82rem;
  box-shadow: 0 8px 22px rgba(255,82,82,.25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn--cta { background: linear-gradient(180deg, #ff8484, #ff4f4f); }
.btn--green { background: linear-gradient(180deg, #34e07e, var(--green-2)); box-shadow: 0 8px 22px rgba(45,222,116,.28); }
.btn--blue { background: linear-gradient(180deg, #6ab5ff, #2d81e6); box-shadow: 0 8px 22px rgba(74,163,255,.28); }
.btn--danger { background: linear-gradient(180deg, #ff7766, #d84141); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn--ghost:hover { background: var(--panel-2); }
.btn--lg { padding: 16px 28px; font-size: .95rem; }
.btn--sm { padding: 8px 14px; font-size: .72rem; }
.btn--disabled, .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--google { background: #fff; color: #222; box-shadow: 0 6px 18px rgba(0,0,0,.25); }

/* ----- Preloader ----- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(800px 600px at 50% 30%, #0a3, #052), #02060a;
  gap: 22px;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__logo {
  font-family: 'Press Start 2P'; font-size: 2rem; color: var(--green);
  filter: drop-shadow(0 0 12px rgba(45,222,116,.6));
}
.preloader__logo span { color: var(--green); margin-right: 4px; }
.preloader__bar { width: min(80vw, 420px); height: 14px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.preloader__fill { width: 0; height: 100%; background: linear-gradient(90deg, #1cb360, var(--green)); transition: width .3s ease; }
.preloader__percent { color: var(--green); font-weight: 700; }
.preloader__hint { color: var(--muted); font-size: .85rem; max-width: 60ch; text-align: center; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px 24px 0;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(20,24,34,.85), rgba(15,18,28,.85));
  border: 1px solid var(--line); border-radius: 999px;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-1);
}
.logo {
  font-family: 'Press Start 2P'; color: var(--green); font-size: 1.1rem;
  filter: drop-shadow(0 0 12px rgba(45,222,116,.45));
}
.logo span { margin-right: 4px; }
.nav { display: flex; gap: 30px; }
.nav a { font-size: .8rem; letter-spacing: .14em; font-weight: 700; color: #cfd6e6; opacity: .9; }
.nav a:hover { color: #fff; }

/* ----- Reveal ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ----- Hero ----- */
.hero { margin-top: 18px; }
.hero__card {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, #0a121f, #06090f);
  border: 1px solid var(--line); padding: 60px 24px 32px;
  box-shadow: var(--shadow-1);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(91,212,255,.25), transparent 70%),
    url("https://images.unsplash.com/photo-1604871000636-074fa5117945?w=1600&q=80&auto=format&fit=crop") center/cover no-repeat;
  filter: blur(1px) saturate(.85) brightness(.55);
  opacity: .55;
}
.hero__content { position: relative; text-align: center; max-width: 1100px; margin: 0 auto; }
.hero__eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .25em; font-weight: 700; margin: 0 0 6px; }
.hero__title { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: clamp(2rem, 5vw, 4rem); margin: 0 0 24px; }
.hero__chips { display: flex; gap: 18px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.chip {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(20,24,34,.85), rgba(15,18,28,.85));
  border: 1px solid var(--line); padding: 14px 20px; border-radius: 14px;
  min-width: 220px; text-align: left;
}
.chip small { color: var(--muted); display: block; font-size: .75rem; }
.chip strong { font-weight: 700; }
.chip__icon { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); display: inline-block; position: relative; }
.chip__icon::before { content: ""; position: absolute; inset: 0; background: center/60% no-repeat; }
.chip__icon--shield::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ff6463' d='M12 2L4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3z'/></svg>"); }
.chip__icon--bolt::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffd23f' d='M11 2L4 14h6l-1 8 8-12h-6l1-8z'/></svg>"); }
.chip__icon--inf::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23c374ff' d='M18 6a6 6 0 0 0-6 6 6 6 0 1 1-6-6 6 6 0 0 1 6 6 6 6 0 1 0 6-6z' opacity='.6'/><path fill='%23c374ff' d='M18 6a6 6 0 1 1 0 12 6 6 0 0 1-6-6 6 6 0 1 1 6-6z'/></svg>"); }

.cores-strip { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-top: 30px; }
.cores-track { display: inline-flex; gap: 12px; animation: marquee 26s linear infinite; }
.core-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: linear-gradient(180deg, rgba(20,24,34,.95), rgba(15,18,28,.95));
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-weight: 600;
}
.core-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero__down { display: inline-block; margin: 36px auto 0; color: var(--muted); text-align: center; }
.hero__down span { display: block; font-size: 1.4rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ----- Cards / Sections ----- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-1);
}
section { padding: 36px 0; position: relative; z-index: 1; }
section.stats .card, section.advantages .card { padding: 36px; }
.stats__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.stat {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.stat__num { font-family: 'Press Start 2P'; font-size: 2rem; color: var(--text); }
.stat__num::after { content: "+"; }
.stat__label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

.adv__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 18px; }
.adv {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.adv:hover { transform: translateY(-3px); border-color: #2a3148; }
.adv__icon { width: 60px; height: 60px; border-radius: 14px; background: var(--panel); margin-bottom: 14px; position: relative; }
.adv__icon::before { content: ""; position: absolute; inset: 0; background: center/60% no-repeat; }
.adv__icon--bolt::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ff6363' d='M11 2L4 14h6l-1 8 8-12h-6l1-8z'/></svg>"); }
.adv__icon--ssd::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='%23ffd23f'/></svg>"); }
.adv__icon--shield::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23c374ff' d='M12 2L4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3z'/></svg>"); }
.adv__icon--slots::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='3' fill='%234aa3ff'/></svg>"); }
.adv__icon--plugins::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2334e07e' d='M3 12l9-9 9 9-9 9z'/></svg>"); }
.adv__icon--clock::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='9' fill='none' stroke='%234aa3ff' stroke-width='2'/><path stroke='%234aa3ff' stroke-width='2' d='M12 7v6h4'/></svg>"); }

/* ----- Tariffs ----- */
.tariffs__title { text-align: center; font-size: clamp(1.5rem, 2.4vw, 2.3rem); margin-bottom: 6px; }
.tariff-divider { width: 80px; height: 4px; background: var(--orange); border-radius: 2px; margin: 14px auto 26px; }
.tariff__grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tariff__grid--full { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 12px; }
.tariff {
  position: relative; padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.tariff::after {
  content: ""; position: absolute; inset: auto -40px -60px auto;
  width: 180px; height: 180px;
  background: center/contain no-repeat;
  opacity: .25;
  pointer-events: none;
}
.tariff--red { border-color: rgba(255,100,99,.55); box-shadow: 0 0 28px rgba(255,100,99,.15); }
.tariff--green { border-color: rgba(45,222,116,.55); box-shadow: 0 0 28px rgba(45,222,116,.15); }
.tariff--blue { border-color: rgba(74,163,255,.55); box-shadow: 0 0 28px rgba(74,163,255,.15); }
.tariff--yellow { border-color: rgba(255,210,63,.55); box-shadow: 0 0 28px rgba(255,210,63,.15); }
.tariff--purple { border-color: rgba(195,116,255,.55); box-shadow: 0 0 28px rgba(195,116,255,.15); }
.tariff:hover { transform: translateY(-3px); }

.tariff__head { display: flex; justify-content: space-between; align-items: center; }
.tariff__name {
  font-family: 'Press Start 2P'; font-size: .95rem; letter-spacing: .04em;
  padding-bottom: 6px;
}
.tariff--red .tariff__name { color: var(--red); text-shadow: 0 0 12px rgba(255,100,99,.5); }
.tariff--green .tariff__name { color: var(--green); text-shadow: 0 0 12px rgba(45,222,116,.6); }
.tariff--blue .tariff__name { color: var(--blue); text-shadow: 0 0 12px rgba(74,163,255,.6); }
.tariff--yellow .tariff__name { color: var(--yellow); text-shadow: 0 0 12px rgba(255,210,63,.6); }
.tariff--purple .tariff__name { color: var(--purple); text-shadow: 0 0 12px rgba(195,116,255,.6); }
.tariff__info {
  width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px solid var(--line); cursor: help;
}

.tariff__price { font-size: 1.4rem; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tariff__price span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.tariff__price-old { font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: line-through; opacity: .8; }
.tariff__price-cut {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 999px;
  background: linear-gradient(180deg, #ff8484, #ff4f4f);
  color: #fff; box-shadow: 0 4px 14px rgba(255,80,80,.35);
}

/* Top-right corner badge ("HIT", "🔥 NEW", "-20%", admin-customized). Oval
   pill with a small upward tilt; admin can override bg/text color inline. */
.tariff__badge {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  padding: 5px 12px; border-radius: 999px;
  font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(180deg, #ff9b3a, #ff7a17); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(255,155,58,.35), inset 0 0 8px rgba(255,255,255,.18);
  transform: rotate(6deg);
  pointer-events: none;
  white-space: nowrap;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis;
  animation: tariffBadgeFloat 3.6s ease-in-out infinite;
}
@keyframes tariffBadgeFloat {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-2px); }
}
.tariff__badge--red    { background: linear-gradient(180deg,#ff8484,#ff4f4f); box-shadow: 0 6px 18px rgba(255,100,99,.4); }
.tariff__badge--green  { background: linear-gradient(180deg,#34e07e,#1cb360); box-shadow: 0 6px 18px rgba(45,222,116,.35); }
.tariff__badge--blue   { background: linear-gradient(180deg,#6ab5ff,#2d81e6); box-shadow: 0 6px 18px rgba(74,163,255,.35); }
.tariff__badge--yellow { background: linear-gradient(180deg,#ffe27a,#f1b800); color:#1a1500; box-shadow: 0 6px 18px rgba(255,210,63,.35); }
.tariff__badge--purple { background: linear-gradient(180deg,#d59bff,#9a48ff); box-shadow: 0 6px 18px rgba(195,116,255,.35); }
.tariff__badge--orange { background: linear-gradient(180deg,#ffc187,#ff7a17); box-shadow: 0 6px 18px rgba(255,155,58,.35); }
.tariff__badge--cyan   { background: linear-gradient(180deg,#87fff4,#00b6c3); color:#012a30; box-shadow: 0 6px 18px rgba(74,223,223,.35); }
.tariff__badge--pink   { background: linear-gradient(180deg,#ffb1d2,#ff3aa3); box-shadow: 0 6px 18px rgba(255,126,182,.35); }
/* Cards with a badge get extra padding-top so the title doesn't collide. */
.tariff.has-badge .tariff__head { padding-top: 10px; }
@media (max-width: 540px) {
  .tariff__badge { font-size: .6rem; padding: 4px 10px; }
}
.tariff__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tariff__specs li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: rgba(255,255,255,.03); border-radius: 10px;
  border: 1px solid rgba(255,255,255,.04);
}
.tariff__specs b { font-weight: 800; }
.tariff--red .tariff__specs b { color: var(--red); }
.tariff--green .tariff__specs b { color: var(--green); }
.tariff--blue .tariff__specs b { color: var(--blue); }
.tariff--yellow .tariff__specs b { color: var(--yellow); }
.tariff--purple .tariff__specs b { color: var(--purple); }

.tariff__cta { width: 100%; }
.tariff--green .tariff__cta { background: linear-gradient(180deg, #34e07e, #1cb360); box-shadow: 0 0 28px rgba(45,222,116,.35); }
.tariff--blue .tariff__cta { background: linear-gradient(180deg, #6ab5ff, #2d81e6); box-shadow: 0 0 28px rgba(74,163,255,.35); }
.tariff--yellow .tariff__cta { background: linear-gradient(180deg, #ffe27a, #f1b800); color: #1a1500; box-shadow: 0 0 28px rgba(255,210,63,.35); }
.tariff--purple .tariff__cta { background: linear-gradient(180deg, #d59bff, #9a48ff); box-shadow: 0 0 28px rgba(195,116,255,.35); }
.tariff--red .tariff__cta { background: linear-gradient(180deg, #ff8484, #ff4f4f); box-shadow: 0 0 28px rgba(255,100,99,.35); }

.ico { width: 22px; height: 22px; display: inline-block; background: center/contain no-repeat; }
.ico--cpu { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='5' y='5' width='14' height='14' rx='2' fill='%234aa3ff'/></svg>"); }
.ico--ram { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='2' y='8' width='20' height='8' rx='2' fill='%23ffd23f'/></svg>"); }
.ico--nvme { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='4' y='4' width='16' height='16' rx='2' fill='%2334e07e'/></svg>"); }

/* Admin-uploaded CPU/RAM/NVMe sticker (image or emoji). Sized to match the
   legacy .ico SVGs so layout doesn't shift, with a touch of glow for emojis. */
img.spec-ico { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; display: inline-block; }
.spec-ico--emoji { display: inline-block; width: 22px; height: 22px; line-height: 22px; font-size: 18px; text-align: center; vertical-align: middle; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
/* Box variant used on the servers page resource buttons (32×32 with bg). */
.res__icon--custom { background-size: 60%; background-repeat: no-repeat; background-position: center; position: relative; }
.res__icon--custom .res__icon-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.res__icon--custom .res__icon-anim { position: absolute; inset: 0; }

/* ----- FAQ ----- */
.faq__list { display: grid; gap: 12px; margin-top: 24px; }
.faq__item {
  background: linear-gradient(180deg, var(--panel-2), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.faq__item summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item p { margin: 12px 0 0; color: var(--muted); }
.faq__plus { color: var(--orange); font-size: 1.4rem; transition: transform .2s ease; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }

/* ----- Footer ----- */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); padding: 40px 0 60px; background: rgba(0,0,0,.25); }
.footer__grid { display: grid; gap: 28px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer__grid a { display: block; color: var(--muted); margin: 4px 0; }
.footer__grid a:hover { color: var(--text); }

/* ----- Modal ----- */
.modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open, .modal--open { display: flex; animation: fadeIn .2s ease; }
.modal__backdrop { position: absolute; inset: 0; background: radial-gradient(800px 600px at 50% 30%, rgba(20,80,60,.4), rgba(0,0,0,.7)); backdrop-filter: blur(8px); }
.modal__panel {
  position: relative; max-width: 520px; width: 100%; background: linear-gradient(180deg, #101421, #0a0e18);
  border: 1px solid #1d4d3a; border-radius: 18px; padding: 32px; box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: modalUp .25s cubic-bezier(.2,.7,.2,1.2);
}
.modal__panel--auth { padding: 36px 32px; }
.modal__panel--wide { max-width: 1100px; padding: 0; overflow: hidden; }
.modal__close { position: absolute; top: 14px; right: 16px; background: transparent; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(.96) } to { opacity: 1; transform: translateY(0) scale(1) } }

.auth-logo { text-align: center; font-family: 'Press Start 2P'; font-size: 1.4rem; color: var(--green); margin-bottom: 18px; filter: drop-shadow(0 0 12px rgba(45,222,116,.5)); }
.auth-title { text-align: center; font-size: 1.5rem; margin-bottom: 4px; }
.auth-form { display: grid; gap: 14px; margin-top: 18px; }
.auth-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
/* Text-like inputs only — checkboxes/radios are styled separately. */
.auth-form input:not([type="checkbox"]):not([type="radio"]),
.auth-form select,
.auth-form textarea {
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-form select:focus,
.auth-form textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,222,116,.18); }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.check {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--muted); font-size: .85rem; line-height: 1.35;
  padding: 4px 2px;
  user-select: none;
  cursor: pointer;
}
.check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
  cursor: pointer;
}
.check .link { color: var(--green); text-decoration: underline; }
.link { color: var(--text); }
.link--orange { color: var(--orange); }
.auth-foot { text-align: center; color: var(--muted); }
.auth-error { color: var(--red); min-height: 1em; font-size: .85rem; text-align: center; }

/* ----- Scroll-top ----- */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--text);
  opacity: 0; transform: translateY(20px); transition: all .25s ease; z-index: 20;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0); }

/* ----- Responsive ----- */
@media (max-width: 760px) {
  .nav { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__inner { padding: 12px 16px; }
}

/* Admin button (visible only to admins in dashboard topbar) */
.btn--admin {
  background: linear-gradient(180deg, #ffb86b, #ff8a2a);
  color: #261202;
  box-shadow: 0 8px 22px rgba(255,138,42,.32);
  font-weight: 900;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--admin .btn-ico { font-size: 1rem; transform: translateY(-1px); }
.btn--admin:hover { filter: brightness(1.1) saturate(1.05); }

/* Logo polish — gradient over the "Host" portion */
.logo { font-weight: 900; letter-spacing: .04em; }
.logo span { color: var(--green); text-shadow: 0 0 12px rgba(45,222,116,.45); }

/* ============================================================
   Telegram-style animated emoji + global motion polish
   ============================================================ */
.em { display: inline-block; line-height: 1; transform-origin: 50% 60%; will-change: transform; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }

@keyframes em-bounce  { 0%,100% { transform: translateY(0) scale(1); } 30% { transform: translateY(-3px) scale(1.12); } 60% { transform: translateY(1px) scale(.96); } }
@keyframes em-wobble  { 0%,100% { transform: rotate(0deg); } 25% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } }
@keyframes em-pulse   { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(45,222,116,.5)); } }
@keyframes em-shake   { 0%,100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-2px) rotate(-6deg); } 40% { transform: translateX(2px) rotate(6deg); } 60% { transform: translateX(-2px) rotate(-4deg); } 80% { transform: translateX(2px) rotate(4deg); } }
@keyframes em-spin    { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes em-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes em-tada    { 0%{transform:scale(1)} 10%,20%{transform:scale(.93) rotate(-3deg)} 30%,50%,70%,90%{transform:scale(1.1) rotate(3deg)} 40%,60%,80%{transform:scale(1.1) rotate(-3deg)} 100%{transform:scale(1) rotate(0)} }

.em--bounce { animation: em-bounce 1.6s ease-in-out infinite; }
.em--wobble { animation: em-wobble 2.2s ease-in-out infinite; }
.em--pulse  { animation: em-pulse 1.8s ease-in-out infinite; }
.em--shake  { animation: em-shake 1.8s ease-in-out infinite; }
.em--spin   { animation: em-spin 6s linear infinite; }
.em--float  { animation: em-float 2.4s ease-in-out infinite; }
.em--tada   { animation: em-tada 2.4s ease infinite; }

@media (prefers-reduced-motion: reduce) {
  .em, .em--bounce, .em--wobble, .em--pulse, .em--shake, .em--spin, .em--float, .em--tada { animation: none !important; }
}

/* ============================================================
   Button micro-animations (.btn--anim, hover ripple/glow)
   ============================================================ */
.btn { position: relative; overflow: hidden; transition:
    transform .18s cubic-bezier(.34,1.56,.64,1),
    box-shadow .25s ease,
    filter .2s ease,
    background .25s ease;
}
.btn--anim:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.08); }
.btn--anim:active { transform: translateY(0) scale(.97); }
.btn--anim::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35) 0%, transparent 45%);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.btn--anim:hover::after { opacity: 1; }

.btn--green { box-shadow: 0 6px 20px rgba(45,222,116,.25); }
.btn--green:hover { box-shadow: 0 10px 28px rgba(45,222,116,.45); }
.btn--danger { box-shadow: 0 6px 20px rgba(255,100,99,.25); }
.btn--danger:hover { box-shadow: 0 10px 28px rgba(255,100,99,.45); }
.btn--blue { box-shadow: 0 6px 20px rgba(74,163,255,.22); }
.btn--blue:hover { box-shadow: 0 10px 28px rgba(74,163,255,.42); }
.btn--ghost { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--text); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }

.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::before {
  content: ""; position: absolute; right: 10px; top: 50%; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  transform: translateY(-50%); animation: em-spin .8s linear infinite;
}

/* ============================================================
   Modal — danger confirm extras (base modal styles defined above)
   ============================================================ */
.modal[hidden] { display: none !important; }
#confirmDelete { z-index: 1000; }
.modal__panel--danger { border-color: rgba(255,100,99,.45); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,100,99,.18), 0 0 30px rgba(255,100,99,.18); }
.pop-in { animation: pop-in .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.modal__head .em { font-size: 1.6rem; }
.modal__title { margin: 0; color: var(--red); font-size: 1.25rem; }
.modal__body p { margin: 6px 0; }
.text-red { color: var(--red); }
.modal__input {
  width: 100%;
  background: #0a0c12;
  border: 1.5px solid rgba(255,100,99,.45);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 1rem;
  margin: 10px 0 6px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.modal__input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,100,99,.18); }
.modal__hint { transition: color .18s ease; }
.modal__hint.ok { color: var(--green); }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ============================================================
   General card / page polish
   ============================================================ */
.card--anim { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card--anim:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.45); border-color: rgba(255,255,255,.1); }

.row-anim { transition: background .15s ease; }
.row-anim:hover { background: rgba(255,255,255,.025); }

.adm-table--big td input, .adm-table--big td select {
  background: #0d0f15;
  border: 1px solid rgba(255,255,255,.08);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
  max-width: 240px;
}
.adm-table--big td input:focus, .adm-table--big td select:focus {
  border-color: rgba(45,222,116,.55);
  box-shadow: 0 0 0 3px rgba(45,222,116,.12);
  outline: none;
}
.adm-table--big td .narrow { max-width: 90px; }
.adm-table--big td .wide { max-width: 280px; }
.adm-table--big td .em-input { text-align: center; font-size: 1.2rem; padding: 6px; max-width: 70px; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.row-actions { white-space: nowrap; display: flex; gap: 6px; align-items: center; }

/* ===== FAB chat button ===== */
.fab { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.fab:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 30px rgba(45,222,116,.45); }
.fab:active { transform: scale(.95); }

/* ===== Node capacity full overlay (new-server tariff cards) ===== */
.tariff__full-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 22px 18px;
  text-align: center;
  background: rgba(8, 12, 24, 0.78);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  z-index: 4;
  pointer-events: auto;
}
.tariff.is-full {
  filter: grayscale(0.85) brightness(0.6);
  pointer-events: none;
  cursor: not-allowed;
}
.tariff.is-full .tariff__full-overlay {
  display: flex;
  pointer-events: auto;
}
.tariff.is-full:hover { transform: none; }
/* Not-enough-balance: a greyed-out card whose CTA reads "MABLAG‘ YETARLI EMAS".
   Distinct from the node-full state (which covers the whole card with an
   overlay) — here only the muted card + disabled button signal the low balance. */
.tariff.is-unaffordable {
  filter: grayscale(0.7) brightness(0.74);
}
.tariff.is-unaffordable:hover { transform: none; box-shadow: none; }
.tariff.is-unaffordable .tariff__cta {
  background: #3a3f4b !important;
  box-shadow: none !important;
  color: #cdd2dc !important;
}
.tariff__full-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #ff6c5c;
  text-shadow: 0 0 12px rgba(255, 108, 92, 0.55);
  letter-spacing: 0.04em;
}
.tariff__full-sub {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #d8dce6;
  max-width: 32ch;
}

/* "TO'LGAN" tag on the region button itself */
.region.is-full {
  position: relative;
  filter: grayscale(0.5);
}
.region.is-full::after {
  content: "TO‘LGAN";
  position: absolute;
  top: 6px; right: 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 6px;
  background: #ff6c5c;
  color: #fff;
}

/* === Discount chips strip (landing + dashboard new-server) ============== */
.discount-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px auto 8px;
  max-width: 760px;
}
.discount-strip--dashboard {
  justify-content: flex-start;
  margin: 8px 0 16px;
}
.discount-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}
.discount-chip:hover { transform: translateY(-1px); }
.discount-chip.is-active {
  background: linear-gradient(135deg, #ffb14c 0%, #ff7a3c 100%);
  border-color: rgba(255, 145, 80, 0.85);
  color: #0c0a08;
  box-shadow: 0 6px 18px rgba(255, 124, 60, 0.35);
}
.discount-chip__pct {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffe9d9;
  font-size: 12px;
}
.discount-chip.is-active .discount-chip__pct {
  background: rgba(0, 0, 0, 0.18);
  color: #20140a;
}
.tariff__price-meta {
  margin-top: -4px;
  margin-bottom: 8px;
  min-height: 1em;
}

/* === Support chat: lock + rating ====================================== */
.chat__locked {
  background: rgba(255, 200, 90, 0.16);
  color: #ffd28a;
  border-top: 1px solid rgba(255, 200, 90, 0.32);
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
}
.chat__assigned {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  background: rgba(80, 170, 255, 0.12);
  color: #b8d6ff;
  border-top: 1px solid rgba(80, 170, 255, 0.25);
}
.chat__end {
  background: rgba(255, 90, 110, 0.16);
  color: #ffb1bc;
  border: 1px solid rgba(255, 90, 110, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
}
.chat__end:hover { background: rgba(255, 90, 110, 0.28); }
.bubble--system {
  align-self: center;
  background: rgba(255, 255, 255, 0.05);
  color: #b8b8b8;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

/* Rating modal */
.rating-modal__panel { max-width: 460px; }
.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 36px;
  margin: 12px 0 6px;
}
.rating-star {
  cursor: pointer;
  color: #404040;
  transition: color 80ms ease, transform 80ms ease;
  user-select: none;
}
.rating-star:hover { transform: scale(1.08); }
.rating-star.is-on { color: #ffc73c; text-shadow: 0 0 6px rgba(255, 199, 60, 0.45); }
.rating-feedback {
  width: 100%;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px;
}

/* === Admin: support-stars table ====================================== */
.stars { color: #ffc73c; letter-spacing: 1px; }
.stars--empty { color: rgba(255, 255, 255, 0.18); }
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(60, 200, 130, 0.16);
  color: #95e8b9;
  font-size: 12px;
  font-weight: 700;
}
.online-pill::before {
  content: "";
  width: 8px; height: 8px;
  background: #36e08a;
  border-radius: 50%;
  box-shadow: 0 0 8px #36e08a;
}

/* ============================================================
   Top-left animated notification toast (lifetime, refresh-proof)
   ============================================================ */
.notify-toast-stack {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 36px));
}
.notify-toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 26, 38, .96), rgba(12, 16, 26, .96));
  border: 1px solid rgba(120, 200, 255, .35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), 0 0 24px rgba(120, 200, 255, .15);
  color: #e9f1ff;
  transform: translateX(-120%) scale(.96);
  opacity: 0;
  transition: transform .42s cubic-bezier(.2, .9, .25, 1.2), opacity .42s ease;
}
.notify-toast.is-in {
  transform: translateX(0) scale(1);
  opacity: 1;
}
.notify-toast.is-out {
  transform: translateX(-120%) scale(.96);
  opacity: 0;
}
.notify-toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(120, 200, 255, .12);
  color: #9ed4ff;
}
.notify-toast--success { border-color: rgba(80, 220, 140, .45); }
.notify-toast--success .notify-toast__icon { background: rgba(80, 220, 140, .15); color: #6ee7a0; }
.notify-toast--warning { border-color: rgba(255, 200, 80, .55); }
.notify-toast--warning .notify-toast__icon { background: rgba(255, 200, 80, .18); color: #ffd56b; }
.notify-toast--error { border-color: rgba(255, 90, 90, .55); }
.notify-toast--error .notify-toast__icon { background: rgba(255, 90, 90, .15); color: #ff8a8a; }
.notify-toast__title { font-weight: 700; font-size: 14px; }
.notify-toast__text { font-size: 12.5px; color: #b8c4d6; margin-top: 2px; line-height: 1.35; }
.notify-toast__close {
  appearance: none;
  background: transparent;
  color: #8ea0bf;
  border: 0;
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
}
.notify-toast__close:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* ============================================================
   Maintenance overlay (yellow neon frame + red X) — non-admins only
   ============================================================ */
body.is-maintenance > :not(.maintenance-overlay):not(.notify-toast-stack):not(script) {
  filter: blur(6px) brightness(.45) saturate(.7);
  pointer-events: none;
  user-select: none;
}
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), rgba(0, 0, 0, .85));
  backdrop-filter: blur(2px);
}
.maintenance-overlay__frame {
  position: relative;
  padding: 56px 48px;
  text-align: center;
  border-radius: 22px;
  border: 3px solid #ffd000;
  background: rgba(15, 11, 4, .82);
  box-shadow:
    0 0 28px #ffd000,
    0 0 64px rgba(255, 208, 0, .45),
    inset 0 0 24px rgba(255, 208, 0, .25);
  color: #fff8d8;
  max-width: min(560px, calc(100vw - 32px));
  animation: maint-glow 2.4s ease-in-out infinite alternate;
}
@keyframes maint-glow {
  from { box-shadow: 0 0 22px #ffd000, 0 0 48px rgba(255, 208, 0, .35), inset 0 0 18px rgba(255, 208, 0, .18); }
  to   { box-shadow: 0 0 36px #ffd000, 0 0 92px rgba(255, 208, 0, .55), inset 0 0 30px rgba(255, 208, 0, .3); }
}
.maintenance-overlay__x {
  font-size: clamp(110px, 24vw, 220px);
  font-weight: 900;
  line-height: .9;
  color: #ff2a2a;
  text-shadow:
    0 0 16px #ff2a2a,
    0 0 38px rgba(255, 42, 42, .8),
    0 0 84px rgba(255, 42, 42, .5);
}
.maintenance-overlay__brand {
  margin-top: 12px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffe97a;
  text-shadow: 0 0 12px rgba(255, 208, 0, .6);
}
.maintenance-overlay__msg {
  margin-top: 4px;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
  color: #ffe97a;
}
.maintenance-overlay__sub {
  margin-top: 14px;
  font-size: 13px;
  color: #d8c79a;
  letter-spacing: .5px;
}

/* ============================================================
   Switch — reused by sleeping toggle, maintenance toggle, etc.
   ============================================================ */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex: 0 0 auto;
}
.switch--sm { width: 38px; height: 20px; }
.switch--lg { width: 56px; height: 30px; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider {
  position: absolute;
  inset: 0;
  background: #2a3346;
  border-radius: 999px;
  transition: background .2s ease;
  cursor: pointer;
}
.switch .slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(100% - 6px - (100% - 6px) * .55);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s cubic-bezier(.4, 1.6, .6, 1), background .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.switch--sm .slider::before { top: 3px; left: 3px; }
.switch--lg .slider::before { top: 4px; left: 4px; }
.switch input:checked + .slider { background: linear-gradient(135deg, #38a8ff, #1f73d4); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch--sm input:checked + .slider::before { transform: translateX(18px); }
.switch--lg input:checked + .slider::before { transform: translateX(26px); }
.switch input:disabled + .slider { opacity: .45; cursor: not-allowed; }

/* ============================================================
   Region chips + region modal
   ============================================================ */
.region-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 14px auto 6px;
  max-width: 880px;
}
.region-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 222, 116, 0.35);
  background: rgba(45, 222, 116, 0.08);
  color: #e7f6ee;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.region-chip:hover {
  transform: translateY(-1px);
  background: rgba(45, 222, 116, 0.16);
  border-color: rgba(45, 222, 116, 0.6);
  box-shadow: 0 8px 22px rgba(45, 222, 116, 0.2);
}
.region-chip__flag { font-size: 18px; }
.region-chip__ping {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  color: #c9f5dd;
}

.modal__panel--region {
  width: min(720px, 92vw);
  max-height: 86vh;
  overflow: auto;
}
.region-modal__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.region-modal__flag {
  font-size: 34px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
.region-modal__ping {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(45, 222, 116, .15);
  border: 1px solid rgba(45, 222, 116, .35);
  font-weight: 800;
  color: #c9f5dd;
}
.region-modal__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.region-modal__tariff {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}
.region-modal__tariff-name { font-weight: 800; letter-spacing: .04em; }
.region-modal__tariff-price { margin: 6px 0 10px; }
.region-modal__tariff-price strong { font-size: 20px; }

/* OTP-style numeric input (2FA, password reset) */
.otp-input {
  letter-spacing: 12px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
}

/* ============================================================
   Notification bell (top-right popover)
   ============================================================ */
.bell { position: relative; }
.bell__btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8eef4;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.bell__btn:hover { background: rgba(45,222,116,.12); border-color: rgba(45,222,116,.4); }
.bell__btn:active { transform: scale(.96); }
.bell__icon { display: inline-block; transform-origin: 50% 4px; }
.bell:has(.bell__badge:not([hidden])) .bell__icon { animation: bellShake 1.6s ease-in-out infinite; }
@keyframes bellShake {
  0%, 88%, 100% { transform: rotate(0); }
  90% { transform: rotate(14deg); }
  92% { transform: rotate(-12deg); }
  94% { transform: rotate(10deg); }
  96% { transform: rotate(-8deg); }
  98% { transform: rotate(4deg); }
}
.bell__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5965, #d23545);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 80, 90, .55);
}
.bell__popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: 92vw;
  background: #0e1620;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
  z-index: 50;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.bell__popover.is-open { opacity: 1; transform: translateY(0); }
.bell__head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .03);
}
.bell__silent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #c7cfd9;
  cursor: pointer;
}
.bell__silent input { accent-color: #2dde74; }
.bell__list {
  max-height: 440px;
  overflow: auto;
  padding: 6px 0;
}
.bell__foot {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: rgba(255, 255, 255, .02);
}

.bell-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .14s ease;
}
.bell-item:hover { background: rgba(255, 255, 255, .03); }
.bell-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(56, 168, 255, .14);
  color: #54aaff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}
.bell-item--success .bell-item__icon { background: rgba(45, 222, 116, .14); color: #2dde74; }
.bell-item--warning .bell-item__icon { background: rgba(255, 184, 60, .14); color: #ffb83c; }
.bell-item--error   .bell-item__icon { background: rgba(255, 89, 101, .14); color: #ff5965; }
.bell-item__title { font-weight: 700; font-size: 14px; }
.bell-item__text { font-size: 12px; color: #c7cfd9; margin-top: 2px; line-height: 1.4; }
.bell-item__time { font-size: 11px; color: #7d8a98; white-space: nowrap; padding-top: 2px; }
.bell-item.is-unread { background: rgba(56, 168, 255, .04); }
.bell-item.is-unread .bell-item__title::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 6px;
  background: #38a8ff;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(56, 168, 255, .8);
}

/* ============================================================
   Marketplace
   ============================================================ */
.market__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 4px 0 22px;
}
.market__searchbox {
  position: relative;
  flex: 1 1 320px;
  min-width: 260px;
}
.market__searchbox input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 14px;
}
.market__searchbox input:focus {
  outline: none;
  border-color: rgba(45, 222, 116, .55);
  box-shadow: 0 0 0 3px rgba(45, 222, 116, .12);
}
.market__search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  opacity: .6;
}
.market__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.market-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #e8eef4;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.market-filter:hover { transform: translateY(-1px); background: rgba(45, 222, 116, .1); }
.market-filter.is-active {
  background: linear-gradient(135deg, #2dde74, #1aaa56);
  border-color: rgba(45, 222, 116, .8);
  color: #0a1812;
  box-shadow: 0 8px 18px rgba(45, 222, 116, .3);
}
.market-filter__icon { font-size: 15px; }

.market__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.market-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.market-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 222, 116, .45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .35), 0 0 0 1px rgba(45, 222, 116, .18) inset;
}
.market-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 30% 30%, rgba(45, 222, 116, .15), transparent 60%), #0c1320;
  overflow: hidden;
}
.market-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.market-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-size: 42px;
  opacity: .55;
}
.market-card__tag {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #ffb83c, #ff8a3c);
  color: #1a1206;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  letter-spacing: .04em;
}
.market-card__body { padding: 14px; flex: 1; }
.market-card__title { font-size: 15px; margin: 0 0 4px; font-weight: 800; }
.market-card__sum { font-size: 12px; color: #b9c2cc; margin: 0 0 8px; line-height: 1.45; }
.market-card__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.market-card__foot {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .05);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, .015);
}
.market-card__price strong { font-size: 17px; }

/* ============================================================
   Server status dot + gauges
   ============================================================ */
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .04);
  transition: background .2s ease, box-shadow .3s ease;
}
.status-dot--green {
  background: #2dde74;
  box-shadow: 0 0 0 4px rgba(45, 222, 116, .12), 0 0 12px rgba(45, 222, 116, .55);
  animation: dotPulse 2s ease-in-out infinite;
}
.status-dot--gray { background: #6b7886; box-shadow: 0 0 0 4px rgba(107, 120, 134, .12); }
.status-dot--red {
  background: #ef4f5d;
  box-shadow: 0 0 0 4px rgba(239, 79, 93, .15), 0 0 14px rgba(239, 79, 93, .55);
  animation: dotPulse 1.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: .85; }
}

.srv-gauges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 14px;
}
.srv-gauge { font-size: 12px; }
.srv-gauge__label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #b9c2cc;
}
.srv-gauge__bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
}
.srv-gauge__fill {
  height: 100%;
  border-radius: inherit;
  transition: width .4s cubic-bezier(.5, 0, .2, 1);
}
.srv-gauge__fill--cpu  { background: linear-gradient(90deg, #2dde74, #1aaa56); }
.srv-gauge__fill--ram  { background: linear-gradient(90deg, #6bb1ff, #2070ff); }
.srv-gauge__fill--disk { background: linear-gradient(90deg, #ffb83c, #ff8a3c); }
@media (max-width: 640px) {
  .srv-gauges { grid-template-columns: 1fr; }
}
