/* ==========================================================================
   DEXTERAUTH - FIERY CRIMSON & ORANGE-RED THEME SYSTEM
   Ultra-Professional Cloud Authentication & Licensing Dashboard
   ========================================================================== */

:root {
  --bg-darkest: #040407;
  --bg-card: rgba(10, 11, 15, 0.88);
  --bg-card-hover: rgba(16, 17, 24, 0.95);
  --bg-input: #07070a;
  --bg-sidebar: #050508;
  --bg-topbar: #050508;
  --border-color: rgba(255, 10, 59, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Ultra-Premium Pure Crimson Red & Black Palette */
  --red-primary: #ff0a3b;
  --red-hover: #ff2a5f;
  --red-dark: #b30024;
  --red-crimson: #e60033;
  --orange-touch: #ff1a4a;
  --orange-bright: #ff3b61;
  --fire-gradient: linear-gradient(135deg, #b30024 0%, #ff0a3b 50%, #ff2a5f 100%);
  --fire-gradient-hover: linear-gradient(135deg, #cc0029 0%, #ff2a5f 50%, #ff4d73 100%);
  --fire-glow: 0 0 25px rgba(255, 10, 59, 0.45), 0 0 50px rgba(179, 0, 36, 0.25);
  --red-glow: rgba(255, 10, 59, 0.35);
  --red-border: rgba(255, 10, 59, 0.45);

  /* Status Colors */
  --green-active: #10b981;
  --purple-action: #8b5cf6;
  --cyan-action: #06b6d4;
  --orange-action: #ff0a3b;
  --red-action: #ff2a5f;

  --text-main: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --font-brand: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  min-height: 100vh;
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Zero-Flicker Page Load State */
html.app-has-token #authView {
  display: none !important;
}

html.app-has-token #dashboardView {
  display: flex !important;
}

/* Topbar Master Admin Direct Button */
.btn-topbar-admin-portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(249, 115, 22, 0.2) 100%);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-topbar-admin-portal:hover {
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 100%);
  border-color: #ff2a5f;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(255, 10, 59, 0.55);
  transform: translateY(-1px);
}

.topbar-admin-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-topbar-admin-portal:hover .topbar-admin-glow {
  opacity: 1;
}

.topbar-admin-badge {
  background: #ff3b30;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.btn-topbar-admin-portal:hover .topbar-admin-badge {
  background: rgba(0, 0, 0, 0.35);
}

/* Completely Hide All Scrollbars Everywhere */
::-webkit-scrollbar {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  background: transparent !important;
}

* {
  -ms-overflow-style: none !important;  /* IE and Edge */
  scrollbar-width: none !important;  /* Firefox */
}

/* Fixed Support Tab on right side */
.support-side-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--fire-gradient);
  color: #ffffff;
  padding: 14px 6px;
  border-radius: 6px 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
  z-index: 1000;
  box-shadow: -2px 0 16px rgba(255, 69, 0, 0.4);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.support-side-tab:hover {
  background: var(--fire-gradient-hover);
  padding-right: 9px;
  box-shadow: -4px 0 24px rgba(255, 69, 0, 0.6);
}

/* ==========================================================================
   CLOUDFLARE ENTERPRISE TURNSTILE SECURITY GATE
   ========================================================================== */
.cf-security-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #08090d;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.cf-security-gate.active {
  display: flex;
}

.cf-security-card {
  max-width: 480px;
  width: 100%;
  background: linear-gradient(180deg, #13141c 0%, #0c0d13 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 36px 32px 28px 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(243, 128, 32, 0.08);
  display: flex;
  flex-direction: column;
  animation: cfFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cfFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cf-card-header {
  margin-bottom: 22px;
}

.cf-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.cf-domain-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.cf-gate-subtitle {
  font-size: 14.5px;
  color: #9ca3af;
  font-weight: 500;
}

/* Turnstile Box inside Gate */
.cf-turnstile-widget {
  background: #181922;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cf-turnstile-widget:hover {
  border-color: rgba(243, 128, 32, 0.5);
  box-shadow: 0 6px 24px rgba(243, 128, 32, 0.18);
  transform: translateY(-1px);
}

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

.cf-turnstile-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid #52525b;
  background: #0f1015;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  position: relative;
}

.cf-turnstile-ring {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(243, 128, 32, 0.3);
  border-top-color: #f38020;
  border-radius: 50%;
  animation: cfRingSpin 0.75s linear infinite;
}

@keyframes cfRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.cf-turnstile-check {
  display: none;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
}

.cf-turnstile-label {
  font-size: 14px;
  font-weight: 500;
  color: #e4e4e7;
  transition: color 0.2s ease;
}

.cf-turnstile-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cf-badge-brand {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cf-brand-text {
  font-size: 11px;
  font-weight: 700;
  color: #d4d4d8;
  letter-spacing: 0.3px;
}

.cf-terms-links {
  font-size: 10px;
  color: #71717a;
}

.cf-terms-links a {
  color: #71717a;
  text-decoration: none;
  transition: color 0.15s;
}

.cf-terms-links a:hover {
  color: #f38020;
}

.cf-gate-footer {
  font-size: 12px;
  color: #71717a;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.cf-reason-text {
  margin: 0 0 8px 0;
  color: #9ca3af;
}

.cf-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6b7280;
}

.cf-meta-row code {
  color: #f38020;
  background: rgba(243, 128, 32, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.cf-ip-tag {
  color: #10b981;
}

.cf-meta-divider {
  color: #3f3f46;
}

/* ========================================================================== */
/* AUTHENTICATION VIEW - 2-COLUMN SPLIT MODERN DASHBOARD (IMAGE 3 REPLICA)    */
/* ========================================================================== */
.auth-page-wrapper {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: #040407;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(255, 10, 59, 0.22) 0%, transparent 65%),
    radial-gradient(circle at 15% 50%, rgba(204, 0, 41, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(255, 42, 95, 0.1) 0%, transparent 50%);
}

.auth-page-wrapper::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.auth-page-wrapper::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(4, 4, 7, 0.3) 0%, rgba(4, 4, 7, 0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.auth-navbar,
.auth-main-content,
.auth-split-card,
.auth-other-portals {
  position: relative;
  z-index: 2;
}

/* Top Navbar */
.auth-navbar {
  width: 100%;
  background: rgba(7, 9, 14, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.auth-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.auth-logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.auth-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.auth-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.auth-brand-name span {
  color: #ff0a3b;
}

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.auth-nav-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.auth-nav-links a:hover {
  color: #ffffff;
}

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

.btn-nav-login {
  background: transparent;
  color: #d1d5db;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.15s;
}

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

.btn-nav-getstarted {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.15s;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.btn-nav-getstarted:hover {
  background: #0ea5e9;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.5);
}

/* Main Content Area */
.auth-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* 2-Column Split Auth Card */
.auth-split-card {
  width: 100%;
  max-width: 1060px;
  background: rgba(10, 11, 16, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 10, 59, 0.3);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 45px rgba(255, 10, 59, 0.18);
  overflow: hidden;
  position: relative;
}

/* Left Column */
.auth-card-left {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Auth Portal Mode Switcher Tabs */
.auth-portal-tabs-nav {
  display: flex;
  background: rgba(14, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 5px;
  gap: 6px;
  margin-bottom: 24px;
}

.auth-portal-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #a1a1aa;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auth-portal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-portal-tab-btn.active {
  background: rgba(255, 10, 59, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 10, 59, 0.5);
  box-shadow: 0 4px 14px rgba(255, 10, 59, 0.3);
}

.auth-portal-tab-btn#authTabBtnStaff.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.auth-portal-tab-btn#authTabBtnReseller.active {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.2);
}

.auth-portal-tab-btn#authTabBtnReg.active {
  background: rgba(255, 10, 59, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 10, 59, 0.5);
  box-shadow: 0 4px 14px rgba(255, 10, 59, 0.3);
}

.auth-card-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-card-logo-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 10, 59, 0.15);
  border: 1px solid rgba(255, 10, 59, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-brand-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.auth-card-badge-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ff3b61;
  background: rgba(255, 10, 59, 0.18);
  border: 1px solid rgba(255, 10, 59, 0.45);
  padding: 4px 10px;
  border-radius: 7px;
}

.auth-heading {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.6px;
}

.auth-subheading {
  font-size: 15px;
  color: #a1a1aa;
  margin: 0 0 28px 0;
  line-height: 1.55;
}

.btn-signin-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 50%, #ff2a5f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 10, 59, 0.4);
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 22px rgba(255, 10, 59, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-signin-primary:hover {
  background: linear-gradient(135deg, #e60033 0%, #ff2a5f 50%, #ff4d73 100%);
  box-shadow: 0 8px 30px rgba(255, 10, 59, 0.6);
  transform: translateY(-2px);
}

/* Right Column (Quick Sign In) */
.auth-card-right {
  background: #111520;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quick-auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.quick-auth-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.quick-auth-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.quick-auth-subtitle {
  font-size: 12.5px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

.quick-auth-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.btn-quick-auth {
  width: 100%;
  padding: 11px 16px;
  background: #161b28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-quick-auth:hover {
  background: #1e2436;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-quick-auth.passkey {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.06);
}

.btn-quick-auth.passkey:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: #38bdf8;
}

.btn-quick-auth.google:hover {
  border-color: #ea4335;
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.25);
}

.btn-quick-auth.github:hover {
  border-color: #ffffff;
}

.btn-quick-auth.discord:hover {
  background: #5865F2;
  border-color: #5865F2;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.35);
}

.quick-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 4px 0;
}

.quick-auth-divider::before,
.quick-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-auth-divider::before {
  margin-right: 12px;
}

.quick-auth-divider::after {
  margin-left: 12px;
}

/* Bottom Other Portals */
.auth-other-portals {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.portals-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.8px;
}

.portals-links-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.portal-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 860px) {
  .auth-main-content {
    padding: 24px 14px;
  }

  .auth-split-card {
    grid-template-columns: 1fr;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
  }

  .auth-card-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 20px;
  }

  .auth-card-left {
    padding: 24px 20px;
  }

  .auth-nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-page-wrapper {
    min-height: 100vh;
  }

  .auth-navbar {
    padding: 0 !important;
  }

  .auth-nav-container {
    padding: 8px 12px !important;
  }

  .auth-brand-name {
    font-size: 16px !important;
  }

  .auth-brand-logo-img {
    width: 24px !important;
    height: 24px !important;
  }

  .btn-nav-login {
    padding: 5px 8px !important;
    font-size: 11.5px !important;
  }

  .btn-nav-getstarted {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
  }

  .auth-main-content {
    padding: 10px 8px 20px 8px !important;
    justify-content: flex-start !important;
  }

  .auth-split-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  }

  .auth-card-left {
    padding: 14px 12px !important;
  }

  .auth-portal-tabs-nav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 3px !important;
    padding: 3px !important;
    margin-bottom: 10px !important;
    border-radius: 9px !important;
  }

  .auth-portal-tab-btn {
    padding: 5px 3px !important;
    font-size: 10.5px !important;
    gap: 3px !important;
    border-radius: 6px !important;
  }

  .auth-portal-tab-btn i,
  .auth-portal-tab-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  .auth-card-brand-header {
    margin-bottom: 4px !important;
    gap: 6px !important;
  }

  .auth-card-logo-wrap {
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
  }

  .auth-form-brand-logo {
    width: 16px !important;
    height: 16px !important;
  }

  .auth-card-badge-tag {
    font-size: 8px !important;
    padding: 2px 5px !important;
    letter-spacing: 0.5px !important;
  }

  .auth-heading {
    font-size: 17px !important;
    margin: 0 0 2px 0 !important;
  }

  .auth-subheading {
    font-size: 11px !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
  }

  #authView form .form-group {
    margin-bottom: 8px !important;
  }

  #authView form label,
  #authView form .form-label {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  #authView .form-control {
    padding: 7px 9px !important;
    font-size: 13px !important;
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 7px !important;
  }

  #authView .password-input-wrap .password-toggle-btn {
    padding: 4px 6px !important;
    right: 2px !important;
  }

  #authView .password-input-wrap .password-toggle-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .auth-remember-row {
    margin-bottom: 7px !important;
  }

  .auth-remember-row .checkbox-label {
    font-size: 11px !important;
    gap: 5px !important;
  }

  .captcha-container {
    padding: 6px 9px !important;
    margin: 7px 0 !important;
    border-radius: 7px !important;
    min-height: auto !important;
  }

  .captcha-left {
    gap: 8px !important;
  }

  .captcha-checkbox-box {
    width: 18px !important;
    height: 18px !important;
    border-radius: 3px !important;
  }

  .captcha-checkbox-box svg {
    width: 13px !important;
    height: 13px !important;
  }

  .captcha-label {
    font-size: 11px !important;
  }

  .captcha-brand {
    font-size: 8px !important;
  }

  .captcha-brand svg {
    width: 13px !important;
    height: 13px !important;
    margin-bottom: 0 !important;
  }

  .btn-signin-primary {
    padding: 8px 10px !important;
    font-size: 12.5px !important;
    min-height: 36px !important;
    border-radius: 7px !important;
    gap: 5px !important;
  }

  .auth-footer-links {
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .auth-footer-links div {
    margin-top: 3px !important;
  }

  .auth-card-right {
    padding: 12px 10px !important;
  }

  .quick-auth-header {
    margin-bottom: 8px !important;
  }

  .quick-auth-icon-badge {
    width: 28px !important;
    height: 28px !important;
    margin: 0 auto 4px auto !important;
  }

  .quick-brand-logo-img {
    width: 16px !important;
    height: 16px !important;
  }

  .quick-auth-title {
    font-size: 13px !important;
    margin-bottom: 1px !important;
  }

  .quick-auth-subtitle {
    font-size: 10.5px !important;
  }

  .quick-auth-buttons-list {
    gap: 5px !important;
  }

  .btn-quick-auth {
    padding: 6px 8px !important;
    font-size: 11.5px !important;
    border-radius: 6px !important;
    gap: 5px !important;
  }

  .btn-quick-auth svg {
    width: 14px !important;
    height: 14px !important;
  }

  .auth-other-portals {
    margin-top: 10px !important;
    gap: 5px !important;
  }

  .portals-label {
    font-size: 9.5px !important;
  }

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

  .portal-pill-btn {
    padding: 3px 7px !important;
    font-size: 10px !important;
  }
}

/* ==========================================================================
   OFFICIAL CLOUDFLARE TURNSTILE WIDGET
   ========================================================================== */
.captcha-container,
.cf-turnstile-container {
  background: #11131a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.captcha-container:hover,
.cf-turnstile-container:hover {
  border-color: rgba(243, 128, 32, 0.45);
  box-shadow: 0 6px 20px rgba(243, 128, 32, 0.14);
  transform: translateY(-1px);
}

.captcha-left,
.cf-turnstile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-checkbox-box,
.cf-turnstile-box {
  width: 26px;
  height: 26px;
  border: 2px solid #52525b;
  border-radius: 6px;
  background: #181922;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.captcha-container.verified .captcha-checkbox-box,
.cf-turnstile-container.verified .cf-turnstile-box {
  background: rgba(34, 197, 94, 0.16);
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.captcha-spinner,
.cf-turnstile-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(243, 128, 32, 0.3);
  border-top-color: #f38020;
  border-radius: 50%;
  animation: cfRingSpin 0.7s linear infinite;
  display: none;
}

.captcha-container.verifying .captcha-spinner,
.cf-turnstile-container.verifying .cf-turnstile-spinner {
  display: block;
}

.captcha-container.verifying .captcha-check-icon,
.cf-turnstile-container.verifying .cf-turnstile-check {
  display: none;
}

.captcha-container.verified .captcha-check-icon,
.cf-turnstile-container.verified .cf-turnstile-check {
  display: block;
  color: #22c55e;
}

.captcha-label,
.cf-turnstile-label {
  font-size: 13.5px;
  font-weight: 500;
  color: #e4e4e7;
  transition: color 0.2s ease;
}

.captcha-brand,
.cf-turnstile-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cf-brand-top {
  display: flex;
  align-items: center;
  gap: 5px;
}

.cf-text-brand {
  font-size: 10.5px;
  font-weight: 700;
  color: #d4d4d8;
  letter-spacing: 0.2px;
}

.cf-brand-links {
  font-size: 9.5px;
  color: #71717a;
}

/* ==========================================================================
   APP MAIN LAYOUT
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-darkest);
}

/* ==========================================================================
   SIDEBAR (RED THEME ACCENTS)
   ========================================================================== */
.sidebar {
  width: 290px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sidebar-header {
  padding: 24px 22px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.sidebar-logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

/* App Selector Dropdown in Sidebar */
.sidebar-app-select-btn {
  width: 100%;
  background: #12121c;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.sidebar-app-select-btn:hover {
  background: #1a1a29;
  border-color: var(--red-primary);
  box-shadow: 0 4px 16px rgba(230, 25, 25, 0.2);
}

.sidebar-app-dropdown-menu {
  position: absolute;
  top: 115px;
  left: 22px;
  right: 22px;
  background: #141420;
  border: 1px solid #2b2b3d;
  border-radius: 11px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.sidebar-app-dropdown-menu.show {
  display: block;
}

.dropdown-app-item {
  padding: 11px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dropdown-app-item:hover {
  background: var(--red-primary);
  color: #ffffff;
}

.dropdown-app-item.active {
  background: rgba(220, 38, 38, 0.2);
  color: var(--red-accent);
  font-weight: 700;
}

.dropdown-create-btn {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  background: #1f1f2e;
  color: var(--red-accent);
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.dropdown-create-btn:hover {
  background: var(--red-primary);
  color: #ffffff;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-radius: 11px;
  color: #a1a1aa;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.sidebar-link svg,
.sidebar-link i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: #131320;
  color: #ffffff;
  transform: translateX(3px);
}

.sidebar-link.active {
  background: #1a1a2b;
  color: #ffffff;
  font-weight: 700;
  box-shadow: inset 4px 0 0 var(--red-primary), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sidebar-link.active svg,
.sidebar-link.active i {
  color: var(--red-primary);
}

/* Modern Vector Pro Badges */
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(255, 10, 59, 0.16) 0%, rgba(230, 0, 51, 0.28) 100%);
  border: 1px solid rgba(255, 10, 59, 0.45);
  color: #ff2a5f;
  font-size: 10px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 6px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
}

.pro-badge i,
.pro-badge svg {
  width: 11px;
  height: 11px;
}

.pro-badge.store-badge {
  background: var(--fire-gradient);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.crown-badge {
  font-size: 13px;
  line-height: 1;
}

/* ==========================================================================
   TOP BAR (SEARCH & USER PROFILE)
   ========================================================================== */
.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.top-bar {
  height: 80px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 18, 28, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 11px 18px;
  width: 440px;
  transition: all 0.2s ease;
}

.top-search-box:focus-within {
  border-color: #ff0a3b;
  box-shadow: 0 0 20px rgba(255, 10, 59, 0.25);
}

.top-search-box svg {
  color: #71717a;
  width: 19px;
  height: 19px;
}

.top-search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14.5px;
  outline: none;
  width: 100%;
}

.top-search-box input::placeholder {
  color: #71717a;
}

.top-user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #12121c;
  border: 1px solid #1f1f2e;
  border-radius: 14px;
  padding: 8px 18px 8px 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.top-user-badge:hover {
  border-color: var(--orange-touch);
  background: #181928;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.user-avatar-square {
  width: 44px;
  height: 44px;
  background: #181926;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.top-nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.avatar-initial-fallback {
  width: 100%;
  height: 100%;
  background: var(--fire-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
}

.user-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-align: left;
}

.user-title-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.user-sub-plan {
  font-size: 12.5px;
  color: #a1a1aa;
}

.user-dropdown-menu {
  position: absolute;
  top: 54px;
  right: 0;
  width: 200px;
  background: #14141e;
  border: 1px solid #2b2b3d;
  border-radius: 9px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  display: none;
  z-index: 100;
}

.user-dropdown-menu.show {
  display: block;
}

.user-dropdown-item {
  padding: 9px 12px;
  font-size: 13.5px;
  color: #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-dropdown-item:hover {
  background: #1f1f2e;
  color: #ffffff;
}

/* ==========================================================================
   PAGE CONTAINER & BREADCRUMBS
   ========================================================================== */
.page-container {
  padding: 36px 48px 90px 48px;
  flex: 1;
}

.breadcrumb-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #a1a1aa;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-separator {
  color: #52525b;
}

.breadcrumb-alert {
  color: #ef4444;
  font-weight: 600;
}

.breadcrumb-alert a {
  color: var(--red-hover);
  text-decoration: underline;
  margin-left: 4px;
}

.main-page-title {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.main-page-subtitle {
  font-size: 15px;
  color: #a1a1aa;
  margin-bottom: 28px;
  line-height: 1.55;
}

.main-page-subtitle a {
  color: var(--red-hover);
  text-decoration: none;
}

.main-page-subtitle a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   TOP 4 METRIC STAT CARDS
   ========================================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.metric-card {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(10, 11, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 10, 59, 0.08) 0%, rgba(14, 16, 24, 0.98) 100%);
  border-color: rgba(255, 10, 59, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85), 0 0 30px -5px rgba(255, 10, 59, 0.3);
}

.metric-number {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 6px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 70%, #ff2a5f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 10, 59, 0.2));
}

.metric-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #a1a1aa;
}

/* ==========================================================================
   MANAGE APPLICATIONS 2-COLUMN LAYOUT
   ========================================================================== */
.manage-apps-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
}

.app-creds-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  height: fit-content;
}

.creds-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.creds-card-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
  margin-bottom: 16px;
}

/* ==========================================================================
   COMPACT PRO-ALIGNED CODE SNIPPET TOGGLE (SMOOTH SLOW EASING)
   ========================================================================== */
.snippet-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 6px;
  margin-bottom: 16px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  line-height: 1;
}

.snippet-toggle-label {
  font-family: var(--font-sans), system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #d1d5db;
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.snippet-toggle-row:hover .snippet-toggle-label {
  color: #ffffff;
}

/* Slower, Buttery Smooth, Luxury-Grade Toggle Switch */
.switch,
.switch-control,
.switch-toggle,
.pro-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
}

.switch input,
.switch-control input,
.switch-toggle input,
.pro-switch input {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.switch-slider,
.pro-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #151722;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  transition: background-color 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.switch-slider:before,
.pro-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  top: 1.5px;
  background-color: #cbd5e1;
  border-radius: 50%;
  transition: transform 0.48s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.48s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.48s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.switch:hover .switch-slider,
.switch-control:hover .switch-slider,
.switch-toggle:hover .switch-slider,
.pro-switch:hover .pro-switch-slider {
  border-color: rgba(255, 10, 59, 0.5);
}

.switch input:checked + .switch-slider,
.switch-control input:checked + .switch-slider,
.switch-toggle input:checked + .switch-slider,
.pro-switch input:checked + .pro-switch-slider {
  background: linear-gradient(135deg, #b30024 0%, #ff0a3b 60%, #ff2a5f 100%) !important;
  border-color: #ff0a3b !important;
  box-shadow: 0 0 16px rgba(255, 10, 59, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.25) !important;
}

.switch input:checked + .switch-slider:before,
.switch-control input:checked + .switch-slider:before,
.switch-toggle input:checked + .switch-slider:before,
.pro-switch input:checked + .pro-switch-slider:before {
  transform: translateX(18px) !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

.snippet-box-container {
  background: #08080d;
  border: 1px solid rgba(255, 10, 59, 0.28);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.42s ease,
              transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
              margin 0.42s ease;
}

.snippet-box-container.show {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.snippet-lang-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #1f1f2e;
}

.snippet-lang-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.snippet-lang-btn:hover {
  color: #ffffff;
}

.snippet-lang-btn.active {
  background: var(--red-primary);
  color: #ffffff;
}

.snippet-code-pre {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #fca5a5;
  background: #060609;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.45;
  margin-bottom: 10px;
}

.cred-box {
  background: #09090d;
  border: 1px solid #1a1a26;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}

.cred-box:hover {
  border-color: rgba(255, 87, 34, 0.35);
}

.cred-box-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.cred-box-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cred-box-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
  word-break: break-all;
}

.cred-box-copy {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.cred-box-copy:hover {
  color: #ffffff;
}

.btn-refresh-secret {
  width: 100%;
  background: rgba(255, 10, 59, 0.08);
  border: 1px solid rgba(255, 10, 59, 0.4);
  color: #ff2a5f;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.btn-refresh-secret:hover {
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 100%);
  color: #ffffff;
  border-color: #ff2a5f;
  box-shadow: 0 4px 16px rgba(255, 10, 59, 0.4);
}

.creds-notice-box {
  background: #190c10;
  border: 1px solid var(--red-border);
  border-radius: 9px;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  color: #fca5a5;
  display: flex;
  gap: 10px;
}

.creds-notice-box svg {
  color: var(--red-primary);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* My Applications (Right Column) */
.my-apps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.my-apps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.my-apps-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
}

.my-apps-tab {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--red-primary);
}

.my-apps-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #09090d;
  border: 1px solid #1f1f2e;
  border-radius: 8px;
  padding: 8px 14px;
  width: 250px;
  transition: border-color 0.2s;
}

.my-apps-search:focus-within {
  border-color: var(--orange-touch);
}

.my-apps-search svg {
  color: #6b7280;
  width: 15px;
  height: 15px;
}

.my-apps-search input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.btn-create-app-full {
  width: 100%;
  background: var(--fire-gradient);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 9px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 22px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(230, 25, 25, 0.25);
}

.btn-create-app-full:hover {
  background: var(--fire-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230, 25, 25, 0.4);
}

.app-item-card {
  background: #13131c;
  border: 1px solid #1f1f2e;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.app-item-card:hover {
  border-color: rgba(255, 87, 34, 0.35);
  transform: translateY(-1px);
}

.app-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.app-item-name {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.app-status-badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-status-badge-paused {
  background: rgba(255, 10, 59, 0.15);
  color: #ff3b61;
  border: 1px solid rgba(255, 10, 59, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 3.5px 9px;
  border-radius: 5px;
  text-transform: uppercase;
}

.app-item-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid #1a1a26;
  border-bottom: 1px solid #1a1a26;
  margin-bottom: 16px;
}

.app-stat-col-label {
  font-size: 11.5px;
  color: #9ca3af;
  margin-bottom: 4px;
}

.app-stat-col-val {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.app-item-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-app-action {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}

.btn-app-action:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-app-action svg {
  width: 15px;
  height: 15px;
}

.btn-select-active {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.btn-select-inactive {
  background: #181826;
  color: #d1d5db;
  border: 1px solid #28283c;
}

.btn-select-inactive:hover {
  background: #222236;
  color: #ffffff;
  border-color: #3b3b54;
}

.btn-rename {
  background: rgba(124, 58, 237, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.btn-desc {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-pause {
  background: rgba(255, 10, 59, 0.15);
  color: #ff3b61;
  border: 1px solid rgba(255, 10, 59, 0.35);
}

.btn-delete {
  background: rgba(220, 38, 38, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   USERS & LICENSES CARDS GRID & TOOLBAR (SCREENSHOTS 1 & 2 EXACT MATCH)
   ========================================================================== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.keyauth-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.keyauth-search-box {
  background: #09090d;
  border: 1px solid #1f1f2e;
  border-radius: 8px;
  padding: 9px 14px;
  color: #ffffff;
  font-size: 13px;
  width: 260px;
  outline: none;
}

.keyauth-search-box:focus {
  border-color: var(--red-border);
}

.keyauth-icon-buttons-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-icon-btn {
  width: 36px;
  height: 36px;
  background: #14141e;
  border: 1px solid #222233;
  border-radius: 8px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.toolbar-icon-btn:hover {
  background: #1e1e2d;
  color: #ffffff;
  border-color: var(--red-primary);
}

.toolbar-icon-btn.primary-action {
  background: var(--red-primary);
  color: #ffffff;
  border-color: var(--red-primary);
}

.toolbar-icon-btn.primary-action:hover {
  background: var(--red-hover);
}

.select-all-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #9ca3af;
  margin-bottom: 14px;
  user-select: none;
}

/* Cards Grid */
.cards-list-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.keyauth-item-card {
  background: #0f0f17;
  border: 1px solid #1f1f2e;
  border-radius: 10px;
  padding: 16px 20px;
  position: relative;
  transition: all 0.15s;
}

.keyauth-item-card:hover {
  border-color: #2e2e42;
  background: #12121c;
}

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

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

.card-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.card-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.pill-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.pill-unused {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.pill-banned {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pill-paused {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.card-actions-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-card-dots {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.btn-card-dots:hover {
  color: #ffffff;
  background: #1f1f2e;
}

/* 3-Dots Dropdown Action Menu */
.card-dropdown-menu {
  position: absolute;
  top: 30px;
  right: 0;
  width: 140px;
  background: #14141e;
  border: 1px solid #2b2b3d;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 50;
}

.card-dropdown-menu.show {
  display: block;
}

.card-dropdown-item {
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.1s;
}

.card-dropdown-item:hover {
  background: var(--red-primary);
  color: #ffffff;
}

/* Card Metadata Grid */
.card-metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
  font-size: 12px;
  color: #9ca3af;
  padding-top: 10px;
  border-top: 1px solid #1a1a26;
}

.metadata-item-label {
  color: #6b7280;
  font-size: 11px;
  margin-right: 4px;
}

.metadata-item-value {
  color: #e5e7eb;
  font-weight: 500;
}

/* Pagination Bar */
.keyauth-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #1f1f2e;
}

.btn-pagination {
  background: #14141e;
  border: 1px solid #222233;
  color: #d1d5db;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-pagination:hover {
  background: #1e1e2d;
  color: #ffffff;
  border-color: var(--red-primary);
}

.pagination-status-text {
  font-size: 12.5px;
  color: #9ca3af;
}

/* ==========================================================================
   BUTTONS, BADGES, AND UTILITIES
   ========================================================================== */
.btn-primary-blue,
.btn-primary-red {
  background: var(--fire-gradient);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 69, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-blue:hover,
.btn-primary-red:hover {
  background: var(--fire-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 69, 0, 0.55);
}

.btn-danger-red {
  background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transition: all 0.2s;
}

.btn-danger-red:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

.btn-secondary-dark {
  background: #13131e;
  color: #ffffff;
  border: 1px solid #242436;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-secondary-dark:hover {
  background: #1c1c2b;
  border-color: #3b3b54;
}

.btn-block {
  width: 100%;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: 10px;
}

.keyauth-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  text-align: left;
}

.keyauth-table th {
  padding: 14px 18px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #9ca3af;
  border-bottom: 1px solid #222236;
  background: #09090e;
}

.keyauth-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #161624;
  color: #e5e7eb;
  vertical-align: middle;
  transition: background 0.15s ease;
}

.keyauth-table tr:hover td {
  background: #141422;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

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

.badge-blue {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-orange {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* ==========================================================================
   MODALS (MATCHING SCREENSHOTS 3 & 4)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 620px;
  background: #0e0e18;
  border: 1px solid rgba(255, 119, 0, 0.25);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 87, 34, 0.12);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

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

.modal-close {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.modal-close:hover {
  color: #ffffff;
}

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

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.form-label-info-icon {
  color: var(--orange-touch);
  font-size: 15px;
  cursor: help;
}

.form-control {
  width: 100%;
  background: #08080d;
  border: 1px solid #26263a;
  border-radius: 11px;
  padding: 13px 16px;
  color: #ffffff;
  font-size: 15px;
  min-height: 48px;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--orange-touch);
  box-shadow: 0 0 18px rgba(255, 87, 34, 0.25);
}

.modal-footer-row {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 30px;
}

/* Floating Bottom Right Chat Widget Bubble */
.keyauth-chat-bubble-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #14141e;
  border: 1px solid #2a2a3d;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  z-index: 900;
  max-width: 340px;
  cursor: pointer;
  transition: all 0.2s;
}

.keyauth-chat-bubble-widget:hover {
  transform: translateY(-2px);
  border-color: var(--red-primary);
}

.chat-avatar-wrap {
  position: relative;
}

.chat-avatar-circle {
  width: 34px;
  height: 34px;
  background: #1e1e2d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-online-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #14141e;
}

.chat-unread-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--red-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-text-wrap {
  display: flex;
  flex-direction: column;
}

.chat-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.chat-preview-text {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.3;
}

/* Footer (Screenshots 1 & 2) */
.page-footer-bar {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #14141e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-links-group a {
  color: #6b7280;
  text-decoration: none;
}

.footer-links-group a:hover {
  color: #d1d5db;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #0f0f17;
  border: 1px solid var(--red-primary);
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  min-width: 260px;
  transition: all 0.25s;
}

/* ==========================================================================
   AUTHENTIC OAUTH DIALOGS (GOOGLE, DISCORD, GITHUB)
   ========================================================================== */
.oauth-backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.oauth-dialog {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  padding: 28px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.oauth-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 24px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.oauth-close:hover {
  color: #ffffff;
}

/* 1. Google OAuth Dialog */
.google-dialog {
  background: #202124;
  border: 1px solid #3c4043;
  color: #e8eaed;
}

.google-header {
  text-align: center;
  margin-bottom: 22px;
}

.google-title {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 10px;
}

.google-sub {
  font-size: 13px;
  color: #9aa0a6;
  margin-top: 4px;
}

.google-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.google-acc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #3c4043;
  background: #292a2d;
  cursor: pointer;
  transition: all 0.15s;
}

.google-acc-item:hover {
  background: #35363a;
  border-color: #5f6368;
}

.google-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
}

.google-avatar-circle.other {
  background: #3c4043;
  color: #8ab4f8;
}

.google-acc-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.google-acc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.google-acc-email {
  font-size: 12px;
  color: #9aa0a6;
}

.google-input {
  background: #202124 !important;
  border: 1px solid #5f6368 !important;
  color: #ffffff !important;
}

.google-input:focus {
  border-color: #8ab4f8 !important;
  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.2) !important;
}

.btn-google-action {
  background: #8ab4f8;
  color: #202124;
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-google-action:hover {
  background: #aecbfa;
}

.google-footer-consent {
  font-size: 11px;
  color: #9aa0a6;
  line-height: 1.4;
  border-top: 1px solid #3c4043;
  padding-top: 14px;
  margin-top: 14px;
}

/* 2. Discord OAuth Dialog */
.discord-dialog {
  background: #313338;
  border: 1px solid #232428;
  color: #dbdee1;
}

.discord-connect-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}

.discord-app-badge {
  width: 48px;
  height: 48px;
  background: var(--red-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-logo-badge {
  width: 48px;
  height: 48px;
  background: #5865F2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

.discord-sub {
  font-size: 13px;
  color: #949ba4;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 18px;
}

.discord-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2b2d31;
  border: 1px solid #1e1f22;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.discord-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-tag-input {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  width: 100%;
  outline: none;
}

.discord-email-input {
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: #949ba4;
  width: 100%;
  outline: none;
}

.discord-permissions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  background: #2b2d31;
  padding: 14px;
  border-radius: 8px;
}

.discord-perm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #dbdee1;
}

.discord-check-icon {
  width: 15px;
  height: 15px;
  color: #23a55a;
  flex-shrink: 0;
}

.discord-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-discord-cancel {
  background: transparent;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  cursor: pointer;
  border-radius: 4px;
}

.btn-discord-cancel:hover {
  text-decoration: underline;
}

.btn-discord-authorize {
  background: #5865F2;
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-discord-authorize:hover {
  background: #4752c4;
}

/* 3. GitHub OAuth Dialog */
.github-dialog {
  background: #0d1117;
  border: 1px solid #30363d;
  color: #c9d1d9;
}

.github-header {
  text-align: center;
  margin-bottom: 20px;
}

.github-title {
  font-size: 19px;
  font-weight: 600;
  color: #f0f6fc;
  margin-top: 10px;
}

.github-sub {
  font-size: 13px;
  color: #8b949e;
  margin-top: 4px;
}

.github-input {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #f0f6fc !important;
}

.github-input:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2) !important;
}

.github-permissions-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
}

.github-perm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 4px;
}

.github-perm-desc {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.4;
}

.github-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-github-cancel {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-github-cancel:hover {
  background: #30363d;
  color: #ffffff;
}

.btn-github-authorize {
  background: #238636;
  color: #ffffff;
  border: 1px solid rgba(240, 246, 252, 0.1);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-github-authorize:hover {
  background: #2ea043;
}

/* Provider badge in top bar */
.user-provider-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

/* Chat Bubble Dismiss Button */
.chat-bubble-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.15s;
}

.chat-bubble-dismiss:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Floating Support Launcher */
.floating-support-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 899;
  cursor: pointer;
  display: none;
}

.launcher-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fire-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--fire-glow);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.launcher-circle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(255, 87, 34, 0.6);
}

.launcher-pulse-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--orange-touch);
  animation: launcherPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes launcherPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Expiry Presets in Create User Modal */
.expiry-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.expiry-preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.expiry-preset-btn:hover {
  background: rgba(230, 25, 25, 0.15);
  border-color: var(--orange-touch);
  color: #ffffff;
}

.expiry-preset-btn.active {
  background: var(--fire-gradient);
  border-color: var(--orange-touch);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px var(--fire-glow);
}

/* ==========================================================================
   PRICING & DEVELOPER SUBSCRIPTIONS STORE
   ========================================================================== */
.pricing-hero {
  text-align: center;
  max-width: 800px;
  margin: 10px auto 35px auto;
}

.pricing-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 10, 59, 0.15);
  border: 1px solid rgba(255, 10, 59, 0.35);
  color: #ff2a5f;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.pricing-billing-toggle {
  display: inline-flex;
  background: #12141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 12px;
  margin-top: 20px;
  gap: 4px;
}

.pricing-toggle-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-toggle-tab:hover {
  color: #ffffff;
}

.pricing-toggle-tab.active {
  background: var(--fire-gradient);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--fire-glow);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 48px;
  align-items: stretch;
}

.pricing-plan-card {
  background: radial-gradient(120% 120% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, rgba(10, 11, 16, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 10, 59, 0.4);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(255, 10, 59, 0.25);
}

.pricing-plan-card.featured {
  background: radial-gradient(130% 130% at 50% -10%, rgba(255, 10, 59, 0.12) 0%, rgba(14, 15, 22, 0.98) 100%);
  border: 1.5px solid var(--orange-touch);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.9), 0 0 50px -8px rgba(255, 10, 59, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: scale(1.025);
}

.pricing-plan-card.featured:hover {
  transform: scale(1.025) translateY(-8px);
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.95), 0 0 65px -5px rgba(255, 10, 59, 0.65);
  border-color: #ff3b61;
}

.pricing-card-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fire-gradient);
  color: #ffffff;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(255, 10, 59, 0.5);
  white-space: nowrap;
  animation: slowBadgePulse 4s ease-in-out infinite;
}

.plan-header-title {
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.plan-header-desc {
  font-size: 13px;
  color: #9ca3af;
  min-height: 40px;
  line-height: 1.5;
}

.plan-price-wrap {
  margin: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plan-price-currency {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.plan-price-amount {
  font-size: 46px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
}

.plan-price-period {
  font-size: 13px;
  color: #71717a;
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: #d1d5db;
}

.plan-feature-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.plan-feature-item.muted {
  color: #52525b;
}

.plan-feature-item.muted .plan-feature-icon {
  background: rgba(82, 82, 91, 0.15);
  color: #52525b;
  box-shadow: none;
}

.btn-plan-action {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.45s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-plan-action:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn-plan-action:active:not(:disabled) {
  transform: translateY(0px) scale(0.98);
}

.btn-plan-action.current {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #71717a;
  cursor: default;
}

.btn-plan-action.primary {
  background: var(--fire-gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--fire-glow);
}

.btn-plan-action.primary:hover {
  box-shadow: 0 10px 30px rgba(255, 10, 59, 0.65), 0 0 20px rgba(255, 42, 95, 0.4);
}

.btn-plan-action.enterprise {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-plan-action.enterprise:hover {
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.55), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Upgrade Checkout Modal & Payment Gateway UI */
.checkout-plan-summary {
  background: linear-gradient(135deg, rgba(255, 119, 0, 0.08) 0%, rgba(20, 22, 34, 0.8) 100%);
  border: 1px solid rgba(255, 119, 0, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.checkout-plan-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-plan-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-plan-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.checkout-order-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.checkout-price-block {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.checkout-price-main {
  font-size: 26px;
  font-weight: 900;
  color: #10b981;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.checkout-price-sub {
  font-size: 12px;
  font-weight: 700;
  color: #ff8800;
  margin-top: 2px;
}

.checkout-price-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

@media (max-width: 580px) {
  .checkout-payment-methods {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkout-method-card {
  background: #131520;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.checkout-method-card:hover {
  border-color: rgba(255, 119, 0, 0.35);
  background: rgba(255, 119, 0, 0.05);
  transform: translateY(-1px);
}

.checkout-method-card.selected {
  border-color: #ff8800;
  background: linear-gradient(180deg, rgba(255, 119, 0, 0.18) 0%, rgba(255, 69, 0, 0.06) 100%);
  box-shadow: 0 0 14px rgba(255, 107, 0, 0.25);
}

.checkout-method-card .method-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.checkout-method-card .method-sub {
  font-size: 10px;
  color: #9ca3af;
}

/* Payment Panels */
.checkout-section-panel {
  background: #10121c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.upi-qr-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.upi-qr-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #ffffff;
  border-radius: 14px;
  width: 175px;
  height: 175px;
  margin: 0 auto 10px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 119, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.upi-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.upi-payee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 8px;
  font-weight: 600;
}

.upi-payee-badge .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.copy-pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090a10;
  border: 1px solid rgba(255, 119, 0, 0.3);
  padding: 8px 12px;
  border-radius: 10px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.copy-pill-text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: #ff8800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-sm {
  background: rgba(255, 119, 0, 0.15);
  border: 1px solid rgba(255, 119, 0, 0.4);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-copy-sm:hover {
  background: #ff5500;
  border-color: #ff5500;
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.45);
  transform: translateY(-1px);
}

.utr-input-field {
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-align: center !important;
  color: #ffffff !important;
  background: #090a10 !important;
  border: 1.5px solid rgba(255, 119, 0, 0.35) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  transition: all 0.2s ease !important;
}

.utr-input-field:focus {
  border-color: #ff8800 !important;
  box-shadow: 0 0 16px rgba(255, 136, 0, 0.35) !important;
  background: #0c0e18 !important;
}

.crypto-coin-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.crypto-coin-btn {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.crypto-coin-btn.active {
  background: rgba(245, 158, 11, 0.18);
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Status Badges */
.badge-order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-order-status.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.badge-order-status.processing {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
  animation: pulseBadge 2.2s infinite ease-in-out;
}

.badge-order-status.completed {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

.badge-order-status.rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

@keyframes pulseBadge {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(0.98);
  }
}

.invoices-table-card {
  margin-top: 32px;
  background: #0f111a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* ========================================================================== */
/* 2-COLUMN AUTHENTICATION VIEW & ORANGE CYBER THEME (AUTHLY-STYLE REPLICA)   */
/* ========================================================================== */

.auth-page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(255, 107, 0, 0.08) 0%, #06070a 65%, #030406 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Top Navbar Header */
.auth-navbar {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.auth-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.auth-logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.auth-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #b30024 0%, #ff0a3b 50%, #ff2a5f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 10, 59, 0.45);
}

.auth-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.auth-brand-name span {
  background: linear-gradient(135deg, #ff2a5f 0%, #ff0a3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.auth-nav-links a {
  color: #9ca3af;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-nav-links a:hover {
  color: #ffffff;
}

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

.btn-nav-login {
  background: transparent;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-nav-portal {
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-nav-staff {
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-nav-staff:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.btn-nav-reseller,
.btn-nav-team {
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-nav-reseller:hover,
.btn-nav-team:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.portal-pill-btn {
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.staff-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.staff-pill:hover {
  background: rgba(56, 189, 248, 0.22);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.reseller-pill,
.team-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.reseller-pill:hover,
.team-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-nav-getstarted {
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 50%, #ff2a5f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 10, 59, 0.4);
  font-size: 13.5px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 10, 59, 0.35);
}

.btn-nav-getstarted:hover {
  background: linear-gradient(135deg, #e60033 0%, #ff2a5f 50%, #ff4d73 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 10, 59, 0.55);
}

/* Main Content Center Area */
.auth-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 50px 20px;
  max-width: 1060px;
  margin: 0 auto;
  width: 100%;
}

/* 2-Column Split Card Container */
.auth-split-card {
  width: 100%;
  max-width: 960px;
  background: #0b0d13;
  border: 1px solid rgba(255, 10, 59, 0.25);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 25px rgba(255, 10, 59, 0.18);
  position: relative;
  box-sizing: border-box;
}

.auth-split-card::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 10, 59, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Left Card Column */
.auth-card-left {
  padding: 38px 36px;
  border-right: 1px solid rgba(255, 10, 59, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0b0d13;
  min-width: 0;
  box-sizing: border-box;
}

.auth-heading {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.auth-subheading {
  font-size: 13.5px;
  color: #9ca3af;
  margin: 0 0 24px 0;
}

/* Primary Sign In Button */
.btn-signin-primary {
  width: 100%;
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 50%, #ff2a5f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 10, 59, 0.4);
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  box-shadow: 0 4px 18px rgba(255, 10, 59, 0.4);
}

.btn-signin-primary:hover {
  background: linear-gradient(135deg, #e60033 0%, #ff2a5f 50%, #ff4d73 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 10, 59, 0.6);
}

/* Right Card Column (Quick Sign In) */
.auth-card-right {
  padding: 30px 22px;
  background: rgba(7, 8, 12, 0.96);
  border-left: 1px solid rgba(255, 10, 59, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: left;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.quick-auth-header {
  margin-bottom: 20px;
}

.quick-auth-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 10, 59, 0.12);
  border: 1px solid rgba(255, 10, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 0 20px rgba(255, 10, 59, 0.3);
}

.quick-auth-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.quick-auth-subtitle {
  font-size: 12.5px;
  color: #9ca3af;
  margin: 0;
  line-height: 1.4;
}

.quick-auth-buttons-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-quick-auth {
  width: 100%;
  background: #11141d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 11px 16px;
  color: #e5e7eb;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-quick-auth:hover {
  background: #181c28;
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-quick-auth.passkey {
  border-color: rgba(255, 10, 59, 0.25);
  background: rgba(255, 10, 59, 0.04);
}

.btn-quick-auth.passkey:hover {
  background: rgba(255, 10, 59, 0.12);
  border-color: rgba(255, 10, 59, 0.5);
  box-shadow: 0 0 15px rgba(255, 10, 59, 0.25);
}

.btn-quick-auth.google:hover {
  border-color: #4285F4;
  box-shadow: 0 2px 12px rgba(66, 133, 244, 0.2);
}

.btn-quick-auth.github:hover {
  border-color: #ffffff;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.15);
}

.btn-quick-auth.discord:hover {
  border-color: #5865F2;
  box-shadow: 0 2px 12px rgba(88, 101, 242, 0.25);
}

.quick-auth-divider {
  position: relative;
  text-align: center;
  margin: 6px 0;
}

.quick-auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.quick-auth-divider span {
  position: relative;
  background: #080a0f;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 1px;
}

/* Bottom Portals Row */
.auth-other-portals {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.portals-label {
  font-size: 11px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 1.5px;
}

.portals-links-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.portal-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.15s ease;
}

.portal-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Password Input & Toggle */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .form-control {
  padding-right: 42px !important;
}

.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.password-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Generic Modal & OAuth Backdrop Display */
.modal-backdrop,
.oauth-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 5, 8, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  z-index: 999999 !important;
  animation: oauthFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.show,
.oauth-backdrop.show {
  display: flex !important;
}

@keyframes oauthFadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.oauth-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: oauthSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes oauthSlideUp {
  from {
    transform: translateY(16px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.oauth-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  color: #9aa0a6;
  cursor: pointer;
  transition: all 0.15s;
  z-index: 10;
}

.oauth-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ---------------------------------------------------- */
/* 1. GOOGLE SIGN-IN MODAL (AUTHENTIC GOOGLE GSI THEME) */
/* ---------------------------------------------------- */
.oauth-dialog.google-dialog {
  max-width: 780px !important;
  background: #131314;
  border: 1px solid #3c4043;
  border-radius: 28px;
  color: #e8eaed;
  padding: 36px 40px 28px 40px;
  font-family: 'Google Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}

.google-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.google-split-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}

.google-split-left {
  padding-right: 12px;
}

.google-main-title {
  font-size: 32px;
  font-weight: 400;
  color: #e8eaed;
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.google-main-subtitle {
  font-size: 15px;
  color: #9aa0a6;
  margin: 0;
  line-height: 1.5;
}

.google-split-right {
  display: flex;
  flex-direction: column;
}

/* Dynamic Account Selector List */
.google-accounts-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #3c4043;
  margin-bottom: 6px;
}

.google-acc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 10px;
  border-bottom: 1px solid #3c4043;
  cursor: pointer;
  transition: background 0.15s ease;
  border-radius: 8px;
  margin: 1px 0;
  user-select: none;
}

.google-acc-item:hover {
  background: #28292c;
}

.google-acc-item.use-other {
  border-bottom: none;
  margin-top: 2px;
}

.google-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.google-avatar-circle.other {
  background: transparent;
  border: 1.5px dashed #5f6368;
  color: #8ab4f8;
}

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

.google-acc-name {
  font-size: 14px;
  font-weight: 600;
  color: #e8eaed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-acc-email {
  font-size: 12px;
  color: #9aa0a6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.google-del-btn {
  background: transparent;
  border: none;
  color: #5f6368;
  font-size: 14px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s;
  opacity: 0.5;
}

.google-acc-item:hover .google-del-btn {
  opacity: 1;
  color: #9aa0a6;
}

.google-del-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #f28b82 !important;
}

@media (max-width: 768px) {
  .google-split-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .oauth-dialog.google-dialog {
    padding: 24px 20px;
  }
}

/* Google Inputs & Buttons */
.google-input {
  background: #17181a !important;
  border: 1px solid #5f6368 !important;
  color: #e8eaed !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  font-size: 13.5px !important;
}

.google-input:focus {
  border-color: #8ab4f8 !important;
  box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.2) !important;
}

.btn-google-action {
  background: #8ab4f8;
  color: #202124;
  border: none;
  border-radius: 6px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-google-action:hover {
  background: #aecbfa;
  box-shadow: 0 2px 8px rgba(138, 180, 248, 0.35);
}

.btn-google-secondary {
  background: transparent;
  color: #8ab4f8;
  border: none;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-google-secondary:hover {
  background: rgba(138, 180, 248, 0.08);
}

.google-footer-consent {
  font-size: 11.5px;
  color: #9aa0a6;
  line-height: 1.5;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #303134;
}

.google-links-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #5f6368;
  margin-top: 16px;
}

.google-sublinks {
  display: flex;
  gap: 12px;
}

.google-sublinks a {
  color: #5f6368;
  text-decoration: none;
  transition: color 0.15s;
}

.google-sublinks a:hover {
  color: #8ab4f8;
}

/* ---------------------------------------------------- */
/* 2. DISCORD OAUTH2 DIALOG (AUTHENTIC DISCORD THEME)   */
/* ---------------------------------------------------- */
.discord-dialog {
  background: #313338;
  border: 1px solid #3f4147;
  color: #dbdee1;
  padding: 28px 24px;
  font-family: 'gg sans', 'Noto Sans', Inter, -apple-system, sans-serif;
}

.discord-connect-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.discord-app-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--fire-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--fire-glow);
}

.discord-logo-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.discord-title {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.discord-sub {
  text-align: center;
  font-size: 13px;
  color: #949ba4;
  margin: 0 0 20px 0;
}

.discord-user-card {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.discord-user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #5865F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.discord-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #23a55a;
  border: 2px solid #2b2d31;
}

.discord-tag-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.discord-email-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #949ba4;
  font-size: 12px;
  outline: none;
  margin-top: 2px;
}

.discord-permissions-list {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.discord-perm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #dbdee1;
}

.discord-check-icon {
  width: 16px;
  height: 16px;
  color: #23a55a;
  flex-shrink: 0;
}

.discord-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.btn-discord-cancel {
  background: transparent;
  color: #ffffff;
  border: 1px solid #4e5058;
  border-radius: 6px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-discord-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #80848e;
}

.btn-discord-authorize {
  background: #5865F2;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.35);
}

.btn-discord-authorize:hover {
  background: #4752c4;
  box-shadow: 0 6px 16px rgba(88, 101, 242, 0.5);
}

/* ---------------------------------------------------- */
/* 3. GITHUB OAUTH DIALOG (AUTHENTIC GITHUB DARK THEME) */
/* ---------------------------------------------------- */
.github-dialog {
  background: #161b22;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 30px 26px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

.github-header {
  text-align: center;
  margin-bottom: 22px;
}

.github-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 10px 0 4px 0;
}

.github-sub {
  font-size: 13px;
  color: #8b949e;
  margin: 0;
}

.github-input {
  background: #0d1117 !important;
  border: 1px solid #30363d !important;
  color: #c9d1d9 !important;
  border-radius: 6px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
}

.github-input:focus {
  border-color: #58a6ff !important;
  box-shadow: 0 0 0 3px rgba(56, 139, 253, 0.3) !important;
}

.github-permissions-box {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

.github-perm-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #f0f6fc;
  margin-bottom: 4px;
}

.github-perm-desc {
  font-size: 11.5px;
  color: #8b949e;
  line-height: 1.4;
  margin-left: 23px;
}

.github-actions-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

.btn-github-cancel {
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-github-cancel:hover {
  background: #30363d;
  border-color: #8b949e;
}

.btn-github-authorize {
  background: #238636;
  color: #ffffff;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 6px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
}

.btn-github-authorize:hover {
  background: #2ea043;
}

@media (max-width: 1024px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }

  .pricing-plan-card.featured {
    transform: none;
  }

  .manage-apps-grid {
    grid-template-columns: 1fr;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-metadata-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ======================================================== */
/* OFFICIAL DEXTER METALLIC LOGO STYLING                    */
/* ======================================================== */
.auth-brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 10, 59, 0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.auth-logo-badge:hover .auth-brand-logo-img {
  transform: scale(1.06);
  filter: drop-shadow(0 0 14px rgba(255, 10, 59, 0.75));
}

.auth-card-brand-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-card-logo-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 10, 59, 0.08);
  border: 1px solid rgba(255, 10, 59, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 10, 59, 0.22);
  backdrop-filter: blur(8px);
}

.auth-form-brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 10, 59, 0.6));
}

.auth-card-badge-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #ff2a5f;
  background: rgba(255, 10, 59, 0.12);
  border: 1px solid rgba(255, 10, 59, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.sidebar-brand-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-right: 10px;
  filter: drop-shadow(0 0 8px rgba(255, 10, 59, 0.4));
  vertical-align: middle;
}

.quick-brand-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 10, 59, 0.65));
}

.loader-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 10, 59, 0.8));
  animation: pulseLogo 2s infinite ease-in-out;
}

.chat-avatar-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(255, 10, 59, 0.5));
}

@keyframes pulseLogo {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 14px rgba(255, 10, 59, 0.7));
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 22px rgba(255, 10, 59, 0.95));
  }
}

/* ======================================================== */
/* ULTRA-SMOOTH & CONTROLLED VIEW PANEL SWITCHING           */
/* ======================================================== */
.view-panel {
  opacity: 0;
  transform: translateY(24px) scale(0.978);
  filter: blur(8px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.view-panel.active-view-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  animation: panelSmoothFadeIn 0.68s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelSmoothFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.978);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Multi-Portal Auth Tabs */
.auth-portal-tabs-nav {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 20px;
}

.auth-portal-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-portal-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-portal-tab-btn.active {
  background: var(--fire-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--fire-glow);
}

.auth-portal-tab-btn[data-tab="staff"].active,
.auth-portal-tab-btn#authTabBtnStaff.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45) !important;
}

.auth-portal-tab-btn[data-tab="reseller"].active,
.auth-portal-tab-btn#authTabBtnReseller.active,
.auth-portal-tab-btn[data-tab="team"].active,
.auth-portal-tab-btn#authTabBtnTeam.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45) !important;
}

.auth-portal-tab-btn[data-tab="developer"].active,
.auth-portal-tab-btn#authTabBtnDev.active {
  background: var(--fire-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px var(--fire-glow) !important;
}

/* Smooth Auth Form Slide/Fade Switch */
.auth-form-enter {
  animation: authFormSmoothSwitch 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFormSmoothSwitch {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Auth Card Smooth Load Entrance */
.auth-split-card {
  animation: authCardSmoothEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authCardSmoothEntrance {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sidebar Navigation Link Hover & Active Transitions */
.sidebar-link {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-link:hover {
  transform: translateX(4px);
  background: rgba(255, 119, 0, 0.08) !important;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(255, 10, 59, 0.2) 0%, rgba(255, 10, 59, 0.03) 100%) !important;
  border-left: 3px solid #ff0a3b !important;
  box-shadow: inset 0 0 15px rgba(255, 10, 59, 0.14) !important;
}

/* Dashboard Stat Cards & Tables Smooth Elevate */
.stat-card,
.table-container,
.manage-apps-grid,
.pricing-plan-card,
.content-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.stat-card:hover,
.content-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

/* Table Row Smooth Highlights */
.table tbody tr,
.data-table tbody tr {
  transition: background 0.2s ease, transform 0.2s ease !important;
}

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

/* Smooth Dialog & Modal Transitions */
.modal-backdrop {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.modal-dialog,
.oauth-dialog {
  animation: modalScaleSmooth 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes modalScaleSmooth {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ======================================================== */
/* ULTRA-RESPONSIVE MOBILE DESIGN SYSTEM                    */
/* ======================================================== */
.btn-mobile-sidebar-toggle {
  display: none;
  background: rgba(255, 10, 59, 0.12);
  border: 1px solid rgba(255, 10, 59, 0.35);
  color: #ff0a3b;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-mobile-sidebar-toggle:hover {
  background: rgba(255, 10, 59, 0.25);
}

.top-bar-left-mobile {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.mobile-top-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 10, 59, 0.5));
}

.mobile-top-brand span {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.mobile-top-brand span span {
  color: #ff0a3b;
}

.sidebar-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-mobile-backdrop.show {
  display: block;
  opacity: 1;
}

@media (max-width: 860px) {
  .auth-page-wrapper {
    padding: 12px 10px 40px 10px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
  }

  .auth-navbar {
    padding: 12px 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .auth-nav-links {
    display: none;
  }

  .auth-main-content {
    padding: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .auth-split-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    margin: 10px auto;
    border-radius: 18px;
    box-sizing: border-box;
  }

  .auth-card-left {
    padding: 28px 18px;
    box-sizing: border-box;
    width: 100%;
  }

  .auth-card-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 18px;
    box-sizing: border-box;
    width: 100%;
  }

  .auth-portal-tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 18px;
  }

  .auth-portal-tab-btn {
    font-size: 11.5px;
    padding: 7px 6px;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .auth-portal-tab-btn i {
    width: 13px;
    height: 13px;
  }

  .auth-remember-row,
  .form-label-row,
  .auth-footer-links {
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }

  .auth-other-portals {
    margin-top: 20px;
    padding: 0 10px;
  }

  .portals-links-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .app-layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 275px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.9);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

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

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

  .mobile-top-brand {
    display: flex;
  }

  .top-bar {
    padding: 10px 14px;
    gap: 12px;
  }

  .top-search-box {
    display: none;
  }

  .top-user-badge .user-text-wrap {
    display: none;
  }

  .top-user-badge {
    padding: 4px;
  }

  .page-container {
    padding: 16px 12px;
  }

  .metrics-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-card {
    padding: 14px;
  }

  .metric-number {
    font-size: 22px;
  }

  .card-metadata-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cred-box {
    padding: 14px;
  }

  .cred-box-value {
    font-size: 13px;
    word-break: break-all;
  }

  .main-page-title {
    font-size: 22px;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .table {
    min-width: 580px;
  }

  .support-side-tab {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-navbar .auth-brand-name {
    font-size: 16px;
  }

  .auth-brand-logo-img {
    width: 28px;
    height: 28px;
  }

  .auth-card-left {
    padding: 20px 14px !important;
  }

  .auth-card-right {
    padding: 20px 14px !important;
  }

  .auth-heading {
    font-size: 20px !important;
  }

  .auth-subheading {
    font-size: 12.5px !important;
    margin-bottom: 16px !important;
  }

  .btn-signin-primary {
    font-size: 14px !important;
    padding: 11px 14px !important;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }

  .modal-dialog,
  .oauth-dialog {
    width: 94% !important;
    max-width: 94% !important;
    margin: 10px auto !important;
    padding: 16px 12px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   ULTRA-PROFESSIONAL CUSTOM CONTROLS: CHECKBOXES, SELECTS & SWITCHES
   ========================================================================== */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 19px;
  height: 19px;
  background: #0c0e14;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  margin: 0;
}

input[type="checkbox"]:hover {
  border-color: rgba(255, 119, 0, 0.7);
  background: #12141e;
  box-shadow: 0 0 12px rgba(255, 10, 59, 0.3), inset 0 1px 3px rgba(0, 0, 0, 0.6);
  transform: translateY(-1px);
}

input[type="checkbox"]:focus-visible {
  border-color: #ff0a3b;
  box-shadow: 0 0 0 3px rgba(255, 10, 59, 0.25), 0 0 14px rgba(255, 10, 59, 0.4);
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #b30024 0%, #ff0a3b 50%, #ff2a5f 100%);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(255, 10, 59, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: scale(1.05);
}

input[type="checkbox"]:checked::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
  display: block;
}

input[type="checkbox"]:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Custom Select All Rows */
.select-all-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 20, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
  user-select: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.select-all-row:hover {
  background: rgba(24, 28, 40, 0.85);
  border-color: rgba(255, 119, 0, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.select-all-row label {
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
}

/* Custom Form Select Dropdowns */
select,
select.form-control,
.keyauth-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0c0e14 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff0a3b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px !important;
  padding-right: 40px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

select:hover,
select.form-control:hover,
.keyauth-select:hover {
  border-color: rgba(255, 10, 59, 0.5) !important;
  background-color: #12141e !important;
  box-shadow: 0 0 12px rgba(255, 10, 59, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

select:focus,
select.form-control:focus,
.keyauth-select:focus {
  border-color: #ff0a3b !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 10, 59, 0.25), 0 0 16px rgba(255, 10, 59, 0.4) !important;
}

select option {
  background-color: #0b0d13 !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
}

select option:checked,
select option:hover {
  background: linear-gradient(135deg, #cc0029, #ff0a3b) !important;
  color: #ffffff !important;
}

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

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a1d26;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.switch input:checked+.switch-slider {
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 100%);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(255, 10, 59, 0.5);
}

.switch input:checked+.switch-slider:before {
  transform: translateX(20px);
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   USER CARD DESIGN (MATCHING USER SCREENSHOT 1)
   ========================================================================== */
.user-item-card {
  background: #090c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
}

.user-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 10, 59, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 10, 59, 0.2);
}

.user-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-card-left-ident {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-card-num-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.18);
  border: 1px solid rgba(220, 38, 38, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.user-card-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-card-username {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.user-card-hash {
  font-size: 11.5px;
  color: #6b7280;
  font-family: var(--font-mono);
}

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

.user-status-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.user-status-pill.pill-active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.user-status-pill.pill-banned {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-status-pill.pill-paused {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.user-plan-badge {
  background: rgba(220, 38, 38, 0.18);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
}

.user-card-sub-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #9ca3af;
}

.user-card-hwid-box {
  background: #06070c;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-card-hwid-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.5px;
}

.user-card-hwid-val {
  color: #d1d5db;
}

.user-card-bottom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-bottom-col-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.user-bottom-col-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

/* ==========================================================================
   USER DETAILS OVERVIEW MODAL (MATCHING USER SCREENSHOT 2)
   ========================================================================== */
.user-details-dialog {
  max-width: 780px !important;
  width: 95% !important;
  background: #090c14 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  padding: 28px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 107, 0, 0.15) !important;
}

.user-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 16px;
}

.user-details-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.user-details-subtitle {
  font-size: 12.5px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-details-subtitle .plan-tag {
  color: #f87171;
  font-weight: 700;
}

.user-details-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}

.user-details-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-details-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: #9ca3af;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}

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

.user-details-nav-btn.active {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.35);
  color: #f87171;
}

.user-details-content-panel {
  background: transparent;
}

.user-details-panel-heading {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
}

.user-details-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.user-details-metric-card {
  background: #06070c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-details-metric-card.full-width {
  grid-column: span 2;
}

.user-details-metric-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-details-metric-val {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

@media (max-width: 768px) {
  .user-details-body {
    grid-template-columns: 1fr;
  }

  .user-details-metric-card.full-width {
    grid-column: span 1;
  }

  .user-details-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   APP OVERVIEW / PLATFORM ANALYTICS DASHBOARD
   ========================================== */
.overview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.overview-main-title {
  font-family: 'Outfit', 'Orbitron', 'Plus Jakarta Sans', sans-serif !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: -0.03em !important;
  margin: 0 0 4px 0 !important;
  background: linear-gradient(135deg, #ffffff 0%, #ff3b61 60%, #ff0a3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 10, 59, 0.35));
}

.overview-main-subtitle {
  font-size: 13.5px;
  color: #a1a1aa;
  margin: 0;
}

/* 6 Top Stat Cards (3 Columns x 2 Rows) */
.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.overview-stat-card {
  background: linear-gradient(135deg, rgba(16, 18, 28, 0.72) 0%, rgba(9, 10, 16, 0.82) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 10, 59, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 124px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.overview-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 10, 59, 0.08), transparent);
  transition: 0.6s ease;
  pointer-events: none;
}

.overview-stat-card:hover::before {
  left: 100%;
}

.overview-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 10, 59, 0.55);
  border-top-color: rgba(255, 10, 59, 0.8);
  box-shadow: 0 20px 45px rgba(255, 10, 59, 0.22), 0 0 20px rgba(255, 10, 59, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 10, 59, 0.22) 0%, rgba(255, 10, 59, 0.06) 100%);
  color: #ff2a5f;
  border: 1px solid rgba(255, 10, 59, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(255, 10, 59, 0.2);
  transition: all 0.3s ease;
}

.overview-stat-card:hover .stat-icon-wrap {
  transform: scale(1.08) rotate(-3deg);
  background: linear-gradient(135deg, rgba(255, 10, 59, 0.35) 0%, rgba(255, 10, 59, 0.12) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 20px rgba(255, 10, 59, 0.35);
}

.stat-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.stat-icon-wrap.icon-red,
.stat-icon-wrap.icon-purple,
.stat-icon-wrap.icon-green,
.stat-icon-wrap.icon-yellow,
.stat-icon-wrap.icon-cyan,
.stat-icon-wrap.icon-pink {
  background: linear-gradient(135deg, rgba(255, 10, 59, 0.22) 0%, rgba(255, 10, 59, 0.06) 100%);
  color: #ff3b61;
  border: 1px solid rgba(255, 10, 59, 0.4);
}

.live-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  letter-spacing: 0.3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.live-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-live 2s infinite ease-in-out;
}

@keyframes pulse-live {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.stat-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card-label {
  font-size: 12.5px;
  color: #9ca3af;
  font-weight: 500;
}

.stat-card-number {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  background: linear-gradient(180deg, #ffffff 30%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Middle Section: Platform Health (Left) & Core Services (Right) */
.overview-mid-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  margin-bottom: 24px;
}

.overview-panel-card {
  background: linear-gradient(135deg, rgba(14, 16, 24, 0.75) 0%, rgba(8, 9, 14, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.overview-panel-card:hover {
  border-color: rgba(255, 10, 59, 0.25);
  border-top-color: rgba(255, 10, 59, 0.4);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.panel-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.panel-header-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-header-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.panel-header-sub {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0;
}

/* 4 Health Metrics Box Row */
.health-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.health-metric-box {
  background: linear-gradient(135deg, rgba(20, 22, 34, 0.6) 0%, rgba(10, 11, 18, 0.75) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.health-metric-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 10, 59, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.health-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.health-metric-val.status-enabled-glow {
  color: #34d399;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.health-metric-lbl {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 500;
}

/* Health Bar */
.health-bar-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.health-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.health-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.health-meta-left {
  color: #9ca3af;
}

.health-meta-right {
  color: #34d399;
  font-weight: 600;
}

/* Core Services */
.core-services-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.service-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.service-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

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

.service-status-dot.operational {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.service-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e5e7eb;
}

.service-state-text.operational {
  font-size: 12.5px;
  font-weight: 600;
  color: #34d399;
}

.core-services-status-footer {
  font-size: 12px;
  color: #6ee7b7;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
}

.services-check-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
}

/* Bottom Section: Client Integration */
.integration-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.integration-actions-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ov-lang-switcher {
  display: flex;
  background: #05060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.ov-lang-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ov-lang-btn:hover {
  color: #ffffff;
}

.ov-lang-btn.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.btn-download-sdk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.35);
  color: #f87171;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-download-sdk:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.overview-code-box {
  position: relative;
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.overview-code-pre {
  margin: 0;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

.btn-copy-code-float {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-copy-code-float:hover {
  background: rgba(220, 38, 38, 0.25);
  color: #ffffff;
  border-color: rgba(220, 38, 38, 0.4);
}

/* ==========================================
   TOP SEARCH DROPDOWN PALETTE
   ========================================== */
.top-search-box {
  position: relative;
}

.top-search-dropdown-palette {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 380px;
  max-width: 90vw;
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 0, 0.1);
  z-index: 9999;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-palette-group-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #6b7280;
  padding: 6px 10px 4px 10px;
  letter-spacing: 0.6px;
}

.search-palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #d1d5db;
}

.search-palette-item:hover,
.search-palette-item.selected {
  background: rgba(220, 38, 38, 0.14);
  color: #ffffff;
}

.search-palette-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-palette-icon {
  width: 16px;
  height: 16px;
  color: #f87171;
  flex-shrink: 0;
}

.search-palette-text {
  font-size: 13px;
  font-weight: 600;
}

.search-palette-sub {
  font-size: 11.5px;
  color: #9ca3af;
  font-weight: 400;
}

.search-palette-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #9ca3af;
}

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

  .overview-mid-row {
    grid-template-columns: 1fr;
  }

  .health-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .integration-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

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

  .health-metrics-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   TOP BAR THEME SWITCHER & TOGGLE BUTTON
   ========================================================================== */
.top-bar-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 6px 14px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.top-theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--orange-touch);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 119, 0, 0.25);
}

.theme-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.theme-icon-sun {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  display: inline-block;
  transition: transform 0.3s ease;
}

.theme-icon-moon {
  width: 16px;
  height: 16px;
  color: #818cf8;
  display: none;
  transition: transform 0.3s ease;
}

.btn-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--orange-touch);
  transform: scale(1.05);
}

/* ==========================================================================
   LIGHT MODE COMPREHENSIVE DESIGN SYSTEM (FULL LIGHT + DARK TEXT)
   ========================================================================== */
body.light-mode {
  --bg-darkest: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  background-color: #f8fafc !important;
  background-image: radial-gradient(#e2e8f0 1.2px, transparent 1.2px) !important;
  background-size: 24px 24px !important;
  color: #0f172a !important;
}

/* Light mode text colors & typography overrides */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode dt,
body.light-mode strong,
body.light-mode b {
  color: #0f172a !important;
}

body.light-mode p,
body.light-mode label,
body.light-mode .form-label,
body.light-mode .stat-card-label {
  color: #334155 !important;
}

body.light-mode small,
body.light-mode .text-muted,
body.light-mode .card-section-subtitle,
body.light-mode .main-page-subtitle,
body.light-mode .overview-main-subtitle {
  color: #64748b !important;
}

/* Automatically convert hardcoded white text on dark cards into dark text in light mode */
body.light-mode [style*="color: #ffffff"],
body.light-mode [style*="color: #fff"],
body.light-mode [style*="color:#ffffff"],
body.light-mode [style*="color:#fff"],
body.light-mode [style*="color: white"],
body.light-mode [style*="color:white"] {
  color: #0f172a !important;
}

/* Re-assert white text for colored gradient/solid accent buttons & badges in light mode */
body.light-mode .btn-primary-red,
body.light-mode .btn-danger-red,
body.light-mode .btn-primary-blue,
body.light-mode .profile-plan-pill,
body.light-mode .crown-badge,
body.light-mode .profile-nav-tab.active,
body.light-mode .avatar-initial-fallback,
body.light-mode .badge-role-admin,
body.light-mode .badge-pill-fire,
body.light-mode .support-side-tab,
body.light-mode .swatch-tag,
body.light-mode [style*="background: var(--fire-gradient)"],
body.light-mode [style*="background: linear-gradient"],
body.light-mode .btn-primary-red *,
body.light-mode .btn-danger-red *,
body.light-mode .crown-badge * {
  color: #ffffff !important;
}

body.light-mode .theme-icon-sun {
  display: none !important;
}

body.light-mode .theme-icon-moon {
  display: inline-block !important;
}

body.light-mode .top-theme-toggle-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .top-theme-toggle-btn:hover {
  background: #f8fafc !important;
  border-color: #f97316 !important;
  color: #0f172a !important;
}

body.light-mode .btn-theme-toggle {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #4f46e5 !important;
}

/* Top bar light mode */
body.light-mode .top-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .top-search-box {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-mode .top-search-box input {
  color: #0f172a !important;
  background: transparent !important;
}

body.light-mode .top-search-box input::placeholder {
  color: #94a3b8 !important;
}

body.light-mode .top-user-badge {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

body.light-mode .top-user-badge:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .user-avatar-square {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .user-title-name {
  color: #0f172a !important;
}

body.light-mode .user-sub-plan {
  color: #64748b !important;
}

/* Sidebar light mode */
body.light-mode .sidebar {
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
}

body.light-mode .sidebar-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

body.light-mode .sidebar-logo-text {
  color: #0f172a !important;
}

body.light-mode .sidebar-section-title {
  color: #94a3b8 !important;
}

body.light-mode .sidebar-app-select-btn {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-mode .sidebar-link {
  color: #475569 !important;
}

body.light-mode .sidebar-link:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.light-mode .sidebar-link.active {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  font-weight: 700 !important;
  border-left: 3px solid #dc2626 !important;
}

/* Dropdowns in light mode */
body.light-mode .user-dropdown-menu,
body.light-mode .sidebar-app-dropdown-menu,
body.light-mode .top-search-dropdown-palette,
body.light-mode .card-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .user-dropdown-item,
body.light-mode .dropdown-app-item,
body.light-mode .search-palette-item {
  color: #334155 !important;
}

body.light-mode .user-dropdown-item:hover,
body.light-mode .dropdown-app-item:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.light-mode .search-palette-item:hover,
body.light-mode .search-palette-item.selected {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

/* Main Cards & Panels in light mode */
body.light-mode .content-card,
body.light-mode .overview-stat-card,
body.light-mode .invoices-table-card,
body.light-mode .pricing-plan-card,
body.light-mode .table-container,
body.light-mode .metric-card,
body.light-mode .stats-mini-card,
body.light-mode .app-item-card,
body.light-mode .user-item-card,
body.light-mode .profile-card,
body.light-mode .role-card-box,
body.light-mode .overview-hero-card,
body.light-mode .admin-overview-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

body.light-mode .main-page-title,
body.light-mode .overview-main-title,
body.light-mode .card-section-title,
body.light-mode .plan-header-title,
body.light-mode .stat-card-number,
body.light-mode .stat-card-value {
  color: #0f172a !important;
}

body.light-mode .main-page-subtitle,
body.light-mode .overview-main-subtitle,
body.light-mode .card-section-subtitle,
body.light-mode .stat-card-label {
  color: #64748b !important;
}

/* Breadcrumbs in light mode */
body.light-mode .breadcrumb-strip {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

body.light-mode .breadcrumb-item {
  color: #475569 !important;
}

body.light-mode .breadcrumb-item strong {
  color: #0f172a !important;
}

body.light-mode .breadcrumb-separator {
  color: #94a3b8 !important;
}

/* Form Controls in light mode */
body.light-mode .form-control,
body.light-mode input[type="text"],
body.light-mode input[type="password"],
body.light-mode input[type="email"],
body.light-mode input[type="url"],
body.light-mode select,
body.light-mode textarea {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.light-mode .form-control:focus,
body.light-mode input:focus,
body.light-mode select:focus,
body.light-mode textarea:focus {
  background: #ffffff !important;
  border-color: var(--orange-touch) !important;
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.15) !important;
}

body.light-mode .form-label {
  color: #1e293b !important;
  font-weight: 600 !important;
}

/* Code boxes & Sandboxes in light mode */
body.light-mode code,
body.light-mode pre,
body.light-mode .code-box,
body.light-mode .code-snippet-pre,
body.light-mode .sdk-code-box,
body.light-mode .code-snippet-body {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

/* Tables in light mode */
body.light-mode .data-table,
body.light-mode table {
  background: #ffffff !important;
  color: #0f172a !important;
}

body.light-mode .data-table th,
body.light-mode table th {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-bottom: 2px solid #e2e8f0 !important;
  font-weight: 700 !important;
}

body.light-mode .data-table td,
body.light-mode table td {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #1e293b !important;
}

body.light-mode .data-table tbody tr:hover td,
body.light-mode table tbody tr:hover td {
  background: #f8fafc !important;
}

/* Modals in light mode */
body.light-mode .modal-dialog {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
}

body.light-mode .modal-header {
  border-bottom: 1px solid #f1f5f9 !important;
}

body.light-mode .modal-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

body.light-mode .modal-subtitle {
  color: #64748b !important;
}

body.light-mode .modal-close {
  color: #64748b !important;
}

body.light-mode .modal-footer {
  border-top: 1px solid #f1f5f9 !important;
}

body.light-mode .btn-secondary-dark {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

body.light-mode .btn-secondary-dark:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Pricing in light mode */
body.light-mode .plan-price-amount {
  color: #0f172a !important;
}

body.light-mode .plan-feature-item {
  color: #334155 !important;
}

/* Auth View in Light mode */
body.light-mode .auth-page-wrapper {
  background: #f4f6fb !important;
}

body.light-mode .auth-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

body.light-mode .auth-brand-name {
  color: #0f172a !important;
}

body.light-mode .auth-split-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .auth-card-right {
  background: #f8fafc !important;
  border-left: 1px solid #e2e8f0 !important;
}

body.light-mode .quick-auth-title {
  color: #0f172a !important;
}

body.light-mode .btn-quick-auth.google {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
}

body.light-mode .btn-quick-auth.github {
  background: #24292f !important;
  color: #ffffff !important;
}

body.light-mode .page-footer-bar {
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}

/* ==========================================================================
   PROFILE & ACCOUNT CUSTOMIZATION VIEW STYLES
   ========================================================================== */
.profile-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0e1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

body.light-mode .profile-hero-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.profile-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.profile-avatar-wrapper {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.profile-hero-avatar-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: #0d0e16;
  display: block;
}

.profile-online-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0e1017;
}

.btn-avatar-edit-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.profile-avatar-wrapper:hover .btn-avatar-edit-overlay {
  opacity: 1;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.profile-hero-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

body.light-mode .profile-hero-name {
  color: #0f172a;
}

.profile-role-badge {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.profile-plan-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

.profile-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.profile-hero-handle {
  color: #cbd5e1;
  font-weight: 600;
}

.profile-hero-bio {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
  max-width: 500px;
}

body.light-mode .profile-hero-bio {
  color: #64748b;
}

.profile-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.profile-ownerid-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
}

body.light-mode .profile-ownerid-box {
  background: #ffffff;
  border-color: #cbd5e1;
}

.profile-ownerid-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}

.profile-ownerid-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-ownerid-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
}

.btn-copy-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: #cbd5e1;
  padding: 3px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-copy-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.profile-meta-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.profile-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  color: #64748b;
}

body.light-mode .profile-meta-chip {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

/* Profile Sub-Tabs Navigation (Clean Segmented Dark Style) */
.profile-tabs-nav {
  display: flex;
  gap: 4px;
  background: #0a0b10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

body.light-mode .profile-tabs-nav {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.profile-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

body.light-mode .profile-nav-tab:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.profile-nav-tab.active {
  background: #1a1d28;
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Card Section Headers & Clean Content Cards */
.card-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-section-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.card-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 2px 0;
}

.card-section-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Profile 2-Col Grid */
.profile-grid-2col {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

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

  .profile-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero-right {
    align-items: flex-start;
    width: 100%;
  }
}

.avatar-preview-container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

body.light-mode .avatar-preview-container {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.avatar-big-preview img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--orange-touch);
  object-fit: cover;
  background: #0a0b10;
}

.avatar-preview-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.avatar-presets-grid,
.avatar-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.avatar-preset-btn {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: #11131b;
  padding: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

body.light-mode .avatar-preset-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.avatar-preset-btn:hover,
.avatar-preset-btn.active {
  border-color: var(--orange-touch);
  box-shadow: 0 0 12px var(--fire-glow);
  transform: scale(1.06);
}

.avatar-preset-btn img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

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

.password-input-wrapper .form-control {
  padding-right: 40px;
}

.btn-toggle-pass-icon {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

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

body.light-mode .btn-toggle-pass-icon:hover {
  color: #0f172a;
}

/* Password Strength Meter */
.strength-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

body.light-mode .strength-bar-track {
  background: #e2e8f0;
}

.strength-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: #ef4444;
}

.strength-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  margin-bottom: 10px;
}

.strength-criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.strength-crit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.strength-crit-item.valid {
  color: #10b981;
  font-weight: 600;
}

.strength-crit-item.valid i {
  color: #10b981;
}

/* Security Box */
.security-card-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 18px;
}

body.light-mode .security-card-box {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.badge-2fa-status {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

/* Themes Selection Grid */
.theme-mode-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 650px) {
  .theme-mode-selection-grid {
    grid-template-columns: 1fr;
  }
}

.theme-mode-card {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

body.light-mode .theme-mode-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.theme-mode-card:hover {
  border-color: var(--orange-touch);
  transform: translateY(-2px);
}

.theme-mode-card.active {
  border-color: var(--orange-touch);
  box-shadow: 0 0 20px var(--fire-glow);
}

.theme-mode-preview {
  height: 90px;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.theme-mode-preview.dark-preview {
  background: #0b0d14;
  border: 1px solid #1f2230;
}

.theme-mode-preview.light-preview {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.preview-header {
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.theme-mode-preview.light-preview .preview-header {
  background: #ffffff;
}

.preview-body {
  display: flex;
  gap: 6px;
  flex: 1;
}

.preview-sidebar {
  width: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.theme-mode-preview.light-preview .preview-sidebar {
  background: #ffffff;
}

.preview-content {
  flex: 1;
  display: flex;
  gap: 6px;
}

.preview-stat-card {
  flex: 1;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
}

.theme-mode-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-mode-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

body.light-mode .theme-mode-title {
  color: #0f172a;
}

.theme-active-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fire-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-active-indicator i {
  width: 13px;
  height: 13px;
}

/* Accent Palette Swatches */
.accent-palette-swatches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.accent-swatch-item {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

body.light-mode .accent-swatch-item {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.accent-swatch-item:hover,
.accent-swatch-item.active {
  border-color: var(--orange-touch);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--fire-glow);
}

.swatch-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 8px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.swatch-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

body.light-mode .swatch-name {
  color: #0f172a;
}

.swatch-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Master OwnerID Container */
.master-ownerid-container {
  max-width: 680px;
}

.ownerid-display-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px;
}

body.light-mode .ownerid-display-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ownerid-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: 12px;
}

.ownerid-badge-active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.ownerid-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ownerid-large-code {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MULTI-PORTAL AUTH SWITCHER (DEVELOPER / STAFF / RESELLER / REGISTER)
   ========================================================================== */
.auth-portal-tabs-nav {
  display: flex;
  gap: 4px;
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
  overflow-x: auto;
}

body.light-mode .auth-portal-tabs-nav {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.auth-portal-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.auth-portal-tab-btn:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.04);
}

body.light-mode .auth-portal-tab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.auth-portal-tab-btn.active {
  background: #181b26;
  color: #ffffff;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.auth-portal-tab-btn.active[data-tab="developer"] {
  border-left: 2px solid #ff0a3b;
}

.auth-portal-tab-btn.active[data-tab="staff"] {
  border-left: 2px solid #38bdf8;
}

.auth-portal-tab-btn.active[data-tab="reseller"],
.auth-portal-tab-btn.active[data-tab="team"] {
  border-left: 2px solid #c084fc;
}

.auth-portal-tab-btn.active[data-tab="register"] {
  border-left: 2px solid #10b981;
}

.btn-nav-staff:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

.btn-nav-reseller {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-nav-reseller:hover {
  background: rgba(168, 85, 247, 0.22);
  color: #ffffff;
  border-color: #c084fc;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

/* Portal Quick Pills */
.portal-pill-btn.staff-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.portal-pill-btn.staff-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: #38bdf8;
}

.portal-pill-btn.reseller-pill {
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.08);
}

.portal-pill-btn.reseller-pill:hover {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
  border-color: #c084fc;
}

/* ==========================================================================
   PROFESSIONAL STAFF & RESELLER OPERATIONS DASHBOARD UI
   ========================================================================== */
.staff-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.staff-header-info {
  flex: 1;
  min-width: 280px;
}

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

.staff-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Stats Cards Grid */
.staff-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.staff-stat-card {
  background: rgba(13, 15, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.staff-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.staff-stat-card.total-card:hover {
  border-color: rgba(255, 119, 0, 0.4);
}

.staff-stat-card.staff-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.staff-stat-card.reseller-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

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

.staff-stat-label {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.staff-stat-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.staff-stat-icon-wrap i,
.staff-stat-icon-wrap svg {
  width: 18px;
  height: 18px;
}

.staff-stat-number {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.staff-stat-sub {
  font-size: 11.5px;
  color: #6b7280;
}

/* Guidelines Banner */
.staff-guidelines-banner {
  background: linear-gradient(135deg, rgba(255, 119, 0, 0.08) 0%, rgba(13, 15, 24, 0.95) 100%);
  border: 1px solid rgba(255, 119, 0, 0.22);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guidelines-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 119, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.guidelines-content {
  flex: 1;
}

.guidelines-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.guidelines-item {
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.guideline-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.guideline-badge.staff-pill {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.guideline-badge.reseller-pill {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Toolbar & Filter Styling */
.staff-management-card {
  padding: 22px;
}

.staff-toolbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.staff-toolbar-left {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
}

.staff-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-search-wrapper {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
}

.staff-search-icon {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  color: #6b7280;
  pointer-events: none;
}

.staff-search-input {
  width: 100%;
  height: 40px;
  padding: 8px 36px 8px 36px;
  background: rgba(10, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.staff-search-input:focus {
  border-color: var(--orange-touch);
  box-shadow: 0 0 0 3px rgba(255, 119, 0, 0.18);
  background: rgba(13, 15, 24, 1);
}

.staff-search-clear-btn {
  position: absolute;
  right: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #9ca3af;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.staff-search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
}

.staff-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 11, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 10px 0 12px;
  height: 40px;
  transition: border-color 0.2s;
}

.staff-filter-wrapper:focus-within {
  border-color: var(--orange-touch);
  box-shadow: 0 0 0 2px rgba(255, 119, 0, 0.15);
}

.staff-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  margin: 0;
}

.staff-select-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  padding: 6px 4px;
}

.staff-select-input option {
  background: #121420;
  color: #ffffff;
}

.staff-counter-badge {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Modern Data Table Enhancements */
.staff-table-modern th {
  padding: 13px 16px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}

.staff-table-modern td {
  padding: 14px 16px;
  vertical-align: middle;
}

.staff-avatar-initial {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.staff-avatar-initial.staff-type {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
}

.staff-avatar-initial.reseller-type {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.4);
}

.staff-member-details {
  display: flex;
  flex-direction: column;
}

.staff-member-username {
  font-weight: 700;
  color: #ffffff;
  font-size: 13.5px;
}

.staff-member-owner-sub {
  font-size: 10.5px;
  color: #6b7280;
}

.staff-email-cell {
  color: #9ca3af;
  font-size: 12.5px;
  font-family: var(--font-mono);
}

.staff-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.staff-badge-role.staff {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.staff-badge-role.reseller {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.staff-scope-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.staff-scope-tag.all {
  background: rgba(255, 119, 0, 0.12);
  color: #ff9800;
  border: 1px solid rgba(255, 119, 0, 0.25);
}

.staff-scope-tag.app {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.staff-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.staff-status-pill.active {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.staff-status-pill.suspended {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.staff-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.staff-status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.staff-status-dot.suspended {
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.staff-action-btns-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.staff-action-row-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  transition: all 0.15s ease;
}

.staff-action-row-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.staff-action-row-btn.btn-reset-pass:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

.staff-action-row-btn.btn-suspend:hover {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.staff-action-row-btn.btn-activate:hover {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.staff-action-row-btn.btn-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

/* ======================================================== */
/* FLAGSHIP EXECUTIVE DATA-TABLE & ADMIN PORTAL STYLING     */
/* ======================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.data-table,
table.data-table {
  width: 100% !important;
  min-width: 900px !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif) !important;
  font-size: 13px !important;
  color: #e5e7eb !important;
  margin: 0 !important;
}

.data-table thead th {
  background: #12141f !important;
  color: #9ca3af !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 14px 18px !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  white-space: nowrap !important;
}

.data-table tbody td {
  padding: 15px 18px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: transparent !important;
  font-size: 13px !important;
}

.data-table tbody tr {
  transition: background 0.15s ease !important;
}

.data-table tbody tr:hover td {
  background: rgba(255, 119, 0, 0.04) !important;
}

.data-table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Table Elements: Chips, Tags, Copyables */
.table-chip-cyan {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.table-method-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
}

.table-method-tag.upi {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.table-method-tag.crypto {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.table-method-tag.card {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
}

.table-method-tag.coupon {
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.3);
  color: #ff8800;
}

.table-copy-utr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #e5e7eb;
}

.table-copy-utr:hover {
  background: rgba(255, 10, 59, 0.15);
  border-color: rgba(255, 10, 59, 0.4);
  color: #ff3b61;
}

/* Master Admin Portal Premium Design */
.master-admin-header-card {
  background: linear-gradient(135deg, rgba(255, 10, 59, 0.15) 0%, rgba(14, 16, 24, 0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 10, 59, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.master-admin-stat-card {
  background: linear-gradient(135deg, rgba(16, 18, 28, 0.72) 0%, rgba(9, 10, 16, 0.82) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 10, 59, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.master-admin-stat-card:hover {
  border-color: rgba(255, 10, 59, 0.5);
  border-top-color: rgba(255, 10, 59, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(255, 10, 59, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.master-admin-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.master-admin-stat-info {
  display: flex;
  flex-direction: column;
}

.master-admin-stat-number {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.master-admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  margin-top: 3px;
}

.master-admin-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #9ca3af;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.master-admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.master-admin-tab-btn.active {
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 50%, #ff2a5f 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 10, 59, 0.4);
}

.admin-order-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.admin-order-action-btn.approve {
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.admin-order-action-btn.approve:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.admin-order-action-btn.reject {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.admin-order-action-btn.reject:hover {
  background: #ef4444;
  color: #ffffff;
}

/* ==========================================================================
   ADVANCED MOBILE RESPONSIVE ENGINE (PHONES & TABLETS)
   ========================================================================== */
@media (max-width: 768px) {

  /* Tables & Horizontal Scroll Container */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .table-responsive::-webkit-scrollbar {
    height: 5px;
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 119, 0, 0.4);
    border-radius: 4px;
  }

  .data-table,
  .keyauth-table,
  .table {
    min-width: 720px !important;
  }

  /* UTR Badges & Interactive Chips */
  .table-copy-utr {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(56, 189, 248, 0.12) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    font-weight: 700 !important;
    padding: 5px 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  .table-copy-utr:active {
    background: #0284c7 !important;
    color: #ffffff !important;
  }

  /* Checkout & Payment Modal Dialog on Mobile */
  #upgradeCheckoutModal .modal-dialog {
    width: 95% !important;
    max-width: 95% !important;
    margin: 10px auto !important;
    padding: 16px 14px !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  .checkout-plan-summary {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .checkout-price-main {
    font-size: 24px !important;
  }

  .checkout-payment-methods {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .checkout-method-card {
    padding: 10px 6px !important;
  }

  .checkout-section-panel {
    padding: 14px 10px !important;
  }

  .upi-qr-wrap {
    width: 155px !important;
    height: 155px !important;
    margin: 0 auto 10px auto !important;
  }

  .copy-pill-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .copy-pill-text {
    font-size: 12.5px !important;
    flex: 1;
  }

  .btn-copy-sm {
    padding: 6px 10px !important;
    font-size: 11px !important;
    flex-shrink: 0;
  }

  .utr-input-field {
    font-size: 16px !important;
    /* Prevents auto-zoom in Safari iOS */
    padding: 12px 14px !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  #checkoutSubmitBtn {
    min-height: 46px !important;
    font-size: 14px !important;
  }

  /* Admin Header Card */
  .master-admin-header-card {
    padding: 16px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .master-admin-stat-card {
    padding: 14px 12px !important;
  }
}

/* ==========================================================================
   NEXT-LEVEL ULTRA-PREMIUM RED & BLACK THEME SYSTEM & ANIMATIONS
   ========================================================================== */

/* 1. Global Brand Typography & Glowing Title Text */
.auth-brand-name,
.sidebar-brand-name,
.loader-brand-title,
.auth-heading,
.dexter-title-glow,
.admin-brand-name,
.hero-brand-title {
  font-family: 'Outfit', 'Orbitron', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

.auth-brand-name,
.sidebar-brand-name,
.loader-brand-title,
.hero-brand-title {
  background: linear-gradient(135deg, #ffffff 0%, #ff3b61 45%, #ff0a3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 10, 59, 0.45));
}

.auth-brand-name span,
.sidebar-brand-name span,
.loader-brand-title span {
  background: linear-gradient(135deg, #ff2a5f 0%, #ff0a3b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 2. Ambient Red Glow Background Orbs */
.glow-orb-red {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 10, 59, 0.18) 0%, rgba(204, 0, 41, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orbPulse 8s ease-in-out infinite alternate;
}

.glow-orb-left {
  top: -100px;
  left: -150px;
}

.glow-orb-right {
  bottom: -150px;
  right: -150px;
  animation-delay: -4s;
}

@keyframes orbPulse {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 0.9; }
  100% { transform: scale(0.95) translate(-10px, 15px); opacity: 0.7; }
}

/* 3. Auth Page High-Tech Live Security Ticker Banner */
.auth-ticker-banner {
  background: linear-gradient(90deg, rgba(255, 10, 59, 0.08) 0%, rgba(10, 11, 15, 0.9) 50%, rgba(255, 10, 59, 0.08) 100%);
  border: 1px solid rgba(255, 10, 59, 0.22);
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(255, 10, 59, 0.12);
}

.auth-ticker-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.auth-ticker-badge {
  background: rgba(255, 10, 59, 0.2);
  border: 1px solid rgba(255, 10, 59, 0.5);
  color: #ff3b61;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-ticker-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #ff0a3b;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0a3b;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.animated-auth-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.auth-ticker-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #a1a1aa;
  flex-shrink: 0;
}

.auth-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

/* 4. Auth Page Interactive SDK Code Showcase */
.auth-sdk-showcase-box {
  background: rgba(7, 8, 12, 0.95);
  border: 1px solid rgba(255, 10, 59, 0.25);
  border-radius: 14px;
  padding: 14px;
  margin-top: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.auth-sdk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-sdk-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-sdk-tabs-nav {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 8px;
  max-width: 100%;
  overflow-x: auto;
}

.auth-sdk-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.auth-sdk-btn.active {
  background: rgba(255, 10, 59, 0.25);
  color: #ffffff;
  border: 1px solid rgba(255, 10, 59, 0.4);
}

.auth-sdk-code-area {
  background: #040508;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #38bdf8;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.auth-sdk-code-area .kw { color: #ff3b61; font-weight: 700; }
.auth-sdk-code-area .str { color: #10b981; }
.auth-sdk-code-area .fn { color: #fbbf24; }
.auth-sdk-code-area .cm { color: #6b7280; font-style: italic; }

/* 5. Enterprise Features & About Section Grid */
.auth-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
  width: 100%;
}

.auth-about-card {
  background: linear-gradient(145deg, rgba(14, 15, 22, 0.9) 0%, rgba(8, 9, 13, 0.95) 100%);
  border: 1px solid rgba(255, 10, 59, 0.16);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.auth-about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 10, 59, 0.45);
  box-shadow: 0 12px 30px rgba(255, 10, 59, 0.15);
}

.auth-about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff0a3b, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-about-card:hover::before {
  opacity: 1;
}

.auth-about-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 10, 59, 0.12);
  border: 1px solid rgba(255, 10, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff3b61;
  margin-bottom: 14px;
}

.auth-about-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.auth-about-desc {
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.55;
}

/* 6. Sidebar active pill indicator animation */
.sidebar-link {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(255, 10, 59, 0.18) 0%, rgba(255, 10, 59, 0.04) 100%) !important;
  border-left: 3px solid #ff0a3b !important;
  color: #ffffff !important;
  box-shadow: inset 0 0 15px rgba(255, 10, 59, 0.08) !important;
}

.sidebar-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #f3f4f6 !important;
  transform: translateX(3px);
}

/* AuthlyX-Style Hero Header & Title Gradient */
.auth-hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #ff3b61 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 10, 59, 0.3));
}

@media (max-width: 768px) {
  .auth-hero-title {
    font-size: 28px !important;
  }
  .auth-hero-subtitle {
    font-size: 14px !important;
  }
}

/* ==========================================================================
   DEXTERAUTH - ULTRA-PREMIUM DESIGN SYSTEM & SLOW SMOOTH ANIMATIONS
   State-of-the-Art Glassmorphism, Buttery Easing Curves & Ambient Lighting
   ========================================================================== */

/* 1. KEYFRAME ANIMATIONS (SLOW & SMOOTH) */
@keyframes slowBadgePulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 4px 16px rgba(255, 10, 59, 0.45);
  }
  50% {
    transform: translateX(-50%) scale(1.04);
    box-shadow: 0 8px 24px rgba(255, 10, 59, 0.75), 0 0 16px rgba(255, 42, 95, 0.4);
  }
}

@keyframes ambientBreatheSlow {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.99);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

@keyframes slowFloatGentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes slowPulseDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    transform: scale(1.08);
  }
}

@keyframes slowPulseRedDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 10, 59, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 10, 59, 0);
    transform: scale(1.08);
  }
}

@keyframes modalEnterSlow {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes subtleGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* 2. CARD ELEVATION & GLASSMORPHISM */
.card,
.stat-card,
.app-creds-card,
.invoices-table-card,
.dash-card,
.manage-apps-grid > div,
.auth-card {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.card:hover,
.app-creds-card:hover,
.invoices-table-card:hover,
.dash-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 10, 59, 0.35) !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(255, 10, 59, 0.18) !important;
}

/* 3. BUTTONS: SILKY SMOOTH EASING & SHIMMER GLOW */
.btn-primary,
.btn-plan-action,
.btn-secondary-dark,
.btn-danger,
.btn-topbar-admin-portal,
button[type="submit"] {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.45s ease, 
              border-color 0.45s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover,
.btn-plan-action:hover:not(:disabled),
.btn-topbar-admin-portal:hover {
  transform: translateY(-2px) !important;
}

.btn-primary:active,
.btn-plan-action:active:not(:disabled),
.btn-topbar-admin-portal:active {
  transform: translateY(0px) scale(0.985) !important;
}

/* Subtle Shimmer Sweep on Primary Action Buttons */
.btn-primary::after,
.btn-plan-action.primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-plan-action.primary:hover::after {
  transform: rotate(25deg) translateY(100%);
}

/* 4. MODALS & POPUPS SMOOTH SLOW TRANSITIONS */
.modal-overlay,
.modal-backdrop,
.modal-wrapper {
  animation: smoothFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

.modal-content,
.modal-box,
.checkout-modal-content {
  animation: modalEnterSlow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 25px 80px -10px rgba(0, 0, 0, 0.95), 0 0 40px -5px rgba(255, 10, 59, 0.25) !important;
}

/* 5. SMOOTH STATUS DOTS & BADGES */
.status-dot-active,
.online-dot,
.live-status-pill {
  animation: slowPulseDot 3.5s ease-in-out infinite;
}

.status-dot-banned,
.danger-pulse-dot {
  animation: slowPulseRedDot 3.5s ease-in-out infinite;
}

/* 6. INPUT FOCUS GLOW (SMOOTH & DEEP) */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
select,
textarea {
  transition: border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.45s ease !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 10, 59, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 10, 59, 0.18), 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  outline: none !important;
}

/* 7. TABLE ROWS SMOOTH HOVER */
table tbody tr {
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

table tbody tr:hover {
  background: rgba(255, 10, 59, 0.05) !important;
}

/* 8. SIDEBAR LINKS: SMOOTH RIGHT NUDGE */
.sidebar-link {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.4s ease, 
              color 0.4s ease !important;
}

.sidebar-link:hover:not(.active) {
  transform: translateX(5px) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ==========================================================================
   NEXT LEVEL LUXURY & EXTRA-PREMIUM VISUAL SYSTEM
   ========================================================================== */

/* Cloudflare Status Badges (Navbar & Dashboard Topbar) */
.cf-nav-badge,
.topbar-cf-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(243, 128, 32, 0.09) !important;
  border: 1px solid rgba(243, 128, 32, 0.3) !important;
  color: #faad3f !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
}

.cf-nav-badge:hover,
.topbar-cf-badge:hover {
  background: rgba(243, 128, 32, 0.18) !important;
  border-color: rgba(243, 128, 32, 0.55) !important;
  box-shadow: 0 0 18px rgba(243, 128, 32, 0.3) !important;
  transform: translateY(-1px) !important;
}

.cf-pulse-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #22c55e !important;
  box-shadow: 0 0 8px #22c55e !important;
  animation: cfPulseDot 2.2s infinite ease-in-out !important;
  display: inline-block !important;
}

@keyframes cfPulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px #22c55e;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.75;
    box-shadow: 0 0 14px #22c55e;
  }
}

/* 9. EXTRA-PREMIUM OBSIDIAN GLASSMORPHISM CARDS */
.auth-split-card,
.overview-stat-card,
.metric-card,
.my-apps-card,
.app-creds-card,
.pricing-card-box,
.bot-panel-card {
  background: linear-gradient(180deg, rgba(16, 18, 27, 0.82) 0%, rgba(9, 10, 16, 0.92) 100%) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 50px -10px rgba(0, 0, 0, 0.75) !important;
  border-radius: 18px !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.overview-stat-card:hover,
.metric-card:hover,
.my-apps-card:hover {
  border-color: rgba(255, 10, 59, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px -8px rgba(0, 0, 0, 0.9), 0 0 28px -4px rgba(255, 10, 59, 0.28) !important;
  transform: translateY(-3px) !important;
}

/* 10. ULTRA-PREMIUM PRIMARY ACTION BUTTONS */
.btn-signin-primary,
.btn-primary-red,
.btn-nav-getstarted {
  background: linear-gradient(135deg, #cc0029 0%, #ff0a3b 50%, #ff2a5f 100%) !important;
  border: 1px solid rgba(255, 10, 59, 0.5) !important;
  box-shadow: 0 6px 24px rgba(255, 10, 59, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  border-radius: 11px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-signin-primary:hover,
.btn-primary-red:hover,
.btn-nav-getstarted:hover {
  background: linear-gradient(135deg, #e60033 0%, #ff2a5f 50%, #ff4d73 100%) !important;
  box-shadow: 0 10px 32px rgba(255, 10, 59, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-2px) scale(1.01) !important;
}

/* 11. LUXURY GLASSMORPHIC TOPBAR & SIDEBAR */
.top-bar {
  background: rgba(6, 7, 11, 0.82) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45) !important;
}

.sidebar {
  background: #06070a !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
}

/* 12. MODAL DIALOGS - OBSIDIAN FROST */
.modal-content,
.keyauth-modal-card {
  background: linear-gradient(180deg, #13141f 0%, #0c0d14 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 10, 59, 0.15) !important;
  border-radius: 20px !important;
}

.modal-backdrop,
.keyauth-modal-overlay {
  background: rgba(4, 5, 8, 0.82) !important;
  backdrop-filter: blur(18px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%) !important;
}

/* ==========================================================================
   LANDING HOMEPAGE (AUTHLYX / DEXTERAUTH MODERN FIRST PAGE)
   ========================================================================== */
.landing-page-wrapper {
  min-height: 100vh;
  background-color: #050609;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 10% 30%, rgba(255, 10, 59, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 70%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
  color: #ffffff;
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}

html.app-has-token #landingView {
  display: none !important;
}

/* Floating Pill Header */
.landing-floating-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.landing-nav-pill {
  pointer-events: auto;
  max-width: 940px;
  width: 100%;
  background: rgba(10, 13, 22, 0.82);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 8px 12px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 24px rgba(2, 132, 199, 0.12);
  transition: all 0.3s ease;
}

.landing-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.landing-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

.landing-brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.landing-nav-item {
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s ease;
}

.landing-nav-item:hover {
  color: #ffffff;
}

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

.btn-landing-login {
  background: transparent;
  color: #cbd5e1;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-landing-login:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-landing-cta {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
}

.btn-landing-cta:hover {
  background: #0ea5e9;
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.65);
  transform: translateY(-1px);
}

/* Landing Container */
.landing-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.landing-section {
  padding: 90px 0;
  position: relative;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.landing-hero-section {
  padding: 160px 0 90px 0;
  position: relative;
}

.landing-hero-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.landing-hero-title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
}

.landing-hero-gradient,
.text-gradient-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 60%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.landing-hero-desc {
  font-size: 18px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 32px;
}

.landing-hero-btn-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(2, 132, 199, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  background: #0ea5e9;
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.65);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.landing-hero-badges-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 600;
}

/* Cyber Globe */
.cyber-globe-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cyber-globe-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.cyber-globe-svg {
  animation: slowFloat 6s ease-in-out infinite;
}

@keyframes slowFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pulse-satellite-1,
.pulse-satellite-2,
.pulse-satellite-3 {
  animation: satellitePulse 2.5s infinite ease-in-out;
}

@keyframes satellitePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px #38bdf8); }
  50% { transform: scale(1.6); filter: drop-shadow(0 0 12px #38bdf8); }
}

/* Pill Badges & Titles */
.landing-pill-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.landing-section-title {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.landing-section-subtitle {
  font-size: 16.5px;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Features Grid */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  text-align: left;
}

.landing-feature-card {
  background: rgba(14, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 26px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.7);
}

.landing-feature-card:hover {
  background: rgba(18, 22, 34, 0.9);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.15);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-box.box-purple { background: rgba(192, 132, 252, 0.12); border: 1px solid rgba(192, 132, 252, 0.25); }
.feature-icon-box.box-blue { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.25); }
.feature-icon-box.box-red { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.25); }
.feature-icon-box.box-green { background: rgba(74, 222, 128, 0.12); border: 1px solid rgba(74, 222, 128, 0.25); }
.feature-icon-box.box-amber { background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.25); }
.feature-icon-box.box-orange { background: rgba(251, 146, 60, 0.12); border: 1px solid rgba(251, 146, 60, 0.25); }
.feature-icon-box.box-cyan { background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.25); }

.feature-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Stats Section */
.landing-stats-section {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 10, 16, 0.6);
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-big-number {
  font-size: 48px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat-sub-label {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 1.4px;
}

/* Integrations */
.landing-integrations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.landing-integration-card {
  background: rgba(14, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 34px 30px;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.7);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-integration-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
}

.integration-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.integration-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.integration-desc {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* Languages Grid */
.landing-langs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.lang-card {
  background: rgba(15, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.lang-card:hover {
  background: rgba(22, 27, 42, 0.9);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
}

.lang-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
}

.lang-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Pricing Section */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 46px;
  user-select: none;
}

.toggle-label {
  font-size: 14.5px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
}

.savings-tag {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
}

.switch-pill {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #1e2436;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 34px;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #38bdf8;
  border-radius: 50%;
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.switch-pill input:checked + .switch-slider {
  background-color: #0369a1;
}

.switch-pill input:checked + .switch-slider:before {
  transform: translateX(24px);
  background-color: #ffffff;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card {
  background: rgba(14, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.7);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(2, 132, 199, 0.15);
}

.pricing-card.featured {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(14, 25, 42, 0.9) 0%, rgba(10, 14, 22, 0.9) 100%);
  box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.85), 0 0 32px rgba(2, 132, 199, 0.25);
}

.top-choice-banner {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.5);
}

.plan-icon-shield {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.plan-name {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.plan-caption {
  font-size: 13px;
  color: #94a3b8;
  min-height: 38px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
}

.plan-price {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.plan-period {
  font-size: 13.5px;
  color: #94a3b8;
  font-weight: 600;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.plan-features-list li svg {
  width: 15px;
  height: 15px;
  color: #38bdf8;
  flex-shrink: 0;
}

.btn-plan-action {
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-plan-action.ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-plan-action.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-plan-action.primary {
  background: #0284c7;
  border: 1px solid #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.45);
}

.btn-plan-action.primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  box-shadow: 0 6px 24px rgba(14, 165, 233, 0.65);
  transform: translateY(-1px);
}

/* Enterprise Wide Card */
.enterprise-wide-card {
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.7);
}

.enterprise-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.enterprise-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.enterprise-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.enterprise-desc {
  font-size: 14px;
  color: #94a3b8;
  margin: 0;
}

.btn-enterprise-contact {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-enterprise-contact:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.view-full-pricing-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s;
}

.view-full-pricing-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

/* Reviews Grid */
.landing-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
  margin-bottom: 30px;
}

.review-card {
  background: rgba(14, 17, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.review-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

.review-text {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.author-role {
  font-size: 12px;
  color: #94a3b8;
}

.tp-star-badge {
  font-size: 11px;
  font-weight: 800;
  color: #00b67a;
  background: rgba(0, 182, 122, 0.1);
  border: 1px solid rgba(0, 182, 122, 0.25);
  padding: 2px 7px;
  border-radius: 5px;
}

.trustpilot-rating-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 18, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 10px 22px;
  margin: 0 auto;
  font-size: 13.5px;
  color: #cbd5e1;
}

.tp-read-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}

.tp-read-link:hover {
  text-decoration: underline;
}

/* CTA Banner */
.landing-cta-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.14) 0%, transparent 65%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-cta-title {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.landing-cta-subtitle {
  font-size: 17px;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 32px auto;
}

.landing-cta-btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.landing-cta-mini-links {
  font-size: 13px;
  color: #64748b;
}

.landing-cta-mini-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.18s;
  margin: 0 4px;
}

.landing-cta-mini-links a:hover {
  color: #38bdf8;
}

/* Footer */
.landing-footer {
  background: #040508;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 70px 0 35px 0;
  font-size: 14px;
  color: #94a3b8;
}

.landing-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  max-width: 300px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 14px;
}

.cf-footer-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
}

/* Back to Home Button in Auth View */
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .landing-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .landing-hero-desc {
    margin: 0 auto 32px auto;
  }
  .landing-hero-btn-row,
  .landing-hero-badges-row {
    justify-content: center;
  }
  .landing-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .landing-hero-title {
    font-size: 40px;
  }
  .landing-pricing-grid,
  .landing-integrations-grid,
  .landing-reviews-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav-links {
    display: none;
  }
  .enterprise-wide-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-footer-grid {
    grid-template-columns: 1fr;
  }
}