/*
|--------------------------------------------------------------------------
| Author Information
|--------------------------------------------------------------------------
| Name        : Sagar Yadav
| Company     : GreatHost
| Website     : https://www.greathost.in
| Email       : support@greathost.in
| Version     : 1.0.0
| Created     : 03 June 2026
| Description : Complete Hosting Billing & Automation Platform for VPS, Reseller Hosting, Domains, Invoicing, and Support.
|--------------------------------------------------------------------------
*/
/* ============================================================
 * GreatHost — Unified Stylesheet
 * Covers: Login · Register · Client Dashboard
 * Merged from: style.css + dashboard.css
 * ============================================================ */

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

/* ==========================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* ── Typography ── */
  --font-primary: 'Outfit', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;

  /* ── Brand Colors ── */
  --primary-color: #4b3cfa;
  --primary-hover: #3b2ecc;
  --primary-gradient: linear-gradient(135deg, #4b3cfa 0%, #6366f1 100%);

  /* Dashboard brand aliases (kept for dashboard component compatibility) */
  --primary: #4361ee;
  --primary-light: #eef0fd;
  --primary-dark: #3451d1;
  --light-grey: #475569;
  --green: #16a34a;
  --green-dark: #117e39;
  --green-light-bg: rgba(22, 163, 74, 0.06);
  /* ── Semantic Colors ── */
  --success: #22c55e;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --orange: #f97316;
  --orange-light: #ffedd5;

  /* ── Backgrounds ── */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f6fc;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-icon-wrapper: #eef2ff;
  --bg-hover-grey: #f8fafc;

  /* Dashboard page/hover aliases */
  --bg-page: #f8fafc;
  --bg-hover: #f8fafc;

  /* ── Borders ── */
  --border-color: #e2e8f0;
  --border-focus: #4b3cfa;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  /* ── Text ── */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 20px 40px -15px rgba(75, 60, 250, 0.08);

  /* ── Layout (Dashboard) ── */
  --sidebar-w: 240px;
  --topbar-h: 64px;

  /* ── Border Radius ── */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;

  /* ── Transitions ── */
  --transition-speed: 0.3s;
  --transition: 150ms ease;
}

/* ── Dark Mode Overrides ── */
[data-theme="dark"] {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);

  --primary: #6366f1;
  --primary-light: #1e1b4b;
  --primary-dark: #4f46e5;

  --bg-primary: #0b0f19;
  --bg-secondary: #0f172a;
  --bg-card: #141c2f;
  --bg-input: #0f172a;
  --bg-icon-wrapper: #1e1b4b;
  --bg-hover-grey: #1e293b;

  --bg-page: #0b0f19;
  --bg-hover: #1e293b;

  --border-color: #1e293b;
  --border-focus: #6366f1;
  --border: #1e293b;
  --border-light: #1e293b;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-premium: 0 20px 40px -15px rgba(99, 102, 241, 0.15);
}


/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  height: 100%;
}

body {
  font-size: 14px;
  line-height: 1.5;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
}

/* Dashboard page context — uses --bg-page */
body.app-page {
  background: var(--bg-page);
}

a {
  color: var(--primary-color);
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
  text-decoration: none !important;
}

/* Global override for topbars, sidebars, and nav links to ensure absolutely no underlines */
.app-sidebar a,
.app-sidebar a:hover,
.app-topbar a,
.app-topbar a:hover,
.app-nav-link,
.app-nav-link:hover,
.app-user-menu-item,
.app-user-menu-item:hover,
.brand-logo,
.brand-logo:hover {
  text-decoration: none !important;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}


/* ==========================================================================
   GLOBAL UTILITIES
   ========================================================================== */

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5px;
}

/* ── Theme Toggle Button ── */
.theme-toggle-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  transform: rotate(30deg) scale(1.05);
  background-color: var(--border-color);
  box-shadow: var(--shadow-md);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* ── Animations ── */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse-glow {
  0% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }

  100% {
    opacity: 0.4;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(.97);
  }

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

.anim-spin {
  animation: spin 1s linear infinite;
}

.anim-float {
  animation: float 4s ease-in-out infinite;
}

.anim-float-delay {
  animation: float 4s ease-in-out infinite;
  animation-delay: 2s;
}

.anim-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

.server-led {
  fill: #10b981;
}

.server-led-pulse {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ── Dashboard Badges (generic) ── */
.app-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  background: var(--text-muted);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 10px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.app-badge--alert {
  background: var(--danger);
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-secondary);
}

.dash-badge--active {
  background: var(--success-light);
  color: #15803d;
}

.dash-badge--warning {
  background: var(--warning-light);
  color: #b45309;
}

.dash-badge--danger {
  background: var(--danger-light);
  color: #b91c1c;
}


/* ==========================================================================
   FORM CONTROLS & SHARED UI
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

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

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

.form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-input);
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-weight: 500;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(75, 60, 250, 0.08);
}

[data-theme="dark"] .form-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-input:focus+.input-icon {
  color: var(--primary-color);
}

/* Dropdown custom arrow */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

[data-theme="dark"] select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
}

/* ── Password Toggle ── */
.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--primary-color);
}

.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

/* ── Primary Button ── */
.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-inverse);
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(75, 60, 250, 0.2);
  transition: all 0.25s ease;
}

[data-theme="dark"] .btn-primary {
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(75, 60, 250, 0.3);
  filter: brightness(1.05);
}

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

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
  transition: transform 0.25s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ── Google Button ── */
.btn-google {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all 0.2s ease;
}

.btn-google:hover {
  background-color: var(--bg-hover-grey);
  border-color: var(--text-muted);
}

.btn-google svg {
  width: 18px;
  height: 18px;
}

/* ── Secondary Button ── */
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

[data-theme="dark"] .btn-secondary {
  color: #ffffff;
  background-color: var(--bg-secondary);
}

.btn-secondary:hover {
  background-color: var(--bg-hover-grey);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* ── Danger Button ── */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
  text-decoration: none !important;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.25);
  filter: brightness(1.05);
}

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

.btn-danger svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 10px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1.5px solid var(--border-color);
  transition: border-color var(--transition-speed) ease;
}

.divider:not(:empty)::before {
  margin-right: 15px;
}

.divider:not(:empty)::after {
  margin-left: 15px;
}

/* ── Card Footer Text ── */
.card-footer-text {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 15px;
}

.card-footer-text a {
  font-weight: 700;
  margin-left: 4px;
}

/* ── Checkbox ── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border-color);
  background-color: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.checkbox-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-input::after {
  content: '';
  width: 10px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin-top: -2px;
  display: none;
}

.checkbox-input:checked::after {
  display: block;
}

.checkbox-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* ── reCAPTCHA ── */
.recaptcha-wrapper {
  margin-top: 5px;
  display: flex;
  justify-content: flex-start;
}

.mock-recaptcha-widget {
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  width: 302px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .mock-recaptcha-widget {
  background-color: #141c2f;
  border-color: #1e293b;
}

/* ── Inline Input Action Badge ── */
.input-btn-badge {
  position: absolute;
  right: 10px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.input-btn-badge:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.input-btn-badge.verified {
  background-color: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
  cursor: default;
}

.input-btn-badge.verified:hover {
  background-color: rgba(16, 185, 129, 0.08);
  color: #10b981;
}


/* ==========================================================================
   AUTH — SHARED HEADER (Login / Register / Home)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-speed) ease;
}

[data-theme="dark"] .app-header {
  background-color: rgba(11, 15, 25, 0.85);
}

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

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

/* ── App Header Navigation Row (auth pages only) ── */
.app-header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* ── Brand Logo ── */
.logo-image {
  height: 48px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.02);
}

/* ── Nav Links (auth header) ── */
.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5px;
  color: var(--text-muted);
}

/* ── Cart Widget ── */
.cart-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cart-widget:hover {
  background-color: var(--bg-secondary);
}

.cart-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--text-primary);
}

.cart-icon-container svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Header Buttons ── */
.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-nav-login:hover {
  background-color: var(--primary-color);
  color: #ffffff !important;
  text-decoration: none;
}

.btn-nav-register {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  box-shadow: 0 3px 8px rgba(75, 60, 250, 0.15);
  transition: all 0.2s ease;
}

.btn-nav-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(75, 60, 250, 0.25);
  text-decoration: none;
}


/* ==========================================================================
   AUTH — LOGIN PAGE (Split-Screen)
   ========================================================================== */

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Theme toggle placed top-right of login screen */
.login-container>.theme-toggle-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 100;
}

/* ── Left Panel ── */
.left-panel {
  flex: 0 0 42%;
  background: var(--bg-secondary);
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  transition: background var(--transition-speed) ease,
    border-color var(--transition-speed) ease;
}

.left-panel-content {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.logo-header {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.logo-image {
  height: 42px;
  width: auto;
  align-self: flex-start;
  object-fit: contain;
}

.marketing-hero {
  margin-bottom: 40px;
}

.marketing-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.marketing-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--bg-icon-wrapper);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-speed) ease,
    color var(--transition-speed) ease,
    transform 0.2s ease;
}

.feature-item:hover .feature-icon-wrapper {
  transform: translateY(-2px);
}

.feature-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2px;
}

.feature-text-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.illustration-wrapper {
  width: 100%;
  margin-top: auto;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 200px;
}

.illustration-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  overflow: visible;
}

.left-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 20px;
  width: 100%;
}

/* ── Right Panel (Login Form) ── */
.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background-color: var(--bg-primary);
  transition: background-color var(--transition-speed) ease;
  position: relative;
}

.login-card-wrapper {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-logo-wrapper {
  display: none;
}

.mobile-brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.login-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 45px;
  box-shadow: var(--shadow-lg), var(--shadow-premium);
  transition: all var(--transition-speed) ease;
  width: 100%;
}

.login-card-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-card-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Forgot Password Link ── */
.forgot-password-container {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.forgot-password-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ── Support / Help Footer (Login & Forgot pages) ── */
.support-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.support-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.support-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.support-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.support-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
}

.support-link-item:hover {
  color: var(--primary-hover);
  text-decoration: none !important;
}

.support-link-item svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2px;
}

.support-divider {
  height: 16px;
  width: 1.5px;
  background-color: var(--border-color);
  transition: background-color var(--transition-speed) ease;
}


/* ==========================================================================
   AUTH — REGISTER PAGE
   ========================================================================== */

.register-container {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px;
  gap: 40px;
}

.register-main-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 45px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.register-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.register-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ── Account Type Selector ── */
.register-type-section {
  margin-bottom: 30px;
}

.register-type-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
}

.register-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.register-type-card {
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  background-color: var(--bg-card);
  transition: all 0.25s ease;
  user-select: none;
}

.register-type-card:hover:not(.disabled) {
  border-color: var(--primary-color);
  background-color: var(--bg-hover-grey);
}

.register-type-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(75, 60, 250, 0.02);
  box-shadow: 0 0 0 3px rgba(75, 60, 250, 0.06);
}

[data-theme="dark"] .register-type-card.selected {
  background-color: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.register-type-card.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.register-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.register-type-card.selected .register-type-icon {
  background-color: var(--primary-color);
  color: #ffffff;
}

.register-type-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

.register-type-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.register-type-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.register-type-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.register-type-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
}

.register-type-card .type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.register-type-card.selected .type-badge {
  background-color: var(--primary-color);
}

.register-type-card .type-badge svg {
  width: 10px;
  height: 10px;
  color: #ffffff;
  display: none;
}

.register-type-card.selected .type-badge svg {
  display: block;
}

/* ── Register Form ── */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Username Availability Status Badge ── */
.username-status {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.username-status svg {
  width: 16px;
  height: 16px;
}

.username-status.available svg {
  color: #10b981;
}

.username-status.taken svg {
  color: #ef4444;
}

.username-status.loading svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
}

/* Phone + Country Flag */
.phone-field-wrapper {
  display: flex;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background-color: var(--bg-input);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-field-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(75, 60, 250, 0.08);
}

[data-theme="dark"] .phone-field-wrapper:focus-within {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.country-select-box {
  background-color: var(--bg-secondary);
  border: none;
  border-right: 1.5px solid var(--border-color);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

.country-select-box select {
  position: absolute;
  opacity: 0;
  width: 60px;
  cursor: pointer;
}

.flag-icon {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

/* ── Register Sidebar ── */
.register-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
}

.sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.sidebar-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.benefit-item {
  display: flex;
  gap: 16px;
}

.benefit-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--bg-icon-wrapper);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.benefit-item:hover .benefit-icon-box {
  transform: scale(1.05);
}

.benefit-icon-box svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

.benefit-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.benefit-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Trust Card */
.trust-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.shield-illustration {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-illustration svg {
  width: 110px;
  height: 110px;
}

.trust-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 240px;
  margin-bottom: 25px;
}

.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trust-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-icon-wrapper);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.trust-badge-item:hover .trust-badge-icon {
  transform: translateY(-2px);
}

.trust-badge-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2px;
}

.trust-badge-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
}


/* ==========================================================================
   DASHBOARD — LAYOUT SHELL
   ========================================================================== */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 280;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.app-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 24px;
}

.app-sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}

.app-sidebar-logo img {
  height: 32px;
  width: auto;
}

/* ── Sidebar Nav ── */
.app-nav {
  padding: 12px 0;
  flex: 1;
}

.app-nav-section-label {
  padding: 14px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.app-nav-item {
  position: relative;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.app-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.app-nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.app-nav-item.active .app-nav-link {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.app-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 4px 4px 0;
}

/* ── Sidebar Wallet ── */
.sidebar-wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 16px;
  padding: 10px 14px;
  background: var(--green-light-bg);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green-light-bg);
}

.sidebar-wallet-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-wallet-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.sidebar-wallet-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--light-grey);
}

.sidebar-wallet-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-wallet-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.sidebar-wallet-add {
  width: 22px;
  height: 22px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: background var(--transition);
}

.sidebar-wallet-add:hover {
  background: var(--green-dark);
}

/* ── Sidebar Referral ── */
.app-sidebar-referral {
  margin: 12px 16px 0;
  padding: 14px;
  background: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);
  border-radius: var(--radius-sm);
  color: #fff;
}

.app-referral-title {
  font-size: 12px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.app-referral-desc {
  font-size: 11.5px;
  opacity: .85;
  margin-bottom: 10px;
}

.btn-referral {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-primary, #ffffff);
  border: 1.5px solid var(--primary-color, #4b3cfa);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-color, #4b3cfa) !important;
  box-shadow: 0 2px 6px rgba(75, 60, 250, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  cursor: pointer;
  outline: none;
}

.btn-referral:hover {
  background: var(--primary-color, #4b3cfa);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(75, 60, 250, 0.25);
  transform: translateY(-1px);
}

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

/* ── Main Content Area ── */
.app-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

/* ── Top Bar ── */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.app-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition);
}

.app-sidebar-toggle:hover {
  background: var(--bg-hover);
}

.app-sidebar-toggle svg {
  width: 20px;
  height: 20px;
}

.topbar-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Search */
.app-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.app-search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

.app-search {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-page);
  transition: border-color var(--transition), width var(--transition);
  outline: none;
  height: 38px;
}

.app-search:focus {
  border-color: var(--primary);
  width: 260px;
  background: #fff;
}

.app-search::placeholder {
  color: var(--text-muted);
}

/* Topbar Icon Buttons */
.topbar-actions {
  display: flex;
  align-items: center;
  border-left: 1px solid #e2e8f0;
  padding-left: 16px;
  gap: 4px;
}

.app-topbar-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
  border: 1px solid var(--border-light);
  background: #f1f5f9;
}

.app-topbar-icon-btn svg {
  width: 18px;
  height: 18px;
}

.app-topbar-icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ── Notification Dropdown ── */
.notif-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
}

.notif-mark-read {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
}

.notif-mark-read:hover {
  text-decoration: underline;
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item--unread {
  background: #fafbff;
}

.notif-item:hover {
  background: var(--bg-hover);
}

.notif-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── User Dropdown ── */
.app-user-dropdown {
  position: relative;
}

.app-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-primary);
  transition: background 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.app-user-btn:hover {
  background: var(--bg-hover);
}

.app-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.app-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.app-user-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.app-user-email {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.app-user-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.app-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 300;
  padding: 6px 0;
  overflow: hidden;
}

.app-user-menu.open {
  display: block;
}

.app-user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.app-user-menu-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.app-user-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.app-user-menu-item--danger {
  color: var(--danger);
}

.app-user-menu-item--danger:hover {
  background: var(--danger-light);
  color: var(--danger);
}

.app-user-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 4px 0;
}

/* ── Page Content ── */
.app-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* .app-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(75, 60, 250, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(75, 60, 250, .03) 1px, transparent 1px);
  background-size: 48px 48px;
} */

/* ==========================================================================
   DASHBOARD — STAT CARDS
   ========================================================================== */

.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.dash-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.dash-stat-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.dash-stat-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

.dash-stat-link:hover {
  text-decoration: underline;
}

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

.dash-stat-icon svg {
  width: 20px;
  height: 20px;
}

.dash-stat-icon--blue {
  background: var(--primary-light);
  color: var(--primary);
}

.dash-stat-icon--green {
  background: var(--success-light);
  color: var(--success);
}

.dash-stat-icon--purple {
  background: var(--purple-light);
  color: var(--purple);
}

.dash-stat-icon--orange {
  background: var(--orange-light);
  color: var(--orange);
}


/* ==========================================================================
   DASHBOARD — CARDS & GRIDS
   ========================================================================== */

.dash-mid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.dash-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.dash-card-title-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.dash-card-action {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 500;
}

.dash-card-action:hover {
  text-decoration: underline;
}

/* ── Service List ── */
.dash-service-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-service-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.dash-service-item:last-of-type {
  border-bottom: none;
}

.dash-service-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-service-icon svg {
  width: 16px;
  height: 16px;
}

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

.dash-service-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-service-domain {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-service-meta {
  flex-shrink: 0;
  text-align: right;
}

.dash-service-renew {
  display: block;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.dash-more-services {
  padding-top: 10px;
}

.dash-more-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 500;
}

.dash-more-link:hover {
  text-decoration: underline;
}

.dash-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

.dash-empty-state a {
  color: var(--primary);
  font-weight: 500;
}

/* ── Resource Usage Bars ── */
.dash-usage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.dash-usage-label {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.dash-usage-value {
  font-size: 12px;
  color: var(--text-muted);
}

.dash-usage-pct {
  color: var(--text-primary);
  font-weight: 700;
  margin-left: 4px;
}

.dash-progress {
  height: 6px;
  background: var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* ── Account Overview ── */
.dash-account-list {
  display: flex;
  flex-direction: column;
}

.dash-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 12px;
}

.dash-account-row:last-child {
  border-bottom: none;
}

.dash-account-key {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.dash-account-key svg {
  width: 13px;
  height: 13px;
  color: var(--text-muted);
}

.dash-account-val {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

/* ── Bottom Grid ── */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.dash-chart-wrap {
  height: 220px;
  position: relative;
}

/* ── Quick Actions ── */
.dash-quick-list {
  display: flex;
  flex-direction: column;
}

.dash-quick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  border-radius: var(--radius-xs);
}

.dash-quick-item:last-child {
  border-bottom: none;
}

.dash-quick-item svg:first-child {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.dash-quick-item span {
  flex: 1;
}

.dash-quick-item:hover {
  color: var(--primary);
  background: var(--primary-light);
  padding-left: 8px;
}

.dash-quick-arrow {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}


/* ==========================================================================
   DASHBOARD — ADD CREDIT MODAL
   ========================================================================== */

.credit-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}

.credit-modal-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: modalIn .2s ease;
}

.credit-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}

.credit-modal-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.credit-modal-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credit-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.credit-modal-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.credit-modal-close {
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: background var(--transition), color var(--transition);
}

.credit-modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.credit-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credit-modal-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.credit-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: border-color var(--transition);
}

.credit-input-wrap:focus-within {
  border-color: var(--primary);
}

.credit-input-prefix {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-page);
  border-right: 1px solid var(--border);
  height: 40px;
  display: flex;
  align-items: center;
}

.credit-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 12px;
  font-size: 14px;
  height: 40px;
  color: var(--text-primary);
  background: #fff;
}

.credit-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.credit-preset {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  transition: all var(--transition);
}

.credit-preset:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.credit-info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--success-light);
  border-radius: var(--radius-xs);
  font-size: 12.5px;
  color: #15803d;
}

.credit-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-page);
}

.credit-btn-cancel {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  transition: all var(--transition);
}

.credit-btn-cancel:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.credit-btn-submit {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition);
}

.credit-btn-submit:hover {
  background: var(--primary-dark);
}

/* ── Mobile Sidebar Overlay ── */
.app-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 150;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
}

.app-sidebar-overlay.active {
  display: block;
}


/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ── 1200px ── */
@media (max-width: 1200px) {
  .register-container {
    grid-template-columns: 1.5fr 1fr;
    padding: 30px;
    gap: 30px;
  }

  .app-header {
    padding: 16px 20px;
  }

  /* Auth header nav spacing */
  .app-header-nav {
    gap: 16px;
  }

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

  .dash-mid-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── 1024px ── */
@media (max-width: 1024px) {
  .register-container {
    grid-template-columns: 1fr;
  }

  /* Auth header nav hidden on tablet */
  .app-header-nav {
    display: none;
  }

  .left-panel {
    display: none !important;
  }

  .right-panel {
    padding: 40px 20px !important;
    width: 100% !important;
    flex: 1 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .login-card-wrapper {
    max-width: 500px !important;
    width: 100% !important;
  }

  .mobile-logo-wrapper {
    display: flex !important;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
  }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .dash-mid-grid {
    grid-template-columns: 1fr;
  }

  .dash-bottom-grid {
    grid-template-columns: 1fr;
  }

  .app-search {
    display: none;
  }
}

/* ── 768px ── */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
  }

  /* Responsive Admin Topbar rules to prevent horizontal overflow */
  .app-topbar {
    padding: 0 12px !important;
  }

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

  .app-search-wrap {
    display: none !important;
  }

  .topbar-actions {
    padding-left: 8px !important;
    gap: 4px !important;
  }

  .app-sidebar {
    transform: translateX(-240px);
    width: 240px;
    box-shadow: none;
  }

  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .app-main {
    margin-left: 0;
  }

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

  .app-content {
    padding: 16px;
    gap: 16px;
  }

  .dash-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .dash-stat-value {
    font-size: 22px;
  }

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

  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .register-type-grid {
    grid-template-columns: 1fr;
  }

  .register-main-content {
    padding: 30px 20px;
  }
}

/* ── 480px ── */
@media (max-width: 480px) {
  .app-header {
    padding: 12px 16px;
  }

  .cart-total {
    display: none;
  }

  .register-container {
    padding: 15px;
    gap: 20px;
  }

  .register-title {
    font-size: 1.6rem;
  }

  .sidebar-card {
    padding: 24px 16px;
  }

  .dash-stat-grid {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding: 12px;
    gap: 12px;
  }

  .notif-dropdown {
    width: calc(100vw - 24px);
    right: -60px;
  }

  .app-user-info {
    display: none;
  }
}

/* ── Custom Button Classes & Utilities ── */
.btn-primary,
.btn-secondary {
  text-decoration: none !important;
  outline: none;
}

.btn-primary.btn-inline,
.btn-secondary.btn-inline {
  width: auto !important;
  display: inline-flex !important;
}

/* ==========================================================================
   SHIMMER / SKELETON LOADING SYSTEM
   Usage: add class="skeleton-{type}" to placeholder elements.
   Remove the skeleton class (or the element) once real content loads.
   ========================================================================== */

@keyframes gh-shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

/* Base shimmer token — applied to every skeleton element */
.skeleton,
.skeleton-text,
.skeleton-title,
.skeleton-avatar,
.skeleton-card,
.skeleton-row,
.skeleton-btn,
.skeleton-stat,
.skeleton-table-row td,
[data-skeleton] {
  background: linear-gradient(90deg,
      var(--bg-secondary, #f1f5f9) 25%,
      var(--bg-hover, #e8edf5) 50%,
      var(--bg-secondary, #f1f5f9) 75%);
  background-size: 1200px 100%;
  animation: gh-shimmer 1.5s infinite linear;
  border-radius: 6px;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}

/* Dark-mode aware shimmer */
[data-theme="dark"] .skeleton,
[data-theme="dark"] .skeleton-text,
[data-theme="dark"] .skeleton-title,
[data-theme="dark"] .skeleton-avatar,
[data-theme="dark"] .skeleton-card,
[data-theme="dark"] .skeleton-row,
[data-theme="dark"] .skeleton-btn,
[data-theme="dark"] .skeleton-stat,
[data-theme="dark"] .skeleton-table-row td,
[data-theme="dark"] [data-skeleton] {
  background: linear-gradient(90deg,
      #1e2537 25%,
      #262d42 50%,
      #1e2537 75%);
  background-size: 1200px 100%;
}

/* Pre-built shapes */
.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  flex-shrink: 0;
}

.skeleton-avatar.lg {
  width: 56px;
  height: 56px;
}

.skeleton-text {
  height: 13px;
  width: 100%;
  margin-bottom: 8px;
  border-radius: 4px;
}

.skeleton-text.short {
  width: 55%;
}

.skeleton-text.medium {
  width: 75%;
}

.skeleton-text.xs {
  width: 35%;
  height: 10px;
}

.skeleton-title {
  height: 20px;
  width: 65%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.skeleton-btn {
  height: 38px;
  width: 120px;
  border-radius: 10px;
}

/* Stat card placeholder */
.skeleton-stat {
  border-radius: 12px;
  padding: 20px 24px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Card placeholder */
.skeleton-card {
  border-radius: 12px;
  min-height: 120px;
}

/* Table row placeholder — wraps <tr> */
.skeleton-table-row td {
  border-radius: 4px !important;
  height: 14px;
}

/* Shimmer row (horizontal flex of text lines) */
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-radius: 0;
  background: none !important;
  animation: none !important;
}

.skeleton-row>* {
  background: linear-gradient(90deg,
      var(--bg-secondary, #f1f5f9) 25%,
      var(--bg-hover, #e8edf5) 50%,
      var(--bg-secondary, #f1f5f9) 75%);
  background-size: 1200px 100%;
  animation: gh-shimmer 1.5s infinite linear;
  border-radius: 4px;
  flex-shrink: 0;
}

[data-theme="dark"] .skeleton-row>* {
  background: linear-gradient(90deg,
      #1e2537 25%,
      #262d42 50%,
      #1e2537 75%);
  background-size: 1200px 100%;
}

/* Utility: hide when real content is ready */
.skeleton-hidden {
  display: none !important;
}

/* Premium CSS Tooltip */
.has-tooltip {
  position: relative;
  display: inline-flex;
}
.has-tooltip .tooltip-text {
  visibility: hidden;
  width: max-content;
  max-width: 200px;
  background-color: #0f172a;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  z-index: 999;
  bottom: 130%; /* Position above the flag */
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.4;
  font-family: var(--font-primary, 'Outfit', sans-serif);
}
/* Tooltip Arrow */
.has-tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
}
.has-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}