/* ============================================================
   RUGALSMM — Premium Client Panel CSS
   Version 4.0 — Full Polish Pass (Impeccable)
   ============================================================ */

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

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */

[data-theme="default"] {
  color-scheme: dark;

  /* Core backgrounds */
  --background:         #08090f;
  --foreground:         #ededed;

  /* Surfaces */
  --card:               #0e101a;
  --card-foreground:    #ededed;
  --popover:            #111422;
  --popover-foreground: #ededed;

  /* Primary */
  --primary:            #0ea5e9;
  --primary-foreground: #ffffff;

  /* Secondary */
  --secondary:          #141727;
  --secondary-foreground: #a0bbcc;

  /* Muted */
  --muted:              #141727;
  --muted-foreground:   #6b7a99;

  /* Accent — sky blue */
  --accent:             #0ea5e9;
  --accent-foreground:  #ffffff;

  /* Semantic */
  --destructive:        #ef4444;
  --success:            #4ade80;
  --warning:            #fbbf24;
  --info:               #60a5fa;

  /* Borders & inputs */
  --border:             rgba(56, 189, 248, 0.09);
  --border-strong:      rgba(56, 189, 248, 0.2);
  --input:              #111422;
  --ring:               rgba(14, 165, 233, 0.3);

  /* Surfaces tinted */
  --surface:            rgba(14, 165, 233, 0.04);
  --surface-2:          rgba(14, 165, 233, 0.09);

  /* Radius scale */
  --radius-sm:          6px;
  --radius:             10px;
  --radius-lg:          12px;
  --radius-pill:        9999px;

  /* Shadows (Softened for dark mode) */
  --shadow-sm:          0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow:             0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg:          0 8px 16px rgba(0, 0, 0, 0.2);

  /* Badge palette */
  --success-bg:         rgba(34, 197, 94, 0.08);
  --success-border:     rgba(34, 197, 94, 0.15);
  --primary-badge:      #7dd3fc;
  --primary-badge-bg:   rgba(14, 165, 233, 0.08);
  --primary-badge-border: rgba(14, 165, 233, 0.15);
  --warning-badge:      #fde047;
  --warning-badge-bg:   rgba(234, 179, 8, 0.08);
  --warning-badge-border: rgba(234, 179, 8, 0.15);
  --danger-badge:       #fca5a5;
  --danger-badge-bg:    rgba(239, 68, 68, 0.08);
  --danger-badge-border: rgba(239, 68, 68, 0.15);
  --badge-text:         #7dd3fc;
  --badge-bg:           rgba(14, 165, 233, 0.08);

  /* Layout */
  --sidebar-width:      250px;
  --sidebar-collapsed:  78px;
  --navbar-height:      66px;
  --navbar-bg:          rgba(8, 9, 15, 0.88);

  /* Motion */
  --ease-out:           cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast:      120ms;
  --duration:           200ms;
  --duration-slow:      350ms;
}

[data-theme="default"][data-mode="light"] {
  color-scheme: light;

  --background:         #f5f7fb;
  --foreground:         #09090b;
  --card:               #ffffff;
  --card-foreground:    #09090b;
  --popover:            #ffffff;
  --popover-foreground: #09090b;
  --primary:            #09090b;
  --primary-foreground: #ffffff;
  --secondary:          #f0f2f5;
  --secondary-foreground: #52525b;
  --muted:              #f0f2f5;
  --muted-foreground:   #71717a;
  --accent:             #4f46e5;
  --accent-foreground:  #ffffff;
  --destructive:        #dc2626;
  --success:            #15803d;
  --warning:            #92400e;
  --border:             rgba(0, 0, 0, 0.07);
  --border-strong:      rgba(0, 0, 0, 0.15);
  --input:              #ffffff;
  --ring:               rgba(79, 70, 229, 0.2);
  --surface:            rgba(0, 0, 0, 0.03);
  --surface-2:          rgba(0, 0, 0, 0.06);
  --shadow-sm:          0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow:             0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg:          0 8px 32px rgba(0, 0, 0, 0.1);
  --success-bg:         rgba(34, 197, 94, 0.1);
  --success-border:     rgba(34, 197, 94, 0.2);
  --primary-badge:      #4338ca;
  --primary-badge-bg:   rgba(79, 70, 229, 0.08);
  --primary-badge-border: rgba(79, 70, 229, 0.2);
  --warning-badge:      #92400e;
  --warning-badge-bg:   rgba(234, 179, 8, 0.08);
  --warning-badge-border: rgba(234, 179, 8, 0.2);
  --danger-badge:       #b91c1c;
  --danger-badge-bg:    rgba(239, 68, 68, 0.08);
  --danger-badge-border: rgba(239, 68, 68, 0.2);
  --badge-text:         #4f46e5;
  --badge-bg:           rgba(79, 70, 229, 0.08);
  --navbar-bg:          rgba(245, 247, 251, 0.9);
}

/* ============================================================
   1.1 DESIGN CLEANUPS (Sidebar & Floating Button)
   ============================================================ */

/* Remove muddy shadow from sidebar and use clean border */
.sidebar,
.sidebar-open .sidebar,
.sidebar.collapsed,
.sidebar-folded .sidebar,
.sidebar-folded .sidebar .sidebar-body,
.sidebar-folded .sidebar .sidebar-header,
.sidebar .sidebar-body,
.sidebar .sidebar-header {
  box-shadow: none !important;
  border-right: 1px solid var(--border) !important;
}

/* Replace muddy shadow on floating contact button with a matching glow */
.contact-widget-btn {
  box-shadow: 0 4px 15px var(--btn-color) !important;
  opacity: 0.95;
}
.contact-widget-btn:hover {
  box-shadow: 0 6px 20px var(--btn-color) !important;
  opacity: 1;
}

/* ============================================================
   2. GLOBAL LAYOUT
   ============================================================ */

/* ============================================================
   1c. MODE TRANSITION — smooth light ↔ dark switch
   ============================================================ */

html,
body {
  transition: background-color 0.35s ease, color 0.30s ease;
}

.main-wrapper,
.page-wrapper,
.page-content {
  transition: background-color 0.35s ease;
}

.sidebar,
.sidebar .sidebar-header,
.sidebar .sidebar-body,
.sidebar .sidebar-user-box {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.panel-navbar {
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card,
.card-header,
.card-body {
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.stats-card,
.stats-grid {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.table-responsive,
.table th {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.table td {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.30s ease;
}

.form-control,
.form-select,
textarea,
.select2-container--default .select2-selection--single {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.30s ease, box-shadow 0.35s ease;
}

.btn {
  transition: background-color 0.30s ease, border-color 0.30s ease, color 0.25s ease, box-shadow 0.30s ease, opacity 0.20s ease;
}

.badge,
.bg-success-light,
.bg-primary-light,
.bg-warning-light,
.bg-danger-light,
.bg-info-light {
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.30s ease;
}

.dropdown-menu {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.dropdown-item {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.modal-content {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.platform-filter-btn {
  transition: background-color 0.30s ease, border-color 0.30s ease, color 0.25s ease;
}

.announcement-tabs,
.announcement-tab-btn {
  transition: color 0.25s ease, border-color 0.30s ease;
}

.landing-nav {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.navbar-avatar,
.sidebar-user-avatar,
.profile-dropdown-avatar {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.notes-box,
.order-charge-box {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.payment-method-card,
.payment-method-icon,
.payment-method-instructions {
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.sidebar .nav .nav-item .nav-link {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.panel-navbar .navbar-nav .nav-item .nav-link {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.currency-selector-btn {
  transition: background 0.30s ease, border-color 0.30s ease, box-shadow 0.30s ease;
}

.contact-widget-menu,
.contact-widget-item a {
  transition: background 0.35s ease, border-color 0.35s ease, color 0.30s ease;
}

.premium-toast {
  transition: background 0.35s ease, border-color 0.35s ease;
}

/* ── Reduced motion: instant switch ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  html, body, *,
  *::before, *::after {
    transition-duration: 0s !important;
  }
}

/* ============================================================
   2. GLOBAL RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (min-width: 992px) {
  html {
    zoom: 1.25;
  }
}

body,
html {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Outfit', 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Scrollbars */
::-webkit-scrollbar              { width: 5px; height: 5px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover  { background: rgba(255, 255, 255, 0.2); }

[data-theme="default"][data-mode="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}
[data-theme="default"][data-mode="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}

/* Horizontal Rules */
hr {
  border: 0;
  border-top: 1px solid var(--border) !important;
  margin: 1.5rem 0;
  opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   3. UTILITY CLASSES
   (Replicates the bare minimum Tailwind used in templates)
   ============================================================ */

/* Typography */
.text-xs             { font-size: 0.8rem; line-height: 1.2; }
.text-sm             { font-size: 0.92rem; line-height: 1.4; }
.text-base           { font-size: 1rem; line-height: 1.5rem; }
.text-lg             { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl             { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl            { font-size: 1.5rem; line-height: 2rem; }
.font-medium         { font-weight: 500; }
.font-semibold       { font-weight: 600; }
.font-bold           { font-weight: 700; }
.font-extrabold      { font-weight: 800; }
.leading-normal      { line-height: 1.5; }
.leading-relaxed     { line-height: 1.65; }
.tracking-wide       { letter-spacing: 0.05em; }
.uppercase           { text-transform: uppercase; }
.truncate            { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap   { white-space: nowrap; }
.text-center         { text-align: center; }

/* Color utilities mapped to tokens */
.text-foreground          { color: var(--foreground); }
.text-muted-foreground    { color: var(--muted-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-accent              { color: var(--accent); }
.text-white               { color: #ffffff; }
.text-success             { color: var(--success); }
.text-warning             { color: var(--warning); }
.text-danger              { color: var(--destructive); }
.text-info                { color: var(--info); }

/* Legacy Bootstrap color overrides for templates */
.text-muted   { color: var(--muted-foreground) !important; }
.text-primary { color: var(--accent) !important; }

/* Spacing helpers */
.gap-1    { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2    { gap: 0.5rem; }
.gap-3    { gap: 0.75rem; }
.gap-4    { gap: 1rem; }

/* Display */
.inline-flex { display: inline-flex; }
.flex        { display: flex; }
.hidden      { display: none; }

/* Flex helpers */
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.flex-col         { flex-direction: column; }
.flex-1           { flex: 1; }
.self-start       { align-self: flex-start; }
.shrink-0         { flex-shrink: 0; }
.min-w-0          { min-width: 0; }
.w-full           { width: 100%; }

/* Sizing */
.w-1\.5   { width: 0.375rem; }
.h-1\.5   { height: 0.375rem; }
.w-3\.5   { width: 0.875rem; }
.h-3\.5   { height: 0.875rem; }
.w-8      { width: 2rem; }
.h-8      { height: 2rem; }
.w-12     { width: 3rem; }
.h-12     { height: 3rem; }

/* Border radius */
.rounded-md    { border-radius: var(--radius-sm); }
.rounded-lg    { border-radius: var(--radius); }
.rounded-full  { border-radius: var(--radius-pill); }

/* Border utilities */
.border-bottom  { border-bottom: 1px solid var(--border); }
.border-top     { border-top: 1px solid var(--border); }
.border-end     { border-right: 1px solid var(--border); }
.border         { border: 1px solid var(--border); }
.border-accent  { border: 1px solid rgba(14, 165, 233, 0.2); }

/* Padding / margin utils */
.p-1          { padding: 0.25rem; }
.p-3          { padding: 0.75rem; }
.p-4          { padding: 1rem; }
.px-2         { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3         { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4         { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5      { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1         { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5      { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2         { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5      { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3         { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-1\.5      { padding-left: 0.375rem; padding-right: 0.375rem; }
.ms-1         { margin-left: 0.25rem; }
.me-1         { margin-right: 0.25rem; }
.mb-0         { margin-bottom: 0; }
.mb-1         { margin-bottom: 0.25rem; }
.mb-2         { margin-bottom: 0.5rem; }
.mt-0\.5      { margin-top: 0.125rem; }
.mt-1         { margin-top: 0.25rem; }

/* Background tint helpers */
.bg-accent\/5   { background-color: rgba(14, 165, 233, 0.05); }
.bg-white\/10   { background-color: rgba(255, 255, 255, 0.1); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-accent\/20 { border-color: rgba(14, 165, 233, 0.2); }

/* Max height */
.max-height-200 { max-height: 200px; }

/* Overflow */
.overflow-y-auto  { overflow-y: auto; }

/* Misc */
.animate-pulse {
  animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

[data-theme="default"][data-mode="light"] .dot-grid {
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

/* ============================================================
   4. LAYOUT — PAGE SHELL
   ============================================================ */

.main-wrapper {
  background-color: var(--background);
}

.main-wrapper .page-wrapper {
  background-color: var(--background) !important;
  min-height: 100vh;
  transition: margin-left var(--duration) var(--ease-out),
              width     var(--duration) var(--ease-out);
}

@media (min-width: 992px) {
  .main-wrapper .page-wrapper {
    margin-left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
  }
}

@media (max-width: 991px) {
  .main-wrapper .page-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

.page-content {
  background-color: var(--background);
  padding: 1.75rem 2rem;
  margin-top: var(--navbar-height);
  width: 100%;
}

@media (min-width: 576px) {
  .page-content {
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 575px) {
  .page-content {
    padding: 1.25rem 1rem;
  }
}

/* ============================================================
   5. SIDEBAR
   ============================================================ */

.sidebar {
  width: var(--sidebar-width) !important;
  background-color: var(--background) !important;
  border-right: 1px solid var(--border) !important;
  transition: width var(--duration) var(--ease-out),
              margin-left var(--duration) var(--ease-out);
  z-index: 1035 !important;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
}

/* Header */
.sidebar .sidebar-header {
  border-bottom: 1px solid var(--border) !important;
  height: var(--navbar-height) !important;
  padding: 0 1.25rem !important;
  background-color: var(--background) !important;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  width: 100% !important;
  border-right: none !important;
}

.sidebar .sidebar-header .sidebar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--foreground);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.sidebar .sidebar-header .sidebar-brand span {
  color: var(--foreground);
}

/* Body */
.sidebar .sidebar-body {
  padding: 0.75rem 0.5rem;
  flex: 1;
  overflow-y: auto;
  background-color: var(--background) !important;
}

/* Nav */
.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .nav .nav-category {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  padding: 1rem 0.75rem 0.35rem;
  opacity: 0.55;
}

.sidebar .nav .nav-item {
  margin: 0;
  padding: 0;
}

.sidebar .nav .nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
  background: transparent;
  text-decoration: none;
  position: relative;
}

.sidebar .nav .nav-item .nav-link:hover {
  color: var(--foreground);
  background-color: var(--surface);
}

.sidebar .nav .nav-item.active .nav-link {
  color: var(--foreground);
  background-color: var(--surface-2);
}

/* Remove any template ::before indicators */
.sidebar .nav .nav-item .nav-link::before,
.sidebar .nav .nav-item.active .nav-link::before {
  display: none;
}

/* Nav icons */
.sidebar .nav .nav-item .nav-link svg.feather,
.sidebar .nav .nav-item .nav-link i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: inherit;
}

/* Sidebar badge (order count etc.) */
.sidebar-badge {
  margin-left: auto;
  background-color: var(--surface-2);
  color: var(--muted-foreground);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* User box at bottom */
.sidebar-user-box {
  border-top: 1px solid var(--border) !important;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--background) !important;
  height: 60px;
  flex-shrink: 0;
}

.sidebar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

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

.sidebar-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-balance {
  font-size: 10px;
  color: var(--muted-foreground);
  margin: 0;
}

/* ── Sidebar Collapsed State ─────────────────────────────── */

.sidebar.collapsed {
  width: var(--sidebar-collapsed) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.22) !important;
}

[data-theme="default"][data-mode="light"] .sidebar.collapsed {
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06) !important;
}

@media (min-width: 992px) {
  .sidebar.collapsed ~ .page-wrapper {
    margin-left: var(--sidebar-collapsed) !important;
    width: calc(100% - var(--sidebar-collapsed)) !important;
  }
}

.sidebar.collapsed .sidebar-header .sidebar-brand {
  display: flex !important;
  justify-content: center;
  width: 100%;
}

.sidebar.collapsed .sidebar-header .sidebar-brand span {
  display: none !important;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.sidebar.collapsed .sidebar-body {
  padding: 0.75rem 0.5rem;
}

.sidebar.collapsed .nav .nav-category {
  display: none;
}

.sidebar.collapsed .nav .nav-item .nav-link span {
  display: none;
}

.sidebar.collapsed .nav .nav-item .nav-link {
  justify-content: center;
  padding: 0.85rem 0;
  border-radius: var(--radius);
  margin: 2px 8px;
}

.sidebar.collapsed .nav .nav-item .nav-link svg,
.sidebar.collapsed .nav .nav-item .nav-link i {
  width: 20px !important;
  height: 20px !important;
  transition: transform var(--duration) var(--ease-out);
}

.sidebar.collapsed .nav .nav-item .nav-link:hover svg,
.sidebar.collapsed .nav .nav-item .nav-link:hover i {
  transform: scale(1.15);
}

.sidebar.collapsed .nav .nav-item.active .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background-color: var(--accent);
  border-radius: 0 4px 4px 0;
  display: block !important;
}

.sidebar.collapsed .sidebar-user-box {
  justify-content: center;
  padding: 0.75rem 0;
}

.sidebar.collapsed .sidebar-user-info {
  display: none;
}

.sidebar.collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

/* ── Sidebar Toggle Button ──────────────────────────────── */

.sidebar-toggle-btn {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background-color: var(--popover);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  color: var(--muted-foreground);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: color var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
}

.sidebar-toggle-btn:hover {
  color: var(--foreground);
  background-color: var(--surface-2);
}

.panel-navbar {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  left: var(--sidebar-width) !important;
  width: calc(100% - var(--sidebar-width)) !important;
  transition: left   var(--duration) var(--ease-out),
              width  var(--duration) var(--ease-out);
  height: var(--navbar-height);
  padding: 0 2rem;
  position: fixed;
  top: 0;
  z-index: 1025 !important;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.sidebar.collapsed ~ .page-wrapper .panel-navbar {
  left: var(--sidebar-collapsed) !important;
  width: calc(100% - var(--sidebar-collapsed)) !important;
}

@media (max-width: 991px) {
  .panel-navbar {
    left: 0 !important;
    width: 100% !important;
    padding: 0 1.25rem;
  }
}

.panel-navbar .navbar-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  padding: 0;
}

.panel-navbar .navbar-nav {
  align-items: center;
  gap: 6px;
  flex-direction: row;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  display: flex;
}

/* Navbar icon links */
.panel-navbar .navbar-nav .nav-item .nav-link {
  color: var(--muted-foreground);
  padding: 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
  text-decoration: none;
}

.panel-navbar .navbar-nav .nav-item .nav-link:hover {
  color: var(--foreground);
  background-color: var(--surface);
}

.panel-navbar .navbar-nav .nav-item .nav-link svg {
  width: 20px;
  height: 20px;
}

.panel-navbar .navbar-nav .nav-item .nav-link:hover svg {
  color: var(--accent);
}

/* Notification dot */
.panel-navbar .nav-link .indicator {
  position: relative;
}

.panel-navbar .nav-link .indicator .circle {
  width: 6px;
  height: 6px;
  background-color: var(--destructive);
  border-radius: var(--radius-pill);
  position: absolute;
  top: -3px;
  right: -3px;
  box-shadow: 0 0 6px var(--destructive);
}

/* Navbar dropdown menus */
.panel-navbar .dropdown-menu {
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 8px;
  padding: 5px;
}

.panel-navbar .dropdown-menu .dropdown-item {
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.panel-navbar .dropdown-menu .dropdown-item:hover,
.panel-navbar .dropdown-menu .dropdown-item:focus {
  color: var(--foreground);
  background-color: var(--surface);
}

.panel-navbar .dropdown-menu .dropdown-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Balance / Currency Button */
.currency-selector-btn {
  background: linear-gradient(135deg,
    rgba(14, 165, 233, 0.1),
    rgba(14, 165, 233, 0.02));
  border: 1px solid rgba(14, 165, 233, 0.28);
  color: var(--foreground);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.currency-selector-btn:hover {
  background: linear-gradient(135deg,
    rgba(14, 165, 233, 0.16),
    rgba(14, 165, 233, 0.06));
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.12);
}

/* Navbar avatar */
.navbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-2);
  border: 1.5px solid rgba(14, 165, 233, 0.22);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: border-color var(--duration-fast) ease,
              box-shadow     var(--duration-fast) ease;
}

.panel-navbar .navbar-nav .nav-item:hover .navbar-avatar {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.2);
}

/* Profile dropdown avatar */
.profile-dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--foreground);
  flex-shrink: 0;
}

/* ============================================================
   7. CARDS
   ============================================================ */

.card {
  background-color: var(--card);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) ease,
              transform  var(--duration) ease !important;
}

.card:hover {
  box-shadow: var(--shadow) !important;
  transform: translateY(-1px);
}

.card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--foreground);
  font-size: 1rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.card-header {
  border-bottom: 1px solid var(--border);
  background-color: transparent;
  padding: 1.25rem 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* ============================================================
   8. STATS GRID (Dashboard)
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.75rem;
}

@media (min-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767px) {
  .stats-card {
    padding: 1rem 0.85rem !important;
    gap: 6px !important;
  }
  .stats-card-value {
    font-size: 1.25rem !important;
  }
  .stats-card-subtext {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  .stats-card-badge {
    padding: 1px 5px !important;
    font-size: 9px !important;
  }
  .stats-card-label {
    font-size: 0.7rem !important;
  }
}

.stats-card {
  background-color: var(--card);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: none;
  border-radius: 0;
  transition: background-color var(--duration-fast) ease;
}

.stats-card:hover {
  background-color: rgba(14, 165, 233, 0.02);
}

.stats-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background-color: var(--badge-bg);
  color: var(--badge-text);
}

.stats-card-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.03em;
  margin: 0;
  font-family: 'Outfit', sans-serif;
  line-height: 1;
}

.stats-card-subtext {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* ============================================================
   9. FORM ELEMENTS
   ============================================================ */

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
}

.form-control,
.form-select,
textarea {
  background-color: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  width: 100%;
  box-shadow: none !important;
  transition: border-color var(--duration-fast) ease,
              box-shadow     var(--duration-fast) ease;
  font-family: 'Outfit', 'Inter', sans-serif;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}

.form-control:disabled,
#newOrderDescription[disabled] {
  background-color: rgba(255, 255, 255, 0.02);
  opacity: 0.75;
  border-color: var(--border);
  cursor: not-allowed;
}

/* Placeholder */
.form-control::placeholder,
.form-select::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.7;
}

/* Form check */
.form-check-input {
  background-color: var(--input);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: var(--secondary-foreground);
  font-size: 0.84rem;
}

/* ============================================================
   10. SELECT2 OVERRIDES
   ============================================================ */

.select2-container--default .select2-selection--single {
  background-color: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 45px;
  box-shadow: none !important;
  transition: border-color var(--duration-fast) ease,
              box-shadow     var(--duration-fast) ease;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}
.select2-selection__rendered {
  height: 40px;
 margin-top: -4px;
}




.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--foreground);
  line-height: 38px;
  padding-left: 12px;
  padding-right: 32px;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
  width: 28px;
}


.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted-foreground) transparent transparent transparent;
}



.select2-dropdown {
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.select2-container--open .select2-dropdown--below {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.select2-container--default .select2-search--dropdown {
  padding: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: var(--input);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.84rem;
}

.select2-results__options {
  padding: 4px;
  max-height: 360px !important;
}

.select2-results__option {
  padding: 7px 10px;
  font-size: 0.90rem;
  color: var(--secondary-foreground);
  border-radius: 5px;
  line-height: 1.4;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--surface-2);
  color: var(--foreground);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--surface);
  color: var(--foreground);
}

/* Force Select2 dropdown to always open downwards when using dropdownParent */
.position-relative .select2-container--open {
  top: 100% !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* Fix Select2 service selection rendered tag overflow */
.select2-container {
  width: 100% !important;
}

/* ============================================================
   11. BUTTONS
   ============================================================ */

.btn {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  padding: 0.5rem 1.1rem;
  transition: opacity var(--duration-fast) ease,
              background-color var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              transform var(--duration-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(1px);
}

/* Primary */
.btn-primary {
  background-color: var(--foreground);
  color: var(--background);
  border: none;
}

.btn-primary:hover {
  opacity: 0.88;
  color: var(--background);
}

/* Secondary */
.btn-secondary {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: var(--surface-2);
  color: var(--foreground);
  border-color: var(--border-strong);
}

/* Danger */
.btn-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--destructive);
}

.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

/* Accent */
.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
  border: none;
}

.btn-accent:hover {
  opacity: 0.88;
}

/* Sizing */
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.78rem; }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 0.95rem; }

/* W-100 */
.btn.w-100 { width: 100%; justify-content: center; }

/* ============================================================
   12. BADGES
   ============================================================ */

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.bg-success-light {
  background-color: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.bg-primary-light {
  background-color: var(--primary-badge-bg);
  color: var(--primary-badge);
  border: 1px solid var(--primary-badge-border);
}

.bg-warning-light {
  background-color: var(--warning-badge-bg);
  color: var(--warning-badge);
  border: 1px solid var(--warning-badge-border);
}

.bg-danger-light {
  background-color: var(--danger-badge-bg);
  color: var(--danger-badge);
  border: 1px solid var(--danger-badge-border);
}

.bg-info-light {
  background-color: rgba(96, 165, 250, 0.08);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.18);
}

/* btn-success for refill buttons etc. */
.btn-success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.1rem;
  font-size: 0.84rem;
  transition: background-color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}

.btn-success:hover {
  background-color: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--success);
}

/* ============================================================
   13. TABLES
   ============================================================ */

.table-responsive {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background-color: var(--card);
}

.table {
  color: var(--foreground);
  margin-bottom: 0;
  border-collapse: collapse;
  width: 100%;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--muted-foreground);
  background-color: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  white-space: nowrap;
}

.table td {
  padding: 11px 16px;
  font-size: 0.9rem;
  color: var(--secondary-foreground);
  border-top: 1px solid var(--border);
  vertical-align: middle;
  overflow-wrap: break-word;
  word-break: break-word;
}

.table-hover tbody tr {
  transition: background-color var(--duration-fast) ease;
}

.table-hover tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.018);
  color: var(--foreground);
}

/* ============================================================
   14. MODALS
   ============================================================ */

.modal-content {
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
}

.btn-close {
  filter: invert(1);
  opacity: 0.5;
  transition: opacity var(--duration-fast) ease;
}

.btn-close:hover {
  opacity: 0.9;
}

/* ============================================================
   15. PLATFORM FILTER BAR (New Order Page)
   ============================================================ */

.platform-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.platform-filter-btn {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color var(--duration-fast) ease,
              background-color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
  white-space: nowrap;
}

.platform-filter-btn:hover {
  background-color: var(--surface-2);
  color: var(--foreground);
  border-color: var(--border-strong);
}

.platform-filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  font-weight: 600;
}

/* ============================================================
   16. ANNOUNCEMENT / TAB SYSTEM
   ============================================================ */

.announcement-tabs {
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.announcement-tab-btn {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.7rem 0.25rem;
  cursor: pointer;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.announcement-tab-btn:hover {
  color: var(--foreground);
}

.announcement-tab-btn.active {
  color: var(--foreground);
}

.announcement-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px 2px 0 0;
}

.announcement-content-section {
  display: none;
  line-height: 1.7;
  font-size: 0.875rem;
  color: var(--secondary-foreground);
}

.announcement-content-section.active {
  display: block;
}

/* ============================================================
   17. WIZARD (jQuery Steps)
   ============================================================ */

.wizard > .steps {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.wizard > .steps > ul {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wizard > .steps > ul > li {
  float: none;
  display: block;
}

.wizard > .steps a,
.wizard > .steps a:hover,
.wizard > .steps a:active {
  background: transparent;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.7rem 0.25rem;
  border-radius: 0;
  border: none;
  text-decoration: none;
}

.wizard > .steps .current a {
  color: var(--foreground);
  border-bottom: 2px solid var(--foreground);
}

.wizard > .steps .disabled a {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard > .content {
  background: transparent;
  min-height: auto;
  border: none;
  overflow: visible;
  padding: 0;
  margin: 0;
  height: auto;
}

.wizard > .content > .body {
  position: relative;
  width: 100%;
  height: auto;
  padding: 0;
  background: transparent;
}

.wizard > .actions {
  margin-top: 1.5rem;
  padding: 0;
}

.wizard > .actions > ul {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wizard > .actions a,
.wizard > .actions a:hover,
.wizard > .actions a:active {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--foreground);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
}

/* ============================================================
   18. AUTH / LANDING PAGES
   ============================================================ */

/* Landing nav */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--navbar-bg);
  z-index: 1000;
}

.landing-nav-container {
  max-width: 1140px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

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

.landing-nav-links a {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--duration-fast) ease;
}

.landing-nav-links a:hover {
  color: var(--foreground);
}

/* Hero */
.landing-hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 56px;
  overflow: hidden;
}

.landing-hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.landing-hero-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  width: 100%;
  z-index: 10;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background-color: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.landing-hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: var(--radius-pill);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.landing-hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  text-wrap: balance;
}

.landing-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--secondary-foreground);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.landing-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--secondary-foreground);
}

.landing-trust-item-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background-color: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 9px;
  flex-shrink: 0;
}

.landing-hero-metrics {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 576px) {
  .landing-hero-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.landing-metric-val {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

.landing-metric-lbl {
  font-size: 10px;
  color: var(--muted-foreground);
  margin-top: 2px;
  display: block;
}

/* Auth card */
.auth-card-container {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 400px;
}

.auth-card-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-card-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  text-align: center;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.auth-card-tab:hover       { color: var(--foreground); }
.auth-card-tab.active      { color: var(--foreground); }

.auth-card-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px 2px 0 0;
}

.auth-card-body {
  padding: 1.5rem;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1.1rem;
}

.auth-form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.password-input-wrapper {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color var(--duration-fast) ease;
}

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

.auth-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.auth-form-actions a {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.auth-form-actions a:hover { color: var(--foreground); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.auth-divider-text {
  font-size: 11px;
  color: var(--muted-foreground);
}

.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.auth-social-btn {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--secondary-foreground);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color var(--duration-fast) ease,
              color var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
}

.auth-social-btn:hover {
  background-color: var(--surface-2);
  color: var(--foreground);
  border-color: var(--border-strong);
}

.auth-social-btn svg { width: 14px; height: 14px; }

.auth-card-footer-text {
  font-size: 10px;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.6;
  margin-top: 1.25rem;
}

.auth-card-footer-text a {
  color: var(--muted-foreground);
  text-decoration: underline;
  transition: color var(--duration-fast) ease;
}

.auth-card-footer-text a:hover { color: var(--foreground); }

/* ============================================================
   19. LANDING — STATS / FEATURES / TESTIMONIALS / FOOTER
   ============================================================ */

.landing-stats-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-stats-container,
.landing-features-container,
.landing-testimonials-container,
.landing-footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--border);
}

@media (min-width: 992px) {
  .landing-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.landing-stats-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3rem 2rem;
  background-color: var(--background);
}

.landing-stats-card-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.03em;
  font-family: 'Outfit', sans-serif;
}

.landing-stats-card-lbl {
  font-size: 0.84rem;
  color: var(--muted-foreground);
}

/* Features */
.landing-features-section { padding: 7rem 0; }

.landing-features-header {
  margin-bottom: 4rem;
  max-width: 580px;
}

.landing-features-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.landing-features-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.landing-features-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border);
}

@media (min-width: 576px) { .landing-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .landing-features-grid { grid-template-columns: repeat(3, 1fr); } }

.landing-feature-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2rem 1.75rem;
  background-color: var(--background);
}

.landing-feature-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.landing-feature-icon-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
}

.landing-feature-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
}

.landing-feature-card-desc {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* Testimonials */
.landing-testimonials-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.landing-testimonials-header { margin-bottom: 4rem; }

.landing-testimonials-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  max-width: 580px;
  text-wrap: balance;
}

.landing-testimonials-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.landing-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--border);
}

@media (min-width: 576px) { .landing-testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .landing-testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.landing-testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 2.25rem 1.75rem;
  background-color: var(--background);
}

.landing-testimonial-content {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  flex: 1;
}

.landing-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--foreground);
  flex-shrink: 0;
}

.landing-testimonial-author-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin: 0;
}

.landing-testimonial-author-role {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Footer */
.landing-footer { border-top: 1px solid var(--border); }

.landing-footer-container { padding: 4rem 1.5rem; }

.landing-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) { .landing-footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .landing-footer-grid { grid-template-columns: repeat(5, 1fr); } }

.landing-footer-brand { grid-column: span 2; }

@media (min-width: 992px) { .landing-footer-brand { grid-column: span 1; } }

.landing-footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
  text-decoration: none;
}

.landing-footer-brand-desc {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.landing-footer-brand-trust {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.landing-footer-col-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.landing-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.landing-footer-links a {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.landing-footer-links a:hover { color: var(--foreground); }

.landing-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 576px) {
  .landing-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.landing-footer-bottom-text {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* ============================================================
   20. PAYMENT METHODS — Instructions UI
   ============================================================ */

.payment-method-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  overflow: hidden;
  transition: border-color var(--duration) ease;
  cursor: pointer;
}

.payment-method-card:hover,
.payment-method-card.selected {
  border-color: var(--accent);
}

.payment-method-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.25rem;
}

.payment-method-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.payment-method-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.payment-method-type-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.payment-method-instructions {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background-color: rgba(14, 165, 233, 0.02);
}

.payment-method-instructions p,
.payment-method-instructions li {
  font-size: 0.84rem;
  color: var(--secondary-foreground);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.payment-method-instructions h5,
.payment-method-instructions h6 {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

/* ============================================================
   21. MISC COMPONENTS
   ============================================================ */

/* Glow effects */
.glow-indigo {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.25),
              0 4px 20px rgba(14, 165, 233, 0.18);
}

/* Search input with icon */
.search-input-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  z-index: 2;
  pointer-events: none;
}

/* Total charge box in order form */
.order-charge-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Service details row items */
.service-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.6rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.service-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Page section heading */
.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h4,
.section-heading h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.section-heading p {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  margin: 0;
}

/* Notes / instruction box */
.notes-box {
  background-color: rgba(14, 165, 233, 0.04);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}

.notes-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.notes-box-body {
  font-size: 0.9rem;
  color: var(--secondary-foreground);
  line-height: 1.65;
  margin: 0;
  max-height: 120px;
  overflow-y: auto;
}

/* ============================================================
   22. SCROLLBAR OVERRIDES FOR SPECIFIC CONTAINERS
   ============================================================ */

#scroll::-webkit-scrollbar-track {
  border-radius: 10px;
}

#scroll::-webkit-scrollbar {
  width: 6px;
}

#scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(83, 104, 199, 0.5);
}

.search-results-dropdown::-webkit-scrollbar {
  width: 5px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
}

/* ============================================================
   23. TEMPLATE BOOTSTRAP OVERRIDES
   (targeted overrides to fix the underlying demo theme)
   ============================================================ */

/* Prevent the base demo theme from constraining content width */
.page-wrapper .container-fluid,
.page-wrapper .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Fix Bootstrap row gutters inside our padded page-content */
.page-content .row {
  --bs-gutter-x: 1.5rem;
}

/* Body background override — ensure demo theme doesn't overwrite */
body {
  background-color: var(--background) !important;
}

.main-wrapper {
  background-color: var(--background) !important;
}

/* Text color mapped from bootstrap classes used in templates */
.text-white  { color: #ffffff !important; }
.text-muted  { color: var(--muted-foreground) !important; }

/* Border color correction for border-border class used in templates */
.border-border {
  border-color: var(--border) !important;
}

/* Override any inherited demo theme that makes navbar opaque */
.panel-navbar {
  background-color: var(--navbar-bg) !important;
  z-index: 1025 !important;
}

/* Prevent demo sidebar from overriding our sidebar */
.sidebar {
  background-color: var(--background) !important;
  border-right: 1px solid var(--border) !important;
  box-shadow: none !important;
  z-index: 1035 !important;
}

/* Remove extra borders from Bootstrap card inside our design */
.card {
  background-color: var(--card) !important;
  border: none !important;
}

/* Fix Bootstrap table coloring */
.table {
  color: var(--foreground) !important;
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: rgba(255,255,255,0.02);
  --bs-table-color: var(--foreground);
  --bs-table-border-color: var(--border);
}

/* Bootstrap modal backdrop */
.modal-content {
  background-color: var(--popover) !important;
  border: 1px solid var(--border) !important;
}

/* Dropdown bootstrap overrides */
.dropdown-menu {
  background-color: var(--popover) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
}

.dropdown-item {
  color: var(--muted-foreground) !important;
  border-radius: var(--radius-sm) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--foreground) !important;
  background-color: var(--surface) !important;
}

.dropdown-divider,
.border-top {
  border-color: var(--border) !important;
}

/* Bootstrap form overrides */
.form-control,
.form-select {
  background-color: var(--input) !important;
  border-color: var(--border) !important;
  color: var(--foreground) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(14, 165, 233, 0.55) !important;
  box-shadow: 0 0 0 3px var(--ring) !important;
}

/* Ensure page-content fills properly on all screen sizes */
@media (max-width: 991px) {
  .sidebar {
    margin-left: -220px !important;
    visibility: hidden !important;
    transition: margin-left var(--duration) var(--ease-out), visibility var(--duration) var(--ease-out) !important;
  }
  .sidebar-open .sidebar {
    margin-left: 0 !important;
    visibility: visible !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8) !important;
  }
  .sidebar-toggle-btn {
    display: none !important;
  }
  /* Sidebar Backdrop Overlay on Mobile */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1030 !important;
  }
  .sidebar-open .sidebar-backdrop {
    display: block !important;
  }
}

/* Mobile Sidebar Toggler */
.mobile-sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-right: auto;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.mobile-sidebar-toggle:hover {
  background-color: var(--surface);
  color: var(--accent);
}

/* DNS Info Box Responsive styling */
.dns-info-col {
  flex: 1;
}

@media (min-width: 576px) {
  .dns-border-left {
    border-left: 1px solid var(--border) !important;
  }
}

@media (max-width: 575px) {
  .dns-info-row {
    text-align: center;
  }
  .dns-info-col:not(:first-child) {
    border-top: 1px solid var(--border) !important;
    padding-top: 12px;
    margin-top: 4px;
  }
}

/* ============================================================
   24. LANDING PAGE — MOBILE RESPONSIVE ADAPTATIONS
   ============================================================ */

/* Safe-area support for notched devices */
.full-page {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ── Landing Nav (Mobile) ─────────────────────────────── */
@media (max-width: 767px) {
  .landing-nav-container {
    padding: 0 1rem;
  }

  /* Hide nav text links on very small screens */
  .landing-nav-links {
    display: none;
  }
}

/* Show a minimal mobile nav with just logo + CTA */
@media (max-width: 480px) {
  .landing-nav .d-flex.align-items-center.gap-3 {
    gap: 0.5rem !important;
  }
}

/* ── Hero Section (Mobile) ──────────────────────────── */
@media (max-width: 991px) {
  .landing-hero-section {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 0;
  }

  .landing-hero-container {
    padding: 2.5rem 1rem 3rem;
  }
}

@media (max-width: 767px) {
  .landing-hero-container {
    padding: 1.5rem 1rem 2.5rem;
  }

  /* Stack hero columns vertically, center auth card */
  .landing-hero-container .row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .landing-hero-container .col-lg-7,
  .landing-hero-container .col-lg-5 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .landing-hero-container .col-lg-5 {
    display: flex;
    justify-content: center;
  }

  /* Tighter badge spacing */
  .landing-hero-badge {
    margin-bottom: 1.25rem;
  }

  /* Tighter hero title */
  .landing-hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .landing-hero-desc {
    font-size: 0.92rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  /* Tighter trust list */
  .landing-trust-list {
    margin-bottom: 1.5rem;
    gap: 8px;
  }

  .landing-trust-item {
    font-size: 0.8rem;
  }

  /* Tighter metrics */
  .landing-hero-metrics {
    padding-top: 1.25rem;
    gap: 12px;
  }

  .landing-metric-val {
    font-size: 1rem;
  }

  .landing-metric-lbl {
    font-size: 9px;
  }

  /* Auth card fills width on mobile */
  .auth-card-container {
    max-width: 100%;
  }

  /* Compact glow */
  .landing-hero-glow {
    width: 100%;
    height: 250px;
    background: radial-gradient(ellipse at 50% 0%,
      rgba(14, 165, 233, 0.08) 0%, transparent 70%);
  }
}

/* Very small screens (320px) */
@media (max-width: 374px) {
  .landing-hero-container {
    padding: 1.25rem 0.75rem 2rem;
  }

  .landing-hero-title {
    font-size: 1.6rem;
  }

  .landing-hero-badge span {
    font-size: 0.68rem;
  }

  .auth-card-body {
    padding: 1.15rem;
  }
}

/* ── Auth Card (Mobile) ──────────────────────────────── */
@media (max-width: 767px) {
  .auth-card-tabs {
    padding: 0;
  }

  .auth-card-tab {
    padding: 0.85rem 0.75rem;
    font-size: 0.8rem;
  }

  .auth-card-body {
    padding: 1.25rem;
  }

  .auth-form-group {
    margin-bottom: 0.9rem;
  }

  /* Ensure register form name row doesn't get too cramped */
  .auth-card-body .row .col-6 .form-control {
    font-size: 0.84rem;
  }

  .auth-card-footer-text {
    font-size: 9px;
  }
}

/* Touch targets: ensure buttons meet 44px minimum */
@media (pointer: coarse) {
  .auth-card-tab {
    min-height: 44px;
  }

  .auth-social-btn {
    min-height: 44px;
  }

  .password-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    right: 0;
  }

  .auth-form-group .form-control,
  .auth-form-group .form-select {
    min-height: 44px;
  }
}

/* ── Stats Section (Mobile) ──────────────────────────── */
@media (max-width: 767px) {
  .landing-stats-section {
    padding: 3rem 0;
  }

  .landing-stats-card {
    padding: 2rem 1.25rem;
  }

  .landing-stats-card-val {
    font-size: 1.5rem;
  }

  .landing-stats-card-lbl {
    font-size: 0.75rem;
  }
}

/* ── Features Section (Mobile) ───────────────────────── */
@media (max-width: 767px) {
  .landing-features-section {
    padding: 4rem 0;
  }

  .landing-features-header {
    margin-bottom: 2.5rem;
  }

  .landing-features-grid {
    gap: 1px;
  }

  .landing-feature-card {
    padding: 1.5rem 1.25rem;
    gap: 12px;
  }

  .landing-features-subtitle {
    font-size: 0.68rem;
  }
}

/* ── Testimonials Section (Mobile) ───────────────────── */
@media (max-width: 767px) {
  .landing-testimonials-section {
    padding: 4rem 0;
  }

  .landing-testimonials-header {
    margin-bottom: 2.5rem;
  }

  .landing-testimonial-card {
    padding: 1.5rem 1.25rem;
    gap: 16px;
  }

  .landing-testimonial-content {
    font-size: 0.84rem;
  }
}

/* ── Payments Section (Mobile) ────────────────────────── */
@media (max-width: 575px) {
  .landing-payments-section {
    padding: 2.5rem 0 !important;
  }

  .landing-payments-section .d-flex.flex-wrap {
    gap: 1.5rem !important;
  }

  .landing-payments-section h3 {
    font-size: 1.15rem;
  }

  .landing-payments-section .fa-brands,
  .landing-payments-section .fa-solid {
    font-size: 1.6rem;
  }

  /* Payment badges stack better on small screens */
  .landing-payments-section .px-3.py-1\.5 {
    padding: 0.4rem 0.65rem;
  }

  .landing-payments-section .px-3.py-1\.5 span {
    font-size: 0.75rem;
  }
}

/* ── Footer (Mobile) ─────────────────────────────────── */
@media (max-width: 767px) {
  .landing-footer-container {
    padding: 3rem 1rem;
  }

  .landing-footer-grid {
    gap: 2rem;
  }

  .landing-footer-brand {
    grid-column: span 2;
  }

  .landing-footer-brand-logo {
    font-size: 0.9rem;
  }
}

/* ── Horizontal scroll prevention ────────────────────── */
.page-wrapper.full-page {
  overflow-x: hidden;
  width: 100%;
}

@media (min-width: 992px) {
  .page-wrapper.full-page {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* Ensure all landing sections don't overflow */
.landing-hero-container,
.landing-stats-container,
.landing-features-container,
.landing-testimonials-container,
.landing-footer-container {
  overflow-x: hidden;
}

/* ── Viewport meta safe-area (applied via CSS fallback) ── */
@supports (padding: env(safe-area-inset-top)) {
  .landing-nav {
    padding-top: env(safe-area-inset-top);
    height: calc(56px + env(safe-area-inset-top));
  }

  .landing-hero-section {
    padding-top: calc(56px + env(safe-area-inset-top));
  }
}


