/* =========================
   1. VARIABLES & RESET
   ========================= */
:root {
  --bg-deep: #020617;
  --bg-card: #0f172a;
  --bg-hover: #112240;
  --border: rgba(255, 255, 255, 0.05);
  --accent: #3b82f6;        /* Primary Blue */
  --neon-lime: #bfff00;     /* Cyber-Node Price Accent */
  --neon-cyan: #00d4ff;     /* Cyber-Node Luminous Accent */
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --success: #22c55e;
  --danger: #ef4444;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Rajdhani', 'Inter', sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   2. DASHBOARD LAYOUT (FIXED)
   ========================= */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Fix: Use fixed positioning to prevent disappearance */
.sidebar {
  width: 240px;
  background: var(--bg-card);
  padding: 25px;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  border-right: 1px solid var(--border);
  z-index: 1000;
}

.main-area {
  flex: 1;
  margin-left: 240px; /* Offset for the fixed sidebar */
  display: flex;
  flex-direction: column;
}

/* =========================
   3. COMPONENTS
   ========================= */
.topbar {
  height: 60px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 900;
}

/* SOC Grid: Consolidated from 3 separate definitions */
.soc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  padding: 20px 0;
}

.soc-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.soc-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(59, 130, 246, 0.1);
}

.soc-wide { grid-column: span 2; }

/* =========================
   4. CYBER-NODE PRICING MODULE
   ========================= */
.price-module {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-lime);
  background: rgba(191, 255, 0, 0.08);
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid rgba(191, 255, 0, 0.4);
  display: inline-block;
  text-shadow: 0 0 12px rgba(191, 255, 0, 0.5);
  margin-bottom: 20px;
}

.service-card {
  background: #0a1628;
  border: 1px solid #2e5070;
  border-radius: 12px;
  padding: 40px;
  transition: 0.3s;
}

.service-card.featured {
  border-top: 4px solid var(--neon-lime);
}

/* =========================
   5. UTILITIES & ANIMATIONS
   ========================= */
.status-dot {
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  display: inline-block;
  margin-right: 8px;
}

.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
  .sidebar { width: 70px; padding: 15px 10px; }
  .sidebar h2, .sidebar span, .nav-section { display: none; }
  .main-area { margin-left: 70px; }
  .soc-grid { grid-template-columns: 1fr; }
  .soc-wide { grid-column: span 1; }
}
@media (max-width: 768px) {
  /* Hide the desktop sidebar by default */
  .sidebar {
    position: fixed;
    left: -100%; /* Move off-screen */
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--bg2);
    transition: 0.3s ease-in-out;
    z-index: 999;
    flex-direction: column !important; /* Stack links vertically again */
    display: flex;
  }

  /* Show sidebar when active */
  .sidebar.active {
    left: 0;
  }

  /* Hamburger Styling */
  .menu-toggle {
    display: block;
    cursor: pointer;
    padding: 15px;
    z-index: 1001;
    position: fixed;
    top: 15px;
    right: 20px;
  }

  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--accent);
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 8px var(--accent);
  }

  /* Animation: Turn bars into an 'X' */
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
