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

:root {
  --bg-darkest: #07070a;
  --bg-card: #0d0d14;
  --bg-card-hover: #12121c;
  --bg-input: #08080c;
  --bg-sidebar: #08080c;
  --bg-topbar: #08080c;
  --border-color: #1a1a28;
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Crimson Red with Fiery Orange Touch Palette */
  --red-primary: #e61919;
  --red-hover: #ff2d20;
  --red-dark: #8b0000;
  --orange-touch: #ff5722;
  --orange-bright: #ff7043;
  --fire-gradient: linear-gradient(135deg, #d90429 0%, #ff3b00 55%, #ff6b35 100%);
  --fire-gradient-hover: linear-gradient(135deg, #ef233c 0%, #ff4d00 55%, #ff7d47 100%);
  --fire-glow: 0 0 20px rgba(255, 69, 0, 0.4), 0 0 40px rgba(217, 4, 41, 0.25);
  --red-glow: rgba(230, 25, 25, 0.35);
  --red-border: rgba(255, 69, 0, 0.45);

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

  --text-main: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --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;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #08080c;
}
::-webkit-scrollbar-thumb {
  background: var(--fire-gradient);
  border-radius: 3px;
}

/* 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);
}

/* ==========================================================================
   FULLSCREEN ANIMATED POST-LOGIN LOADING SCREEN
   ========================================================================== */
#appLoadingScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #18090a 0%, #060609 85%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(10px);
}
#appLoadingScreen.active {
  display: flex;
  opacity: 1;
}

.loader-center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.loader-emblem-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.loader-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(255, 69, 0, 0.5);
  animation: cyberSpin 4s linear infinite;
}

.loader-ring-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ff3b00;
  border-right-color: #d90429;
  animation: cyberSpinReverse 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.loader-icon-box {
  width: 60px;
  height: 60px;
  background: var(--fire-gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 69, 0, 0.6);
  animation: cyberPulse 2s ease-in-out infinite;
  z-index: 2;
}

.loader-brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--fire-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.loader-status-phase {
  font-size: 13.5px;
  color: #d1d5db;
  font-weight: 500;
  min-height: 22px;
  margin-bottom: 18px;
  transition: all 0.2s ease;
}

.loader-progress-track {
  width: 100%;
  height: 6px;
  background: #14141e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #232336;
  margin-bottom: 12px;
  position: relative;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--fire-gradient);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 69, 0, 0.8);
  transition: width 0.25s ease-out;
}

.loader-percent-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: #9ca3af;
}

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

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

@keyframes cyberPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 69, 0, 0.5); }
  50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(255, 69, 0, 0.85); }
}

/* ========================================================================== */
/* AUTHENTICATION VIEW - 2-COLUMN SPLIT MODERN DASHBOARD (IMAGE 3 REPLICA)    */
/* ========================================================================== */
.auth-page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: #07090e;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.06) 0%, transparent 40%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* 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: #38bdf8;
}
.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: 920px;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow: hidden;
  position: relative;
}

/* Left Column */
.auth-card-left {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-heading {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}
.auth-subheading {
  font-size: 13.5px;
  color: #9ca3af;
  margin: 0 0 24px 0;
}

.btn-signin-primary {
  width: 100%;
  padding: 12px;
  background: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-signin-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 22px rgba(14, 165, 233, 0.55);
  transform: translateY(-1px);
}

/* 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-split-card {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .auth-card-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
  }
  .auth-card-left {
    padding: 32px 24px;
  }
  .auth-nav-links {
    display: none;
  }
}

/* Captcha Widget */
.captcha-container {
  background: #09090d;
  border: 1px solid #1f1f2e;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
}
.captcha-container:hover {
  border-color: var(--red-border);
}

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

.captcha-checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid #4b5563;
  border-radius: 4px;
  background: #14141e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.captcha-container.verified .captcha-checkbox-box {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.captcha-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #6b7280;
  border-top-color: var(--red-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}
.captcha-container.verifying .captcha-spinner { display: block; }
.captcha-container.verifying .captcha-check-icon { display: none; }

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

.captcha-label {
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
}

.captcha-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  color: #6b7280;
  line-height: 1.2;
}
.captcha-brand svg {
  color: var(--red-primary);
  width: 18px;
  height: 18px;
  margin-bottom: 2px;
}

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

/* ==========================================================================
   SIDEBAR (RED THEME ACCENTS)
   ========================================================================== */
.sidebar {
  width: 240px;
  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: 20px 18px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

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

.sidebar-logo-text {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
}

/* App Selector Dropdown in Sidebar */
.sidebar-app-select-btn {
  width: 100%;
  background: #14141e;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s;
}
.sidebar-app-select-btn:hover {
  background: #1c1c2b;
  border-color: var(--red-primary);
}

.sidebar-app-dropdown-menu {
  position: absolute;
  top: 95px;
  left: 18px;
  right: 18px;
  background: #14141e;
  border: 1px solid #2b2b3d;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.85);
  display: none;
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
}
.sidebar-app-dropdown-menu.show { display: block; }

.dropdown-app-item {
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
  border-radius: 6px;
  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: 600;
}

.dropdown-create-btn {
  width: 100%;
  margin-top: 4px;
  padding: 7px;
  background: #1f1f2e;
  color: var(--red-accent);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.dropdown-create-btn:hover {
  background: var(--red-primary);
  color: #ffffff;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.sidebar-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-link svg,
.sidebar-link i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sidebar-link:hover {
  background: #12121c;
  color: #ffffff;
}

.sidebar-link.active {
  background: #161624;
  color: #ffffff;
  font-weight: 600;
}
.sidebar-link.active svg,
.sidebar-link.active i {
  color: var(--red-primary);
}

.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: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-topbar);
  position: sticky;
  top: 0;
  z-index: 40;
}

.top-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #12121a;
  border: 1px solid #1f1f2e;
  border-radius: 8px;
  padding: 8px 14px;
  width: 320px;
}
.top-search-box svg {
  color: #6b7280;
  width: 16px;
  height: 16px;
}
.top-search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 13px;
  outline: none;
  width: 100%;
}
.top-search-box input::placeholder { color: #6b7280; }

.top-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #12121a;
  border: 1px solid #1f1f2e;
  border-radius: 10px;
  padding: 6px 14px 6px 8px;
  cursor: pointer;
  position: relative;
}

.user-avatar-square {
  width: 34px;
  height: 34px;
  background: var(--red-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 10px var(--red-glow);
}

.user-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.user-title-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
.user-sub-plan {
  font-size: 11px;
  color: #9ca3af;
}

.user-dropdown-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: 180px;
  background: #14141e;
  border: 1px solid #2b2b3d;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.85);
  display: none;
  z-index: 100;
}
.user-dropdown-menu.show { display: block; }
.user-dropdown-item {
  padding: 8px 10px;
  font-size: 13px;
  color: #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-dropdown-item:hover {
  background: #1f1f2e;
  color: #ffffff;
}

/* ==========================================================================
   PAGE CONTAINER & BREADCRUMBS
   ========================================================================== */
.page-container {
  padding: 24px 32px 60px 32px;
  flex: 1;
}

.breadcrumb-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #9ca3af;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.breadcrumb-item {
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 5px;
}
.breadcrumb-separator { color: #4b5563; }
.breadcrumb-alert {
  color: #ef4444;
  font-weight: 500;
}
.breadcrumb-alert a {
  color: var(--red-hover);
  text-decoration: underline;
  margin-left: 4px;
}

.main-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}
.main-page-subtitle {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 22px;
}
.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: 16px;
  margin-bottom: 26px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.2s;
}
.metric-card:hover {
  background: var(--bg-card-hover);
  border-color: #2e2e42;
}

.metric-number {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.metric-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #9ca3af;
}

/* ==========================================================================
   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;
}

.snippet-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12.5px;
  color: #9ca3af;
  cursor: pointer;
  user-select: none;
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #272738;
  transition: .2s;
  border-radius: 20px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
.switch-control input:checked + .switch-slider {
  background-color: var(--red-primary);
}
.switch-control input:checked + .switch-slider:before {
  transform: translateX(16px);
}

.snippet-box-container {
  background: #09090d;
  border: 1px solid #1f1f2e;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  display: none;
}
.snippet-box-container.show { display: block; }

.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: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.cred-box-label {
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.cred-box-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cred-box-value {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 600;
  word-break: break-all;
}
.cred-box-copy {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}
.cred-box-copy:hover { color: #ffffff; }

.btn-refresh-secret {
  width: 100%;
  background: #181824;
  border: 1px solid #d97706;
  color: #f59e0b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 16px;
  transition: all 0.2s;
}
.btn-refresh-secret:hover {
  background: #d97706;
  color: #ffffff;
}

.creds-notice-box {
  background: #190c10;
  border: 1px solid var(--red-border);
  border-radius: 8px;
  padding: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #fca5a5;
  display: flex;
  gap: 8px;
}
.creds-notice-box svg {
  color: var(--red-primary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* My Applications (Right Column) */
.my-apps-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.my-apps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.my-apps-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 16px;
}
.my-apps-tab {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red-primary);
}

.my-apps-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #09090d;
  border: 1px solid #1f1f2e;
  border-radius: 6px;
  padding: 6px 12px;
  width: 220px;
}
.my-apps-search svg {
  color: #6b7280;
  width: 14px;
  height: 14px;
}
.my-apps-search input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  width: 100%;
}

.btn-create-app-full {
  width: 100%;
  background: var(--red-primary);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.15s;
}
.btn-create-app-full:hover {
  background: var(--red-hover);
}

.app-item-card {
  background: #13131c;
  border: 1px solid #1f1f2e;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.app-item-card:hover { border-color: #2e2e42; }

.app-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.app-item-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.app-status-badge-active {
  background: #064e3b;
  color: #34d399;
  border: 1px solid #059669;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.app-status-badge-paused {
  background: #78350f;
  color: #fbbf24;
  border: 1px solid #d97706;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.app-item-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #1a1a26;
  border-bottom: 1px solid #1a1a26;
  margin-bottom: 14px;
}
.app-stat-col-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 3px;
}
.app-stat-col-val {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

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

.btn-app-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.btn-app-action:hover { opacity: 0.85; }
.btn-app-action svg { width: 14px; height: 14px; }

.btn-select-active { background: #16a34a; color: #ffffff; }
.btn-select-inactive { background: #222233; color: #ffffff; }
.btn-rename { background: #7c3aed; color: #ffffff; }
.btn-desc { background: #0284c7; color: #ffffff; }
.btn-pause { background: #ea580c; color: #ffffff; }
.btn-delete { background: var(--red-primary); color: #ffffff; }

/* ==========================================================================
   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;
}

.keyauth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.keyauth-table th {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  border-bottom: 1px solid #1a1a26;
  background: #09090d;
}
.keyauth-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #14141e;
  color: #d1d5db;
  vertical-align: middle;
}
.keyauth-table tr:hover td { background: #141420; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-green { background: #064e3b; color: #34d399; border: 1px solid #059669; }
.badge-blue { background: #1e3a8a; color: #93c5fd; border: 1px solid #2563eb; }
.badge-purple { background: #581c87; color: #d8b4fe; border: 1px solid #7c3aed; }
.badge-orange { background: #78350f; color: #fbbf24; border: 1px solid #d97706; }
.badge-red { background: #7f1d1d; color: #fca5a5; border: 1px solid var(--red-primary); }

/* ==========================================================================
   MODALS (MATCHING SCREENSHOTS 3 & 4)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}
.modal-backdrop.show { opacity: 1; pointer-events: auto; }

.modal-dialog {
  width: 100%;
  max-width: 480px;
  background: #111119;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.95);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}
.modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}
.modal-close:hover { color: #ffffff; }

.form-group { margin-bottom: 14px; position: relative; }
.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 6px;
}
.form-label-info-icon {
  color: var(--red-hover);
  font-size: 13px;
  cursor: help;
}

.form-control {
  width: 100%;
  background: #09090d;
  border: 1px solid #262638;
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}
.form-control:focus { border-color: var(--red-primary); }

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

/* 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(230, 25, 25, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.35);
  color: #ff9800;
  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, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.pricing-plan-card {
  background: #11131b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.pricing-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 87, 34, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}
.pricing-plan-card.featured {
  background: linear-gradient(180deg, #18141f 0%, #11131b 100%);
  border: 2px solid var(--orange-touch);
  box-shadow: 0 12px 40px var(--fire-glow);
  transform: scale(1.02);
}
.pricing-plan-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}
.pricing-card-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fire-gradient);
  color: #ffffff;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--fire-glow);
  white-space: nowrap;
}
.plan-header-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.plan-header-desc {
  font-size: 13px;
  color: #9ca3af;
  min-height: 38px;
  line-height: 1.4;
}
.plan-price-wrap {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.plan-price-currency {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}
.plan-price-amount {
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}
.plan-price-period {
  font-size: 13px;
  color: #6b7280;
}
.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #d1d5db;
}
.plan-feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.plan-feature-item.muted {
  color: #6b7280;
}
.plan-feature-item.muted .plan-feature-icon {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}
.btn-plan-action {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
}
.btn-plan-action.current {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  cursor: default;
}
.btn-plan-action.primary {
  background: var(--fire-gradient);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--fire-glow);
}
.btn-plan-action.primary:hover {
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.6);
  transform: translateY(-2px);
}
.btn-plan-action.enterprise {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.btn-plan-action.enterprise:hover {
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

/* Upgrade Checkout Modal */
.checkout-plan-summary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.checkout-method-card {
  background: #161822;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.checkout-method-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}
.checkout-method-card.selected {
  border-color: var(--orange-touch);
  background: rgba(230, 25, 25, 0.1);
}

/* Payment Modal Specifics */
.checkout-section-panel {
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.upi-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #ffffff;
  border-radius: 12px;
  width: 170px;
  height: 170px;
  margin: 0 auto 12px auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.upi-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.copy-pill-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0e15;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
}
.copy-pill-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-copy-sm {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-copy-sm:hover {
  background: var(--orange-touch);
  border-color: var(--orange-touch);
}
.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: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.crypto-coin-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

/* Status Badges */
.badge-order-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-order-status.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-order-status.processing {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-order-status.completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-order-status.rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.invoices-table-card {
  margin-top: 32px;
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
}

/* ========================================================================== */
/* 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, #ff5500 0%, #ff7700 50%, #ff9900 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 107, 0, 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, #ff6b00 0%, #ff9900 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: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
}

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

.btn-nav-getstarted {
  background: linear-gradient(135deg, #ff5500 0%, #ff7700 50%, #ff9900 100%);
  color: #ffffff;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(255, 107, 0, 0.35);
}

.btn-nav-getstarted:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 107, 0, 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, 255, 255, 0.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 107, 0, 0.12);
  position: relative;
}

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

/* Left Card Column */
.auth-card-left {
  padding: 42px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #0b0d13;
}

.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, #ff5500 0%, #ff7700 50%, #ff9900 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
}

.btn-signin-primary:hover {
  background: linear-gradient(135deg, #ff6600 0%, #ff8800 50%, #ffa500 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 107, 0, 0.55);
}

/* Right Card Column (Quick Sign In) */
.auth-card-right {
  padding: 42px 36px;
  background: #080a0f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

.quick-auth-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
}

.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, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.04);
}

.btn-quick-auth.passkey:hover {
  background: rgba(255, 107, 0, 0.1);
  border-color: rgba(255, 107, 0, 0.45);
}

.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; }
}
