/* ===== FORCE: Hide all mobile elements on desktop ===== */
@media (min-width: 769px) {
  .mobile-dropdown-content { display: none !important; }
  .nav-center-logo { display: none !important; }
  .hamburger { display: none !important; }
  .mobile-sidebar-header,
  .mobile-sidebar-links,
  .mobile-sidebar-footer { display: none !important; }
}

:root {
  --bg-primary: #f6f5f1;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafaf8;
  --bg-sidebar: #eeece6;
  --border: #e2e0d8;
  --border-active: #0d9b7a;
  --accent: #0d9b7a;
  --accent-dim: rgba(13,155,122,0.08);
  --accent-glow: rgba(13,155,122,0.15);
  --text-primary: #1a1c1e;
  --text-secondary: #5f6368;
  --text-muted: #9aa0a6;
  --danger: #d93025;
  --warning: #d48806;
  --success: #0d9b7a;
  --info: #1a73e8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

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

body {
  font-family: Arial, 'Liberation Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ✅ FIXED: Added body scroll lock when mobile menu is open */
body.menu-open {
  overflow: hidden !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 90% 10%, rgba(13,155,122,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 600px 500px at 10% 80%, rgba(26,115,232,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-left { display: flex; align-items: center; gap: 16px; }

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.5px;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #087a60);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.logo span { color: var(--accent); }

.hamburger {
  display: none; background: none; border: none;
  font-size: 18px; color: var(--text-secondary);
  cursor: pointer; padding: 8px; border-radius: 4px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(0,0,0,0.05); }

.nav-links { display: flex; gap: 4px; margin-left: 32px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
  border: none; background: none; font-family: inherit;
}
.nav-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.nav-link.active { color: var(--accent); background: var(--accent-dim); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.balance-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: #f6f7ff;
  border: 1px solid rgba(29, 52, 94, 0.08);
  border-radius: 22px; font-size: 13px; font-weight: 700;
  color: #1f2b3d; cursor: pointer; transition: all 0.2s;
}
.balance-badge:hover { background: #ecedff; }
.balance-badge i { font-size: 14px; color: var(--accent); }

/* ===== LANGUAGE MENU (FLAG ONLY) ===== */
.language-menu { position: relative; }
.language-btn {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); background: #ffffff;
  color: #1f2b3d; border-radius: 10px; padding: 6px 8px;
  cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.language-btn:hover { background: var(--bg-primary); border-color: var(--text-muted); }
.language-flag { font-size: 18px; line-height: 1; }

.language-dropdown {
  position: absolute; top: 100%; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-md);
  padding: 8px 0; min-width: 140px; display: none;
  z-index: 200; margin-top: 4px;
}
.language-dropdown button {
  width: 100%; padding: 10px 16px; background: none; border: none;
  text-align: left; cursor: pointer; font-size: 13px;
  color: var(--text-primary); transition: background 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.language-dropdown button:hover { background: var(--bg-card-hover); }
.language-dropdown button span { font-size: 16px; }

/* ===== USER MENU ===== */
.user-menu { position: relative; }
.user-info {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; padding: 4px 8px; border-radius: 8px;
  transition: background 0.2s;
}
.user-info:hover { background: rgba(0,0,0,0.03); }

.user-dropdown {
  position: absolute; top: 100%; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; box-shadow: var(--shadow-md);
  padding: 8px 0; min-width: 180px; display: none; z-index: 200;
}
.user-dropdown button {
  width: 100%; padding: 8px 16px; background: none; border: none;
  text-align: left; cursor: pointer; font-size: 14px;
  color: var(--text-primary); transition: background 0.2s;
}
.user-dropdown button:hover { background: var(--bg-card-hover); }
.user-dropdown button i { margin-right: 8px; width: 16px; text-align: center; }

.user-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.user-email {
  font-size: 12px; color: var(--text-secondary);
  max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.notification-btn {
  position: relative; width: 36px; height: 36px;
  border-radius: 8px; background: none; border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.notification-btn:hover { color: var(--text-primary); border-color: var(--text-muted); background: rgba(0,0,0,0.02); }
.notification-btn .dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; background: var(--danger);
  border-radius: 50%; border: 2px solid #fff;
}

/* ===== UTILITIES & ACTIONS ===== */
.divider { border-top: 1px solid var(--border); margin: 8px 0; }

.danger-text {
  color: var(--danger); font-weight: 600;
  width: 100%; padding: 12px 16px;
  background: rgba(217, 48, 37, 0.06);
  border: 1px solid rgba(217, 48, 37, 0.15);
  border-radius: 10px; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.danger-text:hover { background: rgba(217, 48, 37, 0.12); border-color: rgba(217, 48, 37, 0.25); }
.danger-text i { font-size: 14px; width: 18px; text-align: center; }

.muted-text { 
  color: var(--text-muted); font-weight: 500; margin-top: 10px;
  width: 100%; padding: 12px 16px;
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-radius: 10px; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.muted-text:hover { color: var(--danger); background: rgba(217, 48, 37, 0.04); border-color: rgba(217, 48, 37, 0.12); }
.muted-text i { font-size: 13px; width: 18px; text-align: center; }

/* ===== MAIN LAYOUT ===== */
.main-layout {
  display: flex; margin-top: 60px;
  min-height: calc(100vh - 60px);
  position: relative; 
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 280px; min-width: 280px;
  background: var(--bg-sidebar); border-right: 1px solid var(--border);
  padding: 20px 0; overflow-y: auto;
  height: calc(100vh - 60px); position: sticky; top: 60px;
  transition: left 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-section { padding: 0 16px; margin-bottom: 24px; }
.sidebar-title {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--text-muted);
  margin-bottom: 12px; padding: 0 8px;
}

/* Hide mobile specific elements on desktop */
.mobile-sidebar-header, .mobile-sidebar-links, .mobile-sidebar-footer {
  display: none;
}

/* ===== SERVICE LIST (Sidebar) ===== */
.service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
}
.service-item:hover { 
  background: rgba(255,255,255,0.7); 
  transform: translateX(2px);
}
.service-item.active { 
  background: #fff; 
  box-shadow: var(--shadow-sm); 
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.service-icon.fb { background: rgba(24,119,242,0.1); color: #1877f2; }
.service-icon.fiverr { background: rgba(0,175,80,0.1); color: #00af50; }
.service-icon.wa { background: rgba(37,211,102,0.1); color: #25d366; }
.service-icon.telegram { background: rgba(36,161,222,0.1); color: #24a1de; }
.service-icon.twitter { background: rgba(29,161,242,0.1); color: #1da1f2; }
.service-icon.amazon { background: rgba(255,153,0,0.1); color: #e68a00; }
.service-icon.google { background: rgba(66,133,244,0.1); color: #4285f4; }
.service-icon.instagram { background: rgba(225,48,108,0.1); color: #e1306c; }
.service-icon.tiktok { background: rgba(255,0,80,0.08); color: #cc0044; }
.service-icon.discord { background: rgba(88,101,242,0.1); color: #5865f2; }
.service-icon.microsoft { background: rgba(0,120,212,0.1); color: #0078d4; }
.service-icon.uber { background: rgba(0,0,0,0.06); color: #333; }
.service-icon.paypal { background: rgba(0,48,135,0.1); color: #003087; }
.service-icon.lyft { background: rgba(255,0,80,0.06); color: #cc0044; }
.service-icon.steam { background: rgba(102,192,244,0.1); color: #4a90b8; }
.service-icon.other { background: rgba(0,0,0,0.05); color: var(--text-secondary); }

.service-info { 
  flex: 1; 
  min-width: 0; 
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.service-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.service-region, .service-available { 
  font-size: 11px; 
  color: var(--text-muted); 
  line-height: 1; 
  font-weight: 400;
}

.service-price { 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--text-primary); 
  white-space: nowrap; 
  margin-left: auto; 
  background: var(--bg-primary);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Search Box */
.search-box { padding: 0 16px; margin-bottom: 20px; }
.search-input-wrap { position: relative; }
.search-input-wrap i {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: var(--text-muted); font-size: 13px;
}
.search-input {
  width: 100%; padding: 10px 12px 10px 36px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary); font-size: 13px;
  font-family: inherit; outline: none; transition: all 0.2s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-dim); }

/* ===== MAIN CONTENT ===== */
.main-content { flex: 1; padding: 24px 28px; overflow-y: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.page-actions { display: flex; gap: 10px; }

/* Buttons */
.btn {
  padding: 9px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.2s; border: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #087a60); color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--text-secondary);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-primary); color: var(--text-primary); }

.btn-sm {
  padding: 6px 12px; font-size: 11px; border-radius: 8px; font-weight: 600;
  font-family: inherit; cursor: pointer; border: none; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-sm.copy { background: var(--accent-dim); color: var(--accent); }
.btn-sm.copy:hover { background: rgba(13,155,122,0.15); }
.btn-sm.cancel { background: rgba(217,48,37,0.06); color: var(--danger); }
.btn-sm.cancel:hover { background: rgba(217,48,37,0.12); }
.btn-sm.refresh { background: rgba(26,115,232,0.06); color: var(--info); }
.btn-sm.refresh:hover { background: rgba(26,115,232,0.12); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.stat-value.green { color: var(--accent); }
.stat-value.blue { color: var(--info); }
.stat-value.yellow { color: var(--warning); }
.stat-value.red { color: var(--danger); }
.stat-change { font-size: 11px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--accent); }
.stat-change.down { color: var(--danger); }

/* Active Numbers Area */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.section-title .count-badge { background: var(--accent-dim); color: var(--accent); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }

.active-numbers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.number-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; transition: all 0.3s;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.number-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; border-radius: 3px 0 0 3px;
}
.number-card.waiting::before { background: var(--warning); }
.number-card.received::before { background: var(--accent); }
.number-card.expired::before { background: var(--danger); }
.number-card:hover { box-shadow: var(--shadow-md); }

.number-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.number-left { display: flex; align-items: center; gap: 14px; }
.number-service-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.number-service-name { font-size: 15px; font-weight: 600; }
.number-region-tag { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.number-right { text-align: right; }
.number-phone { font-family: 'Liberation Mono', 'Courier New', monospace; font-size: 17px; font-weight: 600; color: var(--text-primary); letter-spacing: 0.5px; }
.number-timer { font-family: 'Liberation Mono', 'Courier New', monospace; font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.number-timer.waiting { color: var(--warning); }
.number-timer.received { color: var(--accent); }
.number-timer.expired { color: var(--danger); }

.timer-dot { width: 6px; height: 6px; border-radius: 50%; animation: pulse-dot 1.5s infinite; }
.waiting .timer-dot { background: var(--warning); }
.received .timer-dot { background: var(--accent); animation: none; }
.expired .timer-dot { background: var(--danger); animation: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.number-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.number-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-dot.waiting { background: var(--warning); box-shadow: 0 0 8px rgba(212,136,6,0.3); }
.status-dot.received { background: var(--accent); box-shadow: 0 0 8px rgba(13,155,122,0.3); }
.status-dot.expired { background: var(--danger); }
.status-text.waiting { color: var(--warning); }
.status-text.received { color: var(--accent); }
.status-text.expired { color: var(--danger); }
.number-cost { font-size: 12px; color: var(--text-muted); }
.number-actions { display: flex; gap: 8px; }

/* SMS Content Display */
.sms-content {
  margin-top: 12px;
  background: linear-gradient(135deg, rgba(13,155,122,0.04), rgba(13,155,122,0.08));
  border: 1px solid rgba(13,155,122,0.12); border-radius: 10px;
  padding: 14px 16px; animation: fadeIn 0.4s;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.sms-code { font-family: 'Liberation Mono', 'Courier New', monospace; font-size: 28px; font-weight: 700; color: var(--accent); letter-spacing: 4px; text-align: center; padding: 8px 0; }
.sms-text { font-size: 12px; color: var(--text-secondary); text-align: center; margin-top: 4px; line-height: 1.5; }
.sms-time { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Timer Bar */
.timer-bar { height: 2px; background: var(--border); border-radius: 1px; margin-top: 10px; overflow: hidden; }
.timer-bar-fill { height: 100%; border-radius: 1px; transition: width 1s linear; }
.waiting .timer-bar-fill { background: var(--warning); }
.received .timer-bar-fill { background: var(--accent); }
.expired .timer-bar-fill { background: var(--danger); }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.25; }
.empty-state p { font-size: 14px; margin-top: 8px; }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.filter-tab {
  padding: 7px 16px; border-radius: 8px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: rgba(0,0,0,0.02);
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-tab:hover { color: var(--text-secondary); background: rgba(0,0,0,0.04); }
.filter-tab.active { color: var(--accent); background: var(--accent-dim); border-color: rgba(13,155,122,0.12); }

/* Code Blocks */
.code-block { background: #1a1c1e; border-radius: 10px; padding: 16px; margin-bottom: 16px; overflow-x: auto; }
.code-block pre { font-family: 'Liberation Mono', 'Courier New', monospace; font-size: 12px; line-height: 1.8; margin: 0; color: #e0e0e0; }

/* FAQ */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

/* Pricing Highlight */
.pricing-highlight {
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, rgba(13,155,122,0.04), rgba(13,155,122,0.01)) !important;
  position: relative;
}
.pricing-highlight::after {
  content: 'Popular'; position: absolute; top: -1px; right: 20px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 10px; border-radius: 0 0 6px 6px; letter-spacing: 0.5px; text-transform: uppercase;
}

/* ===== HISTORY ===== */
.history-section { margin-top: 8px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.history-item:hover { box-shadow: var(--shadow-md); }
.history-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.history-info { flex: 1; }
.history-service { font-size: 13px; font-weight: 600; }
.history-detail { font-size: 11px; color: var(--text-muted); margin-top: 3px; display: flex; align-items: center; gap: 10px; }
.history-code { font-family: 'Liberation Mono', 'Courier New', monospace; font-size: 14px; font-weight: 600; color: var(--accent); }
.history-status { font-size: 10px; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.history-status.success { background: var(--accent-dim); color: var(--accent); }
.history-status.failed { background: rgba(217,48,37,0.06); color: var(--danger); }

/* ===== MODALS & FORMS ===== */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.visible,
.sidebar-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(6px);
  z-index: 1000; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 20px; width: 520px; max-width: 90vw; max-height: 85vh;
  overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header { padding: 24px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.04); border: none; color: var(--text-secondary);
  cursor: pointer; font-size: 14px; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(217,48,37,0.08); color: var(--danger); }

.modal-body { padding: 20px 24px 24px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-select, .form-input {
  width: 100%; padding: 11px 14px; background: var(--bg-primary);
  border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  outline: none; transition: all 0.2s;
}
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235f6368' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-select:focus, .form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.form-select option { background: #fff; color: var(--text-primary); }

.number-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.number-option {
  padding: 14px; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.number-option:hover { border-color: var(--text-muted); background: #fff; }
.number-option.selected { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 3px rgba(13,155,122,0.08); }
.number-option .phone { font-family: 'Liberation Mono', 'Courier New', monospace; font-size: 14px; font-weight: 600; color: var(--text-primary); }
.number-option .price { font-size: 11px; color: var(--accent); margin-top: 6px; font-weight: 600; }

.modal-footer {
  padding: 16px 24px; display: flex; gap: 10px;
  justify-content: flex-end; border-top: 1px solid var(--border);
  align-items: center;
}

/* Payment Method Option */
.payment-option {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; transition: all 0.2s;
}
.payment-option:hover { background: #fff; border-color: var(--text-muted); }
.payment-option:has(input:checked) {
  border: 2px solid var(--accent); background: var(--accent-dim);
}
.payment-option input[type="radio"] { 
  accent-color: var(--accent); width: 16px; height: 16px; 
  margin: 0; flex-shrink: 0; 
}

/* ===== TOASTS ===== */
.toast-container {
  position: fixed; top: 76px; right: 24px;
  z-index: 1001; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 20px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  min-width: 260px; color: var(--text-primary);
}
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ===== FORCE PREMIUM LOOK ON DYNAMIC PAGES.JS GRIDS ===== */
div[style*="repeat(auto-fit,minmax(150px"] {
  display: grid !important;
  gap: 12px !important;
}

@media (min-width: 769px) {
  div[style*="repeat(auto-fit,minmax(150px"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  div[style*="repeat(auto-fit,minmax(150px"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
}

div[style*="repeat(auto-fit,minmax(150px"] > div {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-direction: row !important;
  text-align: left !important;
  transition: all 0.2s ease !important;
  box-shadow: var(--shadow-sm) !important;
}
div[style*="repeat(auto-fit,minmax(150px"] > div:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-2px) !important;
}

div[style*="repeat(auto-fit,minmax(150px"] > div > div:first-child {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
}

div[style*="repeat(auto-fit,minmax(150px"] > div > div:first-child > div {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
}

div[style*="repeat(auto-fit,minmax(150px"] > div > div:last-child {
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .sidebar { width: 240px; min-width: 240px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .top-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 12px;
    height: 55px;
  }

  .nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .hamburger {
    display: flex;
    justify-self: center;
    align-items: center;
    position: static;
    transform: none;
  }

  .nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .nav-links,
  .notification-btn,
  .language-menu,
  .user-menu {
    display: none !important;
  }

  .logo {
    font-size: 15px;
    gap: 6px;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .balance-badge {
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 6px 10px;
    font-size: 12px;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    z-index: 999;
    background: var(--bg-primary);
    box-shadow: 2px 0 20px rgba(0,0,0,0.25);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    height: 100vh;
    padding-top: 0;
  }
  .sidebar.active { left: 0; }

  .search-box, .sidebar-section { display: none; }

  .mobile-menu-list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .mobile-menu-list li {
    margin: 0;
    padding: 0;
  }

  .menu-section-title {
    padding: 16px 20px 8px 20px !important;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
    margin-bottom: 0 !important;
  }

  .menu-nav-btn {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 20px !important;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
    position: relative;
  }

  .menu-nav-btn:hover {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    padding-left: 24px !important;
  }

  .menu-nav-btn:active {
    background: rgba(13,155,122,0.15) !important;
    transform: scale(0.98);
  }

  .menu-nav-btn i {
    width: 20px;
    text-align: center;
    color: var(--accent);
    font-size: 16px;
    transition: transform 0.2s ease;
  }

  .menu-nav-btn:hover i {
    transform: translateX(2px);
  }

  .menu-nav-btn.active {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 17px !important;
  }

  .menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border) 10%, var(--border) 90%, transparent 100%);
    margin: 8px 0 !important;
    padding: 0 !important;
  }

  .language-item {
    position: relative;
  }

  .menu-lang-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 20px !important;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
  }

  .menu-lang-btn:hover {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    padding-left: 24px !important;
  }

  .menu-lang-btn .language-flag {
    color: var(--accent);
    font-size: 20px;
  }

  .language-chevron {
    width: auto !important;
    text-align: right;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    transition: transform 0.3s ease;
  }

  .menu-lang-btn.open .language-chevron,
  .language-chevron.rotated {
    transform: rotate(180deg);
  }

  .language-submenu {
    display: none;
    flex-direction: column;
    background: var(--accent-dim);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-left: 3px solid var(--accent);
  }

  .language-submenu.show,
  .language-submenu.open,
  .language-submenu.active {
    display: flex;
    max-height: 500px;
  }

  .language-submenu button {
    padding: 11px 20px 11px 30px !important;
    font-size: 14px !important;
    color: var(--text-primary) !important;
    font-weight: 400 !important;
    background: none !important;
    border: none !important;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
  }

  .language-submenu button:hover {
    background: rgba(13,155,122,0.2) !important;
    color: var(--accent) !important;
    padding-left: 34px !important;
  }

  .email-item {
    padding: 12px 20px !important;
    color: var(--text-secondary);
    font-size: 13px;
    margin: 4px 0;
    word-break: break-all;
    font-weight: 500;
  }

  .logout-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px !important;
    background: none !important;
    border: none;
    color: var(--danger) !important;
    font-size: 15px;
    font-weight: 600 !important;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
  }

  .logout-btn:hover {
    background: rgba(217, 48, 37, 0.1) !important;
    color: var(--danger) !important;
    padding-left: 24px !important;
  }

  .logout-btn:active {
    background: rgba(217, 48, 37, 0.15) !important;
    transform: scale(0.98);
  }

  .logout-btn i {
    color: var(--danger);
    font-size: 16px;
    width: 20px;
    text-align: center;
  }

  .delete-btn {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px !important;
    background: none !important;
    border: none;
    color: var(--text-muted) !important;
    font-size: 15px;
    font-weight: 500 !important;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
  }

  .delete-btn:hover {
    background: var(--accent-dim) !important;
    color: var(--accent) !important;
    padding-left: 24px !important;
  }

  .delete-btn:active {
    background: rgba(13,155,122,0.15) !important;
    transform: scale(0.98);
  }

  .delete-btn i {
    color: inherit;
    font-size: 16px;
    width: 20px;
    text-align: center;
  }

  .mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-sidebar-links {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .mobile-sidebar-links button {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
  }
  .mobile-sidebar-links button:hover { background: var(--bg-secondary); }
  .mobile-sidebar-links button i { width: 20px; text-align: center; color: var(--text-muted); }

  .mobile-sidebar-footer {
    display: block;
    padding: 20px;
    border-top: 1px solid var(--border);
  }

  .main-layout { flex-direction: column; }
  .main-content { width: 100%; margin-left: 0; padding: 16px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .number-card { padding: 15px; }
  .number-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .number-right { width: 100%; text-align: left; }
  .number-timer { justify-content: flex-start; }
  .number-actions { margin-top: 10px; width: 100%; display: flex; justify-content: flex-end; }

  .number-options { grid-template-columns: 1fr; }

  div[style*="repeat(3,minmax"] { grid-template-columns: 1fr !important; }
  div[style*="1.5fr 1fr"] { grid-template-columns: 1fr !important; }

  div[style*="repeat(auto-fit,minmax(150px"] {
    display: flex !important;
    flex-direction: column !important;
  }

  .dep-amt { flex: 1 0 40% !important; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
/* ===== HIDE MOBILE SERVICE GRID ON DESKTOP ===== */
@media (min-width: 769px) {
  #mobileServiceGridWrapper,
  .mobile-search-wrapper {
    display: none !important;
  }
}

/* ===== SERVICE IMAGE PREVIEW (Modal) ===== */
.service-image-preview {
  width: 100%;
  height: 140px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

.service-image-preview img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-image-preview:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s ease;
}