/* ==============================================================================
   A4HX AUTH SYSTEM — ULTIMATE PRODUCTION DASHBOARD STYLESHEET
   Professional Industrial Business Black Theme | Zero Overflow Responsive
   ============================================================================== */

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

:root {
  /* Ultra-Clean Deep Dark Grey Palette */
  --bg-base: #0f1115;
  --bg-surface: #14171f;
  --bg-surface-elevated: #1a1e28;
  --bg-card: #161922;
  --bg-card-hover: #1d222e;
  --bg-input: #11131a;
  --bg-glass: rgba(22, 25, 34, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-focus: rgba(0, 229, 255, 0.45);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(0, 229, 255, 0.35);

  --accent-cyan: #00e5ff;
  --accent-cyan-hover: #38bdf8;
  --accent-cyan-glow: rgba(0, 229, 255, 0.2);
  --accent-purple: #818cf8;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-blue: #3b82f6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --sidebar-width: 270px;
  --header-height: 68px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-card-hover: 0 20px 40px -8px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 229, 255, 0.14);
  --shadow-glow: 0 0 28px rgba(0, 229, 255, 0.25);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 50% 0%, #181c26 0%, #0f1115 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 14.5px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Zero harsh grid lines - smooth clean backdrop */
body::before {
  display: none !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography & Helpers */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--text-highlight);
  letter-spacing: -0.02em;
}
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}
code, pre {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   LOGIN SCREEN
   -------------------------------------------------------------------------- */
.login-view {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 10;
}

.login-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.08);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.2), var(--accent-cyan), rgba(0, 229, 255, 0.2), transparent);
}

.login-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.login-logo-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.45)) drop-shadow(0 0 35px rgba(0, 240, 255, 0.25));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  animation: logoPulse 4s infinite ease-in-out;
}

.login-logo-img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 0 28px rgba(168, 85, 247, 0.75)) drop-shadow(0 0 50px rgba(0, 240, 255, 0.45));
}

@keyframes logoPulse {
  0%, 100% {
    filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.4)) drop-shadow(0 0 28px rgba(0, 240, 255, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 26px rgba(168, 85, 247, 0.65)) drop-shadow(0 0 45px rgba(0, 240, 255, 0.35));
  }
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.brand-badge svg {
  width: 16px;
  height: 16px;
}

.login-header h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 14px 11px 42px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 13.5px;
  transition: all var(--transition-fast);
  outline: none;
}

.input-control.no-icon {
  padding-left: 14px;
}

.input-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15), 0 0 16px rgba(0, 229, 255, 0.1);
  background: #111520;
}

/* Auth Switching Tabs (Sign In vs Create Account) */
.auth-switch-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.auth-switch-tab {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-switch-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-switch-tab.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.15);
}

/* Security Code Input with Glow */
.security-code-input {
  letter-spacing: 8px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  background: #0e111a !important;
  border: 2px solid var(--accent-cyan) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.25);
  padding: 14px 10px !important;
  border-radius: var(--radius-sm);
}

.security-code-input:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.45);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  font-family: var(--font-main);
  user-select: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00e5ff 0%, #0088ff 100%);
  color: #020617;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 22px rgba(0, 229, 255, 0.45);
  color: #000;
  transform: translateY(-1.5px);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-cyan {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
}
.btn-cyan:hover {
  background: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.28);
}

.btn-danger:hover {
  background: rgba(244, 63, 94, 0.2);
  border-color: rgba(244, 63, 94, 0.4);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Auth Divider & Google Single Sign-On */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.auth-divider span {
  padding: 0 12px;
}

.btn-google {
  background: #ffffff !important;
  color: #1f2937 !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
  transition: all var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 18px !important;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 100%;
}
.btn-google:hover {
  background: #f8fafc !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1.5px);
  color: #111827 !important;
}
.btn-google:active {
  transform: translateY(0);
}
.google-icon {
  flex-shrink: 0;
}

/* Google Identity Modal */
.google-dialog {
  max-width: 440px;
  background: #141720 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85) !important;
  overflow: hidden;
}
.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}
.google-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}
.google-account-item:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
}
.google-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285F4, #34A853);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   DASHBOARD LAYOUT (DESKTOP & MOBILE RESPONSIVE)
   -------------------------------------------------------------------------- */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 5;
  animation: dashboardFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dashboardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.sidebar-header {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-container {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.35));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo-container:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.6));
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-info h2 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.brand-info span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-close {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
}

.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  opacity: 0;
  transform: scaleY(0.3) translateX(-3px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.18s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
  transform: translateX(2px);
}

.nav-item:hover svg {
  color: #e2e8f0;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
  transform: translateX(2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleY(1) translateX(0);
}

.nav-item.active svg {
  color: var(--accent-cyan);
  transform: scale(1.08);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-snippet {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-text h4 {
  font-size: 13px;
  font-weight: 600;
}

.user-text span {
  font-size: 11px;
  color: var(--accent-emerald);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}
.btn-icon:hover {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.1);
}

/* Main Content Area */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

/* Header */
.top-header {
  height: var(--header-height);
  background: rgba(10, 16, 29, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.page-title-box h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.page-title-box p {
  font-size: 11.5px;
  color: var(--text-muted);
}

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

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent-emerald);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

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

/* Page Body */
.page-content {
  flex: 1;
  padding: 24px 28px;
  max-width: 1600px;
  width: 100%;
}

.tab-content {
  display: none;
  opacity: 0;
}

.tab-content.active {
  display: block;
  animation: tabPaneFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabPaneFadeIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

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

.stat-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon.cyan {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent-cyan);
}
.stat-icon.purple {
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  color: var(--accent-purple);
}
.stat-icon.emerald {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}
.stat-icon.amber {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-highlight);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-bottom {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.stat-pill.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
}

/* Panels */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  overflow: hidden;
}

.panel-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title h3 {
  font-size: 15px;
  font-weight: 700;
}

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

.search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 220px;
}

.search-input-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 34px;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
}
.search-input-box input:focus {
  border-color: var(--border-focus);
}
.search-input-box svg {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.select-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
  cursor: pointer;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  padding: 11px 16px;
  background: var(--bg-surface);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d1d5db;
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-banned, .badge-revoked {
  background: rgba(244, 63, 94, 0.1);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.badge-expired {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-unused {
  background: rgba(0, 229, 255, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.code-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  background: #060709;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==============================================================================
   SOFTWARE STORE / APPLICATIONS GRID & CHECKOUT STYLING
   ============================================================================== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 18px;
  margin-top: 18px;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.store-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 229, 255, 0.12);
  transform: translateY(-2px);
}

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

.store-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
}

.store-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
}

.store-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.store-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
  flex: 1;
}

.store-features {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-features li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-primary);
}

.store-features li i {
  color: var(--accent-emerald);
  font-size: 11px;
}

.store-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.store-price {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.store-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* ==============================================================================
   REDEEM STATION (INTEGRATED IN A4HX THEME)
   ============================================================================== */
.redeem-box {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 0;
}

.redeem-input-group {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.redeem-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  outline: none;
}

.redeem-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.2);
}

.hwid-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  gap: 10px;
}

.activation-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: none;
}
.activation-card.show {
  display: block;
  animation: tabPaneFadeIn 0.3s ease;
}
.activation-card.error {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.3);
}

/* Modal base styles are consolidated in the MODAL DIALOGS & OVERLAYS section */

/* Toast */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 16px;
  background: #101115;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13px;
  border-left: 4px solid var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.3s ease;
}

.toast.success { border-left-color: var(--accent-emerald); }
.toast.error { border-left-color: var(--accent-rose); }
.toast.info { border-left-color: var(--accent-cyan); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Confetti */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
}

/* Responsive */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 95;
}

@media (max-width: 860px) {
  .sidebar-backdrop.active { display: block; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .main-wrapper { margin-left: 0; }
  .menu-toggle { display: block; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .login-view { padding: 16px 12px; }
  .login-card { padding: 28px 18px; max-width: 100%; border-radius: var(--radius-lg); }
  .auth-switch-tab { font-size: 11.5px; padding: 8px 6px; gap: 4px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .top-header { padding: 0 16px; }
  .page-content { padding: 16px; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .panel-actions { width: 100%; }
  .search-input-box { width: 100%; }
  .redeem-input-group { flex-direction: column; }
  .hwid-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .store-actions { flex-direction: column; }
}

@media (max-width: 360px) {
  .login-card { padding: 24px 16px; }
  .login-logo-img { width: 72px; height: 72px; }
  .store-card { padding: 14px; }
}

/* ==============================================================================
   CLIENT PORTAL STYLING (DISTINCT STORE & WALLET UI)
   ============================================================================== */
.client-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.client-header {
  height: 72px;
  background: rgba(7, 8, 12, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.client-header-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
}

.client-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.client-nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.client-nav-links::-webkit-scrollbar {
  display: none;
}

.client-nav-link {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.client-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.client-nav-link.active {
  color: #fff;
  background: rgba(0, 229, 255, 0.09);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
}

.client-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-pill-snippet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-primary);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.user-pill-snippet:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.4);
}

#clientLogoutBtn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.coin-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-full);
  color: #fbbf24;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  white-space: nowrap;
  user-select: none;
}

.coin-wallet-pill i {
  color: #f59e0b;
}

.btn-coin-topup {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  padding: 7px 16px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.btn-coin-topup:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
}

/* ==============================================================================
   STORE PRODUCTS GRID & CARDS
   ============================================================================== */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 390px));
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 768px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
  .client-header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
  }
}

.coin-pill-add {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  background: #fbbf24;
  color: #000;
  border-radius: 50%;
  font-size: 9px;
  margin-left: 4px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover {
  border-color: var(--border-card-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.product-card:hover::before {
  opacity: 1;
}

/* ==============================================================================
   16:9 PRODUCT THUMBNAIL BANNER WITH CENTERED LOGO ("buch me logo")
   ============================================================================== */
.product-thumbnail-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.16) 0%, rgba(20, 25, 36, 0.98) 75%),
    linear-gradient(135deg, #181d2a 0%, #0e1118 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7);
  transition: all var(--transition-normal);
}

.product-card:hover .product-thumbnail-box {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.22);
}

/* Background image if product has custom bannerUrl */
.thumbnail-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.2) contrast(1.1);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  z-index: 1;
}

.product-card:hover .thumbnail-bg-img {
  opacity: 0.48;
  transform: scale(1.04);
}

/* Soft ambient glow behind the logo */
.thumbnail-aura {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.45) 0%, transparent 70%);
  filter: blur(16px);
  pointer-events: none;
  z-index: 2;
  transition: all var(--transition-normal);
}

.product-card:hover .thumbnail-aura {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.7) 0%, transparent 70%);
}

/* Centered Logo Pedestal ("buch me logo") */
.thumbnail-logo-wrapper {
  position: relative;
  z-index: 3;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(14, 18, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(0, 229, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 255, 0.35);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover .thumbnail-logo-wrapper {
  transform: scale(1.12);
  border-color: rgba(0, 229, 255, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 229, 255, 0.55);
}

.thumbnail-centered-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  display: block;
}

/* Floating top badges inside 16:9 thumbnail */
.thumbnail-badge-row {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}

.thumbnail-badge-row .card-category-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  background: rgba(14, 17, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-xs);
  padding: 4px 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.thumbnail-badge-row .badge {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Play chip button in bottom-right corner of 16:9 thumbnail */
.thumbnail-play-chip {
  position: absolute;
  bottom: 9px;
  right: 9px;
  z-index: 4;
  background: rgba(14, 18, 27, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.thumbnail-play-chip:hover {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.thumbnail-play-chip i {
  font-size: 10px;
}

/* Product Info Area */
.card-info-header {
  margin-bottom: 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.product-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}

.product-tagline {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.card-version-tag {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

/* Backward-compatible brand row */
.card-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.card-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.18), rgba(18, 24, 34, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 229, 255, 0.15);
}

.product-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.card-brand-text {
  flex: 1;
  min-width: 0;
}

/* Features Area */
.card-body-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.feature-list li {
  font-size: 12.5px;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.35;
}

/* Bottom Pin: Aligns Pricing & Buttons to Exact Same Baseline */
.card-bottom-pin {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

/* Coin Pricing Tiers in Cards */
.product-pricing {
  background: #0e121a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.pricing-label-bar {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.pricing-tier-col {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all var(--transition-fast);
}

.pricing-tier-col:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.pricing-tier-col.highlight-tier {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.08);
}

.popular-ribbon {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  font-weight: 800;
  background: var(--accent-cyan);
  color: #000;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-tier-label {
  font-size: 9.5px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.03em;
}

.pricing-tier-coins {
  font-size: 13.5px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.pricing-tier-coins .coin-sym {
  font-size: 11.5px;
}

.pricing-tier-coins.text-cyan {
  color: #00e5ff;
}

.pricing-tier-coins.text-emerald {
  color: #10b981;
}

.btn-buy-glow {
  background: linear-gradient(135deg, #00e5ff 0%, #0088ff 100%);
  color: #000;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.3);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-buy-glow:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.45);
  transform: translateY(-1.5px);
}

.disabled-coming-soon {
  opacity: 0.65;
  cursor: not-allowed;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
}

/* Coming Soon Ribbon & Status */
.card-coming-soon {
  opacity: 0.88;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.badge-coming-soon {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Coin Price Tags */
.price-coins-tag {
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Topup Modal Elements */
.qr-preview-box {
  background: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.qr-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topup-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.topup-tier-option {
  background: #08090c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.topup-tier-option:hover, .topup-tier-option.selected {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

.topup-tier-option strong {
  display: block;
  font-size: 14px;
  color: #fbbf24;
}

.topup-tier-option span {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==============================================================================
   MODAL DIALOGS & OVERLAYS
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 4, 6, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 99999 !important;
  padding: 20px 14px;
  overflow-y: auto;
  box-sizing: border-box;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active,
.modal-backdrop.open,
.modal-backdrop.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 229, 255, 0.1);
  overflow: hidden !important;
  position: relative;
  max-height: calc(100vh - 40px);
  display: flex !important;
  flex-direction: column !important;
  margin: auto;
  flex-shrink: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-dialog form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden !important;
  margin: 0;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: var(--bg-surface-elevated);
  flex-shrink: 0 !important;
  z-index: 25;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.modal-body {
  padding: 20px;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px;
  flex-shrink: 0 !important;
  position: sticky;
  bottom: 0;
  z-index: 30;
}

/* Confetti Canvas */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10000;
}

/* ==============================================================================
   PAYMENT CHANNEL TABS, UPI APPS & CRYPTO STYLING
   ============================================================================== */
.payment-channel-nav {
  display: flex;
  gap: 8px;
  background: #07080a;
  padding: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.payment-channel-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.payment-channel-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.payment-channel-btn.active {
  background: #101217;
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.payment-channel-btn.active.binance {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.upi-app-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
}

.copy-field-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #fff;
  word-break: break-all;
}

.user-pill-snippet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   INTERACTIVE PURCHASE DURATION TIER SELECTOR CARDS
   ========================================================================== */
.buy-tier-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .buy-tier-selector-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.buy-tier-card {
  background: #090a0d;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  user-select: none;
}

.buy-tier-card:hover {
  border-color: rgba(0, 229, 255, 0.4);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.buy-tier-card.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 229, 255, 0.06);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.18), inset 0 0 8px rgba(0, 229, 255, 0.05);
}

.buy-tier-card.selected#buyCard-Lifetime {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.07);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.18), inset 0 0 8px rgba(16, 185, 129, 0.05);
}

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

.tier-card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.tier-card-badge-popular {
  font-size: 8px;
  font-weight: 800;
  background: var(--accent-cyan);
  color: #000;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tier-radio-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.buy-tier-card.selected .tier-radio-indicator {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

.buy-tier-card.selected#buyCard-Lifetime .tier-radio-indicator {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.buy-tier-card.selected .tier-radio-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
}

.tier-card-coins {
  font-size: 14.5px;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 3px;
}

.tier-card-sub {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Coin topup button state */
.btn-coin-topup {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000 !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.btn-coin-topup:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.6);
}

/* Streamer SID status badges */
.badge-sid-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-sid-disabled {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   MODERN TOGGLE SWITCH & CARDS
   ========================================================================== */
.modern-toggle-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(18, 22, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 10px;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.modern-toggle-card:hover {
  background: rgba(26, 32, 48, 0.85);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.modern-toggle-card:has(input:checked) {
  border-color: rgba(0, 229, 255, 0.45);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.12);
}

.modern-toggle-left {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.modern-toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.modern-toggle-card:hover .modern-toggle-icon,
.modern-toggle-card:has(input:checked) .modern-toggle-icon {
  background: rgba(0, 229, 255, 0.18);
  border-color: rgba(0, 229, 255, 0.5);
  color: #00e5ff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

.modern-toggle-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px;
  text-align: left;
}

.modern-toggle-title {
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  line-height: 1.3;
}

.modern-toggle-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  text-transform: none !important;
}

/* Switch UI */
.switch-wrapper {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
  margin-left: 16px;
}

.switch-wrapper input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 26px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.switch-wrapper input:checked + .switch-slider {
  background: linear-gradient(135deg, #00e5ff 0%, #0077ff 100%);
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.switch-wrapper input:checked + .switch-slider:before {
  transform: translateX(21px);
  background-color: #0c0e14;
}

.switch-wrapper input:focus + .switch-slider {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3);
}

/* Base checkbox cleanup */
input[type="checkbox"]:not(.switch-wrapper input) {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ==========================================================================
   PRODUCT VIDEO MODAL & WATCH BUTTON
   ========================================================================== */
.btn-watch-preview {
  background: rgba(0, 229, 255, 0.08);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.btn-watch-preview:hover {
  background: rgba(0, 229, 255, 0.22);
  border-color: #00e5ff;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
  transform: translateY(-1px);
}

.btn-watch-preview i {
  font-size: 12px;
  color: #00e5ff;
  transition: transform 0.2s ease;
}

.btn-watch-preview:hover i {
  color: #ffffff;
  transform: scale(1.2);
}

.video-player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0e14;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 229, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player-container iframe,
.video-player-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  gap: 12px;
  color: var(--text-muted);
}

.video-placeholder-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 22px;
  margin-bottom: 4px;
}

/* Buy Modal Features Scrollbar */
#buyModalFeaturesContainer::-webkit-scrollbar {
  width: 5px;
}
#buyModalFeaturesContainer::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.35);
  border-radius: 4px;
}
#buyModalFeaturesContainer::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}



/* Admin Users Table Compact & Clean Layout */
.admin-users-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.admin-users-table th {
  padding: 10px 8px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
  background: #090a0f !important;
}

.admin-users-table td {
  padding: 8px 8px !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

/* Keygen Studio Single-Line Horizontal Row */
.keygen-controls-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) !important;
  gap: 12px !important;
  align-items: flex-end !important;
}

.keygen-controls-row .form-group {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

.keygen-controls-row label {
  height: 18px !important;
  line-height: 18px !important;
  margin-bottom: 6px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.keygen-controls-row .select-control,
.keygen-controls-row .input-control {
  width: 100% !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  font-size: 12.5px !important;
}

@media (max-width: 900px) {
  .keygen-controls-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  .keygen-controls-row {
    grid-template-columns: 1fr !important;
  }
}

