/* ── LANCRP MANAGEMENT — exact Melonly clone ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --green: #20c997;
  --green-hover: #1ab385;
  --green-dim: rgba(32,201,151,0.15);
  --green-glow: rgba(32,201,151,0.08);
  --bg: #09090b;
  --bg2: #0f1013;
  --surface: #141417;
  --surface2: #1a1a1f;
  --surface3: #1f2026;
  --border: rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.1);
  --border-green: rgba(32,201,151,0.3);
  --text: #e4e4e7;
  --text2: #a1a1aa;
  --text3: #71717a;
  --white: #ffffff;
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.15);
  --yellow: #f59e0b;
  --yellow-dim: rgba(245,158,11,0.15);
  --blue: #3b82f6;
  --blue-dim: rgba(59,130,246,0.15);
  --purple: #8b5cf6;
  --purple-dim: rgba(139,92,246,0.15);
  --sidebar-width: 240px;
  --nav-height: 56px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.6);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }

/* ── PAGE SYSTEM ── */
.page { display: none; }
.page.active { display: flex; flex-direction: column; min-height: 100vh; }
.dash-page { display: none; }
.dash-page.active { display: block; }

/* ── TOP NAV (public) ── */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-height);
  background: rgba(9,9,11,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 24px;
}
.topnav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
}
.topnav-logo {
  display: flex; align-items: center; gap: 8px;
  margin-right: 16px; cursor: pointer;
}
.topnav-logo-icon {
  width: 28px; height: 28px;
  background: var(--green);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #000;
}
.topnav-logo-name {
  font-size: 15px; font-weight: 700; color: var(--white);
  letter-spacing: -0.3px;
}
.topnav-link {
  padding: 5px 10px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 500; color: var(--text2);
  transition: color 0.15s, background 0.15s; cursor: pointer;
}
.topnav-link:hover { color: var(--text); background: var(--surface); }
.topnav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topnav-search {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text3); font-size: 13px; cursor: pointer;
  transition: border-color 0.15s;
}
.topnav-search:hover { border-color: var(--border2); }
.topnav-search kbd {
  background: var(--surface3); padding: 1px 5px; border-radius: 4px;
  font-size: 11px; font-family: inherit; color: var(--text3);
}
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; transition: all 0.15s; cursor: pointer; padding: 6px 14px; }
.btn-green { background: var(--green); color: #000; }
.btn-green:hover { background: var(--green-hover); }
.btn-outline { border: 1px solid var(--border2); color: var(--text2); }
.btn-outline:hover { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.btn-ghost { color: var(--text2); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-red { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-red:hover { background: rgba(239,68,68,0.25); }
.btn-lg { padding: 10px 22px; font-size: 14.5px; border-radius: 9px; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }

/* ── HERO ── */
.hero {
  padding: calc(var(--nav-height) + 80px) 24px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(32,201,151,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; margin-bottom: 24px;
  background: var(--green-glow); border: 1px solid var(--border-green);
  border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--green);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  color: var(--white); margin-bottom: 20px;
}
.hero h1 .accent { color: var(--green); }
.hero-sub { font-size: 16px; color: var(--text2); max-width: 540px; margin: 0 auto 32px; line-height: 1.65; }
.hero-sub .brand { color: var(--green); font-weight: 600; }
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ── TICKER ── */
.ticker { width: 100%; overflow: hidden; padding: 20px 0; position: relative; }
.ticker::before, .ticker::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker-track { display: flex; width: max-content; animation: scroll 35s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-right: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; font-size: 12.5px; font-weight: 500; color: var(--text2);
  white-space: nowrap; flex-shrink: 0;
}
.ticker-item-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ── SECTION ── */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.section-sub { font-size: 15px; color: var(--text2); line-height: 1.65; max-width: 560px; }
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature-card { background: var(--surface); padding: 28px 24px; transition: background 0.2s; position: relative; overflow: hidden; }
.feature-card:hover { background: var(--surface2); }
.feature-card::after { content:''; position:absolute; inset:0; background: linear-gradient(135deg, var(--green-glow) 0%, transparent 60%); opacity:0; transition: opacity 0.3s; pointer-events:none; }
.feature-card:hover::after { opacity: 1; }
.feature-icon { font-size: 22px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ── SPLIT SECTION ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split-content { display: flex; flex-direction: column; gap: 0; }
.split-content h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); margin-bottom: 12px; line-height: 1.25; }
.split-content p { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 20px; }

/* ── MOCK PANEL ── */
.mock-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mock-titlebar {
  background: var(--surface2); border-bottom: 1px solid var(--border);
  padding: 10px 14px; display: flex; align-items: center; gap: 6px;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }
.mock-titlebar-label { font-size: 12px; color: var(--text3); margin-left: auto; margin-right: auto; }
.mock-body { padding: 16px; }

/* Log rows */
.log-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); transition: background 0.15s; }
.log-row:hover { background: var(--surface2); }
.log-avatar { width: 30px; height: 30px; border-radius: 6px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.log-info { flex: 1; min-width: 0; }
.log-name { font-size: 13px; font-weight: 600; color: var(--white); }
.log-reason { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-time { font-size: 11px; color: var(--text3); flex-shrink: 0; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.tag-ban { background: var(--red-dim); color: var(--red); }
.tag-warn { background: var(--yellow-dim); color: var(--yellow); }
.tag-kick { background: rgba(251,146,60,0.15); color: #fb923c; }
.tag-note { background: var(--green-dim); color: var(--green); }
.tag-bolo { background: var(--purple-dim); color: var(--purple); }
.tag-tempban { background: rgba(239,68,68,0.1); color: #f87171; }

/* ── CARD ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 14px; font-weight: 700; color: var(--white); }
.card-body { padding: 16px 18px; }

/* ── TESTIMONIAL ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: border-color 0.2s; }
.testimonial-card:hover { border-color: var(--border-green); }
.testimonial-stars { color: #fbbf24; font-size: 13px; margin-bottom: 12px; }
.testimonial-text { font-size: 13.5px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.testimonial-text strong { color: var(--white); font-weight: 700; }
.testimonial-meta { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #0a9e73); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #000; flex-shrink: 0; }
.testimonial-name { font-size: 13px; font-weight: 700; color: var(--white); }
.testimonial-role { font-size: 11.5px; color: var(--text3); }

/* ── STATS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat-item { background: var(--surface); padding: 28px 24px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--white); letter-spacing: -0.04em; }
.stat-label { font-size: 12px; color: var(--text3); margin-top: 4px; }
.stat-sublabel { font-size: 11.5px; color: var(--text3); margin-top: 2px; }

/* ── CTA BANNER ── */
.cta-banner { padding: 80px 24px; }
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 60px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(32,201,151,0.1), transparent 70%);
  pointer-events: none;
}
.cta-inner h2 { font-size: clamp(1.4rem,2.5vw,2.2rem); font-weight: 800; letter-spacing:-0.03em; color:var(--white); margin-bottom:10px; }
.cta-inner p { font-size:15px; color:var(--text2); margin-bottom:28px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: auto;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand-desc { font-size: 13px; color: var(--text3); line-height: 1.65; margin-top: 10px; max-width: 260px; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text2); margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text3); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width:1200px; margin:0 auto; border-top: 1px solid var(--border); padding-top: 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size: 12.5px; color: var(--text3); }
.footer-socials { display: flex; gap: 8px; }
.footer-social { width: 30px; height: 30px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text3); transition: all 0.15s; }
.footer-social:hover { border-color: var(--green); color: var(--green); }

/* ════════════════════════════════════
   DASHBOARD SHELL
════════════════════════════════════ */
#page-dashboard.active { flex-direction: row; }

.dash-shell { display: flex; width: 100%; min-height: 100vh; padding-top: var(--nav-height); }

/* ── DASH NAV ── */
.dash-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-height);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px; gap: 10px;
}
.dash-nav-logo { display:flex;align-items:center;gap:8px;cursor:pointer;padding-right:16px;border-right:1px solid var(--border); }
.dash-nav-logo-icon { width:26px;height:26px;background:var(--green);border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#000; }
.dash-nav-logo-name { font-size:14px;font-weight:700;color:var(--white);letter-spacing:-0.3px; }
.dash-nav-server { display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:var(--radius);cursor:pointer;transition:background 0.15s; }
.dash-nav-server:hover { background:var(--surface); }
.dash-nav-server-icon { width:24px;height:24px;border-radius:5px;background:var(--green);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;color:#000;flex-shrink:0; }
.dash-nav-server-name { font-size:13px;font-weight:600;color:var(--white); }
.dash-nav-server-chevron { font-size:10px;color:var(--text3); }
.dash-nav-right { margin-left:auto;display:flex;align-items:center;gap:6px; }
.dash-nav-icon-btn { width:30px;height:30px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:var(--text3);font-size:15px;transition:all 0.15s;cursor:pointer; }
.dash-nav-icon-btn:hover { background:var(--surface);color:var(--text); }
.dash-nav-notif { position:relative; }
.dash-nav-notif-badge { position:absolute;top:4px;right:4px;width:7px;height:7px;border-radius:50%;background:var(--red);border:1.5px solid var(--bg2); }
.dash-nav-avatar { width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--green),#0a9e73);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#000;cursor:pointer; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  padding: 12px 8px; overflow-y: auto;
  position: fixed; top: var(--nav-height); bottom: 0; left: 0;
  display: flex; flex-direction: column;
}
.sidebar-section { margin-bottom: 4px; }
.sidebar-section-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text3); padding: 6px 10px 4px; }
.sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--text2);
  cursor: pointer; transition: all 0.15s; position: relative;
}
.sidebar-item:hover { background: var(--surface); color: var(--text); }
.sidebar-item.active { background: var(--green-dim); color: var(--green); font-weight: 600; }
.sidebar-item.active::before { content:''; position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:60%;background:var(--green);border-radius:0 2px 2px 0; }
.sidebar-icon { width: 16px; height: 16px; text-align: center; font-size: 14px; flex-shrink: 0; opacity: 0.8; }
.sidebar-item.active .sidebar-icon { opacity: 1; }
.sidebar-badge { margin-left: auto; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 100px; background: rgba(239,68,68,0.2); color: #f87171; }
.sidebar-badge-green { background: var(--green-dim); color: var(--green); }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 2px; }
.sidebar-bottom { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }

/* ── MAIN CONTENT ── */
.main-content { margin-left: var(--sidebar-width); flex: 1; padding: 24px; min-height: calc(100vh - var(--nav-height)); overflow-y: auto; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 24px; }
.page-header-top { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap; }
.page-header h1 { font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -0.03em; }
.page-header p { font-size: 13px; color: var(--text3); margin-top: 3px; }
.breadcrumb { display:flex;align-items:center;gap:5px;font-size:12px;color:var(--text3);margin-bottom:6px; }
.breadcrumb span { color:var(--text2); }
.breadcrumb .sep { color:var(--text3); }

/* ── STATS CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: border-color 0.2s; }
.stat-card:hover { border-color: var(--border2); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stat-card-icon { font-size: 16px; }
.stat-card-change { font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; }
.change-up { background: rgba(34,197,94,0.15); color: #22c55e; }
.change-down { background: var(--red-dim); color: var(--red); }
.stat-card-value { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.04em; }
.stat-card-label { font-size: 12px; color: var(--text3); margin-top: 2px; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { font-size: 11.5px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { font-size: 13px; color: var(--text2); padding: 11px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }
.td-user { display: flex; align-items: center; gap: 8px; }
.td-avatar { width: 26px; height: 26px; border-radius: 5px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.td-name { font-weight: 600; color: var(--white); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 8px 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 13px; font-family: inherit;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--green); }
.form-input::placeholder { color: var(--text3); }
.form-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2371717a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 11.5px; color: var(--text3); margin-top: 4px; }

/* ── TABS ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-item { padding: 8px 16px; font-size: 13.5px; font-weight: 500; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.15s; }
.tab-item:hover { color: var(--text2); }
.tab-item.active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }

/* ── BADGE ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge-blue { background: var(--blue-dim); color: var(--blue); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }
.badge-gray { background: var(--surface3); color: var(--text2); }

/* ── TOGGLE ── */
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--surface3); border-radius: 100px; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; bottom: 3px; background: var(--text3); border-radius: 50%; transition: 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); background: #000; }

/* ── MODAL ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-xl); padding: 24px; width: 100%; max-width: 480px; transform: scale(0.97) translateY(8px); transition: all 0.2s; }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--white); }
.modal-close { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 16px; cursor: pointer; transition: all 0.15s; }
.modal-close:hover { background: var(--surface2); color: var(--text); }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.empty-state p { font-size: 13px; color: var(--text3); }

/* ── ALERT / WATCHDOG ── */
.alert-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; gap: 12px; transition: border-color 0.15s; }
.alert-card:hover { border-color: var(--border2); }
.alert-card.critical { border-left: 3px solid var(--red); }
.alert-card.warning { border-left: 3px solid var(--yellow); }
.alert-card.info { border-left: 3px solid var(--green); }
.alert-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-body h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.alert-body p { font-size: 12px; color: var(--text2); line-height: 1.5; }
.alert-body time { font-size: 11px; color: var(--text3); display: block; margin-top: 5px; }
.alert-actions { margin-left: auto; display: flex; gap: 6px; align-items: flex-start; flex-shrink: 0; }

/* ── CHART BAR ── */
.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding: 0 4px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chart-bar { width: 100%; border-radius: 3px 3px 0 0; background: var(--green); opacity: 0.65; transition: opacity 0.15s; min-height: 4px; }
.chart-bar:hover { opacity: 1; }
.chart-day { font-size: 10px; color: var(--text3); }

/* ── CAD ── */
.cad-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 0; height: calc(100vh - var(--nav-height) - 48px); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cad-sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.cad-sidebar-header { padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.cad-sidebar-title { font-size: 13px; font-weight: 700; color: var(--white); }
.cad-call-list { flex: 1; overflow-y: auto; }
.cad-call { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.15s; }
.cad-call:hover { background: var(--surface2); }
.cad-call.active { background: var(--green-dim); }
.cad-call-num { font-size: 11px; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.cad-call-type { font-size: 13px; font-weight: 600; color: var(--white); }
.cad-call-loc { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.cad-call-status { margin-top: 5px; }
.cad-main { display: flex; flex-direction: column; }
.cad-main-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cad-main-body { flex: 1; padding: 18px; overflow-y: auto; }
.cad-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 10px; }
.cad-unit { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.cad-unit-callsign { font-size: 13px; font-weight: 700; color: var(--white); }
.cad-unit-name { font-size: 11.5px; color: var(--text3); margin-top: 1px; }
.cad-unit-status { margin-top: 6px; }

/* ── SHIFT PANEL ── */
.shift-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.shift-timer { font-size: 36px; font-weight: 800; color: var(--white); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.shift-status-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0 16px; font-size: 12.5px; color: var(--text3); }
.shift-dot { width: 7px; height: 7px; border-radius: 50%; }

/* ── LOA ── */
.loa-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.loa-item:last-child { border-bottom: none; }
.loa-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.loa-info { flex: 1; }
.loa-name { font-size: 13px; font-weight: 600; color: var(--white); }
.loa-dates { font-size: 11.5px; color: var(--text3); }
.loa-reason { font-size: 11.5px; color: var(--text2); margin-top: 2px; }

/* ── PLAYER CARD ── */
.player-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.player-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.player-card-avatar { width: 44px; height: 44px; border-radius: 10px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--green); flex-shrink: 0; }
.player-card-name { font-size: 15px; font-weight: 700; color: var(--white); }
.player-card-id { font-size: 12px; color: var(--text3); }
.player-card-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.player-stat { background: var(--surface3); border-radius: var(--radius); padding: 8px 10px; text-align: center; }
.player-stat-val { font-size: 16px; font-weight: 800; color: var(--white); }
.player-stat-label { font-size: 10.5px; color: var(--text3); }

/* ── ERLC API SETUP ── */
.api-setup-card { background: var(--surface); border: 1px solid var(--border-green); border-radius: var(--radius-xl); padding: 32px; text-align: center; max-width: 500px; margin: 60px auto; }
.api-setup-icon { font-size: 40px; margin-bottom: 16px; }
.api-setup-card h2 { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.api-setup-card p { font-size: 13px; color: var(--text2); margin-bottom: 20px; line-height: 1.6; }

/* ── LIVE INDICATOR ── */
.live-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: #22c55e; }
.live-dot::before { content:''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:0.6} }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 12px 16px; min-width: 260px; max-width: 360px; display: flex; align-items: flex-start; gap: 10px; animation: toastIn 0.25s ease; box-shadow: var(--shadow-lg); }
@keyframes toastIn { from{transform:translateX(20px);opacity:0} to{transform:translateX(0);opacity:1} }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-text { flex: 1; font-size: 13px; font-weight: 500; color: var(--text); }
.toast-close { color: var(--text3); font-size: 14px; cursor: pointer; flex-shrink: 0; }

/* ── LOGIN PAGE ── */
#page-login.active { display: grid; grid-template-columns: 1fr 1fr; padding-top: var(--nav-height); min-height: 100vh; }
.login-left { display: flex; align-items: center; justify-content: center; padding: 60px 48px; }
.login-form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -0.03em; margin-bottom: 5px; }
.login-form > p { font-size: 13.5px; color: var(--text3); margin-bottom: 28px; }
.btn-discord { width:100%;padding:11px 18px;background:#5865F2;color:#fff;border-radius:var(--radius);font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px;transition:all 0.15s;cursor:pointer; }
.btn-discord:hover { background:#4752c4; transform:translateY(-1px); }
.login-divider { text-align:center;font-size:12px;color:var(--text3);margin:18px 0; }
.login-checkbox { display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--text2);cursor:pointer; }
.login-checkbox input { accent-color:var(--green); }
.login-tos { font-size:12px;color:var(--text3);margin-top:14px;text-align:center;line-height:1.6; }
.login-tos a { color:var(--green); }
.login-newuser { font-size:12.5px;color:var(--text3);text-align:center;margin-top:14px; }
.login-newuser a { color:var(--green); }
.login-right { background:var(--surface);border-left:1px solid var(--border);display:flex;align-items:center;justify-content:center;padding:60px 48px;position:relative;overflow:hidden; }
.login-right-glow { position:absolute;top:-100px;right:-100px;width:400px;height:400px;background:radial-gradient(circle,rgba(32,201,151,0.08),transparent 65%);pointer-events:none; }
.login-testimonial { max-width:380px;position:relative;z-index:1; }
.login-preview { background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;margin-bottom:24px; }
.login-preview-header { background:var(--surface);border-bottom:1px solid var(--border);padding:8px 12px;display:flex;align-items:center;gap:6px; }
.login-preview-dots { display:flex;gap:4px; }
.login-preview-dot { width:8px;height:8px;border-radius:50%; }
.login-preview-body { padding:14px; }
.login-quote { font-size:13.5px;color:var(--text2);line-height:1.75;margin-bottom:16px;font-style:italic; }
.login-quote-meta { display:flex;align-items:center;gap:10px; }
.login-quote-avatar { width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,var(--green),#0a9e73);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#000; }
.login-quote-name { font-size:13px;font-weight:700;color:var(--white); }
.login-quote-role { font-size:11.5px;color:var(--text3); }

/* ── RESPONSIVE ── */
@media(max-width:1024px){
  .feature-grid{grid-template-columns:repeat(2,1fr);}
  .split{grid-template-columns:1fr;gap:32px;}
  .testimonial-grid{grid-template-columns:1fr 1fr;}
  .footer-inner{grid-template-columns:1fr 1fr;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .stats-row{grid-template-columns:repeat(2,1fr);}
  #page-login.active{grid-template-columns:1fr;}
  .login-right{display:none;}
  .cad-wrap{grid-template-columns:1fr;}
}
@media(max-width:768px){
  .topnav-link{display:none;}
  .topnav-search{display:none;}
  .feature-grid{grid-template-columns:1fr;}
  .testimonial-grid{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr;}
  .sidebar{display:none;}
  .main-content{margin-left:0;}
  .stats-grid{grid-template-columns:repeat(2,1fr);}
  .grid-2{grid-template-columns:1fr;}
  .grid-2-1{grid-template-columns:1fr;}
  .grid-1-2{grid-template-columns:1fr;}
}
