/* --------------------------------------------------------------------------
   NETFLIX NFTOKEN & CODE MANAGEMENT SYSTEM - DESIGN SYSTEM
   Theme: Netflix Dark Mode, Glassmorphism, Neon Red Accents & Modern Typography
   -------------------------------------------------------------------------- */

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

:root {
  --bg-main: #060405;
  --bg-card: rgba(20, 7, 10, 0.75);
  --bg-card-hover: rgba(32, 9, 15, 0.85);
  --bg-input: rgba(10, 3, 5, 0.85);
  --border-color: rgba(229, 9, 20, 0.22);
  --border-focus: #E50914;
  
  --primary-red: #E50914;
  --primary-red-hover: #f40612;
  --primary-red-glow: rgba(229, 9, 20, 0.45);
  
  --text-main: #FFFFFF;
  --text-muted: #AAAAAA;
  --text-dim: #666666;
  
  --status-active-bg: rgba(46, 204, 113, 0.15);
  --status-active-color: #2ecc71;
  --status-disabled-bg: rgba(231, 76, 60, 0.15);
  --status-disabled-color: #e74c3c;
  --status-expired-bg: rgba(241, 196, 15, 0.15);
  --status-expired-color: #f1c40f;
  
  --font-main: 'Inter', 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  --backdrop-blur: blur(16px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(229, 9, 20, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 15% 50%, rgba(229, 9, 20, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(229, 9, 20, 0.08) 0%, transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px 24px;
}

/* Client Views Max-Width Constraints:
   - "Kích Hoạt Key" (#view-activate) and "Chuyển Đổi Cookie" (#view-convert) strictly kept at 820px
   - "Hướng Dẫn Sử Dụng" (#view-guide) has increased max-width of 980px
*/
#view-activate,
#view-convert {
  max-width: 820px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#view-guide,
#view-docs {
  max-width: 980px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.navbar-header-row {
  display: flex;
  align-items: center;
}

.mobile-only {
  display: none !important;
}

.desktop-only {
  display: inline-flex !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
}

.brand-title .txt-red {
  color: #E50914;
  text-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  background: var(--border-color);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

/* Cards & Glass Panel */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* Section Titles */
.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-red-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-red);
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--primary-red-glow);
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-danger {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
  background: #e74c3c;
  color: #fff;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-active {
  background: var(--status-active-bg);
  color: var(--status-active-color);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-disabled {
  background: var(--status-disabled-bg);
  color: var(--status-disabled-color);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-expired {
  background: var(--status-expired-bg);
  color: var(--status-expired-color);
  border: 1px solid rgba(241, 196, 15, 0.3);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Client Portal Hero Section */
.hero-client {
  text-align: center;
  max-width: 600px;
  margin: 14px auto 24px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
}

/* Code Display Box */
.code-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px dashed var(--border-color);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-top: 16px;
}

.code-text {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 3px;
}

/* Code Cards Grid in Admin */
.codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

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

.code-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.code-card-body {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.code-card-footer {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
}

/* Extension Banner Alert */
.ext-banner {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ext-banner-text {
  font-size: 14px;
  color: #ffffff;
}

/* Notification Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  background: #161b26;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--primary-red);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 420px;
  line-height: 1.5;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   KINGZEN ACTIVATION STYLE ENHANCEMENTS
   ========================================================================== */

/* Nav Tabs & Online Badge (Minimalist Underline Style - Netflix / Vercel Aesthetic) */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
}

.nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px 11px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-main);
  color: #8a99ad;
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: transparent;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.nav-tab .nav-tab-icon {
  width: 15px;
  height: 15px;
  color: #8a99ad;
  transition: color 0.22s ease, transform 0.22s ease;
  flex-shrink: 0;
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab:hover .nav-tab-icon {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-tab.active {
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.nav-tab.active .nav-tab-icon {
  color: #E50914;
}

/* Glowing Red Underline for Active Tab */
.nav-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: #E50914;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px #E50914, 0 0 4px #ff3b30;
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-tab:not(.active):hover::after {
  opacity: 0.35;
  transform: scaleX(0.5);
}

.status-online {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.status-online.is-maintenance {
  color: #ff4d4d !important;
  background: rgba(229, 9, 20, 0.15) !important;
  border-color: rgba(229, 9, 20, 0.5) !important;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.35) !important;
}

.dot-online {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-online 2s infinite;
}

.dot-online.dot-maint,
.status-online.is-maintenance .dot-online,
.dot-online[style*="#E50914"],
.dot-online[style*="rgb(229, 9, 20)"] {
  background: #E50914 !important;
  box-shadow: 0 0 8px #E50914 !important;
  animation: pulse-maint-dot 2s infinite !important;
}

@keyframes pulse-maint-dot {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 0 4px #E50914;
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 10px #E50914;
  }
  100% {
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 0 4px #E50914;
  }
}

@keyframes pulse-online {
  0% {
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 0 4px #10B981;
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    box-shadow: 0 0 10px #10B981;
  }
  100% {
    opacity: 0.6;
    transform: scale(0.95);
    box-shadow: 0 0 4px #10B981;
  }
}

/* Hero Section */
.hero-client {
  text-align: center;
  margin: 12px auto 24px;
}

.hero-tag {
  font-family: var(--font-mono);
  color: #E50914;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero-sub {
  color: #8a99ad;
  font-size: 14px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Gateway Card (Kingzen Style Card - Dark Translucent Red Glass) */
.gateway-card {
  background: rgba(18, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 9, 20, 0.22);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(229, 9, 20, 0.12);
}

.gateway-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #E50914, #ff3b30, transparent);
  box-shadow: 0 0 15px #E50914;
}

/* Account Info Grid - Shared Component */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .account-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .account-info-grid {
    grid-template-columns: 1fr;
  }
}

.info-item {
  background: rgba(14, 5, 7, 0.65);
  border: 1px solid rgba(229, 9, 20, 0.18);
  padding: 11px 15px;
  border-radius: 8px;
}

.info-label {
  font-size: 10.5px;
  color: #8a99ad;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
  font-family: var(--font-mono);
}

.info-val {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

/* ===================================================
   PREMIUM MASTER ACCOUNT CARD (EXECUTIVE REDESIGN)
   =================================================== */
.master-account-card {
  background: linear-gradient(180deg, rgba(26, 11, 15, 0.88) 0%, rgba(15, 6, 9, 0.96) 100%);
  border: 1px solid rgba(229, 9, 20, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(229, 9, 20, 0.08);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 24px;
}

.master-account-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #E50914, #ff3b30, transparent);
  box-shadow: 0 0 12px #E50914;
}

.master-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.master-acc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #ff3b30;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.master-acc-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill-active {
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.status-pill-hold {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.status-pill-expired {
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.status-pill-canceling {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Hero Identity Banner */
.master-acc-hero {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.master-acc-hero:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(229, 9, 20, 0.3);
}

.hero-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #E50914;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E50914;
  flex-shrink: 0;
}

.hero-info {
  flex: 1;
  min-width: 0;
}

.hero-label {
  font-size: 10px;
  font-weight: 700;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  margin-bottom: 3px;
}

.hero-email {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
}

.hero-badge-plan svg {
  color: #E50914;
  fill: #E50914;
}

.hero-badge-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 3px 10px;
  border-radius: 6px;
}

.hero-badge-country svg {
  stroke: #E50914;
}

/* Payment Hold Warning Banner */
.master-acc-hold-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.08);
  transition: all 0.2s ease;
}

.master-acc-hold-banner:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
}

.hold-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.hold-banner-text {
  flex: 1;
  min-width: 0;
}

.hold-banner-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.hold-banner-desc {
  font-size: 12px;
  color: #fde68a;
  line-height: 1.45;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Specification 2x2 Grid */
.master-acc-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.spec-card {
  background: rgba(12, 5, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
}

.spec-card:hover {
  background: rgba(22, 9, 14, 0.85);
  border-color: rgba(229, 9, 20, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.spec-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #E50914;
  background: transparent;
  color: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon-status,
.spec-icon-payment,
.spec-icon-billing,
.spec-icon-member {
  background: transparent;
  color: #E50914;
  border: 1.5px solid #E50914;
}

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

.spec-label {
  font-size: 10px;
  font-weight: 700;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.spec-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-value-status {
  color: #10B981;
}

.spec-value-mono {
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  font-weight: 600;
}

.spec-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* Profiles & Connection Footer Card */
.master-acc-profiles {
  background: rgba(12, 5, 8, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.25s ease;
}

.master-acc-profiles:hover {
  border-color: rgba(229, 9, 20, 0.35);
  background: rgba(22, 9, 14, 0.85);
}

.profiles-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.profiles-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #E50914;
  background: transparent;
  color: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profiles-info {
  flex: 1;
  min-width: 0;
}

.profiles-title {
  font-size: 10px;
  font-weight: 700;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: var(--font-mono);
  margin-bottom: 2px;
}

.profiles-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.35);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.device-badge svg {
  stroke: #E50914;
}

/* Master Pool Interactive Item States */
.pool-email-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.pool-email-line > .hero-email { min-width: 0; overflow-wrap: anywhere; }
.pool-email-toggle {
  width: 24px;
  height: 24px;
  padding: 3px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
  color: #94a3b8;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
}
.pool-email-toggle:hover, .pool-email-toggle[aria-pressed="true"] {
  color: #38bdf8;
  border-color: rgba(56,189,248,0.45);
  background: rgba(56,189,248,0.12);
}
.pool-email-toggle:focus-visible, .pool-email-mask-all:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.pool-email-mask-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: none; letter-spacing: normal; }
.pool-email-mask-all[aria-pressed="true"] { color: #38bdf8; border-color: rgba(56,189,248,0.45); background: rgba(56,189,248,0.12); }

.master-pool-item {
  cursor: pointer;
  user-select: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.master-pool-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.master-pool-item.selected {
  transform: translateY(-2px);
}

.master-pool-item:active {
  transform: scale(0.995);
}

@keyframes accountCardPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(229, 9, 20, 0); }
  35% { transform: scale(1.012); box-shadow: 0 0 30px rgba(229, 9, 20, 0.45); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(229, 9, 20, 0); }
}

.account-card-pulse {
  animation: accountCardPulse 0.5s ease-out;
}

/* Service renewals — match the existing CapCut/debt utility design, scoped to this view. */
.renewal-overview { margin-bottom: 22px; }
.renewal-section-title { margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.5px; }
.renewal-section-title svg { color: #e50914; flex-shrink: 0; }
.renewal-section-subtitle { margin: 4px 0 0; color: #94a3b8; font-size: 11.5px; line-height: 1.6; }
.cc-summary-grid.renewal-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.renewal-kpi-card .stat-mini-val { font-size: 26px; line-height: 1.4; }
.renewal-total-value { color: #38bdf8; }
.renewal-soon-value { color: #fbbf24; }
.renewal-overdue-value { color: #f87171; }
.renewal-paid-value { color: #34d399; }
.renewal-month-control { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.renewal-month-control label { font-size: 11.5px; color: #94a3b8; }
.renewal-month-control .form-input { height: 36px; width: 170px; padding: 0 10px; font-size: 12px; font-family: var(--font-mono); color-scheme: dark; }
.renewal-kpi-card .renewal-finance-value { font-size: clamp(17px, 1.7vw, 24px); overflow-wrap: anywhere; }
.renewal-money-line { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.renewal-money-line small { font-size: 11px; font-weight: 600; color: #94a3b8; }
.renewal-month-hint { margin: 14px 0 0; color: #94a3b8; font-size: 11px; line-height: 1.6; }
.renewal-kpi-note { margin-top: 4px; color: #94a3b8; font-size: 11px; font-family: var(--font-mono); }
.renewal-toolbar .renewal-toolbar-button { height: 36px; padding: 0 14px; gap: 6px; font-size: 12px; font-weight: 700; border-radius: 6px; white-space: nowrap; }
.renewal-toolbar svg, .renewal-actions svg { flex-shrink: 0; }
.renewal-toolbar-button:focus-visible, .renewal-action:focus-visible, .renewal-close:focus-visible, .renewal-table-wrap:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.renewal-table { min-width: 1030px; table-layout: auto; }
.renewal-table th { text-align: left; }
.renewal-table td { color: #cbd5e1; overflow-wrap: anywhere; max-width: 230px; }
.renewal-table .renewal-date-cell { text-align: center; white-space: nowrap; }
.renewal-table .renewal-money-cell { text-align: right; white-space: nowrap; }
.renewal-table .renewal-actions-cell { text-align: right; min-width: 250px; }
.renewal-service-cell { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.renewal-service-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid currentColor; flex-shrink: 0; }
.renewal-icon-sky { color: #38bdf8; background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.3); }
.renewal-icon-red { color: #f87171; background: rgba(229,9,20,0.12); border-color: rgba(229,9,20,0.3); }
.renewal-icon-purple { color: #c084fc; background: rgba(168,85,247,0.1); border-color: rgba(168,85,247,0.3); }
.renewal-icon-neutral { color: #94a3b8; background: rgba(148,163,184,0.08); border-color: rgba(148,163,184,0.2); }
.renewal-service-name { color: #f1f5f9; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.renewal-account { font-family: var(--font-mono); font-size: 11.5px; color: #94a3b8; }
.renewal-date-value { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: #f1f5f9; }
.renewal-money { color: #34d399; font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.renewal-currency { margin-left: 5px; color: #64748b; font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.renewal-payment { display: flex; align-items: center; gap: 6px; color: #cbd5e1; font-size: 12px; }
.renewal-payment-icon { display: inline-flex; flex-shrink: 0; color: #64748b; }
.renewal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.renewal-actions .renewal-action { height: 30px; padding: 0 9px; gap: 4px; border: 1px solid; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.renewal-actions .renewal-action-renew { color: #34d399; background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); }
.renewal-actions .renewal-action-edit { color: #7dd3fc; background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.3); }
.renewal-actions .renewal-action-delete { color: #f87171; background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.renewal-actions .renewal-action:hover { filter: brightness(1.2); border-color: currentColor; }
.renewal-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; padding: 3px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; border: 1px solid; line-height: 1.3; }
.renewal-active { color: #34d399; background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.3); }
.renewal-soon { color: #fbbf24; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); }
.renewal-overdue, .renewal-today { color: #f87171; background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.3); }
.renewal-empty { text-align: center; padding: 44px 20px; border: 1px dashed rgba(255,255,255,0.1); border-radius: 12px; background: rgba(14,16,24,0.35); }
.renewal-empty-icon { display: inline-flex; color: #e50914; margin-bottom: 10px; }
.renewal-empty-title { color: #f1f5f9; font-size: 15px; font-weight: 700; }
.renewal-empty p { color: #94a3b8; font-size: 12px; max-width: 420px; margin: 6px auto 0; line-height: 1.6; }
.renewal-error { color: #f87171; font-size: 12px; line-height: 1.6; margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(239,68,68,0.3); border-radius: 7px; background: rgba(239,68,68,0.08); }
.renewal-error:empty { display: none; }
.renewal-modal { position: fixed; inset: 0; z-index: 99999; padding: 18px; align-items: center; justify-content: center; background: rgba(0,0,0,0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.renewal-dialog { width: 100%; max-width: 530px; max-height: 90vh; overflow-y: auto; padding: 22px; border-radius: 14px; border: 1px solid rgba(229,9,20,0.35); background: rgba(17,13,18,0.98); box-shadow: 0 20px 50px rgba(0,0,0,0.9), 0 0 30px rgba(229,9,20,0.15); animation: fadeInTab 0.2s ease-out; }
.renewal-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(229,9,20,0.15); }
.renewal-dialog-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.renewal-dialog-heading h3 { margin: 0; color: #fff; font-size: 15px; font-weight: 800; line-height: 1.5; }
.renewal-dialog-icon { width: 32px; height: 32px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #e50914; background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.25); border-radius: 8px; }
.renewal-dialog-header .renewal-close { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,0.08); border-radius: 7px; background: rgba(255,255,255,0.05); color: #94a3b8; font-size: 20px; line-height: 1; flex-shrink: 0; }
.renewal-hint { margin: 14px 0 18px; color: #94a3b8; font-size: 12px; line-height: 1.6; }
.renewal-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.renewal-full { grid-column: 1 / -1; }
.renewal-form-grid label { display: block; font-size: 11.5px; color: #94a3b8; font-weight: 600; margin-bottom: 6px; }
.renewal-form-grid .form-input, .renewal-form-grid .form-select { width: 100%; box-sizing: border-box; height: 40px; padding: 0 12px; font-size: 12.5px; }
.renewal-form-grid input[type="number"], .renewal-form-grid input[type="date"], .renewal-form-grid select { font-family: var(--font-mono); }
.renewal-form-grid input[type="date"] { color-scheme: dark; color: #38bdf8; }
.renewal-dialog-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 16px; margin-top: 18px; }
.renewal-dialog-footer .btn { height: 36px; padding: 0 16px; border-radius: 6px; font-size: 12px; font-weight: 700; }
@media (max-width: 767px) {
  .cc-summary-grid.renewal-kpi-grid { grid-template-columns: 1fr; gap: 10px; }
  .renewal-kpi-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 16px; }
  .renewal-kpi-card .stat-mini-label { align-self: end; margin: 0; }
  .renewal-kpi-card .stat-mini-val { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 24px; }
  .renewal-kpi-card .renewal-kpi-note { grid-column: 1; font-size: 10px; }
  .renewal-toolbar { flex-wrap: wrap; }
  .renewal-finance-card { display: block; }
  .renewal-finance-card .renewal-finance-value { font-size: 22px; margin-top: 6px; }
}
@media (max-width: 480px) {
  .renewal-form-grid { grid-template-columns: 1fr; }
  .renewal-dialog { padding: 18px; }
}

/* Cookie Health Badges & Buttons */
.pool-cookie-modal {
  position: fixed; inset: 0; z-index: 99999; background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(12px); align-items: center; justify-content: center; padding: 18px;
}
.pool-cookie-dialog {
  width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; padding: 22px;
  background: #160e12; border: 1px solid rgba(56, 189, 248, 0.4); border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
.pool-cookie-dialog-header, .pool-cookie-dialog-actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.pool-cookie-dialog-header h2 { font-size: 17px; color: #38bdf8; }
.pool-cookie-dialog-actions { justify-content: flex-end; margin-top: 16px; }
.pool-cookie-note { font-size: 12px; color: #94a3b8; line-height: 1.6; margin: 12px 0; overflow-wrap: anywhere; }
.pool-cookie-dialog textarea { width: 100%; min-height: 180px; resize: vertical; font-family: var(--font-mono); font-size: 12px; }
.pool-cookie-message { font-size: 13px; line-height: 1.5; color: #38bdf8; overflow-wrap: anywhere; }
.status-unknown {
  display: inline-flex; align-items: center; gap: 6px; color: #94a3b8;
  background: rgba(148, 163, 184, 0.12); border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; font-family: var(--font-mono);
}
.dot-unknown { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #94a3b8; }

.badge-cookie-live {
  font-size: 10px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.badge-cookie-hold {
  font-size: 10px;
  font-weight: 800;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  animation: pulseHold 1.8s infinite;
}

.badge-cookie-expired {
  font-size: 10px;
  font-weight: 800;
  color: #f87171;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  animation: pulseDie 2s infinite;
}

.badge-cookie-die {
  font-size: 10px;
  font-weight: 800;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.45);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  animation: pulseDie 1.8s infinite;
}

.badge-cookie-unknown {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
}

@keyframes pulseHold {
  0% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.45); }
  100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseDie {
  0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
  100% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes spinIcon {
  100% { transform: rotate(360deg); }
}

.spin-fast {
  animation: spinIcon 0.8s linear infinite;
}

.btn-check-cookie {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.btn-check-cookie:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .master-acc-specs {
    grid-template-columns: 1fr;
  }
  .master-acc-profiles {
    flex-direction: column;
    align-items: flex-start;
  }
  .device-badge {
    align-self: flex-start;
  }
}

/* Wizard Steps Indicator */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #4a5568;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.step-item.active {
  color: #fff;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 3, 5, 0.85);
  border: 1px solid rgba(229, 9, 20, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-weight: 800;
  font-size: 12px;
  transition: all 0.3s;
}

.step-item.active .step-num {
  background: #E50914;
  border-color: #E50914;
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.step-line {
  height: 1px;
  width: 30px;
  background: rgba(229, 9, 20, 0.2);
}

/* Custom Kingzen Input */
.input-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #8a99ad;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.custom-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(10, 3, 5, 0.85);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  transition: all 0.2s;
}

.custom-input:focus {
  border-color: #E50914;
  outline: none;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25);
}

.custom-input::placeholder {
  color: #5a3940;
  font-size: 14px;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: none;
}

.input-hint {
  font-size: 12px;
  color: #556275;
  margin-top: 8px;
  text-align: center;
}

.raw-cookie-textarea {
  height: 140px;
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

/* Kingzen Primary Button */
.btn-kingzen-primary {
  width: 100%;
  padding: 16px;
  margin-top: 18px;
  background: linear-gradient(135deg, #E50914 0%, #b20710 100%);
  color: #fff;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-kingzen-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
  filter: brightness(1.1);
}

/* ==========================================================================
   TRANSPARENT ICONS & BALANCED LAYOUT SYSTEM
   ========================================================================== */

/* Force all icons to be monochrome & transparent background */
.nav-icon, .link-row-icon, .icon-transparent, .btn-icon {
  background: transparent !important;
  border-radius: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit !important;
  flex-shrink: 0;
  box-shadow: none !important;
}

.icon-transparent svg, .nav-icon svg, .btn-icon svg, svg.icon-transparent {
  stroke: currentColor !important;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-main);
  position: relative;
}

/* Sidebar Component - Dark Translucent Red Layout */
.admin-sidebar {
  width: 260px;
  background: rgba(12, 4, 6, 0.96);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(229, 9, 20, 0.2);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.3);
  border-radius: 4px;
}

.sidebar-header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(229, 9, 20, 0.15);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.sidebar-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #E50914;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.sidebar-nav-group {
  margin-bottom: 22px;
  flex-shrink: 0;
}

.sidebar-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #5d6a7e;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 10px;
  margin-bottom: 8px;
}

.sidebar-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.sidebar-nav-btn:hover {
  color: #f8fafc;
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.15);
}

.sidebar-nav-btn.active {
  background: rgba(229, 9, 20, 0.18);
  color: #ffffff;
  font-weight: 700;
  border-left: 3px solid #E50914;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.25);
}

.sidebar-nav-btn .nav-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  background: transparent !important;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(229, 9, 20, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.sidebar-system-card {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08), rgba(18, 7, 10, 0.85));
  border: 1px solid rgba(229, 9, 20, 0.22);
  border-radius: 10px;
  padding: 11px 13px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: all 0.25s ease;
}

.sidebar-system-card:hover {
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.15);
}

.system-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-shield-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.system-card-info {
  flex: 1;
  min-width: 0;
}

.system-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-card-status {
  font-size: 10.5px;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.system-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: none;
  animation: none;
}

.system-card-specs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.spec-pill {
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sidebar-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.sidebar-sys-info {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.sidebar-build-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #E50914;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.25);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

/* Main Content Area */
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 260px;
  width: calc(100% - 260px);
}

.admin-topbar {
  height: 60px;
  padding: 0 28px;
  background: rgba(14, 5, 7, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 9, 20, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.admin-content-container {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px;
  flex: 1;
  box-sizing: border-box;
}

/* Responsive Grid for Form Inputs */
.create-key-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 850px) {
  .create-key-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .create-key-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Sidebar Toggle Button & Overlay */
.sidebar-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.sidebar-toggle-btn:hover,
.sidebar-toggle-btn:focus-visible {
  color: #E50914;
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.4);
  outline: none;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 991px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .admin-main {
    margin-left: 0;
    width: 100%;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .admin-sidebar.open {
    transform: translateX(280px);
  }

  .sidebar-toggle-btn {
    display: flex;
  }

  .topbar-left {
    min-width: 0;
  }

  .topbar-title {
    min-width: 0;
  }

  .topbar-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-content-container {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   STATS OVERVIEW CARDS & MODERN ADMIN DATA TABLE
   ========================================================================== */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .stats-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-overview-grid {
    grid-template-columns: 1fr;
  }
}

.stat-mini-card {
  background: rgba(18, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 9, 20, 0.06);
  transition: transform 0.2s, border-color 0.2s;
}

.stat-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.4);
}

.stat-mini-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #8a99ad;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.stat-mini-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

/* Admin Data Table - Dark Translucent Red Theme */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 750px;
  background: rgba(16, 6, 8, 0.55);
  border: 1px solid rgba(229, 9, 20, 0.18);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th {
  padding: 14px;
  font-weight: 700;
  color: #a3aab8;
  background: rgba(26, 8, 11, 0.75);
  border-bottom: 1px solid rgba(229, 9, 20, 0.22);
  font-size: 11px;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(229, 9, 20, 0.1);
  vertical-align: middle;
}

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

.admin-table tbody tr:hover {
  background: rgba(229, 9, 20, 0.08);
}

.code-cell-text {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-sm:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-icon-sm.btn-danger-sm:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Smooth Table Touch Scrolling */
div[style*="overflow-x: auto"] {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 9, 20, 0.3) rgba(10, 3, 5, 0.5);
}

div[style*="overflow-x: auto"]::-webkit-scrollbar {
  height: 6px;
}
div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
  background: rgba(10, 3, 5, 0.5);
  border-radius: 4px;
}
div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
  background: rgba(229, 9, 20, 0.4);
  border-radius: 4px;
}

/* Global Mobile Overflow & Zoom Prevention */
html, body {
  max-width: 100%;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Enforce 16px minimum font size on all form inputs on mobile/tablet to prevent iOS Safari & Android Chrome auto-zoom */
@media screen and (max-width: 768px) {
  input,
  input[type="text"],
  input[type="password"],
  input[type="number"],
  input[type="email"],
  input[type="search"],
  input[type="url"],
  textarea,
  select,
  .custom-input,
  .form-input,
  .form-textarea,
  .form-select,
  .admin-input,
  .admin-select,
  .admin-login-cinema-input,
  .link-card-box,
  .settings-field-input,
  .settings-field-textarea,
  .raw-cookie-textarea,
  #prefixInput,
  #quantityInput,
  #assignedCookieSelect,
  #searchCodeInput,
  #filterPoolSelect,
  #filterStatusSelect,
  #masterCookieInput,
  #rawCookieInput,
  #modalAssignSelect {
    font-size: 16px !important;
    touch-action: manipulation !important;
  }
}

/* Tablet Breakpoint (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 16px 12px;
  }
  
  .navbar-inner {
    padding: 12px 16px;
  }

  .brand-title {
    font-size: 17px;
  }

  .glass-card, .gateway-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  .account-info-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .link-card-title {
    font-size: 12px;
  }

  /* Cookie Convert textarea responsive mobile/tablet height */
  .raw-cookie-textarea,
  textarea.custom-input,
  #rawCookieInput {
    height: 190px !important;
    min-height: 180px !important;
    max-height: 380px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    resize: vertical;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    padding: 12px 14px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}

/* Mobile Breakpoint (<= 600px) */
@media (max-width: 600px) {
  .admin-topbar {
    padding: 0 12px;
    gap: 8px;
  }

  .topbar-title {
    font-size: 13px;
  }

  .navbar-inner {
    padding: 12px 16px 6px !important;
    gap: 8px;
    width: 100%;
    overflow: visible;
  }

  .brand {
    gap: 6px;
  }

  .brand-title {
    font-size: 15px !important;
    letter-spacing: 0.5px !important;
  }

  .nav-links {
    gap: 6px !important;
  }

  .nav-tabs {
    padding: 4px 0 2px !important;
    gap: 4px !important;
  }

  .nav-tab {
    padding: 7px 8px 9px !important;
    font-size: 12px !important;
  }

  .status-online {
    font-size: 10px !important;
    padding: 4px 8px !important;
    letter-spacing: 0px !important;
  }

  /* Hero Section Mobile Fix */
  .hero-client {
    margin: 20px auto 18px !important;
    padding: 0 8px;
  }

  .hero-tag {
    font-size: 9.5px !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 6px !important;
  }

  .hero-title {
    font-size: 22px !important;
    margin-bottom: 6px !important;
    letter-spacing: 0 !important;
  }

  .hero-sub {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    padding: 0 4px;
  }

  /* Gateway Card & Wizard Steps Mobile Fix */
  .gateway-card {
    padding: 20px 14px !important;
    border-radius: 14px !important;
  }

  .wizard-steps {
    gap: 4px !important;
    margin-bottom: 20px !important;
    width: 100%;
    justify-content: space-between !important;
  }

  .step-item {
    gap: 4px !important;
    font-size: 9.5px !important;
    letter-spacing: 0px !important;
    white-space: nowrap;
  }

  .step-num {
    width: 22px !important;
    height: 22px !important;
    font-size: 10.5px !important;
    flex-shrink: 0;
  }

  .step-line {
    width: 16px !important;
    min-width: 8px;
    flex-shrink: 1;
  }

  /* Form & Input Mobile Fix */
  .input-label {
    font-size: 10.5px !important;
    letter-spacing: 1px !important;
  }

  .custom-input {
    padding: 12px 14px !important;
    font-size: 16px !important; /* 16px prevents iOS Safari / Android auto-zooming on focus */
    border-radius: 8px !important;
  }

  input.custom-input,
  .custom-input:not(textarea) {
    height: 48px;
  }

  /* Keep Cookie textarea properly sized & scrollable on small mobile screens */
  .raw-cookie-textarea,
  textarea.custom-input,
  #rawCookieInput {
    height: 190px !important;
    min-height: 180px !important;
    max-height: 380px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    resize: vertical;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    padding: 12px 14px !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .custom-input::placeholder {
    font-size: 12px !important;
  }

  .btn-kingzen-primary {
    padding: 14px !important;
    font-size: 13.5px !important;
    border-radius: 8px !important;
  }

  .account-info-grid {
    grid-template-columns: 1fr !important;
  }

  /* Form grids collapse to 1 column */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Responsive Search and Filter Bar in Admin */
  div[style*="display: flex; gap: 10px; flex-wrap: wrap"] {
    width: 100%;
  }

  #searchCodeInput {
    width: 100% !important;
  }

  #filterStatusSelect {
    width: 100% !important;
  }

  #btnBulkDelete {
    width: 100% !important;
    justify-content: center;
  }

  /* Button Stacking for mobile action cards */
  .link-card div[style*="display: flex; gap: 10px"] {
    flex-direction: column;
  }
  .link-card div[style*="display: flex; gap: 10px"] button,
  .link-card div[style*="display: flex; gap: 10px"] a {
    width: 100% !important;
    justify-content: center;
  }

  .link-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .link-card-actions .btn-toggle-qr {
    margin-left: auto !important;
    width: auto !important;
  }

  .link-qr-close-btn,
  .btn-qr-action {
    width: auto !important;
  }
}

/* Extra Small Screens (<= 375px e.g. iPhone SE / Mini) */
@media (max-width: 375px) {
  .status-online {
    display: none !important; /* Hide ONLINE badge on tiny screens to preserve navbar layout */
  }

  .brand-title {
    font-size: 13px !important;
  }

  .step-item {
    font-size: 8.5px !important;
  }
}

/* ==========================================================================
   ENHANCED USER GUIDE - MODERN SEGMENTED TABS & SLEEK CARDS
   ========================================================================== */
.guide-subnav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 6, 9, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.guide-subnav::-webkit-scrollbar {
  display: none;
}

.guide-subnav-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  color: #94a3b8;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.guide-subnav-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.guide-subnav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.guide-subnav-btn:hover svg {
  transform: translateY(-1px);
  color: #ff3b47;
}

.guide-subnav-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-weight: 700;
}

.guide-subnav-btn.active svg {
  color: #ffffff;
}

/* Guide Section Headers */
.guide-sec-header {
  margin-bottom: 22px;
}

.guide-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ff3b47;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.25);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.guide-sec-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b47;
  box-shadow: 0 0 8px #ff3b47;
}

.guide-sec-badge.blue {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.guide-sec-badge.blue .badge-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.guide-sec-badge.amber {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
}

.guide-sec-badge.amber .badge-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.guide-sec-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
  letter-spacing: -0.2px;
}

.guide-sec-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.55;
}

/* Guide Steps Grid (3 Columns & 2 Columns) */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.guide-steps-grid.pipeline-2col {
  grid-template-columns: repeat(2, 1fr);
}

.guide-step-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-step-card:hover {
  border-color: rgba(229, 9, 20, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.step-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.step-num-circle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #ff3b47;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-tag-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.step-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
}

.step-card-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 14px;
  flex: 1;
}

.step-card-footer {
  margin-top: auto;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.step-chip.highlight {
  color: #ff4d58;
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.22);
}

/* Guide Divider */
.guide-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 18px;
}

.guide-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.guide-divider-text {
  font-size: 11.5px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Target Devices Grid (3 Columns) */
.guide-devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.guide-device-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-device-card:hover {
  background: rgba(255, 255, 255, 0.035);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.guide-device-card.mobile:hover {
  border-color: rgba(229, 9, 20, 0.35);
}

.guide-device-card.web:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.guide-device-card.tv:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.device-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.device-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.device-icon-box.red {
  background: rgba(229, 9, 20, 0.12);
  color: #ff3b47;
  border: 1px solid rgba(229, 9, 20, 0.25);
}

.device-icon-box.blue {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.device-icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.guide-device-card.mobile:hover .device-icon-box.red {
  background: rgba(229, 9, 20, 0.2);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.35);
  transform: scale(1.05);
}

.guide-device-card.web:hover .device-icon-box.blue {
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
  transform: scale(1.05);
}

.guide-device-card.tv:hover .device-icon-box.amber {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transform: scale(1.05);
}

.device-platform-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #8a99ad;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
}

.device-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.device-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.device-bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.device-bullet-check {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1.5px;
  transition: all 0.2s ease;
}

.guide-device-card.mobile .device-bullet-check {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.25);
  color: #ff3b47;
}

.guide-device-card.web .device-bullet-check {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.guide-device-card.tv .device-bullet-check {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.guide-device-card.mobile:hover .device-bullet-check {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.45);
}

.guide-device-card.web:hover .device-bullet-check {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
}

.guide-device-card.tv:hover .device-bullet-check {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
}

/* Notice & Warning Banners */
.guide-banner-notice {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-banner-notice.warning {
  background: rgba(229, 9, 20, 0.08);
  border-color: rgba(229, 9, 20, 0.35);
}

.guide-banner-notice.security {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.28);
}

.guide-banner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.guide-banner-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.guide-banner-notice.security .guide-banner-icon {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.guide-banner-notice.warning .guide-banner-icon {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #ff3b47;
}

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

.guide-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.2px;
  line-height: 1.35;
  margin: 0 0 3px 0;
}

.guide-banner-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
  padding-left: 0;
}

@media (max-width: 640px) {
  .guide-banner-notice {
    padding: 14px 15px;
    gap: 12px;
  }
  .guide-banner-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
}

/* Action Buttons (Tab 2) */
.btn-guide-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff !important;
  background: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: 7px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
  cursor: pointer;
  transition: all 0.22s ease;
  margin-top: 12px;
}

.btn-guide-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.45);
}

.btn-guide-action.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  color: #cbd5e1 !important;
}

.btn-guide-action.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

/* Smart Accordion (Tab 3) */
.guide-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-acc-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.guide-acc-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.guide-acc-item.open {
  border-color: rgba(229, 9, 20, 0.4);
  background: rgba(22, 10, 14, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.guide-acc-header {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.guide-acc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.guide-acc-qtag {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ff3b47;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
}

.guide-acc-q {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.guide-acc-chevron {
  width: 18px;
  height: 18px;
  color: #8a99ad;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.guide-acc-item.open .guide-acc-chevron {
  transform: rotate(180deg);
  color: #ff3b47;
}

.guide-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 18px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
}

.guide-acc-item.open .guide-acc-body {
  padding: 0 18px 16px 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }
  .guide-devices-grid {
    grid-template-columns: 1fr;
  }
  .guide-subnav {
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px;
  }
  .guide-subnav-btn {
    padding: 9px 12px;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .guide-acc-header {
    padding: 14px 16px;
  }
  .guide-acc-body {
    padding: 0 16px;
  }
  .guide-acc-item.open .guide-acc-body {
    padding: 0 16px 14px 16px;
  }
}

/* ==========================================================================
   RESPONSIVE MOBILE HEADER NAVIGATION
   ========================================================================== */
@media (max-width: 768px) {
  .mobile-only {
    display: inline-flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 6px;
    gap: 10px;
  }
  .navbar-header-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .brand-title {
    font-size: 17.5px;
  }
  .nav-tabs {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-tabs::-webkit-scrollbar {
    display: none;
  }
  .nav-tab {
    flex: 1;
    justify-content: center;
    padding: 9px 8px 11px;
    font-size: 13px;
    gap: 6px;
  }
  .nav-tab .nav-tab-icon {
    width: 14px;
    height: 14px;
  }
  .nav-tab::after {
    left: 6px;
    right: 6px;
    bottom: 0;
  }
  .container {
    padding: 16px 12px;
  }
}

@media (max-width: 390px) {
  .brand-title {
    font-size: 15.5px;
  }
  .status-online {
    padding: 4px 9px;
    font-size: 10.5px;
  }
  .nav-tab {
    font-size: 11.5px;
    gap: 4px;
    padding: 7px 2px 9px;
  }
  .nav-tab .nav-tab-icon {
    width: 13px;
    height: 13px;
  }
}

/* ==========================================================================
   ADMIN DASHBOARD (TỔNG QUAN HỆ THỐNG)
   ========================================================================== */
/* ==========================================================================
   DASHBOARD SECTION (SLIM ALERT, REFINED KPIS, MODERN ACTION BAR)
   ========================================================================== */

/* 1. Slim Alert Ribbon */
.dash-alert-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.14) 0%, rgba(26, 12, 16, 0.8) 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.1);
  transition: all 0.25s ease;
}

.dash-alert-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-grow: 1;
}

.dash-alert-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ef4444;
}

.dash-alert-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-alert-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-alert-tag {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.dash-alert-tag-hold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.dash-alert-tag-die {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.dash-alert-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.dash-alert-text {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-alert-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.9);
  border: 1px solid #ef4444;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-main);
}

.dash-alert-action-btn:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* 2. KPI Metrics Grid */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.dash-kpi-card {
  background: rgba(18, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 18px 16px;
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
}

.dash-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(229, 9, 20, 0.08);
}

.dash-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--kpi-accent, #E50914), transparent);
  opacity: 0.85;
}

.dash-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.dash-kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--kpi-icon-bg, rgba(229, 9, 20, 0.1));
  border: 1px solid var(--kpi-icon-border, rgba(229, 9, 20, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kpi-accent, #E50914);
}

.dash-kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 10px;
}

.dash-kpi-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 24px;
}

.dash-kpi-subtext {
  font-size: 11px;
  color: #718096;
  font-family: var(--font-mono);
}

/* Unified Status Chips */
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1;
}

.dash-chip-live {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.dash-chip-hold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.dash-chip-die {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.dash-chip-expired {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.dash-chip-canceling {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.dash-chip-cooldown {
  background: rgba(243, 156, 18, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(243, 156, 18, 0.28);
}

.dash-chip-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.28);
}

.dash-chip-neutral {
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* Micro LED status dots */
.dash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dash-dot.live {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.dash-dot.hold {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.dash-dot.die {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.dash-dot.expired {
  background: #f87171;
  box-shadow: 0 0 6px #f87171;
}

.dash-dot.canceling {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.status-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.status-canceling {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.status-hold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.status-expired {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
}

.status-die {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--font-mono);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.25);
}

.dot-active {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-active 2s infinite;
}

.dot-canceling {
  width: 6px;
  height: 6px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse-active 2s infinite;
}

.dot-hold {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 8px #f59e0b;
  animation: pulse-active 1.8s infinite;
}

.dot-expired {
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-active 1.8s infinite;
}

.dot-die {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  box-shadow: 0 0 8px #dc2626;
  animation: pulse-active 1.8s infinite;
}

.dash-dot.cooldown {
  background: #f59e0b;
}

/* 3. Pool Distribution Progress Bar */
.dash-pool-bar-container {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  margin: 16px 0 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dash-pool-bar-segment {
  height: 100%;
  transition: width 0.4s ease;
  position: relative;
}

.dash-pool-bar-segment:hover {
  filter: brightness(1.2);
}

/* 4. Modern Quick Action Toolbar */
.dash-action-bar {
  background: rgba(14, 7, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-action-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
}

.dash-action-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  font-family: var(--font-main);
  background: none;
}

.dash-action-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.dash-action-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.dash-action-btn-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-action-btn-sub {
  font-size: 10.5px;
  font-family: var(--font-mono);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-action-arrow {
  font-size: 13px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s;
}

/* Primary Action Button (Netflix Red) */
.dash-action-primary {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.88), rgba(185, 28, 28, 0.88));
  border-color: rgba(229, 9, 20, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.2);
}

.dash-action-primary .dash-action-btn-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.dash-action-primary .dash-action-btn-sub {
  color: rgba(255, 255, 255, 0.8);
}

.dash-action-primary .dash-action-arrow {
  color: rgba(255, 255, 255, 0.85);
}

.dash-action-primary:hover {
  background: linear-gradient(135deg, #e50914, #b91c1c);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
  border-color: #ff3344;
}

.dash-action-primary:hover .dash-action-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

/* Secondary Action Buttons (Glass Dark) */
.dash-action-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
}

.dash-action-secondary .dash-action-btn-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-action-secondary .dash-action-btn-sub {
  color: #718096;
}

.dash-action-secondary .dash-action-arrow {
  color: #4a5568;
}

.dash-action-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1.5px);
  color: #ffffff;
}

.dash-action-secondary:hover .dash-action-btn-sub {
  color: #a0aec0;
}

.dash-action-secondary:hover .dash-action-arrow {
  transform: translateX(3px);
  color: #cbd5e1;
}

/* 5. Responsive */
@media (max-width: 1200px) {
  .dash-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-action-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .dash-action-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dash-alert-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-alert-action-btn {
    width: 100%;
    justify-content: center;
  }
  .dash-alert-text {
    white-space: normal;
  }
  .dash-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NETFLIX CINEMA MINIMALIST - FULL-SCREEN ADMIN LOGIN PORTAL
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background-color: #060508;
  background-image: 
    radial-gradient(ellipse 80% 60% at 50% 28%, rgba(229, 9, 20, 0.22) 0%, rgba(229, 9, 20, 0.05) 45%, transparent 75%),
    radial-gradient(circle at 50% 100%, rgba(20, 10, 15, 0.9) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Floating Top Navigation Bar */
.admin-login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 0;
  position: relative;
  z-index: 10;
}

.admin-login-top-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.admin-login-top-logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.admin-login-top-logo .txt-red {
  color: #E50914;
  text-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.admin-login-top-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-login-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 12px;
  border-radius: 20px;
}

.admin-login-status-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-active 1.8s infinite;
}

.admin-login-exit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #8a99ad;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.admin-login-exit-link:hover {
  color: #ffffff;
  border-color: rgba(229, 9, 20, 0.35);
  background: rgba(229, 9, 20, 0.08);
}

/* Center Form Container & Glass Card */
.admin-login-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 30px 16px;
  position: relative;
  z-index: 5;
  margin: auto;
}

.admin-login-cinema-card {
  width: 100%;
  max-width: 440px;
  background: rgba(16, 12, 16, 0.72);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(229, 9, 20, 0.22);
  border-radius: 24px;
  padding: 44px 38px;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(229, 9, 20, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cinemaCardFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-login-cinema-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #E50914, transparent);
  box-shadow: 0 0 15px #E50914;
}

@keyframes cinemaCardFadeUp {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.admin-login-shield-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E50914;
  margin: 0 auto 20px;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.22);
}

.admin-login-category-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #E50914;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.admin-login-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.admin-login-card-desc {
  font-size: 13px;
  color: #8a99ad;
  line-height: 1.5;
  margin-bottom: 28px;
}

.admin-login-cinema-form {
  text-align: left;
}

.admin-login-field-box {
  margin-bottom: 22px;
}

.admin-login-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #8a99ad;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.admin-login-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-login-cinema-input {
  width: 100%;
  height: 50px;
  background: rgba(8, 4, 7, 0.85);
  border: 1px solid rgba(229, 9, 20, 0.22);
  border-radius: 12px;
  padding: 0 48px 0 16px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 2px;
  transition: all 0.25s ease;
  outline: none;
}

.admin-login-cinema-input:focus {
  border-color: #E50914;
  background: rgba(14, 7, 11, 0.95);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25), 0 0 25px rgba(229, 9, 20, 0.2);
}

.admin-login-cinema-input::placeholder {
  color: #555e6d;
  letter-spacing: 0;
  font-size: 13.5px;
}

.admin-login-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.admin-login-pw-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-login-notice-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11.5px;
  color: #718096;
}

.admin-login-error-msg {
  display: none;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff5252;
  font-size: 12.5px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.45;
}

.admin-login-cinema-btn {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #E50914 0%, #b20710 100%);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
  transition: all 0.25s ease;
}

.admin-login-cinema-btn:hover {
  background: linear-gradient(135deg, #f40612 0%, #cc0813 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.6);
}

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

.admin-login-cinema-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.admin-login-card-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #5d6b7e;
}

/* Page Bottom Footer */
.admin-login-page-footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5d6b7e;
  padding: 12px 0 4px;
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Shake animation on wrong password */
.shake-animation {
  animation: adminLoginShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes adminLoginShake {
  10%, 90% { transform: translate3d(-3px, 0, 0); }
  20%, 80% { transform: translate3d(5px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 0, 0); }
  40%, 60% { transform: translate3d(7px, 0, 0); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .admin-login-overlay {
    padding: 16px;
  }
  .admin-login-cinema-card {
    padding: 32px 24px;
    border-radius: 20px;
  }
  .admin-login-card-title {
    font-size: 22px;
  }
  .admin-login-topbar {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   CLIENT GATEWAY LIVE STATS BAR (ENTERPRISE TRUST METRICS)
   ========================================================================== */
.gateway-live-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
  width: 100%;
}

.live-stat-card {
  background: rgba(18, 8, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 14px rgba(229, 9, 20, 0.08);
}

.live-stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.live-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.live-stat-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-stat-icon.red {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: #E50914;
}

.live-stat-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.live-stat-icon.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
}

.live-stat-icon.green {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-active 2s infinite;
}

.live-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
  line-height: 1.1;
  margin-bottom: 4px;
}

.live-stat-val.text-emerald {
  color: #34d399;
  letter-spacing: 0.5px;
}

.live-stat-sub {
  font-size: 10.5px;
  color: #718096;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 768px) {
  .gateway-live-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  .live-stat-card {
    padding: 10px 12px;
  }
  .live-stat-val {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .gateway-live-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .live-stat-sub {
    display: none;
  }
}

/* ==========================================================================
   2-TAB SWITCHER ON KÍCH HOẠT ACCESS KEY (Kích Hoạt vs Kiểm Tra)
   ========================================================================== */

.key-mode-switcher-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 5;
}

.key-mode-switcher {
  display: inline-flex;
  background: rgba(14, 4, 7, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 3px;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.key-mode-btn {
  padding: 6px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-sizing: border-box;
}

.key-mode-btn svg {
  width: 13px;
  height: 13px;
  color: inherit;
  transition: transform 0.2s ease;
}

.key-mode-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.key-mode-btn.active {
  background: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  color: #fff;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.key-mode-btn.active svg {
  transform: scale(1.08);
}

@media (max-width: 480px) {
  .key-mode-switcher {
    width: 100%;
  }
  .key-mode-btn {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   CHECK KEY STATUS (Diagnostics Result Panel)
   ========================================================================== */

.check-form-card {
  background: rgba(18, 6, 8, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 9, 20, 0.22);
  border-radius: 16px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(229, 9, 20, 0.08);
}

.check-input-group {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .check-input-group {
    flex-direction: column;
  }
}

.check-input-wrapper {
  flex: 1;
  position: relative;
}

.check-input-wrapper input {
  width: 100%;
  height: 52px;
  background: rgba(10, 3, 5, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 16px 0 46px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.check-input-wrapper input:focus {
  outline: none;
  border-color: #E50914;
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.25), 0 0 15px rgba(229, 9, 20, 0.2);
  background: rgba(15, 4, 7, 0.95);
}

.check-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
  pointer-events: none;
}

.btn-check-submit {
  height: 52px;
  padding: 0 26px;
  background: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  white-space: nowrap;
}

.btn-check-submit:hover {
  background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.55);
}

.btn-check-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Result Diagnostic Card */
.check-result-box {
  display: none;
  animation: fadeInDown 0.35s ease-out;
}

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

.check-result-card {
  background: rgba(16, 5, 8, 0.92);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

/* Top Hero Status Banner */
.check-status-hero {
  padding: 10px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.check-status-hero.status-ready {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.08);
}

.check-status-hero.status-cooldown {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.08);
}

.check-status-hero.status-expired {
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.18) 0%, rgba(75, 85, 99, 0.1) 100%);
  border-color: rgba(107, 114, 128, 0.35);
}

.check-status-hero.status-disabled {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(185, 28, 28, 0.1) 100%);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.12);
}

.check-status-hero.status-max {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.16) 0%, rgba(194, 65, 12, 0.08) 100%);
  border-color: rgba(249, 115, 22, 0.35);
}

.check-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-status-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-status-icon-wrap svg {
  width: 16px;
  height: 16px;
}

.status-ready .check-status-icon-wrap {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.status-cooldown .check-status-icon-wrap {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.status-expired .check-status-icon-wrap {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
}

.status-disabled .check-status-icon-wrap {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.status-max .check-status-icon-wrap {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
}

.check-status-title-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 1px;
}

.check-status-title-main {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.status-ready .check-status-title-main { color: #34d399; }
.status-cooldown .check-status-title-main { color: #fbbf24; }
.status-expired .check-status-title-main { color: #d1d5db; }
.status-disabled .check-status-title-main { color: #f87171; }
.status-max .check-status-title-main { color: #fb923c; }

.check-status-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  text-align: right;
  max-width: 320px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .check-status-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .check-status-desc {
    text-align: left;
    max-width: 100%;
  }
}

/* 7 Metas Grid (1 Header Full-Width KEY + 6 Balanced Attributes) */
.check-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .check-meta-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .check-meta-item.full-width {
    grid-column: span 1;
    padding: 10px 12px;
  }
}

@media (max-width: 440px) {
  .check-meta-item.full-width {
    flex-wrap: wrap;
    gap: 8px;
  }
  .check-meta-item.full-width .check-meta-val {
    width: 100%;
    justify-content: space-between;
  }
}

.check-meta-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s ease;
}

.check-meta-item.full-width {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(229, 9, 20, 0.22);
}

.check-meta-item.full-width:hover {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(229, 9, 20, 0.4);
}

.check-meta-item.full-width .check-meta-header {
  font-size: 10.5px;
  color: #cbd5e1;
}

.check-meta-item.full-width .check-meta-val {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.check-meta-item.full-width .check-key-code-val {
  font-size: 14.5px;
  letter-spacing: 1.2px;
}

.check-meta-item.full-width .btn-copy-check-key {
  padding: 3px 8px;
  font-size: 10.5px;
}

.check-meta-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(229, 9, 20, 0.25);
}

.check-meta-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.check-meta-header svg {
  color: #E50914;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.check-meta-val {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 22px;
}

.check-key-code-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}

.btn-copy-check-key {
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: #cbd5e1;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.btn-copy-check-key svg {
  width: 10px;
  height: 10px;
}

.btn-copy-check-key:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
}

/* Netflix status pill */
.netflix-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.netflix-health-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.18);
}

.netflix-health-pill.inactive {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.18);
}

.netflix-health-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.netflix-health-pill.active .netflix-health-dot {
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
  animation: pulse-active 2s infinite;
}

.netflix-health-pill.inactive .netflix-health-dot {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

/* Actions Footer */
.check-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.btn-activate-now {
  flex: 1;
  min-height: 42px;
  height: 42px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 3px 12px rgba(229, 9, 20, 0.35);
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-activate-now svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-activate-now:hover {
  background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.5);
}

.btn-activate-now:active {
  transform: translateY(0);
}

.btn-check-another {
  min-height: 42px;
  height: 42px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.btn-check-another svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-check-another:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
  .check-actions-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .check-actions-bar button,
  .btn-activate-now,
  .btn-check-another {
    width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
  }

  .btn-activate-now {
    height: 46px !important;
    min-height: 46px !important;
    padding: 12px 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1.2 !important;
  }

  .btn-activate-now svg {
    width: 16px !important;
    height: 16px !important;
  }

  .btn-check-another {
    height: 42px !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ==========================================================================
   ADMIN MAINTENANCE MODE CARD & SWITCH
   ========================================================================== */
.dash-maintenance-card {
  background: rgba(18, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.dash-maint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-maint-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.dash-maint-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.dash-maint-icon-wrap.maint-active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  animation: pulse-maint 2s infinite ease-in-out;
}

@keyframes pulse-maint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.dash-maint-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a99ad;
}

.dash-maint-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-maint-off {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.badge-maint-on {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.dash-maint-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-main);
  letter-spacing: 0.3px;
}

.dash-maint-desc {
  margin: 0;
  font-size: 12px;
  color: #8a99ad;
  line-height: 1.4;
}

.dash-maint-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-maint-toggle-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-maint-toggle-label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  font-family: var(--font-main);
}

/* Switch iOS Toggle */
.switch-ios {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.slider-ios {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.16);
  transition: 0.3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-ios:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .slider-ios {
  background-color: #E50914;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

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

.btn-maint-config {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-maint-config:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Config Drawer Panel */
.dash-maint-config-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeInDown 0.25s ease;
}

.dash-maint-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .dash-maint-form-grid {
    grid-template-columns: 1fr;
  }
}

.dash-maint-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-save-maint {
  height: 36px;
  padding: 0 18px;
  background: linear-gradient(135deg, #E50914 0%, #b80710 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.35);
}

.btn-save-maint:hover {
  background: linear-gradient(135deg, #ff1a25 0%, #d40813 100%);
  transform: translateY(-1px);
}

.btn-preview-maint {
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-preview-maint:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================================================
   SETTINGS PAGE COMPACT & CLEAN LAYOUT (BẢO TRÌ & ĐỔI MẬT KHẨU)
   ========================================================================== */
.settings-page-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-maint-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  .settings-maint-grid-top {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.settings-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-field-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.settings-field-input {
  height: 40px !important;
  font-size: 13px !important;
}

.settings-field-textarea {
  font-size: 13px !important;
  line-height: 1.5 !important;
  min-height: 56px !important;
  resize: vertical !important;
  padding: 10px 14px !important;
}

.settings-pwd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .settings-pwd-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .settings-pwd-grid button {
    width: 100%;
  }
}


/* ==========================================================================
   CLIENT PORTAL MAINTENANCE OVERLAY SCREEN
   ========================================================================== */
.client-maintenance-screen {
  display: none;
  position: relative;
  max-width: 680px;
  margin: 40px auto 60px auto;
  padding: 38px 30px;
  background: rgba(16, 5, 8, 0.94);
  backdrop-filter: blur(28px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.4s ease-out;
  box-sizing: border-box;
}

.client-maintenance-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #f59e0b, #E50914, #f59e0b, transparent);
  box-shadow: none;
  border-radius: 20px 20px 0 0;
}

.maint-screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: none;
}

.maint-screen-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px auto;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  animation: none;
}

.maint-screen-title {
  font-size: 23px;
  font-weight: 900;
  color: #fff;
  font-family: var(--font-sans);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.maint-screen-msg {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 20px auto;
}

.maint-screen-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 12.5px;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.maint-screen-box b {
  color: #fbbf24;
}

.maint-screen-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-maint-support {
  height: 42px;
  padding: 0 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-maint-support:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-1px);
}

.btn-maint-reload {
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-maint-reload:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   CLIENT TOP MAINTENANCE BANNER & BUTTON LOCK STYLES
   ========================================================================== */

.client-maint-top-banner {
  display: flex;
  width: 100%;
  max-width: 980px;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(26, 8, 10, 0.75) 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
  box-shadow: none;
  padding: 14px 20px;
  border-radius: 12px;
  margin: 0 auto 16px auto;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: none;
  text-align: left;
}

.client-maint-top-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.12);
  border: 1.5px solid rgba(229, 9, 20, 0.45);
  color: #ff3838;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
}

.client-maint-top-icon svg {
  filter: none;
}

.client-maint-top-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.client-maint-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.client-maint-top-badge {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 10px;
  border-radius: 6px;
  background: #E50914;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.6px;
  flex-shrink: 0;
  box-shadow: none;
}

.client-maint-top-text {
  font-weight: 600;
  color: #f8fafc;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}

.client-maint-top-time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #ff7878;
  background: rgba(229, 9, 20, 0.15);
  padding: 2.5px 9px;
  border-radius: 5px;
  border: 1px solid rgba(229, 9, 20, 0.35);
  font-weight: 600;
  box-shadow: none;
}

/* Button Disabled State in Maintenance Mode - Keep exact appearance, block hover transform & click */
.btn-kingzen-primary.btn-maintenance-disabled {
  cursor: not-allowed !important;
}

.btn-kingzen-primary.btn-maintenance-disabled:hover,
.btn-kingzen-primary.btn-maintenance-disabled:active {
  cursor: not-allowed !important;
  transform: none !important;
  filter: none !important;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4) !important;
}

/* ==========================================================================
   DIAGNOSTIC 3-SECOND LOADING BOX (CHECK KEY MODE)
   ========================================================================== */

.check-loading-box {
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(18, 7, 10, 0.85);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  animation: fadeIn 0.3s ease-out;
  box-sizing: border-box;
}

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

.check-loading-spinner-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #E50914;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-loading-title-wrap {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.check-loading-title {
  font-size: 11px;
  font-weight: 800;
  color: #E50914;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.check-loading-step {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.check-loading-countdown {
  display: none !important;
}

.check-loading-bar-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
  position: relative;
}

.check-loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E50914 0%, #ff4d4d 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.6);
  transition: width 0.05s linear;
}

.animate-spin {
  animation: spinIcon 0.8s linear infinite;
}

@media (max-width: 640px) {
  .check-loading-box {
    padding: 14px 16px;
  }
  .check-loading-step {
    font-size: 12px;
  }
}

/* ==========================================================================
   DYNAMIC ISLAND PILL LOADING (STYLE 8 - APPLE STYLE)
   ========================================================================== */
.island-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  margin-top: 18px;
  background: rgba(22, 10, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 9, 20, 0.22);
  animation: popIsland 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
  width: 100%;
}

@keyframes popIsland {
  0% {
    transform: scale(0.88);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.island-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.island-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #E50914;
  box-shadow: 0 0 10px #E50914;
  animation: pulse-online 1.5s infinite;
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.island-dot.dot-success {
  background: #10B981 !important;
  box-shadow: 0 0 10px #10B981 !important;
}

.island-text {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.island-pill-badge {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10.5px;
  font-weight: 800;
  color: #ff7878;
  background: rgba(229, 9, 20, 0.2);
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid rgba(229, 9, 20, 0.35);
  flex-shrink: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.island-pill-badge.badge-success {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

@media (max-width: 640px) {
  .island-box {
    padding: 10px 14px;
    border-radius: 22px;
  }
  .island-text {
    font-size: 12px;
  }
  .island-pill-badge {
    font-size: 9.5px;
    padding: 2.5px 8px;
  }
}

/* ==========================================================================
   QR Code Display & Lightbox Modal Styles
   ========================================================================== */
.link-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.btn-toggle-qr {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-toggle-qr:hover {
  background: rgba(229, 9, 20, 0.14);
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-toggle-qr.active {
  background: rgba(229, 9, 20, 0.25) !important;
  border-color: rgba(229, 9, 20, 0.65) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.35);
}

.link-qr-wrapper {
  display: none;
  margin-top: 14px;
  background: rgba(10, 4, 7, 0.85);
  border: 1px dashed rgba(229, 9, 20, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  animation: fadeInQr 0.25s ease;
}

.link-qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.link-qr-header-title {
  font-size: 11px;
  font-weight: 700;
  color: #8a99ad;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-qr-close-btn {
  background: transparent;
  border: none;
  color: #8a99ad;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.link-qr-close-btn:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #ff4a55;
}

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

.link-qr-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.link-qr-canvas-box {
  width: 135px;
  height: 135px;
  min-width: 135px;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(229, 9, 20, 0.18);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.link-qr-canvas-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.45);
}

.link-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.link-qr-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 5, 8, 0.78);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.link-qr-canvas-box:hover .link-qr-overlay {
  opacity: 1;
}

.link-qr-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.38);
  color: #ff5460;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}

.qr-pulse-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-active 2s infinite;
}

.link-qr-desc {
  font-size: 12.5px;
  color: #c4cdd8;
  line-height: 1.55;
  margin: 0;
}

.link-qr-desc strong {
  color: #ffffff;
}

.link-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.btn-qr-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d1d7e0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  touch-action: manipulation;
}

.btn-qr-action:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffffff;
}

/* Lightbox Modal for QR Fullscreen */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInQr 0.2s ease;
}

.qr-modal-dialog {
  background: #12070a;
  border: 1px solid rgba(229, 9, 20, 0.45);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 9, 20, 0.3);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  text-align: center;
}

.qr-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-modal-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
}

.qr-modal-close {
  background: transparent;
  border: none;
  color: #8a99ad;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  transition: color 0.15s ease;
  touch-action: manipulation;
}

.qr-modal-close:hover {
  color: #ff3344;
}

.qr-modal-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.qr-modal-img-wrap {
  width: 250px;
  height: 250px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-modal-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-modal-caption {
  font-size: 13px;
  color: #a5b1c2;
  line-height: 1.55;
  max-width: 360px;
}

.qr-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .link-qr-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .link-qr-canvas-box {
    width: 155px;
    height: 155px;
  }
  .link-qr-badge {
    margin: 0 auto;
  }
  .link-qr-actions {
    justify-content: center;
  }
  .qr-modal-img-wrap {
    width: 215px;
    height: 215px;
  }
}


/* ==========================================================================
   Language Switcher Dropdown (Tiếng Việt, Tiếng Anh, Tiếng Trung)
   ========================================================================== */
.navbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.navbar-mobile-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 7px 14px 7px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  font-family: inherit;
  line-height: 1.2;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.lang-globe-icon {
  flex-shrink: 0;
  color: #ffffff;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.lang-btn:hover .lang-globe-icon {
  opacity: 1;
}

.lang-current {
  font-weight: 500;
  letter-spacing: 0.15px;
  font-family: inherit;
  font-size: 13px;
  white-space: nowrap;
}

.lang-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #cbd5e1;
}

.lang-btn[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
  color: #ffffff;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 135px;
  background: rgba(18, 18, 18, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.25);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  animation: fadeInLang 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-menu.show {
  display: flex;
}

@keyframes fadeInLang {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.lang-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.lang-item.active {
  background: rgba(229, 9, 20, 0.88);
  color: #ffffff;
  font-weight: 600;
}

.lang-item-text {
  flex: 1;
}

.lang-item-check {
  font-size: 12px;
  color: #ffffff;
  display: none;
}

.lang-item.active .lang-item-check {
  display: inline-block;
}

@media (max-width: 480px) {
  .lang-btn {
    padding: 5px 9px 5px 7px;
    font-size: 12px;
    gap: 6px;
  }
  .lang-current {
    font-size: 12px;
  }
}

/* ==========================================================================
   CAPCUT REVENUE MANAGEMENT & UTILITIES DESIGN SYSTEM
   Dark Cyber Glassmorphism Theme (Consistent with Kingzen / NanLux)
   ========================================================================== */

.utility-subnav-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(14, 5, 8, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 22px;
}

.utility-subnav-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.utility-subnav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.utility-subnav-item:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.3);
  color: #fff;
}

.utility-subnav-item.active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.25) 0%, rgba(184, 7, 16, 0.2) 100%);
  border-color: #e50914;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.25);
}

.utility-subnav-item .badge-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(229, 9, 20, 0.3);
  color: #ff858d;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

/* Monthly Summary Grid (4 Columns) */
.cc-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 992px) {
  .cc-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cc-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* CapCut Layout & Responsive Utilities */
.cc-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 20px;
  margin-bottom: 22px;
}

@media (max-width: 992px) {
  .cc-sections-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.cc-calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .cc-calc-inputs-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cc-calc-inputs-grid .btn {
    width: 100%;
    justify-content: center;
  }
}

.cc-breakdown-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 640px) {
  .cc-breakdown-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.cc-save-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 640px) {
  .cc-save-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cc-save-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.cc-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(229, 9, 20, 0.15);
  padding-bottom: 14px;
}

.cc-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.cc-search-wrap {
  position: relative;
  width: 220px;
}

.cc-search-wrap input {
  height: 36px;
  font-size: 12.5px;
  width: 100%;
  padding-left: 32px;
}

/* Custom Cyber Glassmorphism Month Filter */
.cc-month-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.cc-month-picker-wrapper {
  position: relative;
  display: inline-block;
}

.cc-month-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.cc-month-picker-btn:hover {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.cc-month-picker-wrapper.open .cc-month-picker-btn {
  border-color: #e50914;
  background: rgba(229, 9, 20, 0.18);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.35);
}

.cc-month-picker-label {
  letter-spacing: 0.3px;
}

.cc-month-picker-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.cc-month-picker-wrapper.open .cc-month-picker-chevron {
  transform: rotate(180deg);
  color: #e50914;
}

.cc-month-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 252px;
  background: #14141c;
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 16px rgba(229, 9, 20, 0.18);
  z-index: 1100;
  backdrop-filter: blur(20px);
  animation: ccFadeDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cc-month-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-month-popover-year {
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.cc-month-popover-nav {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 5px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-month-popover-nav:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: #e50914;
  color: #fff;
}

.cc-month-popover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.cc-month-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 7px 0;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-mono, monospace);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.cc-month-cell:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cc-month-cell.is-selected {
  background: linear-gradient(135deg, #e50914 0%, #b20710 100%) !important;
  border-color: #e50914 !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.cc-month-cell.is-current::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
}

.cc-month-popover-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-month-popover-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.cc-month-popover-action:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.3);
  color: #fff;
}

.cc-month-nav-btn {
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
}

.cc-btn-this-month,
.cc-btn-all-months {
  height: 34px !important;
  padding: 0 12px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
}

.cc-btn-this-month.active,
.cc-btn-all-months.active {
  background: rgba(229, 9, 20, 0.2) !important;
  border-color: #e50914 !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.25) !important;
}

@media (max-width: 640px) {
  .cc-month-popover {
    left: 0;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 768px) {
  .cc-section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cc-header-controls {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  .cc-search-wrap {
    flex: 1;
    min-width: 140px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .utility-subnav-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .utility-subnav-bar > div:last-child {
    margin-left: 0 !important;
  }
  .utility-subnav-item {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* Dedicated Clear CapCut History Table */
.cc-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(229, 9, 20, 0.18);
  border-radius: 12px;
  background: rgba(16, 6, 8, 0.6);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.cc-history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  margin: 0;
}

.cc-history-table th {
  padding: 13px 16px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(26, 8, 11, 0.9);
  border-bottom: 1px solid rgba(229, 9, 20, 0.25);
  font-size: 11px;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.cc-history-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.4;
}

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

.cc-history-table tbody tr:hover {
  background: rgba(229, 9, 20, 0.08);
}

.cc-history-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Banners */
.cc-status-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  animation: fadeInTab 0.2s ease-out;
}

.cc-status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.cc-status-info {
  flex: 1 1 auto;
  min-width: 0;
}

.cc-status-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.cc-status-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.45;
}

.cc-status-badge {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.cc-status-exact {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.cc-status-exact .cc-status-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.cc-status-exact .cc-status-title {
  color: #10b981;
}

.cc-status-exact .cc-status-badge {
  background: #10b981;
  color: #042f1a;
}

.cc-status-diff {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}

.cc-status-diff .cc-status-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.cc-status-diff .cc-status-title {
  color: #f59e0b;
}

.cc-status-diff .cc-status-badge {
  background: #f59e0b;
  color: #381e02;
}

@media (max-width: 640px) {
  .cc-status-banner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
  }
  .cc-status-badge {
    margin-left: 46px;
  }
}

/* Breakdown Grid */
.cc-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-breakdown-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-breakdown-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: #f1f5f9;
}

.cc-breakdown-table tr:last-child td {
  border-bottom: none;
}

.cc-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cc-stepper-btn:hover {
  background: rgba(229, 9, 20, 0.4);
  border-color: #e50914;
}

/* Solutions Navigator */
.cc-solutions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.cc-pkg-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cc-solution-card {
  background: rgba(18, 7, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cc-solution-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(229, 9, 20, 0.08);
}

.cc-solution-card.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

/* CapCut Modals */
.cc-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.cc-modal-dialog {
  width: 100%;
  max-width: 560px;
  background: rgba(18, 7, 10, 0.96);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 9, 20, 0.2);
  padding: 22px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInTab 0.2s ease-out;
}

@media (max-width: 600px) {
  .cc-modal {
    padding: 12px;
  }
  .cc-modal-dialog {
    padding: 16px 14px;
    border-radius: 12px;
    max-height: 94vh;
  }
}

.cc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.cc-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cc-toast-success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.cc-toast-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.cc-toast-warning {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.cc-toast-info {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: 1px solid rgba(96, 165, 250, 0.4);
}



/* ==========================================================================
   TIỆN ÍCH: SỔ GHI NỢ (FRIEND DEBT TRACKER) STYLES
   Đồng bộ hoàn toàn với phong cách Dark Cyber Glassmorphism đỏ neon của CapCut
   ========================================================================== */

/* Summary KPI Grid */
.debt-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 992px) {
  .debt-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .debt-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.debt-kpi-card {
  background: rgba(18, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(229, 9, 20, 0.06);
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.debt-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(229, 9, 20, 0.12);
}

.debt-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.debt-kpi-icon-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

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

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

.debt-kpi-icon-blue {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.debt-kpi-info {
  flex: 1;
  min-width: 0;
}

.debt-kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #8a99ad;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.debt-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.debt-kpi-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Debtor Table Styles (Đồng bộ cùng phong cách CapCut Table) */
.debt-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(229, 9, 20, 0.18);
  border-radius: 12px;
  background: rgba(16, 6, 8, 0.6);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.debt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  margin: 0;
}

.debt-table th {
  padding: 13px 16px;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(26, 8, 11, 0.9);
  border-bottom: 1px solid rgba(229, 9, 20, 0.25);
  font-size: 11px;
  letter-spacing: 0.8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  white-space: nowrap;
}

.debt-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  font-size: 13px;
}

.debt-row {
  transition: background-color 0.15s ease;
}

.debt-row:hover {
  background: rgba(229, 9, 20, 0.08);
}

.debt-row:last-child td {
  border-bottom: none;
}

.debt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.debt-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.debt-nickname-badge {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.debt-sub-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
}

.debt-note-text {
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
}

.debt-amount-active {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: -0.3px;
}

.debt-amount-settled {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
}

.debt-badge-active {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  margin-top: 2px;
}

.debt-badge-settled {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-top: 2px;
}

/* 2 BUTTON THẦN THÁNH: MƯỢN / TRẢ */
.debt-quick-actions {
  display: inline-flex;
  gap: 6px;
}

.btn-debt-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 7px;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.btn-debt-borrow {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(185, 28, 28, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.btn-debt-borrow:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.28) 100%);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-debt-repay {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(4, 120, 87, 0.15) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.btn-debt-repay:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(4, 120, 87, 0.28) 100%);
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.debt-utility-actions {
  display: inline-flex;
  gap: 5px;
}

.btn-debt-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-debt-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-debt-action svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.btn-debt-icon svg {
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.btn-debt-icon:hover svg {
  transform: scale(1.1);
}

.btn-debt-icon-reminder:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border-color: #38bdf8;
}

.btn-debt-icon-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border-color: #ef4444;
}

/* Quick Transaction Tabs (Cho Mượn Thêm / Bạn Trả Nợ) */
.debt-tx-tabs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.debt-tx-tab-btn {
  font-family: var(--font-main) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  border: 1px solid transparent;
  outline: none;
  box-sizing: border-box;
  text-decoration: none;
}

.debt-tx-tab-btn span {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
}

.debt-tx-tab-btn svg {
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.debt-tx-tab-borrow-active {
  background: rgba(239, 68, 68, 0.18) !important;
  border: 2px solid #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

.debt-tx-tab-repay-active {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 2px solid #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}

.debt-tx-tab-inactive {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

.debt-tx-tab-inactive:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #f1f5f9 !important;
}

/* Quick Amount Chips */
.debt-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.debt-chip {
  padding: 5px 11px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono);
}

.debt-chip:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
}

.debt-chip-highlight {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
}

.debt-chip-highlight:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #10b981 !important;
  color: #fff !important;
}

/* Live Calc Preview Box */
.debt-preview-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  margin-top: 10px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}

/* Modals */
.debt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 16px;
}

.debt-modal-dialog {
  width: 100%;
  max-width: 520px;
  background: rgba(17, 13, 18, 0.97);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(229, 9, 20, 0.15);
  padding: 22px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInTab 0.2s ease-out;
}

/* Timeline in Audit Modal */
.debt-timeline-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.debt-timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.debt-timeline-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin-top: 2px;
}

.debt-timeline-marker svg {
  stroke: currentColor;
  flex-shrink: 0;
}

.debt-timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 10px 14px;
}

.debt-tx-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.debt-tx-del-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.debt-tx-del-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.debt-tx-note {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 5px 8px;
  border-radius: 5px;
}

.debt-tx-balance-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

/* Template Button */
.debt-tpl-btn {
  padding: 6px 12px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.debt-tpl-btn.active {
  background: rgba(229, 9, 20, 0.25);
  border-color: #e50914;
  color: #fff;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}

/* Empty State */
.debt-empty-state {
  text-align: center;
  padding: 44px 20px;
  background: rgba(14, 16, 24, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.debt-empty-icon {
  font-size: 34px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.debt-empty-icon svg {
  stroke: currentColor;
}

.debt-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.debt-empty-desc {
  font-size: 12px;
  color: #94a3b8;
  max-width: 420px;
  margin: 0 auto;
}

/* Status Filter Buttons */
.debt-filter-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.debt-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.debt-filter-btn.active {
  background: rgba(229, 9, 20, 0.25);
  border-color: #e50914;
  color: #fff;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.25);
}

/* ==========================================================================
   API DOCS CLIENT VIEW COMPONENTS (#view-docs)
   ========================================================================== */
.docs-endpoint-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 3, 5, 0.9);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 14px 0 16px;
}

.docs-endpoint-path {
  color: #fff;
  font-weight: 600;
  flex: 1;
  word-break: break-all;
}

.method-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
}

.method-post {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13px;
}

.docs-table th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  vertical-align: top;
}

.docs-table tr:hover td {
  background: rgba(229, 9, 20, 0.03);
}

.param-name {
  font-family: var(--font-mono);
  color: #f1f5f9;
  font-weight: 600;
}

.param-type {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e50914;
}

.param-req {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.code-block {
  background: #0b0709;
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 8px;
  margin: 14px 0;
  position: relative;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-lang-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.code-copy-btn:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
}

pre.docs-code-content {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: #f8fafc;
}

.docs-code-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 4, 6, 0.9);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-radius: 8px 8px 0 0;
  padding: 6px 8px;
  overflow-x: auto;
}

.docs-code-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.docs-code-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.docs-code-tab-btn.active {
  background: rgba(229, 9, 20, 0.2);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
}

.docs-tabs-body .code-block {
  border-radius: 0 0 8px 8px;
  border-top: none;
  margin-top: 0;
}

.docs-sandbox-box {
  background: rgba(15, 6, 9, 0.95);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 12px;
  padding: 20px;
  box-shadow: inset 0 0 30px rgba(229, 9, 20, 0.08);
}

.docs-sandbox-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.docs-sandbox-input {
  width: 100%;
  background: rgba(6, 2, 4, 0.9);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-sandbox-input:focus {
  border-color: #e50914;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.4);
}

.status-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 11px;
}

.status-200 { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-4xx { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); }

@media (max-width: 768px) {
  .docs-sandbox-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CHECK CHATGPT PLUS DESIGN SYSTEM
   Dark Cyber Glassmorphism & High-Performance Account Manager UI
   ========================================================================== */

.cg-header-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  color: #E50914;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cg-header-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 7px;
  color: #ffffff;
}

.cg-header-desc {
  color: #8a99ad;
  font-size: 14px;
  max-width: 860px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.cg-grid-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 1200px) {
  .cg-grid-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .cg-grid-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cg-stat-card {
  background: rgba(20, 14, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.cg-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 9, 20, 0.4);
  box-shadow: 0 18px 40px -5px rgba(229, 9, 20, 0.2);
}

.cg-stat-card.active {
  border-color: #E50914 !important;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.35) !important;
  background: rgba(35, 14, 20, 0.9) !important;
}

.cg-stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cg-stat-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #8a99ad;
  letter-spacing: 0.5px;
}

.cg-stat-num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.cg-stat-sub {
  margin-top: 4px;
  font-size: 11.5px;
  color: #64748b;
}

/* Action & Filter Toolbar */
.cg-action-bar {
  background: rgba(20, 14, 18, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.cg-btn-primary {
  background: #E50914 !important;
  color: #ffffff !important;
  border: 1px solid #E50914 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.4);
}
.cg-btn-primary:hover {
  background: #f40612 !important;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
  transform: translateY(-1px);
}

.cg-btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cg-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.cg-btn-danger-chip {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cg-btn-danger-chip:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #f87171 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.cg-select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
  height: 38px;
  transition: border-color 0.2s;
}
.cg-select:focus {
  border-color: #E50914;
}

.cg-input {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  height: 38px;
  transition: border-color 0.2s;
}
.cg-input:focus {
  border-color: #E50914;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
}


/* Account Cards */
.account-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 9px;
  background: rgba(14, 10, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.account-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(22, 16, 22, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.card-index-box.badge-unified {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  flex-shrink: 0;
  user-select: none;
}

.cyber-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  margin: 0;
}
.cyber-checkbox:hover {
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(229, 9, 20, 0.08);
  box-shadow: 0 0 6px rgba(229, 9, 20, 0.25);
}
.cyber-checkbox:checked {
  background: #E50914;
  border-color: #E50914;
  box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}
.cyber-checkbox:checked::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.card-content-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.card-body-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.card-row-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.card-account-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.card-row-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748b;
}
.card-row-bottom span strong {
  color: #e2e8f0;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.pill-active-green {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: #34d399;
}
.pill-active-cyan {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: #38bdf8;
}
.pill-active-purple {
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.32);
  color: #c084fc;
}
.pill-active-amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}
.pill-active-red {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #f87171;
}
.pill-click-info {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-click-info:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.card-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-card-check {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
}
.btn-card-check:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}
.btn-card-open {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}
.btn-card-open:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.btn-card-delete {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.btn-card-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.25);
}

/* Cyber Console */
.cyber-console {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  height: 160px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  color: #10B981;
}

/* Modals */
.cg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 6, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cg-modal-dialog {
  background: #140e13;
  border: 1px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 20px rgba(229, 9, 20, 0.2);
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}


.cron-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .cron-slider {
  background-color: #E50914 !important;
}
input:checked + .cron-slider::before {
  transform: translateX(20px);
}

