@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

/* ════════════════════════════════════════════
   DEVIL THEME — iOS DOCK & RESPONSIVE UI v3
════════════════════════════════════════════ */
:root {
  --bg:               #07080e;
  --bg-2:             #0c0e16;
  --card-bg:          #11131f;
  --card-bg-2:        #161928;
  --card-border:      rgba(220, 38, 38, 0.2);
  --card-border-blue: rgba(37, 99, 235, 0.2);
  --card-border-soft: rgba(255, 255, 255, 0.07);

  --shadow-card:       0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.75);
  --shadow-btn:        0 4px 18px rgba(220, 38, 38, 0.38);
  --shadow-dock:       0 12px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(220, 38, 38, 0.15);

  --primary:       #dc2626;
  --primary-dark:  #b91c1c;
  --primary-dim:   rgba(220, 38, 38, 0.14);

  --blue:          #2563eb;
  --blue-dark:     #1d4ed8;
  --blue-dim:      rgba(37, 99, 235, 0.14);

  --gradient-devil:     linear-gradient(135deg, #dc2626 0%, #2563eb 100%);
  --gradient-btn:       linear-gradient(135deg, #dc2626 0%, #1d4ed8 100%);
  --gradient-btn-hover: linear-gradient(135deg, #b91c1c 0%, #1e40af 100%);
  --gradient-dock:      linear-gradient(135deg, rgba(17,19,31,0.88) 0%, rgba(12,14,22,0.92) 100%);

  --text-main:      #f0f4fc;
  --text-secondary: #b8c4d8;
  --text-muted:     #5a6a85;

  --green:  #10b981;  --green-bg:  rgba(16, 185, 129, 0.12);
  --orange: #f59e0b;  --orange-bg: rgba(245, 158, 11, 0.12);
  --red:    #dc2626;  --red-bg:    rgba(220, 38, 38, 0.12);
  --blue-c: #2563eb;  --blue-bg:   rgba(37, 99, 235, 0.12);
  --purple: #8b5cf6;  --purple-bg: rgba(139, 92, 246, 0.12);

  --font:      "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button {
  background: none; border: none; font-family: inherit;
  color: inherit; outline: none; position: relative; overflow: hidden;
}
input, select, textarea { font-family: var(--font); }

/* ════════════════════════════════════════════
   KEYFRAME ANIMATIONS
════════════════════════════════════════════ */
@keyframes devilPopIn {
  0%   { opacity: 0; transform: scale(0.87) translateY(24px); }
  65%  { opacity: 1; transform: scale(1.025) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  18%, 54%  { transform: translateX(-7px) rotate(-0.5deg); }
  36%, 72%  { transform: translateX(7px) rotate(0.5deg); }
}
@keyframes rowFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes btnClickPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}
@keyframes rippleEffect {
  to { transform: scale(5); opacity: 0; }
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.5; }
}
@keyframes dockTooltipPop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.8); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* ════════════════════════════════════════════
   AMBIENT BACKGROUND GLOWS
════════════════════════════════════════════ */
.devil-bg-glow-red {
  position: fixed; top: -220px; left: -180px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: floatOrb 22s ease-in-out infinite;
}
.devil-bg-glow-blue {
  position: fixed; bottom: -220px; right: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.09) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: floatOrb 26s ease-in-out infinite reverse;
}
.login-bg-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(220,38,38,0.08) 0%, rgba(37,99,235,0.06) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ════════════════════════════════════════════
   RIPPLE UTILITY
════════════════════════════════════════════ */
.ripple-span {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0); animation: rippleEffect 0.6s ease-out forwards;
  pointer-events: none; width: 40px; height: 40px;
  margin-top: -20px; margin-left: -20px;
}

/* ════════════════════════════════════════════
   TOP NAVIGATION BAR
════════════════════════════════════════════ */
.top-nav-bar {
  width: 100%;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 14, 22, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.4px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulseDot 1.8s ease-in-out infinite;
}

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

.server-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.btn-logout-top {
  padding: 7px 14px;
  border-radius: 20px;
}

/* ════════════════════════════════════════════
   FLOATING iOS / macOS DOCK NAVIGATION
════════════════════════════════════════════ */
.ios-dock-wrapper {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock-arrow-btn {
  display: none;
}

.btn-copy-key {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.btn-copy-key:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  transform: translateY(-1px);
}
.btn-copy-key:active {
  transform: scale(0.92);
}

.btn-action-reset-switch {
  color: #60a5fa !important;
  transition: all 0.2s ease;
}
.btn-action-reset-switch:hover {
  color: #93c5fd !important;
  background: rgba(96, 165, 250, 0.18) !important;
  transform: rotate(-45deg);
}

.lifetime-status-pill {
  user-select: none;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
}

.lifetime-status-pill i,
.lifetime-status-pill svg {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

label i,
label svg {
  position: static !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  margin-right: 6px !important;
  pointer-events: auto !important;
}

.dock-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--gradient-dock);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 24px;
  box-shadow: var(--shadow-dock);
  transition: all 0.25s ease;
}

.dock-list:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(37, 99, 235, 0.2);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 16px;
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.22s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.dock-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.dock-icon i {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.dock-label {
  display: none;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.dock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  margin-top: 4px;
  transition: all 0.25s ease;
}

/* Hover Tooltip */
.dock-tooltip {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background: #161928;
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.dock-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: #161928;
  border-right: 1px solid rgba(220, 38, 38, 0.3);
  border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.dock-item:hover .dock-tooltip {
  opacity: 1;
  visibility: visible;
  animation: dockTooltipPop 0.22s ease forwards;
}

.dock-item:hover .dock-icon {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.4);
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.dock-item:hover .dock-icon i {
  color: #ffffff;
  transform: scale(1.15);
}

/* Active State */
.dock-item.active .dock-icon {
  background: var(--gradient-btn);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.dock-item.active .dock-icon i { color: #ffffff; transform: scale(1.1); }

.dock-item.active .dock-dot {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  width: 14px;
  border-radius: 4px;
}

.dock-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

.dock-item-logout:hover .dock-icon {
  background: rgba(220, 38, 38, 0.22);
  border-color: rgba(220, 38, 38, 0.5);
  color: #ff6b6b;
}

/* ════════════════════════════════════════════
   MAIN CONTENT LAYOUT
════════════════════════════════════════════ */
main.content, main.main-content {
  margin-left: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 32px 120px 32px;
  min-height: calc(100vh - 70px);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

header h1 {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.header-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* ════════════════════════════════════════════
   CARDS & CONTAINERS
════════════════════════════════════════════ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-devil);
  opacity: 0.6;
  transition: opacity var(--transition);
}

.card:hover { border-color: rgba(37,99,235,0.35); box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* ════════════════════════════════════════════
   STAT CARDS
════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-devil);
  opacity: 0.55;
  transition: opacity var(--transition);
}

.stat-card:hover { border-color: rgba(37,99,235,0.4); transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow-card-hover); }
.stat-card:hover::before { opacity: 1; }

.stat-info h3, .stat-info h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.9px; color: var(--text-muted); margin-bottom: 8px;
}

.stat-info p, .stat-info .value {
  font-size: 30px; font-weight: 900;
  font-family: var(--font-mono); color: #ffffff; margin: 0;
}

.stat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07);
  color: var(--primary); transition: all var(--transition); flex-shrink: 0;
}

.stat-icon i { width: 22px; height: 22px; }
.stat-card:hover .stat-icon { transform: scale(1.12) rotate(-5deg); background: rgba(37,99,235,0.15); border-color: rgba(37,99,235,0.3); color: var(--blue); }

.icon-green  { color: var(--green) !important; background: var(--green-bg) !important; border-color: rgba(16,185,129,0.2) !important; }
.icon-blue   { color: var(--blue)  !important; background: var(--blue-bg)  !important; border-color: rgba(37,99,235,0.2)  !important; }
.icon-red    { color: var(--red)   !important; background: var(--red-bg)   !important; border-color: rgba(220,38,38,0.2)  !important; }
.icon-orange { color: var(--orange)!important; background: var(--orange-bg)!important; border-color: rgba(245,158,11,0.2) !important; }
.icon-purple { color: var(--purple)!important; background: var(--purple-bg)!important; border-color: rgba(139,92,246,0.2) !important; }

/* ════════════════════════════════════════════
   BUTTONS — PREMIUM
════════════════════════════════════════════ */
.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff; border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.4px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition); user-select: none; overflow: hidden;
}
.btn-primary i { width: 16px; height: 16px; transition: transform var(--transition); }
.btn-primary:hover { background: var(--gradient-btn-hover); box-shadow: 0 8px 26px rgba(37,99,235,0.45); transform: translateY(-2px); }
.btn-primary:hover i { transform: scale(1.2) rotate(-5deg); }
.btn-primary:active { animation: btnClickPulse 0.18s ease forwards; }

.btn-secondary {
  background: rgba(255,255,255,0.05); color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 600; font-size: 13px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all var(--transition); overflow: hidden;
  backdrop-filter: blur(4px);
}
.btn-secondary i { width: 15px; height: 15px; transition: transform var(--transition); }
.btn-secondary:hover { background: rgba(37,99,235,0.18); border-color: rgba(37,99,235,0.5); color: #ffffff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.2); }
.btn-secondary:hover i { transform: scale(1.15) translateY(-1px); }
.btn-secondary:active { animation: btnClickPulse 0.18s ease forwards; }

.btn-ghost {
  background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.28);
  color: #ef4444; padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; width: 100%;
  justify-content: center; transition: all var(--transition); overflow: hidden;
}
.btn-ghost:hover { background: var(--primary); border-color: var(--primary); color: #ffffff; box-shadow: var(--shadow-btn); transform: translateY(-2px); }

.btn-ghost-sm {
  padding: 7px 14px; border-radius: var(--radius-xs);
  font-size: 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff; transition: all var(--transition);
}
.btn-ghost-sm:hover { background: rgba(37,99,235,0.18); border-color: rgba(37,99,235,0.45); color: #ffffff; transform: translateY(-1px); }

.btn-close {
  background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.22);
  color: var(--primary); width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.btn-close:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: rotate(90deg) scale(1.1); box-shadow: 0 4px 14px rgba(220,38,38,0.45); }

.btn-action, .action-btn, td button, .btn-icon {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8; border-radius: var(--radius-xs);
  padding: 6px 11px; font-size: 11.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 5px;
  transition: all var(--transition); overflow: hidden;
}
.btn-action:hover, .action-btn:hover, td button:hover, .btn-icon:hover {
  background: rgba(37,99,235,0.2); border-color: rgba(37,99,235,0.5);
  color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}
td button.btn-delete:hover, td button.btn-revoke:hover {
  background: rgba(220,38,38,0.22); border-color: rgba(220,38,38,0.5);
  color: #ff6b6b; box-shadow: 0 4px 12px rgba(220,38,38,0.2);
}

.btn-small {
  padding: 8px 16px; border-radius: var(--radius-xs);
  font-size: 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #ffffff; transition: all var(--transition);
}
.btn-small:hover { background: rgba(220,38,38,0.2); border-color: rgba(220,38,38,0.5); color: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(220,38,38,0.18); }
.btn-danger {
  background: rgba(220, 38, 38, 0.15) !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
  color: #fca5a5 !important;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #991b1b) !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
  transform: translateY(-1px);
}
.btn-small.btn-danger {
  height: auto;
  min-height: 0;
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  font-size: 12px;
}


/* ════════════════════════════════════════════
   TOOLBARS & FILTERS
════════════════════════════════════════════ */
.table-toolbar {
  margin-bottom: 20px; background: var(--card-bg);
  border: 1px solid var(--card-border-soft);
  border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-card);
}
.filter-row { 
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 12px; 
  width: 100%; 
}
.search-box { 
  position: relative; 
  flex: 1 1 260px; 
  min-width: 200px; 
}
.search-box input {
  width: 100%; 
  padding: 10px 14px 10px 42px;
  background: var(--bg-2); 
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm); 
  color: #ffffff; 
  font-size: 13.5px;
  transition: all var(--transition);
}
.search-box input:focus { 
  outline: none; 
  border-color: rgba(37,99,235,0.55); 
  background: rgba(37,99,235,0.05); 
  box-shadow: 0 0 0 3px rgba(37,99,235,0.13); 
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box i,
.search-box svg { 
  position: absolute !important; 
  left: 14px !important; 
  top: 50% !important; 
  transform: translateY(-50%) !important; 
  color: var(--text-muted) !important; 
  width: 16px !important; 
  height: 16px !important; 
  pointer-events: none !important; 
}

.filter-row .custom-dropdown-container,
.filter-row .filter-dropdown-container {
  width: auto !important;
  min-width: 140px !important;
  flex: 0 0 auto !important;
}

.filter-row .custom-dropdown-trigger {
  width: auto !important;
  min-width: 140px !important;
  height: 39px !important;
  padding: 8px 14px !important;
}

.filter-select {
  padding: 10px 14px; background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-sm); color: #ffffff;
  font-size: 13px; cursor: pointer; font-family: var(--font);
  transition: all var(--transition);
}
.filter-select:focus { outline: none; border-color: rgba(37,99,235,0.55); box-shadow: 0 0 0 3px rgba(37,99,235,0.13); }
.filter-select option { background: #1a1d2a; }
.filter-row .btn-small { height: 39px !important; padding: 0 16px !important; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.reseller-toggle-label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  background: rgba(255,255,255,0.03); padding: 8px 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.reseller-toggle-label:hover { background: rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.3); color: #ffffff; }

/* ════════════════════════════════════════════
   ANIMATED HIGH-END GLASSMORPHISM LOGIN SCREEN
════════════════════════════════════════════ */
#login-screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(20, 24, 40, 1) 0%, rgba(9, 11, 18, 1) 100%);
}

#login-screen.active {
  display: flex;
}

/* Floating Ambient Glowing Orbs */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.65;
}

.login-orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(220, 38, 38, 0.4);
  top: 15%;
  left: 20%;
  animation: orbFloat1 12s ease-in-out infinite alternate;
}

.login-orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(37, 99, 235, 0.35);
  bottom: 15%;
  right: 20%;
  animation: orbFloat2 15s ease-in-out infinite alternate;
}

.login-orb-3 {
  width: 250px;
  height: 250px;
  background: rgba(147, 51, 234, 0.3);
  top: 40%;
  right: 35%;
  animation: orbFloat1 18s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.15); }
  100% { transform: translate(-50px, 30px) scale(0.95); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 40px) scale(1.2); }
  100% { transform: translate(30px, -50px) scale(0.9); }
}

.login-box {
  width: 100%;
  max-width: 440px;
  padding: 44px 40px 36px;
  animation: devilPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  background: rgba(16, 20, 34, 0.82);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(37, 99, 235, 0.15);
  overflow: hidden;
}

.login-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #2563eb, #dc2626);
  background-size: 200% 100%;
  animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.login-box .logo {
  text-align: center;
  margin-bottom: 30px;
}

.glowing-shield {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
  transition: all 0.3s ease;
}

.glowing-shield i, .glowing-shield svg {
  width: 34px;
  height: 34px;
  color: #ffffff;
  filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.6));
}

.shield-pulse-ring {
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 26px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  animation: pulseRing 2.5s infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.18); opacity: 0; }
}

.login-box h2 {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

#login-form .input-group > i, 
#login-form .input-group > svg,
.input-with-icon > i, 
.input-with-icon > svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 19px;
  height: 19px;
  pointer-events: none;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

#login-form .input-group:focus-within > i, 
#login-form .input-group:focus-within > svg,
.input-with-icon:focus-within > i, 
.input-with-icon:focus-within > svg {
  color: var(--blue);
  transform: translateY(-50%) scale(1.1);
}

.input-group input, .input-group select, .input-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 13, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font);
  transition: all 0.25s ease;
}

#login-form .input-group input {
  padding: 14px 44px 14px 48px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), 0 0 20px rgba(37, 99, 235, 0.15);
}

.input-group input::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.pwd-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  z-index: 3;
}

.pwd-toggle-btn:hover {
  color: #ffffff;
}

.pwd-toggle-btn i, .pwd-toggle-btn svg {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 18px !important;
  height: 18px !important;
}

.btn-login-submit {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 10px;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.5);
  filter: brightness(1.12);
}

.btn-login-submit:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
}

.reseller-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
}

.reseller-portal-badge:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}
#login-error { color: var(--red); font-size: 13px; margin-top: 14px; text-align: center; font-weight: 600; min-height: 20px; letter-spacing: 0.2px; }
#login-error:not(:empty) { animation: shakeError 0.4s cubic-bezier(0.36,0.07,0.19,0.97); }

/* ════════════════════════════════════════════
   DASHBOARD SCREEN
════════════════════════════════════════════ */
#dashboard-screen { display: none; min-height: 100vh; flex-direction: column; position: relative; z-index: 1; }
#dashboard-screen.active { display: flex; }

/* ════════════════════════════════════════════
   TABLES & BADGES
════════════════════════════════════════════ */
.table-section, .table-container, .table-responsive {
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  background: var(--card-bg); 
  border: 1px solid var(--card-border-soft);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}
table { 
  width: 100%; 
  border-collapse: separate; 
  border-spacing: 0;
  text-align: left; 
  font-size: 12.5px; 
}
th {
  background: var(--bg-2); color: var(--text-muted);
  font-weight: 700; text-transform: uppercase;
  font-size: 11px; letter-spacing: 0.6px;
  padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.07);
  white-space: nowrap;
}
td { 
  padding: 10px 10px; 
  border-bottom: 1px solid rgba(255,255,255,0.04); 
  color: var(--text-secondary); 
  transition: all var(--transition); 
  vertical-align: middle; 
  white-space: nowrap;
}
tbody tr { transition: all var(--transition); animation: rowFadeIn 0.28s ease forwards; }
tbody tr:hover { background: rgba(220,38,38,0.06); }
tbody tr:hover td { color: #ffffff; }

/* 🌟 STICKY ACTIONS COLUMN: ALWAYS VISIBLE WITHOUT HORIZONTAL SCROLL */
.table-responsive th:last-child,
.table-responsive td:last-child,
.table-section th:last-child,
.table-section td:last-child,
.table-container th:last-child,
.table-container td:last-child,
table th:last-child,
table td:last-child {
  position: sticky !important;
  right: 0 !important;
  background: #111524 !important;
  z-index: 10 !important;
  box-shadow: -8px 0 16px rgba(0, 0, 0, 0.6) !important;
}

table thead th:last-child,
.table-responsive thead th:last-child,
.table-container thead th:last-child {
  background: #181d30 !important;
  z-index: 12 !important;
}

tbody tr:hover td:last-child {
  background: #1e243b !important;
}

.table-actions-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.table-actions-cell button,
.table-actions-cell .btn-small,
.table-actions-cell .btn-danger,
.table-actions-cell .btn-success,
.table-actions button,
.table-actions .btn-icon,
td button.btn-small,
td button.btn-danger,
td button.btn-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.table-actions-cell button i,
.table-actions-cell button svg,
td button.btn-small i,
td button.btn-small svg {
  width: 13px !important;
  height: 13px !important;
}

.table-actions-cell button.btn-with-text,
.table-actions button.btn-with-text {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  gap: 6px !important;
}


.table-actions-cell button i,
.table-actions-cell button svg,
.table-actions-cell .btn-small i,
.table-actions-cell .btn-small svg,
.table-actions-cell .btn-danger i,
.table-actions-cell .btn-danger svg,
.table-actions-cell .btn-success i,
.table-actions-cell .btn-success svg,
.table-actions button i,
.table-actions button svg,
.table-actions .btn-icon i,
.table-actions .btn-icon svg,
td button.btn-danger svg,
td button.btn-danger i,
td button.btn-icon svg,
td button.btn-icon i {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  display: block !important;
  margin: auto !important;
  pointer-events: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  opacity: 1 !important;
}

.table-actions-cell .btn-danger {
  background: rgba(220, 38, 38, 0.18) !important;
  border: 1px solid rgba(220, 38, 38, 0.45) !important;
  color: #f87171 !important;
}

.table-actions-cell .btn-danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45) !important;
  transform: translateY(-1px) !important;
}

.table-actions-cell .btn-success {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  color: #34d399 !important;
}

.table-actions-cell .btn-success:hover {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px) !important;
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px; white-space: nowrap;
}
.badge-active  { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(16,185,129,0.25); }
.badge-revoked,
.badge-expired { background: var(--red-bg);    color: var(--red);    border: 1px solid rgba(220,38,38,0.25); }
.badge-trial   { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(245,158,11,0.25); }
.badge-premium { background: var(--blue-bg);   color: var(--blue-c); border: 1px solid rgba(37,99,235,0.25); }
.badge-success { background: var(--green-bg);  color: var(--green);  border: 1px solid rgba(16,185,129,0.25); }
.badge-warning { background: var(--orange-bg); color: var(--orange); border: 1px solid rgba(245,158,11,0.25); }
.badge-master  { background: rgba(220,38,38,0.18); color: #f87171;   border: 1px solid rgba(220,38,38,0.35); }
.badge-subadmin{ background: rgba(37,99,235,0.18); color: #93c5fd;   border: 1px solid rgba(37,99,235,0.35); }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 18px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
}

/* ════════════════════════════════════════════
   MODALS
════════════════════════════════════════════ */
.modal {
  display: none; position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  z-index: 10000; align-items: center; justify-content: center; 
  padding: 20px; box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal.active { display: flex; }
.modal-content {
  background: rgba(18, 21, 33, 0.98); 
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px; 
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(37, 99, 235, 0.15);
  width: 100%; max-width: 550px; 
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px 24px 24px; position: relative;
  box-sizing: border-box;
  margin: auto;
}
.modal.active .modal-content { animation: devilPopIn 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: -20px; margin-left: -24px; margin-right: -24px;
  padding: 16px 24px 14px 24px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: -20px; 
  background: rgba(18, 21, 33, 0.99); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
}
.modal-header h2 { font-size: 17.5px; font-weight: 800; color: #ffffff; letter-spacing: -0.3px; margin: 0; line-height: 1.3; }

/* ════════════════════════════════════════════
   TOASTS
════════════════════════════════════════════ */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 10001; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card-bg-2); border: 1px solid rgba(37,99,235,0.3);
  border-radius: var(--radius-sm); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  color: #ffffff; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 36px rgba(0,0,0,0.7);
  transform: translateX(120%); opacity: 0;
  transition: all 0.38s cubic-bezier(0.175,0.885,0.32,1.275);
  min-width: 280px;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.error { border-color: rgba(220,38,38,0.4); animation: shakeError 0.4s cubic-bezier(0.36,0.07,0.19,0.97); }
.toast-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(37,99,235,0.15); color: var(--blue); flex-shrink: 0; }
.toast.error .toast-icon { background: rgba(220,38,38,0.15); color: var(--primary); }

/* ════════════════════════════════════════════
   ANALYTICS & CHART CARDS
════════════════════════════════════════════ */
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 22px; }
.chart-card {
  background: var(--card-bg); border: 1px solid var(--card-border-soft);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 24px; position: relative; overflow: hidden; transition: all var(--transition);
}
.chart-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gradient-devil); opacity: 0.6; transition: opacity var(--transition); }
.chart-card:hover { border-color: rgba(37,99,235,0.3); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.chart-card:hover::before { opacity: 1; }
.chart-card h3 { font-size: 14px; font-weight: 700; color: #ffffff; margin-bottom: 20px; letter-spacing: 0.2px; }

/* ════════════════════════════════════════════
   UPDATES GRID
════════════════════════════════════════════ */
.updates-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }

/* ════════════════════════════════════════════
   TOGGLE SWITCHES
════════════════════════════════════════════ */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all var(--transition); }
.toggle-row:last-child { border-bottom: none; }
.toggle-info strong { display: block; font-size: 13.5px; color: #ffffff; font-weight: 600; }
.toggle-info span { font-size: 12px; color: var(--text-muted); margin-top: 2px; display: block; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 25px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background-color: rgba(255,255,255,0.12); transition: 0.3s cubic-bezier(0.4,0,0.2,1); border-radius: 25px; border: 1px solid rgba(255,255,255,0.1); }
.toggle-slider:before { position: absolute; content: ""; height: 19px; width: 19px; left: 2px; bottom: 2px; background-color: #ffffff; transition: 0.3s cubic-bezier(0.34,1.56,0.64,1); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.toggle-switch input:checked + .toggle-slider { background-color: var(--primary); border-color: rgba(220,38,38,0.4); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(21px); }

/* ════════════════════════════════════════════
   RESPONSIVE DESIGN (PC / TABLET / MOBILE)
════════════════════════════════════════════ */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.mobile-only { display: none; }

/* 📱 Laptop Adaptations (992px - 1199px) */
@media (max-width: 1199px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .form-row, .modal-form-grid { gap: 12px; }
  main.content, main.main-content { padding: 24px 20px 140px 20px; }
}

/* 📱 Tablet (768px - 991px) */
@media (max-width: 991px) {
  main.content, main.main-content { padding: 18px 16px 140px 16px; }
  .top-nav-bar { padding: 12px 18px; }
  .header-sub { font-size: 12.5px; }
  .table-toolbar { padding: 14px 16px; margin-bottom: 16px; }
  .filter-row { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
  .search-box { flex: 1 1 220px; min-width: 180px; }
  .filter-row .custom-dropdown-container { min-width: 130px; }
}

/* 📱 Mobile Phones (< 768px) */
@media (max-width: 768px) {
  .mobile-only { display: flex !important; }
  .top-nav-bar { padding: 10px 14px; }
  .brand-title { font-size: 15px; }
  .server-clock { display: none !important; }
  .btn-logout-top span { display: none !important; }
  
  main.content, main.main-content { 
    padding: 14px 12px 140px 12px !important; 
  }
  
  header { 
    flex-direction: column !important; 
    align-items: flex-start !important; 
    gap: 12px !important; 
    margin-bottom: 18px !important;
  }
  
  header h1 { font-size: 22px !important; }
  .header-actions { 
    width: 100% !important; 
    display: flex !important;
    justify-content: flex-start !important; 
    flex-wrap: wrap !important; 
    gap: 8px !important; 
  }
  .header-actions button, .header-actions .btn-primary, .header-actions .btn-secondary { 
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 140px !important;
    height: 42px !important;
    justify-content: center !important; 
    font-size: 13px !important;
  }
  .dash-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 16px !important;
    width: 100% !important;
    margin-bottom: 4px !important;
  }

  /* Mobile Stats Grid */
  .stats-grid { 
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px !important; 
    margin-bottom: 18px !important;
  }
  .stat-card:nth-child(5) {
    grid-column: 1 / -1 !important;
  }
  .stat-card { 
    padding: 14px 14px !important; 
    flex-direction: row !important; 
    align-items: center !important; 
    justify-content: space-between !important;
    gap: 10px !important; 
    border-radius: 14px !important;
  }
  .stat-info h3, .stat-info h4 {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }
  .stat-info p, .stat-info .value { 
    font-size: 22px !important; 
  }
  .stat-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 11px !important;
  }
  .stat-icon i, .stat-icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  /* Mobile Filters */
  .table-toolbar {
    padding: 14px !important;
    border-radius: 16px !important;
    margin-bottom: 16px !important;
  }
  .filter-row { 
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important; 
    width: 100% !important; 
  }
  .filter-row .search-box { 
    grid-column: 1 / -1 !important; 
    width: 100% !important; 
    min-width: 100% !important;
  }
  .filter-row .custom-dropdown-container,
  .filter-row .filter-dropdown-container,
  .filter-row .filter-select {
    width: 100% !important;
    min-width: 0 !important;
  }
  .filter-row .custom-dropdown-trigger {
    width: 100% !important;
    min-width: 0 !important;
  }
  .filter-row #btn-apply-filter,
  .filter-row #btn-clear-filter {
    width: 100% !important;
    justify-content: center !important;
    height: 40px !important;
  }

  /* Full-width Responsive Tables with Horizontal Scroller */
  .table-section, .table-container, .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    border-radius: 16px !important;
    margin-bottom: 24px !important;
    border: 1px solid var(--card-border-soft) !important;
  }

  table {
    min-width: 980px !important;
  }

  th, td {
    padding: 11px 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

  /* Floating iOS Mobile Dock Bar */
  .ios-dock-wrapper {
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    right: 8px !important;
    transform: none !important;
    width: calc(100% - 16px) !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
  }

  .dock-list {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 4px !important;
    padding: 6px 6px !important;
    border-radius: 20px !important;
    background: rgba(14, 16, 26, 0.94) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 20px rgba(220, 38, 38, 0.15) !important;
    scroll-behavior: smooth !important;
  }
  .dock-list::-webkit-scrollbar {
    display: none !important;
  }

  /* Dock Arrow Scroll Buttons for Mobile */
  .dock-arrow-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    border-radius: 14px !important;
    background: rgba(18, 21, 33, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #93c5fd !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    z-index: 1002 !important;
    padding: 0 !important;
  }
  .dock-arrow-btn i, .dock-arrow-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5px !important;
  }
  .dock-arrow-btn:active {
    transform: scale(0.9) !important;
    background: rgba(37, 99, 235, 0.35) !important;
    color: #ffffff !important;
  }
  .dock-arrow-btn.is-hidden {
    opacity: 0.15 !important;
    pointer-events: none !important;
    transform: scale(0.85) !important;
  }

  .dock-item {
    flex-shrink: 0 !important;
    padding: 6px 8px !important;
    border-radius: 12px !important;
  }

  .dock-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: none !important;
  }

  .dock-icon i, .dock-icon svg { width: 19px !important; height: 19px !important; }
  .dock-dot { width: 4px !important; height: 4px !important; margin-top: 2px !important; }
  .dock-tooltip { display: none !important; }
  .dock-divider { display: none !important; }
  .dock-item-logout { display: none !important; }

  /* 🍎 ALL iOS POPUPS & MODALS ON MOBILE (Native Bottom Sheet Style) */
  .modal {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background: rgba(3, 5, 11, 0.84) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    overscroll-behavior-y: contain !important;
  }

  .modal.active .modal-content {
    animation: iosSheetSlideUp 0.32s cubic-bezier(0.32, 1, 0.32, 1) forwards !important;
  }

  .modal-content { 
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(86vh, 86dvh) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    padding: 12px 18px max(75px, env(safe-area-inset-bottom) + 55px) 18px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 26px !important;
    border-top-right-radius: 26px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    box-shadow: 0 -14px 60px rgba(0, 0, 0, 0.95), 0 -2px 25px rgba(37, 99, 235, 0.2) !important;
  }

  .modal-header {
    margin-top: -12px !important;
    margin-left: -18px !important;
    margin-right: -18px !important;
    padding: 10px 18px 12px 18px !important;
    margin-bottom: 16px !important;
    position: sticky !important;
    top: -12px !important;
    background: rgba(18, 21, 33, 0.99) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    z-index: 50 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  /* iOS Grabber Handle Pill Pinned with Header */
  .modal-header::before {
    content: "" !important;
    display: block !important;
    width: 42px !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.35) !important;
    border-radius: 5px !important;
    margin: 0 auto 6px auto !important;
    flex: 1 1 100% !important;
  }

  .modal-content::before {
    display: none !important;
  }

  .modal-header h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    max-width: calc(100% - 44px) !important;
  }

  .modal-header .btn-close {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .modal-content form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 24px !important;
  }

  .form-row, .modal-form-grid { 
    grid-template-columns: 1fr !important; 
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .input-field-group, .input-group { 
    margin-bottom: 0 !important; 
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* iOS Auto-zoom prevention: inputs 16px font-size */
  input, select, textarea, .custom-input-dark, .custom-select-dark {
    font-size: 16px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .modal-content button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .duration-input-group {
    flex-direction: row !important;
    gap: 8px !important;
  }

  .duration-val {
    flex: 2 !important;
  }

  .duration-unit {
    flex: 1.2 !important;
  }
}

@keyframes iosSheetSlideUp {
  0%   { transform: translateY(100%); opacity: 0.6; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 📱 Small Phones (< 480px) */
@media (max-width: 480px) {
  .header-actions button, .header-actions .btn-primary, .header-actions .btn-secondary {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .card { padding: 16px 14px !important; }
}

/* ════════════════════════════════════════════
   VIEW SECTIONS
════════════════════════════════════════════ */
.view { display: none; }
.view.active { display: flex; }
.view-section { display: none; }
.view-section.active { display: block; animation: devilPopIn 0.3s ease; }

/* ════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════ */
.text-mono   { font-family: var(--font-mono); }
.text-muted  { color: var(--text-muted); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-blue   { color: var(--blue); }
.text-orange { color: var(--orange); }

.no-data-row td { text-align: center; color: var(--text-muted); padding: 40px; font-style: italic; font-size: 13px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(220,38,38,0.3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(220,38,38,0.55); }

::selection { background: rgba(220,38,38,0.28); color: #ffffff; }
:focus-visible { outline: 2px solid rgba(37,99,235,0.6); outline-offset: 2px; border-radius: var(--radius-xs); }

/* Modal Form Grids */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .modal-form-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════
   GENERATED KEYS OUTPUT CONTAINER
════════════════════════════════════════════ */
.keys-output-box {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
  animation: devilPopIn 0.35s ease;
}

.keys-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.keys-output-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

.keys-output-title i {
  width: 16px;
  height: 16px;
}

.btn-success {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #ffffff !important;
  transition: all var(--transition) !important;
}

.btn-success:hover {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  transform: translateY(-1px) !important;
}

.code-output-area {
  width: 100% !important;
  min-height: 110px !important;
  background: #080911 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  border-radius: var(--radius-xs) !important;
  color: #10b981 !important;
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.6 !important;
  padding: 12px 14px !important;
  resize: vertical !important;
  outline: none !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.code-output-area:focus {
  border-color: var(--green) !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

/* ════════════════════════════════════════════
   AUTOFILL OVERRIDE & INPUT ICON WRAPPERS
════════════════════════════════════════════ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0c0e16 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  border-color: rgba(37, 99, 235, 0.4) !important;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px !important;
  padding-right: 38px !important;
}

select option {
  background-color: #131522 !important;
  color: #ffffff !important;
  padding: 12px 14px !important;
  font-weight: 600 !important;
}

.input-group-with-icon {
  margin-bottom: 16px;
}

.input-group-with-icon label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.input-group-with-icon label i {
  width: 14px;
  height: 14px;
  color: var(--blue);
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 2;
}

.input-wrapper:focus-within i.field-icon {
  color: var(--blue);
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 11px 14px 11px 40px !important;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ════════════════════════════════════════════
   CLEAN MODAL FORM INPUTS
════════════════════════════════════════════ */
.input-field-group {
  margin-bottom: 16px;
}

.input-field-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.input-field-group label i {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.custom-input-dark,
.custom-select-dark {
  width: 100% !important;
  padding: 11px 15px !important;
  background: var(--bg-2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--radius-sm) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.custom-input-dark:focus,
.custom-select-dark:focus {
  outline: none !important;
  border-color: var(--blue) !important;
  background: rgba(37, 99, 235, 0.07) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* ════════════════════════════════════════════
   DURATION FIX & NUMBER SPINNERS OVERRIDE
════════════════════════════════════════════ */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none !important; 
  margin: 0 !important; 
}
input[type=number] {
  -moz-appearance: textfield !important;
}

.duration-input-group {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
  align-items: center !important;
}

.duration-val {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.duration-unit {
  width: 120px !important;
  flex-shrink: 0 !important;
}

.custom-dropdown-container.duration-unit,
.dropdown-gen-duration-unit,
.dropdown-edit-duration-unit,
.dropdown-r-gen-duration-unit {
  width: 120px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.duration-quick-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.preset-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.preset-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.22);
}

.preset-btn.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.5);
  color: #93c5fd;
}

.preset-btn.preset-lifetime {
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.preset-btn.preset-lifetime:hover {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

.preset-btn.preset-lifetime.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.lifetime-toggle-label {
  user-select: none;
  transition: opacity 0.15s ease;
}

.lifetime-toggle-label:hover {
  opacity: 0.9;
}

/* ════════════════════════════════════════════
   CUSTOM iOS FLOATING SELECT DROPDOWN POPUP
════════════════════════════════════════════ */
.custom-dropdown-container {
  position: relative;
  width: 100%;
  display: inline-block;
}

.custom-dropdown-trigger {
  width: 100%;
  padding: 11px 15px;
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.custom-dropdown-trigger:hover,
.custom-dropdown-trigger.active {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.custom-dropdown-trigger i {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s ease;
}

.custom-dropdown-trigger.active i {
  transform: rotate(180deg);
  color: var(--blue);
}

.card {
  overflow: visible !important;
}

/* Floating iOS Glass Popup Panel */
.ios-dropdown-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background: rgba(18, 21, 34, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(37, 99, 235, 0.2);
  display: none;
  flex-direction: column;
  gap: 3px;
  animation: devilPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-dropdown-popup.open {
  display: flex;
}

.ios-dropdown-option {
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ios-dropdown-option:hover {
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  transform: translateX(3px);
}

.ios-dropdown-option.selected {
  background: var(--gradient-btn);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.ios-dropdown-option .opt-check {
  width: 15px;
  height: 15px;
  color: #ffffff;
}

select[data-customized="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

select[data-customized="true"] {
  display: none !important;
}

/* Enhanced Animated Toasts */
.toast {
  position: relative;
  overflow: hidden;
  animation: devilPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--blue);
  animation: toastProgress 3s linear forwards;
}

.toast.error::after {
  background: var(--primary);
}

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ════════════════════════════════════════════
   iOS GLASS CONFIRM / ALERT MODAL DIALOG
════════════════════════════════════════════ */
.ios-confirm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.ios-confirm-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ios-confirm-box {
  width: 90%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  background: rgba(18, 21, 34, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 24px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(37, 99, 235, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.9) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-confirm-overlay.active .ios-confirm-box {
  transform: scale(1) translateY(0);
}

.ios-confirm-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
}

.ios-confirm-icon i {
  width: 26px;
  height: 26px;
}

.ios-confirm-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.ios-confirm-message {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

.ios-confirm-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.ios-btn-cancel, .ios-btn-confirm {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ios-btn-cancel {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.ios-btn-confirm:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════
   NOTIFICATIONS SYSTEM GLASSMORPHISM UI
════════════════════════════════════════════ */
#notifications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.notif-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(18, 22, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.notif-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35), 0 0 20px rgba(37, 99, 235, 0.1);
}

.notif-card.pinned {
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.14) 0%, rgba(18, 22, 36, 0.7) 100%);
}

.notif-card.urgent {
  border-left: 4px solid var(--red);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.14) 0%, rgba(18, 22, 36, 0.7) 100%);
}

.notif-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.notif-icon i, .notif-icon svg {
  width: 22px;
  height: 22px;
}

.notif-icon.info {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.notif-icon.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.notif-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.notif-icon.urgent {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-content h4 {
  margin: 0 0 6px 0;
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notif-content p {
  margin: 0 0 10px 0;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.notif-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 10px;
  padding: 7px 16px;
  background: linear-gradient(135deg, #dc2626, #2563eb);
  color: #ffffff !important;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.notif-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.notif-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.notif-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.notif-badge-tag.tag-urgent {
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.3);
}

.badge-pinned {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notif-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-actions .btn-small {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px; text-align: center; color: var(--text-muted); }
.empty-state h3 { margin-top: 16px; margin-bottom: 8px; font-size: 18px; color: #fff; }
.empty-state p { font-size: 14px; max-width: 300px; }
