/* polish.css — loaded last, so these rules win. Sharpens the existing
   theme (nav, feature cards, store cards, buttons) toward a bolder,
   more "hosting-company" feel: pill CTAs, icon-badge feature cards with
   one highlighted item, and denser, punchier store pricing cards.
   Deliberately additive on top of theme.css rather than a rewrite —
   keeps every page that already works working. */

/* ── global card treatment: replaces the flat, identical black box every
   page (dashboard, store, wardrobe, admin, cart) currently reuses — this
   single change updates every page that shares .card at once. Subtle
   gradient depth + soft top glow instead of a uniform flat rectangle. */
.card {
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01) 55%), var(--bg-panel, #111120);
  border: 1px solid rgba(255,255,255,0.09);
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 16px 40px -24px rgba(0,0,0,0.6);
  transition: border-color .2s ease, transform .2s ease;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,77,255,0.5), transparent);
  opacity: 0.7;
}
.card:hover { border-color: rgba(255,255,255,0.16); }

/* ── homepage Minecraft gallery ─────────────────────────────────────── */
.mc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mc-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.09); position: relative; aspect-ratio: 4/3; }
.mc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.mc-gallery figure:hover img { transform: scale(1.05); }
.mc-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
}
@media (max-width: 720px) { .mc-gallery { grid-template-columns: 1fr; } }

/* Homepage: editorial game-launcher layout */
.home-page { background: #08080b; color: #f3f1ee; }
.home-page .site-offer { display:flex; justify-content:center; align-items:center; gap:16px; padding:10px 20px; background:#17171c; border-bottom:1px solid #2a292e; color:#a7a3aa; font-size:12px; }
.home-page .site-offer span { color:#f0a85b; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.home-page .site-offer a { color:#f0a85b; text-decoration:underline; text-underline-offset:3px; }
.home-page nav { background:rgba(8,8,11,.88); border-bottom-color:#26252b; }
.home-page .home-hero { padding:96px 0 72px; background:linear-gradient(115deg,#0a0a0d 0%,#111017 56%,#1f1714 100%); border-bottom:1px solid #29272a; }
.home-page .home-hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.home-page .section-kicker { color:#d69453; font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; margin-bottom:16px; }
.home-page .home-hero h1, .home-page h2 { font-family:'Space Grotesk',sans-serif; letter-spacing:-.035em; }
.home-page .home-hero h1 { font-size:clamp(46px,6vw,78px); line-height:1.01; margin-bottom:24px; }
.home-page .home-hero h1 span, .home-page h2 span { color:#e9a660; }
.home-page .home-lede { max-width:510px; color:#a6a2a5; font-size:16px; line-height:1.75; }
.home-page .home-actions { display:flex; gap:12px; margin:32px 0 24px; flex-wrap:wrap; }
.home-page .home-actions .btn-primary, .home-page .newsletter-card .btn-primary { background:#e69a4e; color:#1b120b; box-shadow:0 10px 28px rgba(230,154,78,.2); }
.home-page .home-actions .btn-primary img { width:16px; filter:brightness(0) saturate(100%); }
.home-page .home-actions .btn-secondary { border-color:#51433a; background:transparent; }
.home-page .hero-notes { display:flex; gap:20px; flex-wrap:wrap; color:#8e8a8e; font-size:12px; }
.home-page .hero-notes span { display:flex; align-items:center; gap:7px; }
.home-page .hero-notes img { width:14px; height:14px; opacity:.75; }
.home-page .launcher-preview { position:relative; padding:16px; background:#141318; border:1px solid #40332b; border-radius:10px; box-shadow:24px 28px 70px rgba(0,0,0,.45); transform:rotate(1.5deg); }
.home-page .preview-top { display:flex; align-items:center; gap:6px; padding:2px 2px 14px; color:#777278; font-size:11px; }
.home-page .preview-top span { width:7px; height:7px; border-radius:50%; background:#504c50; }
.home-page .preview-top strong { margin-left:8px; font-size:10px; letter-spacing:.12em; text-transform:uppercase; }
.home-page .preview-art { height:240px; overflow:hidden; border-radius:6px; background:#211b19; }
.home-page .preview-art img { width:100%; height:100%; object-fit:cover; opacity:.9; }
.home-page .preview-panel { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 4px 8px; }
.home-page .preview-panel small, .home-page .preview-panel strong { display:block; }
.home-page .preview-panel small { color:#89848b; font-size:11px; margin-bottom:5px; }
.home-page .preview-panel strong { font-size:17px; }
.home-page .preview-play { padding:10px 14px; border-radius:5px; background:#e69a4e; color:#1b120b; font-size:12px; font-weight:700; }
.home-page .preview-status { border-top:1px solid #2d292d; padding:12px 4px 0; color:#8e8a8e; font-size:11px; }
.home-page .preview-status span, .home-page .status-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#65b878; }
.home-page .preview-status b { float:right; color:#65b878; }
.home-page .home-section { padding:92px 0; }
.home-page .home-section-tight { padding:0; }
.home-page .home-section-dark { background:#101014; border-top:1px solid #242329; border-bottom:1px solid #242329; }
.home-page .stat-grid { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid #2b292d; border-top:0; }
.home-page .stat-grid div { padding:24px; border-right:1px solid #2b292d; }
.home-page .stat-grid div:last-child { border-right:0; }
.home-page .stat-grid strong, .home-page .stat-grid span { display:block; }
.home-page .stat-grid strong { color:#f0a85b; font-family:'Space Grotesk',sans-serif; font-size:26px; }
.home-page .stat-grid span { color:#858087; font-size:11px; margin-top:5px; text-transform:uppercase; letter-spacing:.1em; }
.home-page .section-heading { max-width:620px; margin:0 auto 42px; text-align:center; }
.home-page .section-heading-left { margin-left:0; text-align:left; }
.home-page h2 { font-size:clamp(32px,4vw,52px); line-height:1.08; margin-bottom:16px; }
.home-page .section-heading > p:last-child { color:#969198; line-height:1.7; font-size:15px; }
.home-page .feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.home-page .feature-card { min-height:190px; padding:24px; background:#111116; border:1px solid #29272d; border-radius:6px; }
.home-page .feature-card-featured { background:#211a15; border-color:#6b4930; }
.home-page .feature-icon { width:22px; height:22px; margin-bottom:28px; opacity:.9; }
.home-page .feature-card h3 { font-size:16px; margin-bottom:9px; }
.home-page .feature-card p { color:#908b92; font-size:13px; line-height:1.6; }
.home-page .split-section, .home-page .trust-grid { display:grid; grid-template-columns:1fr 1.15fr; gap:70px; align-items:center; }
.home-page .gallery-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.home-page .gallery-grid figure { position:relative; min-height:150px; margin:0; overflow:hidden; border:1px solid #39353a; border-radius:6px; background:#19171b; }
.home-page .gallery-grid figure:first-child { grid-row:span 2; min-height:312px; }
.home-page .gallery-grid img { width:100%; height:100%; object-fit:cover; opacity:.85; }
.home-page .gallery-grid figcaption { position:absolute; right:0; bottom:0; left:0; padding:24px 14px 12px; background:linear-gradient(transparent,rgba(0,0,0,.86)); color:#eee; font-size:12px; font-weight:600; }
.home-page .gallery-missing { display:none; }
.home-page .text-link { color:#e3a05f; font-size:13px; font-weight:700; }
.home-page .status-card { padding:22px 24px; background:#111116; border:1px solid #302d33; border-radius:6px; }
.home-page .status-summary { display:flex; align-items:center; padding-bottom:16px; border-bottom:1px solid #2b292e; font-size:14px; }
.home-page .status-dot { margin-right:9px; }
.home-page .status-dot-down { background:#d26363; }
.home-page .status-row { display:flex; justify-content:space-between; padding:14px 0; border-bottom:1px solid #25242a; color:#aaa5ac; font-size:13px; }
.home-page .status-row:last-child { border-bottom:0; padding-bottom:0; }
.home-page .status-row b { color:#65b878; font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.home-page .status-row b.is-down { color:#d26363; }
.home-page .newsletter-section { padding-top:0; }
.home-page .newsletter-card { display:flex; justify-content:space-between; align-items:center; gap:40px; padding:38px 42px; background:#1b1714; border:1px solid #5b422f; border-radius:6px; }
.home-page .newsletter-card h2 { font-size:28px; margin-bottom:8px; }
.home-page .newsletter-card > div > p:last-child { color:#9c9591; font-size:13px; }
.home-page .newsletter-card form { display:flex; gap:8px; min-width:360px; }
.home-page .newsletter-card input { min-width:0; flex:1; padding:12px 14px; background:#0d0c0f; border:1px solid #443a35; border-radius:5px; color:#fff; }
.home-page .form-success { color:#73c58a; font-size:13px; }
.home-page .form-error { color:#e47e7e; font-size:12px; }
.home-page .home-trustpilot { padding-top:0; }
.home-page .trustpilot-card { display:flex; align-items:center; gap:22px; padding:28px 32px; background:#141022; border:1px solid var(--border-soft); border-radius:6px; transition:transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.home-page .trustpilot-card:hover { transform:translateY(-3px); border-color:var(--accent-light); box-shadow:0 16px 42px rgba(72,34,145,.25); text-decoration:none; }
.home-page .trustpilot-mark { display:flex; align-items:center; justify-content:center; width:48px; height:48px; flex-shrink:0; border-radius:6px; background:#00b67a; color:#fff; font-size:28px; }
.home-page .trustpilot-card h2 { font-size:28px; margin-bottom:6px; }
.home-page .trustpilot-card .section-kicker { margin-bottom:7px; }
.home-page .trustpilot-card p:last-child { color:#9c96a8; font-size:13px; }
.home-page .trustpilot-link { margin-left:auto; color:var(--accent-light); font-size:13px; font-weight:700; white-space:nowrap; }
.home-page .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 800px) { .home-page .home-hero-grid, .home-page .split-section, .home-page .trust-grid { grid-template-columns:1fr; gap:38px; } .home-page .feature-grid { grid-template-columns:repeat(2,1fr); } .home-page .newsletter-card { display:block; } .home-page .newsletter-card form { min-width:0; margin-top:24px; } .home-page .trustpilot-card { align-items:flex-start; flex-wrap:wrap; } .home-page .trustpilot-link { margin-left:70px; } }
@media (max-width: 560px) { .home-page .site-offer { flex-wrap:wrap; gap:7px 12px; } .home-page .home-hero { padding-top:60px; } .home-page .stat-grid { grid-template-columns:repeat(2,1fr); } .home-page .stat-grid div:nth-child(2) { border-right:0; } .home-page .stat-grid div:nth-child(-n+2) { border-bottom:1px solid #2b292d; } .home-page .feature-grid { grid-template-columns:1fr; } .home-page .gallery-grid { grid-template-columns:1fr; } .home-page .gallery-grid figure:first-child { grid-row:auto; min-height:190px; } .home-page .newsletter-card { padding:28px 22px; } .home-page .newsletter-card form { flex-direction:column; } }

/* Global purple language and motion layer. Loaded last so every route,
   including older templates with inline layout styles, shares one visual system. */
:root {
  --accent: #9b5cff;
  --accent-light: #d0b5ff;
  --purple: #9b5cff;
  --lavender: #d0b5ff;
  --blue: #6b8cff;
  --bg-deep: #07050d;
  --bg-base: #0b0812;
  --bg-panel: #141022;
  --surface: #17122a;
  --surface-2: #21183a;
  --border-soft: rgba(174, 126, 255, .24);
  --border-hi: rgba(208, 181, 255, .42);
  --ink: #f6f2ff;
  --ink-dim: #aaa0bd;
  --muted: #aaa0bd;
  --muted-2: #746783;
}

html { background: var(--bg-base); }
body {
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 65% 45% at 100% 0%, rgba(123, 46, 255, .16), transparent 70%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(75, 42, 150, .13), transparent 70%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(208,181,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(208,181,255,.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

nav, footer, .card, .alert, .status-panel, .monitor-panel, .news-card,
.feature-card, .item-card, .vip-feature, .vip-feat-card, .glass-card,
.contact-modal, .newsletter, .tier-card-inner, .custom-cape-cta {
  border-color: var(--border-soft);
}

nav { background: rgba(11, 8, 18, .86); box-shadow: 0 12px 36px rgba(45, 17, 92, .16); }
a { color: var(--accent-light); }
a:hover { color: #fff; }
.logo span, .wordmark span { color: var(--accent-light); }
.btn-primary, .nav-cta-pill, .play-btn {
  background: linear-gradient(135deg, #8b45ef, #b66bff 52%, #6e62f5);
  box-shadow: 0 8px 28px rgba(139, 69, 239, .3);
}
.btn-secondary, .btn-ghost { background: rgba(155, 92, 255, .08); border-color: var(--border-soft); }
.btn:hover, .card:hover, .feature-card:hover, .item-card:hover, .news-card:hover { transform: translateY(-3px); }
.card, .feature-card, .item-card, .news-card, .status-panel, .monitor-panel, .glass-card { animation: page-rise .65s both; }
.card:nth-child(2), .feature-card:nth-child(2), .item-card:nth-child(2), .news-card:nth-child(2) { animation-delay: .06s; }
.card:nth-child(3), .feature-card:nth-child(3), .item-card:nth-child(3), .news-card:nth-child(3) { animation-delay: .12s; }
.card:nth-child(4), .feature-card:nth-child(4), .item-card:nth-child(4), .news-card:nth-child(4) { animation-delay: .18s; }
@keyframes page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes purple-breathe { 0%, 100% { box-shadow: 0 0 0 rgba(155,92,255,0); } 50% { box-shadow: 0 0 28px rgba(155,92,255,.2); } }
.btn-primary, .nav-cta-pill { animation: purple-breathe 4s ease-in-out infinite; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent-light) !important; }
.badge-vip, .rarity-legendary .rarity-tag { background: linear-gradient(135deg, #b66bff, #7542d7); color: #fff; }

/* Keep the homepage in the same purple family as all interior pages. */
.home-page .site-offer { background: #171027; color: var(--ink-dim); border-color: var(--border-soft); }
.home-page .site-offer span, .home-page .site-offer a, .home-page .section-kicker,
.home-page .home-hero h1 span, .home-page h2 span, .home-page .text-link { color: var(--accent-light); }
.home-page .home-hero { background: linear-gradient(115deg, #0b0812, #171126 58%, #211738); border-color: var(--border-soft); }
.home-page .home-actions .btn-primary, .home-page .newsletter-card .btn-primary,
.home-page .preview-play { background: linear-gradient(135deg, #8b45ef, #b66bff); color: #fff; }
.home-page .launcher-preview, .home-page .feature-card-featured, .home-page .newsletter-card { background-color: #171027; border-color: var(--border-soft); }
.home-page .stat-grid strong { color: var(--accent-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.btn-primary, .btn-ghost {
  border-radius: 999px;
}
.nav-actions .btn-primary {
  padding: 10px 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ── feature cards: icon badge top-right, one card highlighted ─────── */
.feature-card {
  position: relative;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border-soft, rgba(255,255,255,0.08));
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}
.feature-card .feature-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(124,77,255,0.12);
  border: 1px solid rgba(124,77,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card .feature-icon img { width: 17px; height: 17px; }
.feature-card .feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  padding-right: 40px;
  color: var(--ink, #f2f1f8);
}
.feature-card .feature-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim, #9a97b3);
}
.feature-card.featured {
  border-color: rgba(124,77,255,0.55);
  background: linear-gradient(160deg, rgba(124,77,255,0.10), rgba(124,77,255,0.02));
  box-shadow: 0 0 0 1px rgba(124,77,255,0.15), 0 12px 34px -14px rgba(124,77,255,0.45);
}
.feature-card.featured .feature-icon {
  background: rgba(124,77,255,0.22);
  border-color: rgba(124,77,255,0.5);
}
.feature-card.featured .feature-title { color: var(--accent-light, #c9a8ff); }

/* ── hero background: original scattered voxel-cube artwork ────────── */
/* Deliberately built from scratch (generated isometric cubes, not a
   photo or game texture) so there's no copyright question — evokes a
   blocky game world without reusing anyone else's asset. */
.hero { overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/img/hero-voxels.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  animation: hero-voxel-drift 40s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(7,7,12,0.2), rgba(7,7,12,0.75) 65%),
    linear-gradient(180deg, rgba(7,7,12,0.55) 0%, rgba(7,7,12,0.88) 100%);
}
.hero > .container { position: relative; z-index: 2; }
@keyframes hero-voxel-drift {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.04) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* ── store / pricing cards: denser, bolder, full-width CTA ─────────── */
.store-card {
  border-radius: 16px !important;
}
.store-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px !important;
  font-weight: 800 !important;
}
.store-card .card-footer {
  flex-direction: column;
  align-items: stretch !important;
  gap: 12px !important;
}
.store-card .card-footer .price {
  order: -1;
}
.store-card .card-footer form,
.store-card .card-footer > a.btn,
.store-card .card-footer > span {
  width: 100%;
}
.store-card .card-footer .btn {
  width: 100%;
  border-radius: 10px !important;
  padding: 12px 18px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}
