/* ═══════════════════════════════════════════════════════════
   VTAC GLOBAL STRIKE COMMAND — MAIN STYLESHEET
   vtacgsc.com
═══════════════════════════════════════════════════════════ */

:root {
  /* ── Colors ── */
  --bg:        #080a0f;
  --surface:   #0e1018;
  --card:      #13161f;
  --card2:     #181c28;
  --border:    #1e2440;
  --border2:   #2a3060;
  --gold:      #c8a951;
  --gold2:     #f0cc72;
  --blue:      #4a90d9;
  --blue2:     #7ab8ff;
  --green:     #3dba6e;
  --green2:    #6ddea0;
  --amber:     #e09030;
  --amber2:    #ffba58;
  --red:       #d04040;
  --red2:      #ff7070;
  --text:      #e8eaf2;
  --text2:     #8a90aa;
  --text3:     #404860;
  /* Wing colors */
  --7bw:   #c8a951;
  --509bw: #4a90d9;
  --2bw:   #3dba6e;
  /* ── Fonts ── */
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono:  'Courier New', Courier, monospace;
  --display: 'Segoe UI', 'Arial Black', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--display); letter-spacing: -.3px; color: var(--text); }
a { color: var(--gold); text-decoration: none; transition: color .14s; }
a:hover { color: var(--gold2); }
strong { color: var(--text); }
code { background: var(--card2); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-family: var(--mono); font-size: .88em; color: var(--blue2); }

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.page-body  { padding: 40px 0 80px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 18px; }
@media(max-width:900px){ .grid-3,.grid-4 { grid-template-columns:1fr 1fr; } }
@media(max-width:600px){ .grid-2,.grid-3,.grid-4,.grid-auto { grid-template-columns:1fr; } .container { padding:0 14px; } }
.span-2 { grid-column: span 2; }
.span-full { grid-column: 1/-1; }

/* ── SITE NAV ── */
.site-nav {
  background: rgba(8,10,15,.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; gap: 0; height: 60px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  padding-right: 20px; border-right: 1px solid var(--border);
  margin-right: 12px; text-decoration: none; flex-shrink: 0;
}
.nav-emblem {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; color: #000; letter-spacing: -1px;
  flex-shrink: 0; border: 2px solid rgba(200,169,81,.3);
  box-shadow: 0 0 16px rgba(200,169,81,.2);
}
.nav-brand-text .org  { font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
.nav-brand-text .name { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: .04em; text-transform: uppercase; }
.nav-links {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; flex: 1;
  -webkit-overflow-scrolling: touch;
}
.nav-links a, .nav-drop-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: 60px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text2); text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: all .14s; background: none; border-top: none;
  border-left: none; border-right: none; cursor: pointer;
  font-family: var(--sans);
}
.nav-links a:hover,.nav-drop-btn:hover { color: var(--text); border-bottom-color: var(--border2); }
.nav-links a.active,.nav-drop-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-pilot-info { display: flex; align-items: center; gap: 8px; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.nav-pilot-name { font-size: 12px; font-weight: 600; color: var(--text2); }
.nav-rank-badge { font-size: 10px; font-weight: 700; color: var(--gold); background: rgba(200,169,81,.1); padding: 2px 7px; border-radius: 10px; border: 1px solid rgba(200,169,81,.3); }

/* Dropdown */
.nav-dropdown { position: static; }
.nav-dropdown-menu {
  display: none; position: fixed; top: 60px; left: 0;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 8px; min-width: 200px; padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.5); z-index: 9999;
}
.nav-dropdown-menu.open { display: block; }
.nav-drop-btn.open { color: var(--gold); border-bottom-color: var(--gold); }
.nav-dropdown-menu a { display: block; padding: 9px 16px; height: auto; font-size: 13px; border-bottom: none; letter-spacing: 0; text-transform: none; color: var(--text2); }
.nav-dropdown-menu a:hover { background: var(--card2); color: var(--text); border-bottom-color: transparent; }
.nav-sep { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; margin: 0 6px; }
.nav-mobile-btn { display: none; background: none; border: none; color: var(--text2); font-size: 22px; cursor: pointer; padding: 6px; }
@media(max-width:768px){ .nav-mobile-btn { display: block; } .nav-links { display: none; } .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 300; } .nav-links a,.nav-drop-btn { height: 48px; padding: 0 20px; } }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #050710 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 80px 24px 64px; text-align: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(200,169,81,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero-title { font-size: clamp(30px,6vw,58px); font-weight: 900; color: var(--text); letter-spacing: -.5px; line-height: 1.1; margin-bottom: 18px; }
.hero-title span { color: var(--gold); }
.hero-sub { font-size: 17px; color: var(--text2); max-width: 640px; margin: 0 auto 32px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid; transition: all .14s; font-family: var(--sans); text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold2); border-color: var(--gold2); color: #000; }
.btn-outline { background: transparent; color: var(--text2); border-color: var(--border2); }
.btn-outline:hover { background: var(--card); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn-danger:hover { background: #b83030; }
.btn-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-blue:hover { background: #3a7ac9; }
.btn-green { background: var(--green); color: #000; border-color: var(--green); }
.btn-sm { padding: 6px 13px; font-size: 12px; border-radius: 6px; }
.btn-xs { padding: 4px 9px; font-size: 11px; border-radius: 5px; }

/* ── CARDS ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card-header { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--card2); border-bottom: 1px solid var(--border); }
.card-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #000; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon.blue  { background: var(--blue); color: #fff; }
.card-icon.green { background: var(--green); color: #000; }
.card-icon.red   { background: var(--red);   color: #fff; }
.card-title { font-size: 14px; font-weight: 600; color: var(--text); }
.card-body { padding: 18px; }

/* ── SECTION ── */
.section { margin-bottom: 52px; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.section-title { font-size: 24px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.section-sub   { font-size: 14px; color: var(--text2); margin-bottom: 24px; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text2); margin-bottom: 6px; }
input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=date],select,textarea {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  background: #0a0c14; border: 1px solid var(--border2);
  color: var(--text); font-size: 14px; font-family: var(--sans);
  outline: none; transition: border-color .15s;
}
input:focus,select:focus,textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,81,.1); }
input::placeholder,textarea::placeholder { color: var(--text3); }
textarea { resize: vertical; min-height: 90px; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6080' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red2); margin-top: 5px; display: none; }
.form-error.show { display: block; }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { background: var(--card2); color: var(--text2); font-weight: 600; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 14px; color: var(--text2); border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.data-table td strong { color: var(--text); }

/* ── BADGES ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-gold   { background: rgba(200,169,81,.15); color: var(--gold2);  border: 1px solid rgba(200,169,81,.3); }
.badge-blue   { background: rgba(74,144,217,.15);  color: var(--blue2);  border: 1px solid rgba(74,144,217,.3); }
.badge-green  { background: rgba(61,186,110,.15);  color: var(--green2); border: 1px solid rgba(61,186,110,.3); }
.badge-red    { background: rgba(208,64,64,.15);   color: var(--red2);   border: 1px solid rgba(208,64,64,.3); }
.badge-amber  { background: rgba(224,144,48,.15);  color: var(--amber2); border: 1px solid rgba(224,144,48,.3); }
.badge-gray   { background: rgba(90,96,128,.15);   color: var(--text2);  border: 1px solid var(--border2); }

/* ── STATUS DOTS ── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-amber  { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.dot-red    { background: var(--red); }
.dot-gray   { background: var(--text3); }

/* ── ALERTS ── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; border-left: 3px solid; line-height: 1.6; margin-bottom: 16px; }
.alert-info  { background: rgba(74,144,217,.08);  border-color: var(--blue);  color: var(--blue2); }
.alert-warn  { background: rgba(224,144,48,.08);  border-color: var(--amber); color: var(--amber2); }
.alert-error { background: rgba(208,64,64,.08);   border-color: var(--red);   color: var(--red2); }
.alert-ok    { background: rgba(61,186,110,.08);  border-color: var(--green); color: var(--green2); }

/* ── PILOT CARD ── */
.pilot-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s;
}
.pilot-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.pilot-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex-shrink: 0; }
.pilot-avatar.no-img { background: var(--card2); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--text3); }
.pilot-name  { font-size: 16px; font-weight: 700; color: var(--text); }
.pilot-rank  { font-size: 12px; color: var(--gold); font-weight: 600; }
.pilot-call  { font-size: 13px; color: var(--blue2); font-style: italic; }
.pilot-wing  { width: 40px; height: 40px; object-fit: contain; }
.pilot-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.pilot-stat  { text-align: center; }
.pilot-stat .val { font-size: 18px; font-weight: 800; color: var(--gold); line-height: 1; }
.pilot-stat .lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }

/* ── FLIGHT LOG ── */
.flight-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.flight-route { font-size: 15px; font-weight: 700; color: var(--text); font-family: var(--mono); }
.flight-arrow { color: var(--gold); }
.flight-meta  { font-size: 12px; color: var(--text3); }
.flight-duration { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--text2); white-space: nowrap; }

/* ── WING BANNER ── */
.wing-banner {
  border-radius: 14px; padding: 28px 24px;
  border: 1px solid; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.wing-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top right, rgba(255,255,255,.04), transparent 60%); pointer-events: none; }
.wing-banner.w-7bw   { background: rgba(200,169,81,.06); border-color: rgba(200,169,81,.2); }
.wing-banner.w-509bw { background: rgba(74,144,217,.06); border-color: rgba(74,144,217,.2); }
.wing-banner.w-2bw   { background: rgba(61,186,110,.06); border-color: rgba(61,186,110,.2); }
.wing-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.wing-name  { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.wing-base  { font-size: 13px; color: var(--text2); }

/* ── STAT CARDS ── */
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-align: center; }
.stat-val   { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1.1; }
.stat-lbl   { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }

/* ── TABS ── */
.tab-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--sans); white-space: nowrap; transition: all .14s; }
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── MODALS ── */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.75); align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border2); border-radius: 16px; padding: 28px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; }
.modal-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.modal-sub   { font-size: 13px; color: var(--text2); margin-bottom: 20px; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── MISC ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--text3); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 14px; }
.avatar-upload-wrap { position: relative; display: inline-block; }
.avatar-upload-wrap input[type=file] { display: none; }
.avatar-upload-btn { position: absolute; bottom: 0; right: 0; background: var(--gold); color: #000; border: none; border-radius: 50%; width: 26px; height: 26px; font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── FOOTER ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; font-size: 12px; color: var(--text3); }
.site-footer a { color: var(--text3); }
.site-footer a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse   { 0%,100%{opacity:1} 50%{opacity:.4} }
.fade-in { animation: fadeIn .3s ease both; }

/* ── PRINT ── */
@media print { .site-nav,.site-footer { display: none !important; } body { background: #fff; color: #000; } }

/* ── BULLETPROOF DROPDOWN (works without JS) ──────────────── */
.nav-dropdown { position: relative; }
.nav-dropdown > input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; pointer-events: none;
}
.nav-dropdown > label.nav-drop-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0 14px; height: 60px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text2); border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all .14s; user-select: none;
}
.nav-dropdown > label.nav-drop-btn:hover { color: var(--text); }
.nav-dropdown > input:checked ~ label.nav-drop-btn { color: var(--gold); border-bottom-color: var(--gold); }
.nav-dropdown > input:checked ~ .nav-dropdown-menu { display: block; }
