/* ═════════════════════════════════════════════════════════════════════════
   CIPHER KING COMPLETE MASTER DESIGN SYSTEM & COMPONENTS STYLESHEET
   Supports all pages: Dashboard, Admin Panel, Services, Add Funds, Txns, Auth
   ═════════════════════════════════════════════════════════════════════════ */

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

/* Master Typography & Color Utility Helpers */
.font-mono { font-family: 'JetBrains Mono', monospace !important; }
.font-heading { font-family: 'Outfit', sans-serif !important; }
.text-success { color: var(--success) !important; }
.text-error, .text-danger { color: var(--error) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.text-white { color: #ffffff !important; }
.text-xs { font-size: 11.5px; }
.text-sm { font-size: 13px; }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 18px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 18px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.text-center { text-align: center; }

/* Custom Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Base Card Container */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.card:hover {
  border-color: var(--border-hover);
}

/* Page Header Card (Used across Admin, Transactions, Services) */
.page-header-card {
  background: linear-gradient(135deg, rgba(13, 21, 38, 0.85), rgba(20, 32, 60, 0.9));
  border: 1px solid rgba(59, 139, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.page-header-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.page-header-info h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 2px;
}

.page-header-info p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════
   1. FLOATING GLASS SIDEBAR & TOP HEADER
   ═══════════════════════════════════════════════ */
.sidebar {
  width: 260px;
  background: rgba(9, 14, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(59, 139, 255, 0.18);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: var(--transition);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.96);
  border-right-color: rgba(37, 99, 235, 0.15);
  box-shadow: 10px 0 25px rgba(37, 99, 235, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.brand-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--accent-glow);
}

.brand-info { display: flex; flex-direction: column; }
.brand-text { font-size: 17px; font-weight: 800; color: var(--text-main); line-height: 1.1; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--text-dim); font-weight: 600; margin-top: 2px; }

/* Sidebar Balance Widget */
.sidebar-balance-widget {
  background: linear-gradient(135deg, rgba(13, 25, 48, 0.9), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.sbw-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sbw-label { font-size: 10.5px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; }
.sbw-badge { font-size: 9px; background: rgba(16, 185, 129, 0.2); color: var(--success); padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.sbw-amount { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }

.sbw-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; box-shadow: 0 4px 12px var(--success-glow); transition: var(--transition);
}

.sbw-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--success-glow); }

/* Sidebar Navigation Links */
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; padding-right: 4px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.nav-section-label { font-size: 10px; text-transform: uppercase; color: var(--text-dim); font-weight: 800; padding: 14px 10px 6px; letter-spacing: 0.08em; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: var(--radius-md); color: var(--text-muted); font-weight: 600; font-size: 13px;
  text-decoration: none; transition: var(--transition);
}

.nav-button-item { background: none; border: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }

.nav-icon-bubble {
  width: 32px; height: 32px; border-radius: 10px; background: rgba(59, 139, 255, 0.1);
  border: 1px solid rgba(59, 139, 255, 0.2); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; transition: var(--transition);
}

.nav-item:hover { background: rgba(59, 139, 255, 0.08); color: var(--text-main); transform: translateX(3px); }
.nav-item:hover .nav-icon-bubble { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 4px 12px var(--accent-glow); }

.nav-item.active {
  background: linear-gradient(135deg, rgba(59, 139, 255, 0.22), rgba(59, 139, 255, 0.06));
  border: 1px solid rgba(59, 139, 255, 0.35); color: #ffffff; font-weight: 700;
}

.nav-item.active .nav-icon-bubble { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }

.sidebar-footer { padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }

.user-profile-card {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md);
}

.upc-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0;
}

.upc-info { display: flex; flex-direction: column; flex: 1; overflow: hidden; }
.upc-name { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.upc-role { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }
.upc-logout { color: var(--text-dim); padding: 6px; border-radius: var(--radius-sm); transition: var(--transition); }
.upc-logout:hover { color: var(--error); }

/* Header & Dropdown */
.header-title-wrap { display: flex; flex-direction: column; }
.header-breadcrumb { font-size: 11px; color: var(--text-dim); font-weight: 600; }
.user-dropdown-wrap { position: relative; }

.user-chip {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 4px 12px 4px 6px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-main); transition: var(--transition);
}

.user-chip:hover { border-color: var(--accent); background: rgba(59, 139, 255, 0.1); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #38bdf8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.user-meta-header { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.user-meta-header .username { font-size: 12px; font-weight: 700; }
.user-meta-header .user-role-badge { font-size: 9px; color: var(--text-dim); text-transform: uppercase; }

.user-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; width: 220px; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  display: none; flex-direction: column; padding: 8px; z-index: 200; backdrop-filter: blur(20px);
}

.user-dropdown-menu.show { display: flex; }
.dropdown-header { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.dropdown-header strong { font-size: 13px; color: var(--text-main); }
.dropdown-header small { font-size: 11px; color: var(--text-muted); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.dropdown-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-decoration: none; background: none;
  border: none; width: 100%; text-align: left; cursor: pointer; transition: var(--transition);
}

.dropdown-item:hover { background: rgba(59, 139, 255, 0.1); color: var(--text-main); }
.dropdown-item i { font-size: 13px; color: var(--text-dim); }
.dropdown-logout:hover { background: rgba(239, 68, 68, 0.12); color: var(--error); }

/* ═══════════════════════════════════════════════
   2. AUTHENTICATION PAGES (/login, /register)
   ═══════════════════════════════════════════════ */
.auth-body {
  background: radial-gradient(circle at 50% 20%, #0d1a38 0%, #050a18 70%, #02050e 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}

.auth-viewport { width: 100%; max-width: 440px; margin: auto; display: flex; justify-content: center; align-items: center; }
.auth-card-wrapper { width: 100%; position: relative; }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.auth-orb-1 { width: 250px; height: 250px; background: rgba(59, 139, 255, 0.25); top: -60px; left: -60px; }
.auth-orb-2 { width: 220px; height: 220px; background: rgba(239, 68, 68, 0.2); bottom: -50px; right: -50px; }

.auth-card {
  position: relative; background: rgba(13, 21, 38, 0.88); backdrop-filter: blur(28px);
  border: 1px solid rgba(59, 139, 255, 0.22); border-radius: 24px; padding: 36px 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65); z-index: 2;
}

.auth-card-header { text-align: center; margin-bottom: 26px; }
.auth-brand-badge {
  width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, #3b8bff, #2563eb);
  display: inline-flex; align-items: center; justify-content: center; font-size: 24px; color: #fff;
  margin-bottom: 12px; box-shadow: 0 8px 24px rgba(59, 139, 255, 0.4);
}

.auth-title { font-size: 22px; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: 12px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.auth-input-box { position: relative; display: flex; align-items: center; width: 100%; }

/* Unified Input Styles Across All Pages */
input[type="text"],
input[type="password"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: var(--radius-md) !important;
  padding: 13px 14px 13px 44px;
  color: #0f172a !important;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.dark input[type="text"],
.dark input[type="password"],
.dark input[type="number"],
.dark input[type="tel"],
.dark input[type="search"],
.dark select,
.dark textarea {
  background: rgba(7, 13, 26, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  background: rgba(13, 21, 38, 0.95) !important;
}

.input-icon-left { position: absolute; left: 14px; color: var(--text-dim); font-size: 15px; pointer-events: none; }
.btn-toggle-pw { position: absolute; right: 12px; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 6px; font-size: 14px; }

.auth-submit-btn {
  width: 100%; background: linear-gradient(135deg, #3b8bff, #2563eb); border: none;
  border-radius: var(--radius-md); padding: 14px 20px; font-size: 14px; font-weight: 800;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 8px; box-shadow: 0 6px 20px rgba(59, 139, 255, 0.35); transition: var(--transition);
}

.auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(59, 139, 255, 0.5); }
.auth-card-footer { text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.auth-link { color: var(--accent); font-weight: 700; text-decoration: none; margin-left: 4px; }

/* ═══════════════════════════════════════════════
   3. ADMIN PANEL STYLES (/admin)
   ═══════════════════════════════════════════════ */
.admin-container { display: flex; flex-direction: column; gap: 20px; }

.admin-header-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
}

.admin-tab-btn {
  padding: 10px 18px; border-radius: var(--radius-md); background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: var(--transition); display: flex; align-items: center; gap: 8px;
}

.admin-tab-btn:hover { border-color: var(--accent); color: var(--text-main); }
.admin-tab-btn {
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.animate-\[marquee_15s_linear_infinite\] {
  animation: marquee 15s linear infinite;
}
.admin-tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }
.admin-tab-btn.tab-highlight { border-color: var(--secondary); color: var(--secondary); background: rgba(245, 158, 11, 0.1); }

.admin-tab-pane { display: none; flex-direction: column; gap: 16px; }
.admin-tab-pane.active { display: flex; }

.admin-actions-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px;
}

.filter-group { flex: 1; max-width: 320px; }
.actions-right { display: flex; align-items: center; gap: 10px; }
.input-sm { padding: 8px 12px !important; font-size: 13px !important; }

/* ═══════════════════════════════════════════════
   4. TRANSACTIONS & RECEIPT MODAL (SCREENSHOT 2 FIX)
   ═══════════════════════════════════════════════ */
.transactions-container { display: flex; flex-direction: column; gap: 20px; }

.receipt-modal-card {
  max-width: 480px; width: 100%; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.receipt-header { text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.receipt-badge-status {
  display: inline-flex; align-items: center; gap: 6px; background: rgba(16, 185, 129, 0.15);
  color: var(--success); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 800; margin-bottom: 8px;
}

.receipt-items-list {
  display: flex; flex-direction: column; gap: 2px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; margin-bottom: 16px;
}

/* Fix for Screenshot 2: Key & Value touching issue */
.receipt-data-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border); gap: 16px; width: 100%;
}

.receipt-data-row:last-child { border-bottom: none; }
.receipt-data-row .lbl { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.receipt-data-row .val { font-size: 13.5px; font-weight: 700; color: var(--accent); text-align: right; word-break: break-all; }

.receipt-summary-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg-input); border-radius: var(--radius-md); margin-bottom: 20px; }
.receipt-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.modal-footer-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.page-info { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* Empty State */
.empty-state {
  text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.empty-state i { font-size: 48px; color: var(--text-dim); opacity: 0.5; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text-main); }
.empty-state p { font-size: 13px; color: var(--text-muted); max-width: 360px; }

/* ═══════════════════════════════════════════════
   5. ADD FUNDS & QR PREVIEW (SCREENSHOT 3 FIX)
   ═══════════════════════════════════════════════ */
.funds-v2-container { max-width: 720px; margin: 0 auto; }

.funds-tab-switcher {
  display: flex; gap: 10px; margin-bottom: 20px; background: var(--bg-card); padding: 6px; border-radius: var(--radius-md); border: 1px solid var(--border);
}

.funds-tab-btn {
  flex: 1; padding: 12px; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted);
  font-weight: 700; font-size: 13.5px; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px;
}

.funds-tab-btn.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }

.till-highlight-box {
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md); padding: 18px; text-align: center; margin-bottom: 20px;
}

.till-number-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.till-digits { font-size: 28px; font-weight: 800; color: var(--secondary); }
.btn-copy-till { background: var(--secondary); color: #fff; border: none; padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }

.qr-preview-wrapper { background: #0a0a0a; border-radius: var(--radius-md); padding: 20px; text-align: center; margin-bottom: 20px; border: 1px solid var(--border); }
.qr-scan-label { font-size: 13px; font-weight: 800; color: #facc15; margin-bottom: 12px; letter-spacing: 0.05em; }
.qr-image-container { display: flex; justify-content: center; align-items: center; overflow: hidden; }

/* Fix for Screenshot 3: Constrain QR Code Image */
.qr-code-img { max-width: 100%; height: auto; max-height: 280px; border-radius: 12px; object-fit: contain; }

.payment-instructions-box {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; margin-bottom: 20px;
}

.p-inst-title { font-size: 14px; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════════
   6. DASHBOARD & SERVICE CARDS (SCREENSHOT 1 FIX)
   ═══════════════════════════════════════════════ */
.dashboard-container { display: flex; flex-direction: column; gap: 20px; }

.hero-welcome-card {
  background: linear-gradient(135deg, rgba(13, 21, 38, 0.85), rgba(20, 32, 60, 0.9));
  border: 1px solid rgba(59, 139, 255, 0.2); border-radius: var(--radius-lg); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: var(--shadow-card);
}

.stats-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .stats-cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-cards-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-card); transition: var(--transition);
}

.stat-icon-wrapper {
  width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
}

.stat-icon-balance { background: rgba(16, 185, 129, 0.14); color: var(--success); }
.stat-icon-services { background: rgba(59, 139, 255, 0.14); color: var(--accent); }
.stat-icon-txns { background: rgba(249, 115, 22, 0.14); color: var(--secondary); }
.stat-icon-jobs { background: rgba(168, 85, 247, 0.14); color: #a855f7; }

.stat-details { display: flex; flex-direction: column; }
.stat-label { font-size: 11px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; }
.stat-value { font-size: 18px; font-weight: 800; color: var(--text-main); }

.services-controls-card { display: flex; flex-direction: column; gap: 12px; }

/* Fix Search Input Clipping */
.service-search-box { position: relative; width: 100%; }
.service-search-box .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 15px; }
.service-search-box input { width: 100% !important; padding-left: 46px !important; }

.category-pills-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cat-pill { padding: 8px 16px; border-radius: var(--radius-xl); background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: var(--transition); }
.cat-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px var(--accent-glow); }

.services-list-container { display: flex; flex-direction: column; gap: 12px; }

.service-card-item {
  background: rgba(13, 21, 38, 0.75); backdrop-filter: blur(20px); border: 1px solid rgba(59, 139, 255, 0.2);
  border-radius: var(--radius-lg); padding: 18px 24px; display: flex; align-items: center; gap: 18px;
  text-decoration: none; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35); transition: var(--transition);
}

.service-card-item:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(18, 29, 52, 0.95); box-shadow: 0 14px 35px rgba(59, 139, 255, 0.2); }
.svc-item-icon-box { width: 46px; height: 46px; border-radius: var(--radius-md); background: rgba(59, 139, 255, 0.15); border: 1px solid rgba(59, 139, 255, 0.3); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.svc-item-content { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.svc-item-title { font-size: 15px; font-weight: 800; color: var(--text-main); }
.svc-item-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.svc-item-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.svc-price-pill { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--success); font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: var(--radius-sm); }
.svc-item-chevron { color: var(--text-dim); font-size: 15px; }

/* Modal Backdrop */
.modal-backdrop {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(4, 8, 20, 0.85);
  backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px;
  border-radius: var(--radius-md); font-family: var(--font-main); font-size: 13px; font-weight: 700;
  cursor: pointer; border: none; transition: var(--transition); text-decoration: none;
}

.btn-primary { background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; box-shadow: 0 4px 15px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-success { background: linear-gradient(135deg, var(--success), #059669); color: #fff; box-shadow: 0 4px 15px var(--success-glow); }
.btn-danger { background: linear-gradient(135deg, var(--error), #b91c1c); color: #fff; box-shadow: 0 4px 15px var(--error-glow); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: rgba(59, 139, 255, 0.1); border-color: var(--accent); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 14.5px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-success { background: rgba(16, 185, 129, 0.14); color: var(--success); }
.badge-danger { background: rgba(239, 68, 68, 0.14); color: var(--error); }
.badge-admin { background: rgba(129, 140, 248, 0.14); color: #818cf8; }
.badge-reseller { background: rgba(245, 158, 11, 0.14); color: var(--secondary); }
.badge-outline { border: 1px solid var(--border); color: var(--text-muted); }

/* Table Styles */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { background: var(--bg-surface); padding: 12px 16px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; }
.data-table tr:hover td { background: var(--bg-card-hover); }
.clickable-row { cursor: pointer; }
.btn-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.btn-icon:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
