/* ============================================================
   DarkLand — Premium Minecraft hub
   Deep violet aesthetic. Glow. Mob silhouettes. Cyan stat icons.
   ============================================================ */

:root {
  /* canvas */
  --bg-deep:        #07041a;
  --bg:             #0c0820;
  --bg-elev-1:      #15102b;
  --bg-elev-2:      #1c1638;
  --bg-card:        #161028;
  --bg-card-hover:  #1d1638;

  /* lines */
  --border:         #2a1f4a;
  --border-soft:    #1f1738;
  --border-strong:  #3d2c6b;

  /* text */
  --text:           #f4f1ff;
  --text-muted:     #aea0d9;
  --text-dim:       #756599;

  /* brand */
  --violet:         #8b5cf6;
  --violet-bright:  #a78bfa;
  --violet-deep:    #6d28d9;
  --violet-glow:    rgba(168, 85, 247, 0.45);
  --violet-glow-2:  rgba(124, 58, 237, 0.25);
  --violet-dim:     rgba(139, 92, 246, 0.12);

  /* secondary (stat icons / accents) */
  --cyan:           #22d3ee;
  --cyan-soft:      rgba(34, 211, 238, 0.18);
  --teal-shield:    #14b8a6;
  --pin:            #f43f5e;

  /* states */
  --danger:         #ef4444;
  --success:        #34d399;
  --warning:        #fbbf24;

  /* gradients */
  --gradient-violet: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #c084fc 100%);
  --gradient-deep:   linear-gradient(180deg, #1a0f3a 0%, #0c0820 100%);
  --gradient-card:   linear-gradient(180deg, rgba(35, 22, 70, 0.85) 0%, rgba(22, 16, 40, 0.95) 100%);

  /* type */
  --font-display: 'Unbounded', 'Russo One', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* misc */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(167, 139, 250, 0.06) inset;
  --shadow-pop:  0 40px 80px -20px rgba(124, 58, 237, 0.45), 0 0 0 1px rgba(167, 139, 250, 0.18) inset;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 40%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 95% 75%, rgba(76, 29, 149, 0.18), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* drifting starfield */
body::before {
  content: '';
  position: fixed;
  inset: -2px;
  background-image:
    radial-gradient(1px 1px at 23% 17%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 67% 32%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 12% 78%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 84% 64%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 41% 91%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 91% 11%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 5% 45%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1.5px 1.5px at 57% 6%, rgba(167,139,250,0.55), transparent 50%),
    radial-gradient(1.5px 1.5px at 33% 56%, rgba(167,139,250,0.4), transparent 50%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
  animation: drift 80s linear infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-40px, -60px, 0); }
}

main, header, footer { position: relative; z-index: 1; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
a:hover { color: var(--violet-bright); }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--violet); color: #fff; }

/* ============================================================
   Header — floating glass pill
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 24px 0;
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(20, 14, 42, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6), 0 1px 0 0 rgba(255, 255, 255, 0.03) inset;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand__logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 12px var(--violet-glow));
}

.brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name strong {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand__name strong em {
  font-style: normal;
  color: var(--violet-bright);
}

.brand__name span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.site-nav a svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(167, 139, 250, 0.08);
}

.site-nav a.active {
  color: var(--text);
  background: rgba(167, 139, 250, 0.12);
}

.nav-badge {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #f43f5e);
  border-radius: 6px;
  margin-left: 4px;
}

.btn-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-violet);
  border-radius: 12px;
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: all 0.2s ease;
  margin-left: 6px;
}

.btn-panel svg { width: 16px; height: 16px; }

.btn-panel:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -6px rgba(139, 92, 246, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
}

.user-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 32px;
}

.container--narrow {
  max-width: 880px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-bright);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  box-shadow: 0 0 30px -8px rgba(167, 139, 250, 0.4);
}

.section-pill svg {
  width: 14px;
  height: 14px;
  fill: var(--violet-bright);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 22px auto 0;
}

.section-sub {
  margin: 18px auto 0;
  max-width: 600px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

/* page titles (inner pages) */
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-title em {
  font-style: normal;
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 640px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--violet-bright); }

/* ============================================================
   Hero (главная)
   ============================================================ */
.hero {
  padding-top: 72px;
  padding-bottom: 32px;
  position: relative;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 60%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 10px;
  background: rgba(20, 14, 42, 0.7);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  backdrop-filter: blur(10px);
}

.hero__pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-top: 28px;
}

.hero h1 .stroke {
  -webkit-text-stroke: 1.5px rgba(244, 241, 255, 0.85);
  color: transparent;
}

.hero h1 .accent {
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.4));
}

.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  margin: 26px auto 0;
  max-width: 620px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: var(--gradient-violet);
  box-shadow: 0 10px 24px -8px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -8px rgba(139, 92, 246, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.btn--ghost {
  color: var(--text);
  background: rgba(28, 22, 56, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(40, 30, 78, 0.8);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--block {
  display: flex;
  width: 100%;
  padding: 15px 24px;
}

/* ============================================================
   Server cards (главная)
   ============================================================ */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.server-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  background: var(--gradient-card);
  border: 1px solid rgba(167, 139, 250, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.server-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.45), transparent 40%, transparent 70%, rgba(168, 85, 247, 0.2));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.server-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: var(--shadow-pop);
  color: inherit;
}

.server-card:hover::before { opacity: 1; }

.server-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(168, 85, 247, 0.7));
  border-radius: 8px;
  box-shadow: 0 6px 14px -4px rgba(139, 92, 246, 0.5);
  z-index: 2;
}

.server-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.server-card__icon {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.server-card__icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}

.server-card__icon svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(168, 85, 247, 0.4));
}

.server-card__title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.server-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card__version {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--violet-bright);
  background: var(--violet-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 5px;
}

.server-card__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.server-card__stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(167, 139, 250, 0.16);
}

.stat-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
}

.stat-row__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan-soft);
  border-radius: 8px;
  color: var(--cyan);
}

.stat-row__icon svg { width: 15px; height: 15px; }

.stat-row__icon--ip       { background: rgba(34, 211, 238, 0.16);  color: var(--cyan); }
.stat-row__icon--players  { background: rgba(167, 139, 250, 0.16); color: var(--violet-bright); }
.stat-row__icon--status   { background: rgba(52, 211, 153, 0.16);  color: var(--success); }

.stat-row__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.stat-row__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-row__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-row__value--online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.server-card__cta {
  margin-top: auto;
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(109, 40, 217, 0.95));
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.server-card:hover .server-card__cta {
  background: var(--gradient-violet);
  box-shadow: 0 10px 22px -8px rgba(139, 92, 246, 0.6);
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
  padding: 80px 40px;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 18px;
}

/* ============================================================
   Server page
   ============================================================ */
.server-hero {
  padding: 56px 0 32px;
}

.ip-block {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.ip-block__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-right: 12px;
  border-right: 1px solid var(--border);
}

.ip-block__value {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--violet-bright);
  letter-spacing: 0.02em;
}

.copy-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: all 0.2s ease;
}
.copy-btn:hover {
  background: var(--violet-deep);
  border-color: var(--violet);
  color: #fff;
}

.section-block {
  padding: 40px 0;
}

.section-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* modes (gamemode chips) */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.mode-card {
  padding: 22px;
  background: var(--gradient-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.mode-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.mode-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.mode-card__desc {
  color: var(--text-muted);
  font-size: 14px;
}

/* products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.product-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -16px rgba(124, 58, 237, 0.4);
}

.product-card__img {
  width: 100%;
  height: 140px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 14px rgba(168, 85, 247, 0.3));
}

.product-card__type {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-bright);
  background: var(--violet-dim);
  border-radius: 6px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 8px;
}

.product-card__desc {
  color: var(--text-muted);
  font-size: 13px;
  flex: 1;
  margin-bottom: 14px;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed rgba(167, 139, 250, 0.16);
}

.product-card__price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--violet-bright);
}

.product-card__price-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Скидки */
.product-card--sale .product-card__price-value {
  color: #ff6b8a;
}

.product-card__sale {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-radius: 8px;
  box-shadow: 0 6px 14px -4px rgba(244, 63, 94, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  z-index: 2;
}

.old-price {
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(244, 63, 94, 0.6);
  margin-right: 4px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.qty-input {
  width: 60px;
  padding: 6px 8px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
}

.product-card__buy {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-violet);
  border-radius: 12px;
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: all 0.2s ease;
}

.product-card__buy:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(139, 92, 246, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.product-card__buy:disabled {
  opacity: 0.6;
  cursor: default;
}

.product-card__error {
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
}

/* ============================================================
   Trust / features strip
   ============================================================ */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.trust__item {
  padding: 22px 20px;
  background: rgba(28, 22, 56, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

.trust__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--violet-dim);
  border-radius: 10px;
  color: var(--violet-bright);
  margin-bottom: 14px;
}

.trust__icon svg { width: 20px; height: 20px; }

.trust__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}

.trust__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   Flashes
   ============================================================ */
.flashes {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.flash {
  pointer-events: auto;
  padding: 14px 20px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--violet);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  animation: slideIn 0.3s ease;
}

.flash--success { border-left-color: var(--success); }
.flash--error   { border-left-color: var(--danger); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   Rules / legal pages
   ============================================================ */
.rules-content,
.legal-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

/* Правила: кнопки-табы режимов */
.rules-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.rules-tab {
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(28, 22, 56, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.rules-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(40, 30, 78, 0.8);
  transform: translateY(-1px);
}

.rules-tab.active {
  color: #fff;
  background: var(--gradient-violet);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* пустое состояние блока правил */
.rules-content--empty {
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.rules-placeholder {
  text-align: center;
  color: var(--text-dim);
}

.rules-placeholder svg {
  color: var(--violet-bright);
  opacity: 0.5;
  margin-bottom: 14px;
}

.rules-placeholder p {
  font-size: 15px;
  color: var(--text-muted);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}

.legal-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--violet-bright);
  margin: 22px 0 8px;
}

.legal-content p { margin-bottom: 12px; color: var(--text-muted); }
.legal-content p strong { color: var(--text); font-weight: 600; }

.legal-content ul,
.legal-content ol {
  margin: 8px 0 16px 24px;
  color: var(--text-muted);
}

.legal-content li { margin-bottom: 6px; }

.legal-content a {
  color: var(--violet-bright);
  text-decoration: underline;
  text-decoration-color: rgba(167, 139, 250, 0.4);
  text-underline-offset: 3px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 12px 0 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.legal-meta strong { color: var(--text-muted); font-weight: 600; }

.legal-toc {
  margin: 16px 0 36px;
  padding: 20px 24px;
  background: rgba(28, 22, 56, 0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

.legal-toc__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text-muted);
  columns: 2;
  column-gap: 32px;
}

.legal-toc li { margin-bottom: 4px; break-inside: avoid; }

@media (max-width: 720px) {
  .legal-toc ol { columns: 1; }
  .rules-content, .legal-content { padding: 28px 22px; }
}

/* ============================================================
   404 / 403
   ============================================================ */
.error-page {
  text-align: center;
  padding: 120px 32px;
}

.error-page__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 200px);
  line-height: 1;
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.5));
  margin-bottom: 12px;
}

.error-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 80px;
  padding: 0 24px 32px;
}

.site-footer__inner-wrap {
  max-width: 1320px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(28, 22, 56, 0.5), rgba(12, 8, 32, 0.4));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 56px 48px 28px;
  position: relative;
  overflow: hidden;
}

.site-footer__inner-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.site-footer__main,
.site-footer__bar,
.footer-disclaimer { position: relative; z-index: 1; }

.site-footer__main {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 880px) {
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .site-footer__inner-wrap { padding: 40px 24px 24px; }
}
@media (max-width: 520px) {
  .site-footer__main { grid-template-columns: 1fr; }
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.footer-brand__logo img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px var(--violet-glow));
}
.footer-brand__logo em {
  font-style: normal;
  color: var(--violet-bright);
}

.footer-brand__desc {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 320px;
}

.age-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--violet-bright);
  background: var(--violet-dim);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 6px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col li a {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-col li a:hover { color: var(--violet-bright); }

.footer-disclaimer {
  padding: 20px 0 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-dim);
}

.site-footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============================================================
   Responsive header
   ============================================================ */
@media (max-width: 1080px) {
  .site-header__inner { gap: 12px; }
  .site-nav a { padding: 8px 10px; font-size: 12px; }
  .site-nav a span:not(.nav-badge) { display: none; }
  .site-nav a svg { width: 18px; height: 18px; opacity: 1; }
  .brand__name span { display: none; }
  .btn-panel { padding: 10px 12px; }
  .btn-panel span { display: none; }
}

@media (max-width: 720px) {
  .container { padding: 40px 18px; }
  .site-header { padding: 12px 14px 0; }
  .site-header__inner { padding: 10px 12px; flex-wrap: wrap; }
  .site-nav { gap: 0; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(40px, 12vw, 72px); }
}

/* ============================================================
   Shine — белый блик проезжает по кнопке при наведении
   ============================================================ */
.btn,
.btn-panel,
.server-card__cta,
.product-card__buy,
.tariff__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn::after,
.btn-panel::after,
.server-card__cta::after,
.product-card__buy::after,
.tariff__cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.05) 80%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: none;
}

.btn:hover::after,
.btn-panel:hover::after,
.server-card:hover .server-card__cta::after,
.product-card__buy:hover::after,
.tariff__cta:hover::after {
  animation: btn-shine 0.75s ease;
}

@keyframes btn-shine {
  0%   { left: -75%; }
  100% { left: 125%; }
}

/* содержимое кнопок над бликом */
.btn > *,
.btn-panel > *,
.server-card__cta > *,
.product-card__buy > *,
.tariff__cta > * {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::after,
  .btn-panel:hover::after,
  .server-card:hover .server-card__cta::after,
  .product-card__buy:hover::after,
  .tariff__cta:hover::after { animation: none; }
}
