/* --- Base --- */
* { box-sizing: border-box; }
:root {
  --bg: #121212;
  --panel: #181818;
  --panel-2: #1e1e1e;
  --border: #2a2a2a;
  --border-soft: #333;
  --text: #f1f1f1;
  --muted: #cccccc;
  --brand: #c2185b;
  --brand-600: #880e4f;

  --control-h: 40px;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  text-align: center;
}
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* --- Navbar --- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--panel);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 20px 10px; }
.nav-left { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: bold; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.logo { height: 28px; width: auto; vertical-align: middle; }
.home-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.home-link:hover { opacity: .9; }

/* --- Buttons --- */
.btn {
  padding: 8px 16px; border-radius: 20px; border: 0;
  font-weight: 700; color: #fff; text-decoration: none;
  background: var(--brand);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Full-width rows span both columns when available */
.link-btn.full { grid-column: 1 / -1; }
/* Half buttons take a single column on wide screens, full on small */
.link-btn.half { grid-column: auto; }

/* --- Content --- */
.site-wrapper {
  max-width: 1100px; margin: 20px auto;
  background: var(--panel-2);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .6);
  border: 1px solid var(--border);
}
.content { margin: 80px auto; }
.content h1 { font-size: 28px; margin-bottom: 20px; color: var(--text); }
.content p { color: var(--muted); line-height: 1.6; }

/* --- Quick Links --- */
.link-list {
  margin: 22px auto 0;
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  max-width: 560px;
}
@media (min-width: 640px) { .link-list { grid-template-columns: 1fr 1fr; } }
.link-btn { grid-column: 1 / -1; } /* full by default */
.link-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  text-decoration: none; color: #f3f3f3;
  background: #0f0f0f;
  border: 1px solid #2c2c2c;
  box-shadow: 0 2px 0 rgba(255,255,255,0.06) inset, 0 10px 22px rgba(0,0,0,0.35);
  transition: background-color .15s ease, transform .1s ease, box-shadow .2s ease;
  font-weight: 700;
}
.link-btn i { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; opacity: .95; }
.link-btn:hover { background: #151515; transform: translateY(-1px); box-shadow: 0 2px 0 rgba(255,255,255,0.06) inset, 0 14px 26px rgba(0,0,0,0.45); }

/* WebCheck */
.webcheck-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.webcheck-row .wc-left { display: inline-flex; align-items: center; gap: 12px; }
.webcheck-row .wc-right { display: inline-flex;   
  gap: 10px;
  align-items: center;}
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,1px,1px); white-space: nowrap; border: 0; }
.pill-select {
  appearance: none; background: #0f0f0f; color: #f3f3f3; border: 1px solid #2c2c2c;
    font-weight: 700;

  height: var(--control-h);
  line-height: calc(var(--control-h) - 2px);
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  width: 180px;}
.pill-select:focus { outline: 2px solid rgba(255,255,255,0.15); outline-offset: 2px; }
.go-btn {   background: var(--brand); color: #fff; border: 1px solid rgba(255,255,255,0.08); font-weight: 800; cursor: pointer; 
  height: var(--control-h);
  line-height: calc(var(--control-h) - 2px);
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;}
.go-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.go-btn:active { transform: translateY(0); }

@media (max-width: 420px) {
  .link-list { max-width: 100%; padding: 0 10px; }
  .link-btn { padding: 12px 14px; }
  .webcheck-row { flex-direction: column; align-items: stretch; }
  .webcheck-row .wc-right { width: 100%; justify-content: space-between; }
  .webcheck-row .pill-select { width: 100%; }
  .pill-select { flex: 1; }
}
@media (max-width: 768px) {
  .container { padding: 15px 28px; }
  .content { padding: 0 6px; }
  .nav-left .logo { display: none !important; }
  .nav-left span { display: inline-block; font-size: 18px; }
}

/* --- Footer --- */
footer {
  margin-top: 80px; background: var(--panel);
  border-top: 1px solid var(--border-soft);
}
footer .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 10px;
}
footer p { margin: 0; color: #ffffff; font-size: 15px; }
#clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  opacity: .95;
  min-width: 84px;
  text-align: right;
}

/* --- Preloader --- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background-color: #000;
  display: flex; justify-content: center; align-items: center; gap: 16px;
  transition: opacity .4s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }
.loader { --path: #fff; --dot: #f40af0; --duration: 3s; width: 44px; height: 44px; position: relative; display: inline-block; margin: 0 16px; }
.loader:before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  position: absolute; display: block; background: var(--dot);
  top: 37px; left: 19px; transform: translate(-18px, -18px);
  animation: dotRect var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.loader svg { display: block; width: 100%; height: 100%; }
.loader svg rect, .loader svg polygon, .loader svg circle {
  fill: none; stroke: var(--path); stroke-width: 10px; stroke-linejoin: round; stroke-linecap: round;
}
.loader svg polygon {
  stroke-dasharray: 145 76 145 76; stroke-dashoffset: 0;
  animation: pathTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.loader svg rect {
  stroke-dasharray: 192 64 192 64; stroke-dashoffset: 0;
  animation: pathRect 3s cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.loader svg circle {
  stroke-dasharray: 150 50 150 50; stroke-dashoffset: 75;
  animation: pathCircle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
.loader.triangle { width: 48px; }
.loader.triangle:before {
  left: 21px; transform: translate(-10px, -18px);
  animation: dotTriangle var(--duration) cubic-bezier(0.785, 0.135, 0.15, 0.86) infinite;
}
@keyframes pathTriangle { 33% { stroke-dashoffset: 74; } 66% { stroke-dashoffset: 147; } 100% { stroke-dashoffset: 221; } }
@keyframes dotTriangle { 33% { transform: translate(0, 0); } 66% { transform: translate(10px, -18px); } 100% { transform: translate(-10px, -18px); } }
@keyframes pathRect { 25% { stroke-dashoffset: 64; } 50% { stroke-dashoffset: 128; } 75% { stroke-dashoffset: 192; } 100% { stroke-dashoffset: 256; } }
@keyframes dotRect { 25% { transform: translate(0, 0); } 50% { transform: translate(18px, -18px); } 75% { transform: translate(0, -36px); } 100% { transform: translate(-18px, -18px); } }
@keyframes pathCircle { 25% { stroke-dashoffset: 125; } 50% { stroke-dashoffset: 175; } 75% { stroke-dashoffset: 225; } 100% { stroke-dashoffset: 275; } }

/* Full-width row style for section titles */
.section-title {
  max-width: 560px;
  margin: 8px auto 8px;
  display: flex;
  justify-content: space-between;
  grid-column: 1 / -1;
}

.section-title span:first-child {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.5px;
}

/* small-screen tweaks */
@media (max-width: 420px) {
  .section-title { padding: 0 12px; }
  .section-title span:first-child { font-size: 16px; }
}
