/* ============================================================
   GGNet – Lag Insurance
   Dark gaming-tech aesthetic
   Fonts: Orbitron (display) + IBM Plex Mono (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;900&family=IBM+Plex+Mono:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0a0c10;
  --bg-panel:    #111520;
  --bg-card:     #161b28;
  --border:      #1e2a40;
  --accent:      #00e5ff;
  --accent-dim:  #007d8a;
  --accent-glow: 0 0 12px #00e5ff66;
  --green:       #00ff88;
  --red:         #ff3860;
  --text:        #c8d6e8;
  --text-dim:    #5a7190;
  --text-bright: #eaf2ff;
  --font-display: 'Orbitron', monospace;
  --font-body:    'IBM Plex Mono', monospace;
  --radius:       6px;
  --max-w:        860px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  /* subtle scanline texture */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 229, 255, 0.015) 2px,
    rgba(0, 229, 255, 0.015) 4px
  );
}

/* ── Layout wrapper ────────────────────────────────────────── */
header, section, footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 28px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-bright);
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--accent);
  text-shadow: var(--accent-glow), 0 0 40px #00e5ff33;
  line-height: 1.1;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-dim);
  display: inline-block;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin: 28px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p { margin-bottom: 14px; }

strong { color: var(--text-bright); }

em { color: var(--text-dim); font-style: italic; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}
a:hover {
  color: var(--text-bright);
  text-shadow: var(--accent-glow);
}

/* ── Header ────────────────────────────────────────────────── */
header {
  padding-top: 64px;
  padding-bottom: 48px;
  position: relative;
}

header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 8px;
  margin-bottom: 32px;
}

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

nav a {
  color: var(--text-dim);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-transform: uppercase;
}
nav a:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(0, 229, 255, 0.06);
  text-shadow: none;
}

/* Hide the pipe separators */
nav { gap: 8px; }

/* ── Sections ──────────────────────────────────────────────── */
section {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Lists ─────────────────────────────────────────────────── */
ul, ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

li {
  margin-bottom: 8px;
  padding-left: 4px;
}

ul li::marker { color: var(--accent-dim); }
ol li::marker { color: var(--accent); font-weight: 600; }

/* ── Tables ────────────────────────────────────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

th {
  background: var(--bg-panel);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid var(--border);
}

td {
  padding: 11px 16px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg-card);
  transition: background 0.15s;
}

tr:hover td { background: #1a2235; }

/* Highlight the GG Pro row */
tr:has(td:first-child:contains("GG Pro")) td,
#plans tbody tr:last-child td {
  color: var(--accent);
}

/* ── Forms ─────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-bright);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 9px 13px;
  width: 100%;
  max-width: 360px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

textarea {
  resize: vertical;
  max-width: 480px;
}

select option { background: var(--bg-card); }

/* Dashboard inline controls — keep them on one line */
#dashboard > label,
#dashboard > input,
#dashboard > select {
  display: inline-block;
  width: auto;
  max-width: none;
  vertical-align: middle;
  margin-bottom: 0;
}
#dashboard > label { margin-bottom: 0; }

/* ── Buttons ───────────────────────────────────────────────── */
button {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-dim);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

button:hover {
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: var(--accent-glow);
}
button:hover::before { opacity: 1; }
button:hover span, button:hover { color: var(--bg); }

button span { position: relative; z-index: 1; }
button { color: var(--accent); }
button:hover { color: var(--bg); }

/* Reset button: dimmer style */
button:nth-of-type(2) {
  border-color: var(--border);
  color: var(--text-dim);
  margin-left: 8px;
}
button:nth-of-type(2):hover {
  border-color: var(--text-dim);
  color: var(--bg);
  box-shadow: none;
}
button:nth-of-type(2)::before { background: var(--text-dim); }

/* ── Dashboard output ──────────────────────────────────────── */
#dashboard-output {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: none; /* hidden until populated */
}

#dashboard-output:not(:empty) { display: block; animation: fadeUp 0.3s ease; }

#dashboard-output h3 {
  margin-top: 0;
  font-size: 0.9rem;
}

#dashboard-output p {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

#dashboard-output details {
  margin-top: 16px;
}

#dashboard-output summary {
  cursor: pointer;
  color: var(--accent-dim);
  font-size: 0.85rem;
  padding: 6px 0;
  user-select: none;
  transition: color 0.2s;
}
#dashboard-output summary:hover { color: var(--accent); }

/* ── Contact section ───────────────────────────────────────── */
#contact > div {
  margin-top: 20px;
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

#contact > div label {
  margin-top: 16px;
}
#contact > div label:first-child { margin-top: 0; }

#msg-feedback {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--green);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  padding-top: 24px;
  padding-bottom: 40px;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ── Selection ─────────────────────────────────────────────── */
::selection { background: var(--accent-dim); color: var(--bg); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  header, section, footer { padding-left: 18px; padding-right: 18px; }
  h1 { font-size: 2rem; }
  table { font-size: 0.8rem; }
  th, td { padding: 8px 10px; }
  input[type="text"], input[type="email"], select, textarea { max-width: 100%; }

  #dashboard > label,
  #dashboard > input,
  #dashboard > select,
  #dashboard > button {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 6px 0;
  }
}