@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #06061E;
  --panel: #0D0D2B;
  --panel2: #111130;
  --blue: #00C8FF;
  --mid-blue: #1A7FD4;
  --border: rgba(0,200,255,0.15);
  --border2: rgba(255,255,255,0.08);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.55);
  --green: #00E676;
  --yellow: #FFD600;
  --red: #FF4444;
  --radius: 12px;
  --radius-sm: 8px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--navy); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.2s; border: none; gap: 8px;
}
.btn-blue { background: var(--blue); color: var(--navy); }
.btn-blue:hover { background: #33d4ff; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0,200,255,0.35); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: rgba(0,200,255,0.1); }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-danger { background: rgba(255,68,68,0.15); color: var(--red); border: 1px solid rgba(255,68,68,0.3); }
.btn-danger:hover { background: rgba(255,68,68,0.25); }

/* === BADGES === */
.badge-status { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:600; }
.badge-green { background:rgba(0,230,118,0.12); color:var(--green); }
.badge-blue { background:rgba(0,200,255,0.12); color:var(--blue); }
.badge-yellow { background:rgba(255,214,0,0.12); color:var(--yellow); }
.badge-red { background:rgba(255,68,68,0.12); color:var(--red); }
.badge-muted { background:rgba(255,255,255,0.06); color:var(--muted); }

/* === FORMS === */
.form-label { display:block; font-size:13px; font-weight:500; color:var(--muted); margin-bottom:6px; }
.form-input {
  width:100%; padding:12px 14px; background:rgba(255,255,255,0.06); border:1.5px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text); font-size:14px; font-family:inherit; outline:none;
  transition:border-color 0.2s;
}
.form-input:focus { border-color:var(--blue); }
.form-input::placeholder { color:var(--muted); }
.form-select { 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 d='M1 1l5 5 5-5' stroke='%2300C8FF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:36px; }

/* === MODAL === */
.modal-overlay {
  position:fixed; inset:0; background:rgba(6,6,30,0.85); backdrop-filter:blur(8px);
  display:flex; align-items:center; justify-content:center; z-index:1000;
  opacity:0; pointer-events:none; transition:opacity 0.25s;
}
.modal-overlay.active { opacity:1; pointer-events:all; }
.modal {
  background:var(--panel); border:1px solid var(--border); border-radius:16px;
  padding:36px; width:100%; max-width:420px; margin:16px;
  transform:translateY(16px); transition:transform 0.25s;
}
.modal-overlay.active .modal { transform:translateY(0); }

/* === NAV === */
.nav { position:sticky; top:0; z-index:100; background:rgba(6,6,30,0.92); backdrop-filter:blur(12px); border-bottom:1px solid var(--border); }
.nav-inner { max-width:1200px; margin:0 auto; padding:0 24px; height:64px; display:flex; align-items:center; justify-content:space-between; }
.nav-brand { display:flex; align-items:center; gap:12px; }
.brand-name { font-weight:800; font-size:18px; display:block; }
.brand-tag { font-size:11px; color:var(--muted); display:block; }

/* === HERO === */
.hero { min-height:90vh; display:flex; align-items:center; background:radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,255,0.12) 0%, transparent 70%), var(--navy); padding:80px 24px 60px; }
.hero-inner { max-width:760px; margin:0 auto; text-align:center; }
.hero-logo { width:90px; height:90px; margin-bottom:24px; }
.badge { display:inline-flex; align-items:center; gap:6px; background:rgba(0,200,255,0.1); border:1px solid rgba(0,200,255,0.25); color:var(--blue); padding:6px 16px; border-radius:20px; font-size:13px; font-weight:600; margin-bottom:24px; }
.hero h1 { font-size:clamp(2.2rem, 6vw, 3.6rem); font-weight:900; line-height:1.15; margin-bottom:20px; }
.hero-sub { font-size:17px; color:var(--muted); max-width:580px; margin:0 auto 36px; }
.hero-btns { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* === STATS BAR === */
.stats-bar { background:var(--panel); border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:28px 24px; }
.stats-inner { max-width:700px; margin:0 auto; display:flex; align-items:center; justify-content:center; gap:48px; flex-wrap:wrap; }
.stat { text-align:center; }
.stat-val { display:block; font-size:2rem; font-weight:900; color:var(--blue); }
.stat-label { font-size:13px; color:var(--muted); }
.stat-div { width:1px; height:40px; background:var(--border); }

/* === SECTIONS === */
.section-inner { max-width:1100px; margin:0 auto; padding:0 24px; }
.why, .plans, .mission { padding:80px 0; }
.why { background:var(--navy); }
.plans { background:var(--panel); }
.mission { background:var(--panel2); text-align:center; }
.mission p { max-width:680px; margin:20px auto 0; color:var(--muted); font-size:16px; line-height:1.8; }
h2 { font-size:clamp(1.6rem, 4vw, 2.4rem); font-weight:800; text-align:center; }
.section-sub { text-align:center; color:var(--muted); margin-top:10px; font-size:15px; }

/* === WHY CARDS === */
.cards-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:20px; margin-top:48px; }
.card { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:28px 24px; }
.card-icon { font-size:28px; margin-bottom:14px; }
.card h3 { font-size:16px; font-weight:700; margin-bottom:8px; }
.card p { font-size:14px; color:var(--muted); line-height:1.6; }

/* === PLANS === */
.plans-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:20px; margin-top:48px; }
.plan-card { background:var(--navy); border:1px solid var(--border2); border-radius:var(--radius); padding:28px 24px; position:relative; display:flex; flex-direction:column; }
.plan-card.plan-featured { border-color:var(--blue); background:rgba(0,200,255,0.05); box-shadow:0 0 40px rgba(0,200,255,0.1); }
.plan-popular { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--blue); color:var(--navy); font-size:10px; font-weight:800; padding:4px 14px; border-radius:20px; letter-spacing:0.8px; white-space:nowrap; }
.plan-name { font-size:18px; font-weight:800; margin-bottom:8px; }
.plan-price { font-size:2rem; font-weight:900; }
.plan-period { font-size:14px; font-weight:400; color:var(--muted); }
.plan-relief { font-size:12px; font-weight:700; padding:3px 10px; border-radius:20px; display:inline-block; margin:10px 0 16px; background:rgba(255,255,255,0.06); color:var(--muted); }
.relief-25 { background:rgba(0,200,255,0.1); color:var(--blue); }
.relief-50 { background:rgba(0,200,255,0.15); color:var(--blue); }
.relief-75 { background:rgba(0,230,118,0.12); color:var(--green); }
.plan-features { flex:1; display:flex; flex-direction:column; gap:8px; margin-bottom:24px; }
.plan-features li { font-size:13px; color:var(--muted); }
.plan-btn { width:100%; }
.plans-note { text-align:center; margin-top:24px; font-size:12px; color:var(--muted); }

/* === CTA === */
.cta { padding:80px 24px; background:radial-gradient(ellipse 80% 100% at 50% 100%, rgba(0,200,255,0.1) 0%, transparent 70%), var(--navy); }
.cta-inner { max-width:600px; margin:0 auto; text-align:center; }
.cta-inner img { margin-bottom:24px; }
.cta h2 { margin-bottom:16px; }
.cta p { color:var(--muted); margin-bottom:32px; }

/* === FOOTER === */
.footer { background:var(--panel); border-top:1px solid var(--border); padding:40px 24px; }
.footer-inner { max-width:1100px; margin:0 auto; }
.footer-brand { display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; margin-bottom:24px; }
.footer-divisions { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:24px; }
.footer-divisions span { font-size:13px; color:var(--muted); }
.footer-copy { font-size:12px; color:rgba(255,255,255,0.3); }

/* === ADMIN LAYOUT === */
.admin-body { display:flex; height:100vh; overflow:hidden; }
.sidebar { width:240px; min-width:240px; background:var(--panel); border-right:1px solid var(--border); display:flex; flex-direction:column; overflow-y:auto; }
.sidebar-brand { padding:20px 20px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.sidebar-brand span { font-weight:800; font-size:15px; }
.sidebar-nav { padding:12px 0; flex:1; }
.sidebar-item { display:flex; align-items:center; gap:10px; padding:10px 20px; font-size:13px; font-weight:500; color:var(--muted); cursor:pointer; transition:all 0.15s; border-left:3px solid transparent; }
.sidebar-item:hover { color:var(--text); background:rgba(255,255,255,0.04); }
.sidebar-item.active { color:var(--blue); background:rgba(0,200,255,0.07); border-left-color:var(--blue); }
.sidebar-item .icon { font-size:16px; width:20px; text-align:center; }
.sidebar-section { padding:16px 20px 6px; font-size:10px; font-weight:700; color:rgba(255,255,255,0.25); letter-spacing:1.2px; text-transform:uppercase; }
.main-content { flex:1; display:flex; flex-direction:column; overflow:hidden; }
.topbar { padding:0 28px; height:60px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.topbar-title { font-size:17px; font-weight:700; }
.topbar-right { display:flex; align-items:center; gap:12px; }
.page-scroll { flex:1; overflow-y:auto; padding:28px; }

/* === ADMIN STAT CARDS === */
.stat-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:16px; margin-bottom:24px; }
.stat-card { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:20px; }
.stat-card-val { font-size:1.8rem; font-weight:900; color:var(--blue); }
.stat-card-label { font-size:12px; color:var(--muted); margin-top:4px; }
.stat-card-sub { font-size:11px; color:var(--green); margin-top:6px; }

/* === PANELS === */
.panel { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:20px; }
.panel-title { font-size:14px; font-weight:700; margin-bottom:16px; display:flex; align-items:center; justify-content:space-between; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; }

/* === BAR CHART === */
.bar-chart { display:flex; align-items:flex-end; gap:8px; height:160px; padding-top:12px; }
.bar-wrap { flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; height:100%; justify-content:flex-end; }
.bar { width:100%; background:linear-gradient(to top, var(--mid-blue), var(--blue)); border-radius:4px 4px 0 0; transition:height 0.4s; min-height:4px; }
.bar-label { font-size:10px; color:var(--muted); }
.bar-val { font-size:10px; color:var(--text); font-weight:600; }

/* === TABLE === */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { text-align:left; padding:10px 14px; font-size:11px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.6px; border-bottom:1px solid var(--border); }
td { padding:12px 14px; border-bottom:1px solid rgba(255,255,255,0.04); }
tr:last-child td { border-bottom:none; }
tr:hover td { background:rgba(255,255,255,0.02); }

/* === UPTIME BARS === */
.uptime-row { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.uptime-name { font-size:13px; min-width:140px; }
.uptime-bar-bg { flex:1; height:8px; background:rgba(255,255,255,0.06); border-radius:4px; overflow:hidden; }
.uptime-bar-fill { height:100%; background:var(--green); border-radius:4px; }
.uptime-pct { font-size:12px; font-weight:700; min-width:44px; text-align:right; color:var(--green); }

/* === RANGE SLIDER === */
input[type=range] { width:100%; accent-color:var(--blue); cursor:pointer; }

/* === SCREENS === */
.screen { display:none; }
.screen.active { display:block; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sidebar { display:none; }
  .grid-2, .grid-3 { grid-template-columns:1fr; }
  .stat-cards { grid-template-columns:repeat(2, 1fr); }
  .plans-grid { grid-template-columns:1fr 1fr; }
  .cards-grid { grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:2rem; }
  .stats-inner { gap:24px; }
}
@media (max-width: 480px) {
  .plans-grid, .cards-grid { grid-template-columns:1fr; }
  .stat-cards { grid-template-columns:1fr 1fr; }
}
