/* Dashboard Specific Layout - Luminous theme */
:root {
  --sidebar-width: 250px;
  --header-height: 80px;
  --bg-dashboard: #f9fafc;
  --bg-surface: #ffffff;
  --border-light: #f1f3f7;
  --text-primary: #1e293b;
  --text-muted: #64748b;
  --primary-color: #3b28cc; /* Luminous blue */
  --primary-light: #eef2ff;
  --success-color: #10b981;
  --success-light: #d1fae5;
  --danger-color: #ef4444;
  --danger-light: #fee2e2;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

body {
  background-color: var(--bg-dashboard);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

.dashboard-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dashboard);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-dashboard);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--border-light);
  z-index: 100;
}

.sidebar-header {
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}
.sidebar-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}
.sidebar-header p {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar-nav {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  gap: 1rem;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: #f1f5f9;
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* Pro Upgrade Card in Sidebar */
.pro-card {
  width: 200px;
  background: linear-gradient(135deg, #4A3AFF, #3b28cc);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  color: white;
  margin-top: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(59, 40, 204, 0.2);
}
.pro-card h4 {
  color: white;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.pro-card p {
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.pro-card .btn {
  background: white;
  color: var(--primary-color);
  width: 100%;
  font-size: 0.85rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
}

/* Main Content Area */
.main-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Navbar */
.top-navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background-color: var(--bg-dashboard);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-bar {
  position: relative;
  width: 350px;
}
.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.search-bar input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: none;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-action {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
}

.badge {
  position: absolute;
  top: 0;
  right: -2px;
  background-color: var(--danger-color);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.user-profile .text {
  text-align: right;
}
.user-profile h4 {
  font-size: 0.85rem;
  margin-bottom: 0;
  font-weight: 700;
}
.user-profile p {
  font-size: 0.65rem;
  margin-bottom: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.user-profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* Page Content */
.page-content {
  flex-grow: 1;
  padding: 0 2rem 2rem;
  overflow-y: auto;
}

/* Header Section */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.header-labels .label-small {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}
.header-labels h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.header-labels p {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.header-actions {
  display: flex;
  gap: 1rem;
}
.btn-white {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  font-weight: 600;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
}
.stat-card.active-card {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(59, 40, 204, 0.05);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.stat-card.active-card .stat-icon {
  background-color: var(--primary-color);
  color: white;
}
.stat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
}
.badge-green { background: var(--success-light); color: var(--success-color); }
.badge-red { background: var(--danger-light); color: var(--danger-color); }
.badge-blue { background: var(--primary-light); color: var(--primary-color); }

.stat-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.stat-details h3 {
  font-size: 1.7rem;
  font-weight: 800;
}

/* Main Two-column Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

/* Card General Formatting */
.dash-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.chart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.chart-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.chart-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.legend-item { display: flex; align-items: center; gap: 0.3rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* Activity Feed */
.dash-card.bg-light {
  background-color: #F8FAFC;
}
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.activity-header h3 { font-size: 1.1rem; margin: 0; }
.activity-header a { font-size: 0.85rem; font-weight: 700; color: var(--primary-color); }

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-light);
}
.activity-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.act-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.act-text h4 { font-size: 0.9rem; margin-bottom: 0.15rem; font-weight: 600; }
.act-text p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }

.act-status {
  text-align: right;
}
.act-status h5 { font-size: 0.85rem; margin-bottom: 0.15rem; font-weight: 700; }
.act-status p { font-size: 0.7rem; color: var(--text-muted); margin: 0; }
.badge-audit { font-size: 0.65rem; background: var(--primary-light); color: var(--primary-color); padding: 0.1rem 0.4rem; border-radius: 4px; font-weight: 700; margin-bottom: 0.25rem; display: inline-block; }

/* Insight Card */
.insight-card {
  background: linear-gradient(135deg, #4A3AFF, #3b28cc);
  color: white;
}
.insight-icon {
  width: 40px; height: 40px; border-radius: 0.5rem; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
  margin-bottom: 1.5rem; color: white;
}
.insight-card h3 { color: white; font-size: 1.25rem; margin-bottom: 0.75rem; }
.insight-card p { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.5; margin-bottom: 1.5rem; }
.insight-card .btn { width: 100%; background: white; color: var(--primary-color); }

/* Traffic Card */
.traffic-item { margin-bottom: 1rem; }
.traffic-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.traffic-bar-bg { width: 100%; height: 6px; background: var(--primary-light); border-radius: 10px; }
.traffic-bar-fill { height: 100%; background: var(--primary-color); border-radius: 10px; }
.traffic-bar-fill.light { background: #A5B4FC; }
.traffic-bar-fill.very-light { background: #E0E7FF; }
.traffic-bar-fill.dark { background: #312E81; }

.city-stats {
  margin-top: 2rem;
  text-align: center;
}
.city-stats p { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.city-stats h3 { font-size: 1.5rem; color: var(--primary-color); font-weight: 800; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.city-stats span { font-size: 0.8rem; color: var(--text-muted); }

/* System Ops */
.ops-header { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; }
.ops-dot { width: 10px; height: 10px; background: var(--success-color); border-radius: 50%; }
.ops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ops-metric { background: white; border: 1px solid var(--border-light); padding: 1rem; border-radius: var(--radius-md); }
.ops-metric p { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
.ops-metric h4 { font-size: 1.1rem; font-weight: 700; }
.ops-metric h4.green { color: var(--success-color); }

/* Chat widget icon logic */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(59, 40, 204, 0.4);
  cursor: pointer;
  z-index: 1000;
}

/* Footer Dashboard */
.dash-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.dash-footer-left h4 { font-size: 1rem; font-weight: 800; margin-bottom: 0.2rem; }
.dash-footer-left p { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.dash-footer-links { display: flex; gap: 1.5rem; }
.dash-footer-links a { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; }

@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { position: absolute; left: -250px; transition: left 0.3s ease; z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
  .sidebar.active { left: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .search-bar { display: none; }
  .top-navbar { padding: 0 1rem; }
  .user-profile .text { display: none; }
  .users-stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 1rem; }
  .search-input { max-width: 100%; }
  .ops-grid { grid-template-columns: 1fr; }
  .dash-footer { flex-direction: column; text-align: center; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .users-stats-grid { grid-template-columns: 1fr; }
  .chart-header { flex-direction: column; gap: 1rem; }
  .header-actions { flex-direction: column; width: 100%; }
  .header-actions .btn { width: 100%; }
}

/* ================================
   USERS PAGE SPECIFIC STYLES
   ================================ */

.users-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.users-stats-grid .stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.stat-value-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-value-row h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.trend.up {
  color: var(--success-color);
  font-size: 0.8rem;
  font-weight: 700;
}

.trend i { margin-right: 0.2rem; }

.dot-green {
  width: 8px;
  height: 8px;
  background-color: var(--success-color);
  border-radius: 50%;
  margin-left: 0.25rem;
}

.badge-premium {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-color);
  background-color: var(--primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.blue-solid {
  background: var(--primary-color);
  border: none;
}

/* User Content Area */
.users-content-area {
  background-color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.search-input {
  flex-grow: 1;
  max-width: 500px;
  position: relative;
}

.search-input input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: none;
  border-radius: var(--radius-md);
  background: white;
  font-family: inherit;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.search-input i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.custom-select {
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  background: white;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1em;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  cursor: pointer;
}

.btn-icon {
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

/* User Table */
.user-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

.user-table th {
  text-align: left;
  padding: 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.user-table td {
  padding: 1rem;
  background: white;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.user-table tr td:first-child {
  border-left: 1px solid var(--border-light);
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.user-table tr td:last-child {
  border-right: 1px solid var(--border-light);
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-cell .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.role-badge {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.role-badge.blue { color: var(--primary-color); }
.role-badge.gray { color: var(--text-muted); }

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

.plan-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.border-blue {
  background: var(--primary-light);
  color: var(--primary-color);
}
.border-gray {
  background: #f1f5f9;
  color: var(--text-muted);
}

.status-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}
.status-cell .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-cell .dot.active { background: var(--success-color); }
.status-cell .dot.inactive { background: var(--text-muted); }

.actions-cell {
  display: flex;
  gap: 1rem;
}
.action-btn { background: none; border: none; font-size: 1rem; cursor: pointer; }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-muted); }

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.showing-text {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  gap: 0.5rem;
}

.page-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  border: 1px solid var(--border-light);
}
.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ================================
   PRICING PAGE SPECIFIC STYLES
   ================================ */

.pricing-header-center {
  text-align: center;
  margin: 3rem 0;
}

.pricing-header-center h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  background: white;
  padding: 0.25rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.pricing-toggle button {
  padding: 0.5rem 1.5rem;
  border: none;
  background: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.pricing-toggle button.active {
  background: var(--bg-dashboard);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.badge-saving {
  background: var(--success-light);
  color: var(--success-color);
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 12px;
  margin-left: 0.25rem;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.pricing-card .plan-level {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  line-height: 1;
}

.pricing-card .price span:first-child {
  font-size: 1.5rem;
  margin-top: 0.4rem;
  margin-right: 0.1rem;
}

.pricing-card .price .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 0.4rem;
  margin-left: 0.25rem;
}

.pricing-card .desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.features-list li i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.features-list li.disabled {
  color: var(--text-muted);
}
.features-list li.disabled i {
  color: var(--border-light);
}

.pricing-card .btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-outline {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-primary);
  font-weight: 700;
}

.pricing-card.premium {
  background: linear-gradient(135deg, #4A3AFF, #3b28cc);
  border: none;
  box-shadow: 0 20px 40px rgba(59, 40, 204, 0.2);
  transform: scale(1.05);
}

.pricing-card.premium .plan-level { color: rgba(255,255,255,0.7); }
.pricing-card.premium h3, .pricing-card.premium .price, .pricing-card.premium .price .period, .pricing-card.premium .desc { color: white; }
.pricing-card.premium .desc { color: rgba(255,255,255,0.85); }
.pricing-card.premium .features-list li { color: rgba(255,255,255,0.9); }
.pricing-card.premium .features-list li i { color: white; }

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.usage-grid {
  grid-template-columns: 2fr 1fr;
}

.usage-item {
  margin-top: 1.5rem;
}
.usage-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-bg {
  width: 100%;
  height: 6px;
  background: var(--bg-dashboard);
  border-radius: 10px;
}
.progress-fill {
  height: 100%;
  border-radius: 10px;
}

.billing-table th {
  border-bottom: 1px solid var(--border-light);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.billing-table td {
  border-bottom: 1px solid var(--border-light);
  border-top: none;
}
.billing-table tr:last-child td {
  border-bottom: none;
}

/* ================================
   SETTINGS PAGE SPECIFIC STYLES
   ================================ */

.settings-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

/* Settings Nav */
.settings-nav-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.settings-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.settings-nav-item i {
  width: 16px;
  text-align: center;
}

.settings-nav-item:hover {
  background: white;
  color: var(--text-primary);
}

.settings-nav-item.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

/* Settings Forms */
.settings-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.settings-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.settings-form .form-group {
  margin-bottom: 1.5rem;
}

.settings-form label {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.settings-form input,
.settings-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: #F0F4F8;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.settings-form input:focus,
.settings-form textarea:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 0 2px var(--primary-light), 0 0 0 1px var(--border-light);
}

/* Toggle Switches */
.toggle-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.toggle-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toggle-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.toggle-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Dashboard Dark Mode */
body.dark-mode {
  --bg-dashboard: #0f172a;
  --bg-surface: #1e293b;
  --border-light: #334155;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --primary-light: rgba(59, 40, 204, 0.2);
  --success-light: rgba(16, 185, 129, 0.2);
  --danger-light: rgba(239, 68, 68, 0.2);
}

body.dark-mode .dash-card.bg-light,
body.dark-mode .users-content-area,
body.dark-mode .activity-item,
body.dark-mode .pricing-toggle {
  background-color: #0f172a !important;
}

body.dark-mode div.dash-card.border-light { background-color: #1e293b !important; }
body.dark-mode div.dash-card.border-light[style*="#F8FAFC"] { background-color: #0f172a !important; }

body.dark-mode .user-table td {
  background: #1e293b;
}
body.dark-mode .user-table thead, body.dark-mode .pricing-toggle button.active {
    background: #0f172a !important;
}
body.dark-mode th {
    background: transparent !important;
}

body.dark-mode .search-input input,
body.dark-mode .custom-select,
body.dark-mode .btn-icon,
body.dark-mode .toggle-card,
body.dark-mode .page-btn {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

body.dark-mode .nav-item:hover, body.dark-mode .settings-nav-item:hover { background-color: #334155; }

body.dark-mode .pricing-card, body.dark-mode .ops-metric {
  background: #1e293b; border-color: #334155;
}
body.dark-mode .pricing-card.premium { border: none; }

body.dark-mode .settings-form input,
body.dark-mode .settings-form textarea {
  background: #0f172a;
  color: #f8fafc;
  border-color: #334155;
}

body.dark-mode .btn-white { background: #0f172a !important; color: #f8fafc !important; border-color: #334155 !important; }
body.dark-mode table tr td { border-color: #334155; }

