/* Southland Labs visual system for Gun Vault.
   This file intentionally sits after the legacy application stylesheet. */
:root {
  --bg: #0b0f14;
  --panel: #11171e;
  --panel2: #151d25;
  --line: #28333d;
  --text: #e8ecef;
  --muted: #98a3ad;
  --accent: #63b3a7;
  --accent2: #d49a54;
  --danger: #d87070;
  --ok: #55b68b;
}

html { color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body::before, #stars { display: none !important; }

h1, h2, h3, .brand, .btn, .side, .sidebar-title, .stats strong,
.usage-panel strong, .usage-ring span, .value-ring span {
  font-family: inherit;
}
h1, h2, h3 { color: #edf0f2; letter-spacing: -.025em; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
p, .lead, .muted { color: var(--muted); }
a { color: #8fc8c0; }

.topbar {
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid #242c34;
  background: #0b0f14;
  backdrop-filter: none;
}
.brand { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.brand img { border-radius: 5px; }
.powered, .logged-in { color: #89949f; }
.shell { width: min(1160px, 100%); padding: 54px 24px 80px; }

.eyebrow, .sidebar-title {
  color: #79bdb4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
}

.btn, .text-button, .icon {
  min-height: 42px;
  border: 1px solid #34404b;
  border-radius: 6px;
  background: #151c23;
  color: #dce2e6;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: background .18s, border-color .18s, color .18s;
}
.btn:hover, .text-button:hover, .icon:hover {
  background: #1c252e;
  border-color: #4b5966;
  color: #fff;
  transform: none;
}
.btn:focus-visible, .text-button:focus-visible, .icon:focus-visible,
a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(121, 189, 180, .42);
  outline-offset: 3px;
}
.btn.primary {
  border: 1px solid #4b9188;
  background: #4b9188;
  color: #fff;
}
.btn.primary:hover { border-color: #3f7d75; background: #3f7d75; }
.btn.danger, .small-danger {
  border: 1px solid #8d4548;
  background: #612f32;
  color: #f7dddd;
}
.btn.danger:hover, .small-danger:hover { background: #74383c; border-color: #a04e52; }
.text-button { min-height: auto; padding: 4px; border: 0; background: transparent; color: #79bdb4; }
.btn[disabled] { opacity: .45; filter: none; }

input, select, textarea, .copy-field input, .copy-field textarea {
  border: 1px solid #35414c;
  border-radius: 6px;
  background: #0b0f14;
  color: #edf0f2;
  box-shadow: none;
}
input:focus, select:focus, textarea:focus {
  border-color: #63b3a7;
  box-shadow: 0 0 0 3px rgba(99, 179, 167, .12);
}
label { color: #c8d0d6; font-weight: 600; letter-spacing: .05em; }
.field-group { display: grid; gap: 8px; }
.field-group > label { margin: 0; }

.card, .modal-card, .workspace, .sidebar, .auth-hero,
.home-grid article, .mission-panel, .home-split article,
.security-band div, .security-overview, .admin-panel-block,
.ticket-card, .firearm-row, .invite-row {
  border-color: var(--line);
  background-color: var(--panel);
  background-image: none;
  box-shadow: none;
}
.card, .modal-card, .workspace, .sidebar { border-radius: 8px; }

/* Public landing page: editorial sections instead of a generated card wall. */
.auth-panel { gap: 0; }
.auth-panel::before { display: none; }
.auth-hero {
  grid-template-columns: minmax(0, 820px);
  gap: 22px;
  padding: 42px 0 48px;
  border: 0;
  border-bottom: 1px solid #29323b;
  border-radius: 0;
  background: transparent;
}
.auth-hero > img:first-child { display: none; }
.auth-hero .hero-preview { display: none; }
.auth-hero h1 { margin-bottom: 14px; font-size: clamp(42px, 6vw, 68px); letter-spacing: -.055em; }
.auth-hero span { color: #79bdb4; font-weight: 600; }
.patriot-line { margin-top: 14px; color: #aeb7bf; font-weight: 500; }
.patriot-line span, .texas-stamp {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.texas-stamp img { filter: none !important; }
.home-info { margin-top: 38px; }
.home-kicker { gap: 0; margin: 0 0 30px; }
.home-kicker span {
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #34404b;
  border-radius: 0;
  background: transparent;
  color: #8fc8c0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}
.home-kicker span:first-child { padding-left: 0; }
.home-kicker span:last-child { border-right: 0; }
.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.home-grid article {
  padding: 24px 0 28px;
  border: 0;
  border-top: 1px solid #29343e;
  border-radius: 0;
  background: transparent;
}
.home-grid i, .mission-points i, .security-band i {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #17241f;
  color: #8ac7ae;
}
.home-grid h2 { font-size: 20px; }
.mission-panel {
  margin-top: 32px;
  padding: 34px 0;
  border: 0;
  border-top: 1px solid #29323b;
  border-bottom: 1px solid #29323b;
  border-radius: 0;
  background: transparent;
}
.mission-panel h2, .home-split h2 { font-size: 26px; }
.mission-points div {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #28333d;
  border-radius: 0;
  background: transparent;
}
.home-split { gap: 36px; }
.home-split article {
  padding: 30px 0;
  border: 0;
  border-bottom: 1px solid #29323b;
  border-radius: 0;
  background: transparent;
}
.security-band { gap: 10px; }
.security-band div {
  padding: 16px;
  border-radius: 8px;
  background: #11171e;
}

/* Authentication and application workspace. */
.auth-grid { gap: 16px; }
.security-overview { border-radius: 8px; }
.security-list div { color: #c6cdd3; }
.security-list i, .lock-hint {
  border-radius: 6px;
  background: #17241f;
  color: #8ac7ae;
}
.turnstile-message, .notice-tip, .notice, .soft-warning {
  border-color: #5d5023;
  border-radius: 6px;
  background: #211d12;
  color: #e6d49b;
  box-shadow: none;
}
.dashboard { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
.sidebar { top: 84px; padding: 14px; background: #11171e; }
.side {
  margin: 2px 0;
  padding: 11px 10px;
  border-radius: 6px;
  color: #b9c2c9;
  font-size: 14px;
  font-weight: 500;
}
.side:hover { background: #171f27; color: #fff; }
.side.active { background: #1c2c2b; color: #a8d4ce; }
.workspace { padding: 26px; background: #0f151b; }
.workspace h1 { letter-spacing: -.04em; }

.stats { gap: 10px; }
.stats div, .firearm-row, .invite-row, .profile-view div,
.key-meta div, .mini-row, .ticket-card, .audit-row {
  border: 1px solid #28333d;
  border-radius: 7px;
  background: #11171e;
  box-shadow: none;
}
.stats div { padding: 16px; }
.stats strong { color: #edf0f2; font-size: 32px; letter-spacing: -.035em; }
.usage-panel, .value-panel {
  border-color: #28333d;
  border-radius: 8px;
  background: #11171e;
  background-image: none;
}
.usage-ring { --pct: 0; background: conic-gradient(#63b3a7 calc(var(--pct) * 1%), #28333d 0); }
.usage-ring span, .value-ring span { background: #11171e; }
.value-ring {
  --purchase: 0;
  --estimated: 0;
  background: conic-gradient(#63b3a7 0 calc(var(--purchase) * 1%), #d49a54 calc(var(--purchase) * 1%) calc((var(--purchase) + var(--estimated)) * 1%), #28333d 0);
  box-shadow: none;
}
.record-photo { width: 100%; max-height: 320px; border-radius: 8px; background: #060b0f; object-fit: contain; }
.legend-dot.purchase { background: #63b3a7; }
.legend-dot.estimated { background: #d49a54; }
.value-legend span { border-color: #28333d; border-radius: 6px; background: #151c23; }
.security-score-card { background: #11171e; }
.security-meter { height: 8px; border-radius: 2px; background: #28333d; }
.security-meter span { background: #63b3a7; }
.danger-card { border-color: #63363a; background: #181316; }

.secret, .inline-secret, .invite-output, .suggestion-panel {
  border-color: #35414c;
  border-radius: 6px;
  background: #0b0f14;
  color: #dfe5e8;
}
.suggestion-panel i, .email-status, .copyable-secret::after { color: #79bdb4; }
.status-pill, .account-flag, .admin-badge, .super-admin-badge {
  border-radius: 4px;
  background-image: none;
  font-weight: 600;
}
.admin-badge { border-color: #36534f; background: #172724; color: #a8d4ce; }
.super-admin-badge { border-color: #66552f; background: #282113; color: #e7d49b; }
.empty-state { border-color: #35414c; border-radius: 8px; background: transparent; }
.empty-state i { color: #79bdb4; }
.detail-tabs .active { background: #1c2c2b; color: #a8d4ce; }
.ticket-reply { border-color: #28333d; border-radius: 6px; background: #0b0f14; }
.ticket-reply.from-admin { border-color: #36534f; background: #12201e; }

/* Modals and sensitive copy surfaces remain prominent without browser-like popups. */
.modal, .reset-page-modal, .decrypt-overlay {
  background: rgba(3, 6, 9, .84);
  background-image: none;
  backdrop-filter: blur(6px);
}
.modal-card, .themed-reset-card, .decrypt-card {
  border: 1px solid #34404b;
  border-radius: 8px;
  background: #11171e;
  background-image: none;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
}
.reset-brand img { border-color: #34404b; border-radius: 6px; background: #0b0f14; }
.unlock-anim {
  border-color: #36534f;
  border-radius: 8px;
  background: #172724;
  color: #8ac7ae;
  animation: none;
  box-shadow: none;
}
.unlock-anim i { animation: none; }
.document-viewer { border-color: #34404b; border-radius: 6px; background: #0b0f14; }
.cookie-banner {
  border-color: #2b3741;
  border-radius: 8px;
  background: #111820;
  box-shadow: 0 16px 44px rgba(0, 0, 0, .35);
}
.cookie-banner .btn { min-width: 84px; white-space: nowrap; }
.toast { border: 0; border-radius: 6px; background: #dcebe2; color: #14231b; }
#loginStatus { min-height: 18px; margin: -4px 0 12px; }

/* Policy, security and error pages use the same restrained reading layout. */
.policy { width: min(820px, 100%); padding: 58px 24px 88px; }
.policy > .brand { display: inline-flex; margin-bottom: 48px; }
.policy h1 { max-width: 720px; font-size: clamp(40px, 6vw, 58px); line-height: 1.06; }
.policy h2 { margin-top: 38px; padding-top: 24px; border-top: 1px solid #29323b; font-size: 23px; }
.policy strong { color: #dce2e6; }
.not-found { max-width: 760px; margin: 70px auto; padding: 40px; border: 1px solid #28333d; border-radius: 8px; background: #11171e; }

footer { border-top: 1px solid #252e37; color: #78848d; }
footer a { color: #9bbab5; }

@media (max-width: 850px) {
  .topbar { min-height: 62px; padding: 9px 14px; }
  .shell { padding: 34px 16px 64px; overflow: visible; }
  .auth-hero { grid-template-columns: 1fr; padding: 30px 0 36px; }
  .auth-panel, .auth-hero, .auth-hero > div, .home-info, .home-grid article,
  .mission-panel, .home-split article, .security-band div { min-width: 0; max-width: 100%; }
  .auth-hero p, .home-grid p, .mission-panel p, .home-split p,
  .security-band span, .cookie-banner span { overflow-wrap: anywhere; }
  .auth-hero h1 { font-size: 40px; }
  .home-grid, .mission-panel, .home-split, .security-band,
  .auth-grid, .dashboard, .settings-grid, .two, .three,
  .admin-grid, .key-meta, .support-tools-grid, .support-pin-grid {
    grid-template-columns: 1fr;
  }
  .home-grid { gap: 0; }
  .home-kicker { display: grid; gap: 6px; }
  .home-kicker span { padding: 0; border: 0; }
  .mission-panel { gap: 20px; padding: 28px 0; }
  .sidebar {
    position: static;
    display: flex;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .sidebar-title { display: none; }
  .side { flex: 0 0 auto; margin: 0; white-space: nowrap; }
  .workspace { padding: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .firearm-row { grid-template-columns: 1fr; }
  .cookie-banner { left: 14px; right: 14px; width: auto; border-radius: 8px; }
  .modal-card { padding: 18px; }
}

@media (max-width: 520px) {
  .powered { display: none; }
  .topbar .brand { font-size: 15px; }
  .topbar .btn { padding: 8px 10px; }
  .auth-hero { grid-template-columns: 1fr; }
  .auth-hero h1 { font-size: 36px; }
  .stats { grid-template-columns: 1fr; }
  .section-head, .mini-row { display: grid; }
  input, select, textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
