/* assets/css/main.css - Core Kodata Platform Styles */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Double Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 8px 0;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.ticker-wrap.top-ticker {
  background: #0f172a;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ticker-wrap.bottom-ticker {
  background: #1e293b;
  color: #94a3b8;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid #e2e8f0;
}

.ticker-move {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 35s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-block;
  padding: 0 2.5rem;
}

.ticker-badge {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  text-transform: uppercase;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.navbar .navbar-inner,
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  max-width: 1680px !important; /* Expanded & extended to give all nav items ample breathing room */
  padding: 0 clamp(1rem, 2.5vw, 3rem) !important;
  margin: 0 auto;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo i {
  font-size: 1.7rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  white-space: nowrap;
}

.nav-links li {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-links a i {
  font-size: 1.15rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.nav-links a:hover {
  background: var(--primary-light, rgba(37, 99, 235, 0.08));
  color: var(--primary);
}

.nav-links a:hover i {
  transform: scale(1.15);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light, rgba(37, 99, 235, 0.1));
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.45rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background: var(--primary-light, rgba(37, 99, 235, 0.08));
  color: var(--primary);
  border-color: var(--primary);
}

/* Mobile Navigation Backdrop & Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 86%;
  max-width: 360px;
  background: var(--bg-card);
  z-index: 9999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

body.mobile-nav-active {
  overflow: hidden !important;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 2;
}

.mobile-nav-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.mobile-nav-body {
  padding: 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-nav-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-links li {
  width: 100%;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: var(--primary-light, rgba(37, 99, 235, 0.08));
  color: var(--primary);
  transform: translateX(4px);
}

.mobile-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light, rgba(37, 99, 235, 0.08));
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.mobile-nav-links a:hover .mobile-nav-icon {
  transform: scale(1.1);
}

.mobile-nav-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.mobile-nav-user-info i {
  font-size: 1.6rem;
  color: var(--primary);
}

.mobile-nav-user-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav-user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-nav-user-role {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mobile-nav-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-success {
  background: var(--success);
  color: #ffffff !important;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff !important;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.825rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Impersonation Banner */
.impersonation-banner {
  background: #dc2626;
  color: #ffffff;
  padding: 10px 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 1000;
}

.impersonation-banner a {
  background: #ffffff;
  color: #dc2626;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
}

/* Hero Carousel */
.hero-slider-wrap {
  position: relative;
  background: #0f172a;
  color: #ffffff;
  overflow: hidden;
}

.hero-slide {
  display: none;
  padding: 4.5rem 1rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.78) 100%);
  z-index: 1;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.slider-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 10px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin: 3rem 0 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Network Selector Tabs */
.network-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.network-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.75rem;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.network-tab:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.network-tab.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.network-badge-mtn { color: #f59e0b; }
.network-badge-telecel { color: #ef4444; }
.network-badge-at { color: #2563eb; }

/* Product Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.product-network-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.tag-mtn { background: #fef3c7; color: #b45309; }
.tag-telecel { background: #fee2e2; color: #b91c1c; }
.tag-at { background: #dbeafe; color: #1d4ed8; }
.tag-other { background: #f3e8ff; color: #6b21a8; }

.product-capacity {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.product-validity {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

/* Modals */
.modal,
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal.show,
.modal.open,
.modal-backdrop.show,
.modal-backdrop.open {
  display: flex !important;
  animation: fadeIn 0.2s ease-in-out;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Dashboard Layout */
.dashboard-wrapper {
  display: flex;
  min-height: calc(100vh - 68px);
}

.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
}

.sidebar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
  color: var(--primary);
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.925rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.sidebar-menu a i {
  font-size: 1.25rem;
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 2rem;
  background: var(--bg-body);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.table th, .table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.775rem;
  letter-spacing: 0.05em;
}

.table tbody tr:hover {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef9c3; color: #a16207; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #166534; }
.alert-danger { background: #fee2e2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fef9c3; border: 1px solid #fef08a; color: #854d0e; }
.alert-info { background: #e0f2fe; border: 1px solid #bae6fd; color: #075985; }

/* Footer */
footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.925rem;
}

footer a {
  color: #cbd5e1;
}

footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table th {
  background: #f8fafc;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background-color: #f8fafc;
}

.table tbody tr.selected-row,
.table tbody tr[style*="background: rgb(239, 246, 255)"],
.table tbody tr[style*="background: #eff6ff"] {
  background-color: #eff6ff !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1280px) {
  .nav-links {
    gap: 0.5rem;
  }
  .nav-links a {
    padding: 6px 10px;
    font-size: 0.9rem;
    gap: 5px;
  }
  .nav-buttons .btn {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 1080px) {
  .navbar .navbar-inner,
  .navbar-inner {
    height: 68px !important;
    padding: 0 1.25rem !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }
  .nav-links {
    display: none !important;
  }
  .nav-buttons {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }

  .hero-slide {
    padding: 2.75rem 1.25rem !important;
  }
  .hero-title {
    font-size: 2rem !important;
  }
  .hero-desc {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .navbar .navbar-inner,
  .navbar-inner {
    height: 60px !important;
    padding: 0 1rem !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }
  .brand-logo {
    font-size: 1.2rem;
  }
  .nav-links {
    display: none !important;
  }
  .nav-buttons {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: inline-flex !important;
  }

  /* Minimized Hero for Mobile Quick Data Access */
  .hero-slide {
    padding: 1.35rem 0.85rem !important;
  }
  .hero-badge {
    font-size: 0.7rem !important;
    padding: 2px 8px !important;
    margin-bottom: 0.35rem !important;
  }
  .hero-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.25 !important;
  }
  .hero-desc {
    font-size: 0.825rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-actions {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
  }
  .hero-actions .btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.825rem !important;
    border-radius: 8px !important;
    flex: 1 1 auto;
    min-width: 120px;
  }
  .slider-controls {
    bottom: 8px !important;
    right: 12px !important;
    gap: 5px !important;
  }
  .slider-dot {
    width: 6px !important;
    height: 6px !important;
  }
  .slider-dot.active {
    width: 16px !important;
  }

  .dashboard-wrapper { flex-direction: column; }
  .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
}

/* ==========================================================================
   Compact Network Boxes & Dropdown Modal System
   ========================================================================== */
.network-boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

.network-box-card {
  border-radius: 16px;
  padding: 1.6rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  text-decoration: none !important;
  user-select: none;
}

.network-box-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.18), 0 10px 10px -5px rgba(0,0,0,0.08);
}

.network-box-card:active {
  transform: scale(0.98);
}

.network-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.network-box-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.network-box-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.network-box-body h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.network-box-tagline {
  font-size: 0.825rem;
  opacity: 0.9;
  line-height: 1.35;
}

.network-box-footer {
  margin-top: 1.25rem;
}

.network-box-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.network-box-card:hover .network-box-btn {
  background: rgba(255, 255, 255, 0.35);
}

/* Modal Network Dropdown Enhancements */
.modal-net-header {
  padding: 1.25rem 1.5rem;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, color 0.3s ease;
}

.modal-net-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-net-close {
  background: rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
  transition: all 0.2s ease;
}

.modal-net-close:hover {
  background: rgba(0, 0, 0, 0.3);
}

.net-package-summary {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 1.25rem 0;
}

@media (max-width: 900px) {
  .network-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 540px) {
  .network-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 2rem;
  }
  .network-box-card {
    padding: 1rem 0.85rem;
    min-height: 145px;
    border-radius: 14px;
  }
  .network-box-icon {
    font-size: 1.8rem;
  }
  .network-box-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
  }
  .network-box-body h3 {
    font-size: 1.05rem;
  }
  .network-box-tagline {
    font-size: 0.75rem;
  }
  .network-box-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

