/* ============================================================
   SANS VARIABLE
============================================================ */
@font-face {
    font-family: "GSans";
    src: url("/fonts/GSansVar.ttf")
         format("truetype-variations");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GSans";
    src: url("/fonts/GSansVar-Italic.ttf")
         format("truetype-variations");
    font-weight: 100 700;
    font-style: italic;
    font-display: swap;
}

:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --panel-light: #16223c;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --text: #e6edf6;
  --text-dim: #9fb0cc;
  --border: #22304f;
  --success: #22c55e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "GSans", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(180deg, #0b1220, #0e1730);
  color: var(--text);
  font-optical-sizing: auto;
  font-variation-settings:
      "wght" 400,
      "GRAD" 0;
}

/* Layout containers (unified) */
.container,
.page-container {
  max-width: 900px;
  margin: auto;
}

/* NAV (unified) */
.nav,
.page-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
:root {
  --bg: #0b1220;
  --panel: #111a2e;
  --panel-light: #16223c;
  --accent: #3b82f6;
  --accent-soft: #60a5fa;
  --text: #e6edf6;
  --text-dim: #9fb0cc;
  --border: #22304f;
  --success: #22c55e;
}

* { box-sizing: border-box; }


/* sidebar */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 20px;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.nav a {
  display: block;
  padding: 10px;
  margin-bottom: 8px;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-light);
  transition: .15s;
}

.nav a:hover {
  color: var(--text);
  background: #1b2a4d;
}

.nav a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* main */
.main {
  flex: 1;
  padding: 30px;
  max-width: 1100px;
}

.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

h1, h2, h3 {
  margin-top: 0;
  color: #fff;
}

p {
  color: var(--text-dim);
  line-height: 1.6;
}

/* cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 15px;
}

.card {
  background: var(--panel-light);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.card h3 {
  margin-bottom: 6px;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

/* FOOTER */
.footer {
    margin-top: 40px;
    padding: 20px;
    background: var(--panel);
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 26, 46, 0.98);
    border-top: 1px solid var(--border);
    padding: 16px;
    z-index: 9999;
    backdrop-filter: blur(8px);
    display:none;
}
.cookie-banner.cookie-banner-visible {
    display: block;
}

.cookie-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-text {
    flex: 1;
    min-width: 260px;
    color: var(--text-dim);
    font-size: 13px;
}

/* toggles */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text);
    background: var(--panel-light);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.cookie-option input {
    transform: scale(1.1);
}

/* buttons */
.cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 13px;
    background: var(--panel-light);
    color: var(--text);
}

.cookie-accept {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.cookie-reject {
    background: transparent;
}

.footer {
    margin-top: 40px;
    padding: 24px 20px;
    background: var(--panel);
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}

/* layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.footer h4 {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text);
}

/* links */
.footer a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    margin: 3px 0;
}

.footer a:hover {
    color: var(--accent-soft);
}

/* message form */
.msg-box {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.msg-box input {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--panel-light);
    color: var(--text);
    font-size: 12px;
}

.msg-box button {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.msg-status {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-dim);
}

/* bottom line */
.footer-bottom {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

.msg-status-ok {
    color: #9fb0cc;
}

.msg-status-error {
    color: #f87171;
}

/* ============================================================
   Disabled button state
============================================================ */

.is-disabled {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.hidden {
    display: none;
}

/* ============================================================
   COOKIE PAGE (CLEAN INTEGRATION WITH GLOBAL THEME)
============================================================ */

/* page wrapper */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

/* top navigation (cookie page version) */
.page-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.page-nav a {
    padding: 8px 16px;
    background: var(--panel);
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: 0.15s;
}

.page-nav a:hover {
    color: var(--text);
    background: var(--panel-light);
}

.page-nav a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* content section override (reuses global section style) */
.page-section {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

/* cookie info boxes */
.cookie-box {
    padding: 14px;
    background: var(--panel-light);
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* headings */
.page-section h1,
.page-section h3 {
    margin-top: 0;
    color: #fff;
}

/* text */
.page-section p {
    color: var(--text-dim);
    line-height: 1.6;
}
.nav a,
.page-nav a {
  padding: 8px 16px;
  background: var(--panel);
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.nav a.active,
.page-nav a.active {
  background: var(--accent);
  color: #fff;
}

/* Sections */
.section,
.page-section {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Typography */
h1,
h3 {
  margin-top: 0;
}

/* Cookie boxes */
.cookie-box {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-light);
}

.cookie-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.cookie-box p {
  margin: 0;
  color: var(--text-dim);
}