@import url('https://fonts.googleapis.com/css2?family=Black+Ops+One&family=Oswald:wght@400;500;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #050e1a;
  --panel: #0d1b2d;
  --panel2: #112238;
  --line: #234562;
  --line2: #1a3450;
  --fg: #eaf3ff;
  --dim: #91a8c1;
  --cyan: #48d7e8;
  --gold: #e5bd6a;
  --green: #4bdfa8;
  --red: #fa7f8a;
  --warn: #f2c978;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.site-shell {
  background: radial-gradient(1200px 800px at 20% 0%, rgba(72, 215, 232, 0.08), transparent 45%),
              radial-gradient(1000px 600px at 100% 0%, rgba(229, 189, 106, 0.08), transparent 40%),
              var(--bg);
  color: var(--fg);
  font-family: Inter, Segoe UI, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
body.site-shell--component { min-height: 100vh; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-frame {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 16px 16px;
}
.site-frame--component { padding: 0; max-width: none; }

.masthead, .panel, .footer {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 34, 56, 0.96), rgba(10, 21, 35, 0.96));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(16, 39, 62, 0.98), rgba(10, 24, 41, 0.98) 75%);
  border-top: 2px solid rgba(72, 215, 232, 0.35);
  margin-bottom: 14px;
}
.masthead__brand { display: flex; align-items: center; gap: 16px; min-width: 0; color: inherit; text-decoration: none; }
.seal {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(107, 141, 172, 0.45);
  background: linear-gradient(160deg, rgba(16, 38, 62, 1), rgba(8, 18, 30, 1));
  color: var(--gold); font-family: 'Black Ops One', Impact, sans-serif; font-size: 1.2rem; letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(72, 215, 232, 0.14) inset;
}
.eyebrow { color: var(--cyan); font-family: 'Oswald', sans-serif; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.title-row h1 { margin: 2px 0 0; font-family: 'Black Ops One', Impact, sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.subline { margin-top: 4px; color: var(--gold); font-family: 'Oswald', sans-serif; letter-spacing: 0.14em; text-transform: uppercase; }
.masthead__status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg); white-space: nowrap;
}
.masthead__actions { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.masthead__nav { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex: 1; min-width: 0; }
.header-login {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(72, 215, 232, 0.35);
  background: linear-gradient(180deg, rgba(17, 34, 56, 0.95), rgba(10, 21, 35, 0.95));
  color: var(--fg); font-family: 'Oswald', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
}
.header-login:hover { color: var(--gold); text-decoration: none; border-color: rgba(229, 189, 106, 0.6); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px rgba(75, 223, 168, 0.12); }

.mod-login { display: none !important; }

.panel { border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.panel--compact { padding: 10px 16px; }
.panel--hero { padding: 0; }
.content-grid { display: block; }
.panel--main { min-height: 480px; padding: 0; }
.panel__slot { border-bottom: 1px solid rgba(35, 69, 98, 0.55); }
.component-shell { padding: 18px; min-width: 0; }
.panel > :where(.moduletable, .card, .module) { padding: 16px 18px; }
.panel--compact .moduletable,
.panel--compact .card,
.panel--compact .module,
.panel--compact nav,
.panel--compact ul,
.panel--compact ol {
  margin: 0;
  padding: 0;
}
.panel--compact .mod-menu,
.panel--compact .mod-menu__list,
.panel--compact ul.nav,
.panel--compact ul.mod-menu__list,
.panel--compact .nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.panel--compact li { margin: 0; }
.panel--compact a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(72, 215, 232, 0.22);
  background: rgba(8, 18, 30, 0.55);
  color: var(--fg);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.panel--compact a:hover {
  color: var(--gold);
  border-color: rgba(229, 189, 106, 0.55);
  text-decoration: none;
}
.masthead__nav .moduletable,
.masthead__nav .card,
.masthead__nav .module,
.masthead__nav nav,
.masthead__nav ul,
.masthead__nav ol {
  margin: 0;
  padding: 0;
}
.masthead__nav .mod-menu,
.masthead__nav .mod-menu__list,
.masthead__nav ul.nav,
.masthead__nav ul.mod-menu__list,
.masthead__nav .nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.masthead__nav li { margin: 0; }
.masthead__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(72, 215, 232, 0.22);
  background: rgba(8, 18, 30, 0.55);
  color: var(--fg);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.masthead__nav a:hover {
  color: var(--gold);
  border-color: rgba(229, 189, 106, 0.55);
  text-decoration: none;
}
.footer {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 14px 18px; border-radius: 14px;
}
.footer :where(.moduletable, .card, .module) { margin: 0; }

/* Module/content chrome helpers */
.moduletable, .card, .module, article, section { color: var(--fg); }
.card, .moduletable { background: transparent; }

/* Ops embed helper */
.f99thops-embed {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #03070d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.f99thops-embed iframe {
  width: 100%;
  height: var(--f99thops-height, 1300px);
  border: 0;
  display: block;
  background: #03070d;
}
.f99thops-embed__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(13, 27, 45, 0.98), rgba(17, 34, 56, 0.98));
  border-bottom: 1px solid rgba(35, 69, 98, 0.7);
  color: var(--dim);
  font-size: 0.93rem;
}
.f99thops-embed__bar strong { color: var(--fg); font-weight: 700; }
.f99thops-embed__bar a { color: var(--cyan); }

@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; }
  .masthead { flex-direction: column; align-items: flex-start; }
  .footer { grid-template-columns: 1fr; }
}
