/* =============================================
   SkyNet Solution - Brand Stylesheet
   Colors: Navy #0A1628 | Blue #0066FF | Cyan #00D4FF
   ============================================= */

:root {
  --primary:    #0066FF;
  --primary-hover: #0052CC;
  --accent:     #00D4FF;
  --dark:       #0A1628;
  --dark2:      #0D2040;
  --dark3:      #102A50;
  --card-bg:    #0F2035;
  --border:     rgba(0, 212, 255, 0.15);
  --text:       #E8F0FE;
  --text-muted: #6B8BAB;
  --success:    #00E676;
  --warning:    #FFB300;
  --danger:     #FF5252;
  --gradient:   linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
  --gradient-dark: linear-gradient(135deg, #0A1628 0%, #0D2040 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---- NAVBAR ---- */
.navbar {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-brand img { height: 48px; }
.nav-link { color: var(--text) !important; font-weight: 500; transition: color 0.2s; padding: 8px 16px !important; }
.nav-link:hover { color: var(--accent) !important; }
.btn-nav-login  { border: 1px solid var(--accent); color: var(--accent) !important; border-radius: 6px; }
.btn-nav-login:hover  { background: var(--accent); color: var(--dark) !important; }
.btn-nav-signup { background: var(--gradient); color: white !important; border-radius: 6px; border: none; }
.btn-nav-signup:hover { opacity: 0.9; }

/* ---- HERO ---- */
.hero {
  min-height: 92vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(0,102,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 520px; margin-bottom: 32px; }
.hero-globe {
  width: 100%;
  max-width: 420px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }

/* ---- BUTTONS ---- */
.btn-primary-grad {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 13px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary-grad:hover { opacity: 0.9; transform: translateY(-1px); color: white; }
.btn-outline-cyan {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-outline-cyan:hover { background: var(--accent); color: var(--dark); }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stat-item h3 { font-size: 2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- SECTION TITLES ---- */
.section-title { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-title span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 48px; }

/* ---- FEATURE CARDS ---- */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: border-color 0.3s, transform 0.3s;
  height: 100%;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0,102,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-card h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- PRICING SECTION ---- */
.pricing-section { background: var(--dark2); }
.bandwidth-tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.bw-tab {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.bw-tab.active, .bw-tab:hover { background: var(--primary); border-color: var(--primary); color: white; }

.plan-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 20px;
  position: relative;
  transition: all 0.3s;
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.plan-card.popular {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0,102,255,0.08) 100%);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.plan-duration { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: var(--accent); line-height: 1; margin: 10px 0; }
.plan-price small { font-size: 1rem; color: var(--text-muted); }
.plan-bw { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }
.plan-features { list-style: none; padding: 0; margin-bottom: 20px; }
.plan-features li { padding: 5px 0; font-size: 0.9rem; color: var(--text-muted); }
.plan-features li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.btn-buy {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--gradient);
  color: white;
  transition: opacity 0.2s;
  text-decoration: none;
  display: block;
  text-align: center;
}
.btn-buy:hover { opacity: 0.85; color: white; }

/* ---- PAYMENT SECTION ---- */
.payment-section { background: var(--dark); }
.payment-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.wechat-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  border: 3px solid #07C160;
  padding: 8px;
  background: white;
  margin: 0 auto 16px;
  display: block;
}
.wechat-badge { background: #07C160; color: white; padding: 8px 24px; border-radius: 8px; font-weight: 700; display: inline-block; margin-bottom: 12px; }

/* ---- HOW IT WORKS ---- */
.step-number {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step-card { text-align: center; }
.step-card h5 { font-weight: 700; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.9rem; }
.step-connector { border-top: 2px dashed var(--border); position: absolute; top: 24px; left: 58%; width: 84%; }

/* ---- DASHBOARD SIDEBAR ---- */
.dash-wrapper { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.sidebar-logo img { height: 40px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--accent);
  background: rgba(0,212,255,0.06);
  border-left-color: var(--accent);
}
.sidebar-nav .nav-icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); position: absolute; bottom: 0; width: 100%; }

.dash-main { margin-left: 260px; padding: 30px; flex: 1; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.dash-title { font-size: 1.5rem; font-weight: 700; }
.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

/* ---- DASHBOARD CARDS ---- */
.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.dash-card h6 { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.dash-stat-value { font-size: 2rem; font-weight: 800; }
.dash-stat-value.cyan { color: var(--accent); }
.dash-stat-value.green { color: var(--success); }

.bandwidth-bar { background: var(--dark3); border-radius: 6px; height: 8px; margin: 12px 0; overflow: hidden; }
.bandwidth-fill { height: 100%; border-radius: 6px; background: var(--gradient); transition: width 0.5s; }

/* ---- SUBSCRIPTION BADGE ---- */
.sub-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.sub-badge.active { background: rgba(0,230,118,0.15); color: var(--success); border: 1px solid rgba(0,230,118,0.3); }
.sub-badge.expired { background: rgba(255,82,82,0.15); color: var(--danger); border: 1px solid rgba(255,82,82,0.3); }
.sub-badge.pending { background: rgba(255,179,0,0.15); color: var(--warning); border: 1px solid rgba(255,179,0,0.3); }

/* ---- FORMS ---- */
.auth-wrapper {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
}
.auth-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,102,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.auth-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 32px; }

.form-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.5px; }
.form-control {
  background: var(--dark3);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-control:focus { outline: none; border-color: var(--primary); background: var(--dark3); color: var(--text); box-shadow: 0 0 0 3px rgba(0,102,255,0.12); }
.form-control::placeholder { color: var(--text-muted); }
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 8px;
}
.btn-submit:hover { opacity: 0.9; }
.divider { text-align: center; color: var(--text-muted); margin: 20px 0; font-size: 0.85rem; position: relative; }
.divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.divider span { background: var(--card-bg); padding: 0 12px; position: relative; }

/* ---- ALERT BOXES ---- */
.alert-box {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  font-weight: 500;
}
.alert-success { background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.25); color: var(--success); }
.alert-error   { background: rgba(255,82,82,0.12);  border: 1px solid rgba(255,82,82,0.25);  color: var(--danger);  }
.alert-info    { background: rgba(0,212,255,0.1);   border: 1px solid rgba(0,212,255,0.2);   color: var(--accent);  }

/* ---- TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
footer h6 { color: white; font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
footer a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 8px; font-size: 0.9rem; transition: color 0.2s; }
footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; color: var(--text-muted); font-size: 0.85rem; }

/* ---- UTILS ---- */
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-cyan  { color: var(--accent); }
.text-muted-custom { color: var(--text-muted); }
.bg-card { background: var(--card-bg); }
.border-glow { border-color: var(--accent) !important; }
section { padding: 80px 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .dash-main { margin-left: 0; padding: 16px; }
  .auth-card { padding: 28px 20px; }
  .hero h1 { font-size: 2rem; }
  .hero-globe { display: none; }
}

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: linear-gradient(90deg, #0066FF, #00D4FF);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---- CONNECTION STATUS ---- */
.conn-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.conn-dot.connected { background: var(--success); box-shadow: 0 0 8px var(--success); }
.conn-dot.disconnected { background: var(--danger); }

/* ---- DOWNLOAD BUTTONS ---- */
.dl-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  font-weight: 600;
}
.dl-btn:hover { border-color: var(--primary); color: var(--text); }
.dl-btn .dl-icon { font-size: 24px; }
.dl-btn small { color: var(--text-muted); font-size: 0.78rem; font-weight: 400; }

/* Announcement bar marquee */
.marquee { white-space: nowrap; overflow: hidden; }
.marquee span { display: inline-block; animation: marquee 25s linear infinite; }
@keyframes marquee { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }
