/* ==========================================================================
   MOCRA ENGINE -- Professional Auth & Dashboard Stylesheet (auth.css)
   Split-Screen Modern SaaS Authentication & High-End License Dashboard
   (Zero Emoticons, Clean Vector Inline SVGs, Dark Navy & Royal Cobalt Palette)
   ========================================================================== */

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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  /* Colors */
  --navy-950: #04081E;
  --navy-900: #07123A;
  --navy-800: #0B1D59;
  --navy-700: #142E7B;

  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-500: #3B82F6;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;

  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --emerald-500: #10B981;
  --emerald-600: #059669;
  --emerald-50: #ECFDF5;
  --emerald-100: #D1FAE5;

  --amber-500: #F59E0B;
  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;

  --red-500: #EF4444;
  --red-600: #DC2626;
  --red-50: #FEF2F2;
  --red-100: #FEE2E2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-blue-glow: 0 0 40px rgba(37, 99, 235, 0.25);

  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--slate-50);
  color: var(--slate-800);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-700);
}

/* ==========================================================================
   SPLIT SCREEN AUTHENTICATION (Login & Register)
   ========================================================================== */
.auth-page-wrapper {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Left: Form Area */
.auth-form-side {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 48px;
  background: #FFFFFF;
  min-height: 100vh;
  min-height: 100dvh;
}

.auth-form-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.auth-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.auth-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
}

.auth-logo-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-left: 2px;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-500);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  transition: all var(--transition-fast);
}

.auth-back-link:hover {
  color: var(--slate-900);
  background: var(--slate-200);
}

.auth-form-content-box {
  width: 100%;
  max-width: 440px;
  margin: 40px auto;
}

.auth-heading-area {
  margin-bottom: 28px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* Alert Boxes */
.auth-alert {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: 20px;
  animation: slideDown 200ms ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.auth-alert-danger {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  color: var(--red-600);
}

.auth-alert-success {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  color: var(--emerald-600);
}

.auth-alert-warning {
  background: var(--amber-50);
  border: 1px solid var(--amber-100);
  color: var(--amber-500);
}

/* Form Controls */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

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

.input-with-icon .form-input {
  padding-right: 42px;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: var(--slate-400);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  padding-left: 42px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--slate-900);
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Disable native Edge/IE password reveal and clear buttons to prevent duplicate eye icons */
::-ms-reveal {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input::-ms-reveal {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input[type="password"]::-ms-reveal {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

input[type="password"]::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.btn-toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.btn-toggle-pass:hover {
  color: var(--slate-700);
}

.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  margin-bottom: 22px;
}

/* Method Selector Tabs (Segmented Control) */
.auth-tabs-segmented {
  display: flex;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 18px;
  width: 100%;
}

.auth-tab-btn {
  flex: 1;
  min-width: 0;
  padding: 9px 8px;
  font-size: 0.84rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  cursor: pointer;
}

.custom-checkbox-label input {
  accent-color: var(--blue-600);
  width: 16px;
  height: 16px;
}

.btn-submit-auth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
}

.btn-submit-auth:hover {
  background: linear-gradient(180deg, var(--blue-500), var(--blue-600));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-submit-auth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-bottom-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--slate-500);
}

.auth-bottom-switch a {
  font-weight: 700;
  color: var(--blue-600);
}

.auth-form-footer {
  font-size: 0.76rem;
  color: var(--slate-400);
  text-align: center;
}

/* Right: Showcase Side */
.auth-showcase-side {
  flex: 1.1;
  background: var(--navy-950);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(20, 46, 123, 0.45) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.showcase-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  filter: blur(80px);
  pointer-events: none;
}

.showcase-content-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
  background: rgba(14, 26, 78, 0.55);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.showcase-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(147, 197, 253, 0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue-200);
  margin-bottom: 20px;
}

.showcase-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.showcase-desc {
  font-size: 0.92rem;
  color: var(--blue-200);
  line-height: 1.6;
  margin-bottom: 28px;
}

.showcase-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

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

.showcase-feat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(147, 197, 253, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.showcase-feat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.showcase-feat-sub {
  font-size: 0.78rem;
  color: var(--slate-300);
  line-height: 1.4;
}

.showcase-server-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(4, 8, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
}

.status-dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 8px var(--emerald-500);
  display: inline-block;
  margin-right: 6px;
}

/* ==========================================================================
   MOCRA ENGINE -- TWO-TONE SAAS DASHBOARD (OPTION B: FULL LANDING PAGE HARMONY)
   Sidebar: Deep Royal Navy (#070D24) reflecting the Landing Page Hero
   Canvas: Crisp Clean Slate (#F8FAFC) & Pure White Cards (#FFFFFF)
   Accents: Royal Cobalt Blue (#2563EB / #1D4ED8)
   100% Inline SVG Vector Icons (Zero Emoticons)
   ========================================================================== */

:root {
  --invo-bg: #F8FAFC;
  --invo-card: #FFFFFF;
  --invo-primary: #2563EB;
  --invo-primary-hover: #1D4ED8;
  --invo-primary-dark: #1E40AF;
  --invo-sidebar-bg: #070D24;
  --invo-sidebar-border: rgba(255, 255, 255, 0.08);
  --invo-sidebar-text: #94A3B8;
  --invo-sidebar-hover: rgba(255, 255, 255, 0.06);
  --invo-text-dark: #0F172A;
  --invo-text-muted: #64748B;
  --invo-text-light: #94A3B8;
  --invo-border: #E2E8F0;
  --invo-radius-card: 20px;
  --invo-radius-pill: 14px;
  --invo-shadow-card: 0 4px 24px rgba(0, 0, 0, 0.03);
  --invo-shadow-hover: 0 10px 30px rgba(37, 99, 235, 0.08);
  --invo-shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.35);
}

/* Base Layout Shell */
.dash-window-shell {
  min-height: 100vh;
  background-color: var(--invo-bg);
  display: flex;
  font-family: var(--font-sans);
  color: var(--invo-text-dark);
}

/* Mobile Backdrop */
.dash-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 30, 0.7);
  backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
  pointer-events: none;
  touch-action: none;
  overscroll-behavior: contain;
}

.dash-sidebar-backdrop.active {
  display: block;
  pointer-events: auto;
}

/* ==========================================================================
   LEFT DEEP NAVY SIDEBAR (MATCHING LANDING PAGE HERO #070D24)
   ========================================================================== */
.dash-sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--invo-sidebar-bg);
  border-right: 1px solid var(--invo-sidebar-border);
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px 20px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dash-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dash-sidebar>div:first-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

/* Top Window Dots */
.dash-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding-left: 8px;
  flex-shrink: 0;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.9;
}

.dot-red {
  background: #FF5F56;
}

.dot-yellow {
  background: #FFBD2E;
}

.dot-green {
  background: #27C93F;
}

/* Brand Logo */
.dash-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.dash-brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  flex-shrink: 0;
}

.dash-brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

/* Navigation Menu */
.dash-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dash-sidebar-nav::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--invo-radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--invo-sidebar-text);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  pointer-events: auto;
}

.dash-nav-item * {
  pointer-events: none;
}

.dash-nav-item svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.dash-nav-item:hover {
  color: #FFFFFF;
  background: var(--invo-sidebar-hover);
}

.dash-nav-item:hover svg {
  transform: scale(1.06);
}

/* Active Nav Item */
.dash-nav-item.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.dash-nav-item.active svg {
  fill: #FFFFFF;
  opacity: 1;
}

/* Counter Badge on Messages */
.nav-counter-pill {
  border-radius: 999px;
  background: var(--invo-primary);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  margin-left: auto;
}

.dash-nav-item.active .nav-counter-pill {
  background: #FFFFFF;
  color: var(--invo-primary);
}

/* Sidebar Category Groups */
.dash-nav-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.14);
  margin: 8px 12px 4px;
  flex-shrink: 0;
}

.dash-nav-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.72);
  padding: 6px 16px 2px;
  user-select: none;
  flex-shrink: 0;
}

.dash-nav-group-label:first-child {
  padding-top: 2px;
}

/* Bottom Log Out */
.dash-sidebar-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--invo-sidebar-border);
}

.dash-logout-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--invo-radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--invo-sidebar-text);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dash-logout-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.dash-logout-link:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   MAIN CANVAS & TOP BAR (CRISP LIGHT SLATE)
   ========================================================================== */
.dash-main-canvas {
  flex: 1;
  min-width: 0;
  padding: 24px 32px 48px;
  background: var(--invo-bg);
  overflow-y: auto;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

.dash-main-canvas::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.dash-main-canvas::-webkit-scrollbar-track {
  background: #F1F5F9;
}

.dash-main-canvas::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.dash-main-canvas::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Desktop App Viewport Constraint: keeps sidebar rock-solid and scrolls main canvas independently */
@media (min-width: 861px) {
  body.dash-window-shell {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .dash-sidebar {
    height: 100vh;
    height: 100dvh;
    flex-shrink: 0;
  }

  .dash-main-canvas {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Flush-Left Full-Width Dashboard Container */
.dash-canvas-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-tab-pane {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

/* Top Bar: Search on left, Notification & User on right */
.dash-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Header Greeting */
.dash-header-greeting {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-greeting-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--invo-text-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.dash-greeting-sub {
  font-size: 0.8rem;
  color: var(--invo-text-light);
  margin: 0;
}

/* Search Box */
.dash-search-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  width: 300px;
}

.dash-search-container svg {
  width: 17px;
  height: 17px;
  fill: var(--invo-text-light);
  flex-shrink: 0;
}

.dash-search-input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--invo-text-dark);
  width: 100%;
  text-overflow: ellipsis;
}

.dash-search-input::placeholder {
  color: var(--invo-text-light);
}

/* Right Header Group */
.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.dash-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--invo-card);
  border: 1px solid var(--invo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  color: var(--invo-text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.dash-icon-btn:hover {
  color: var(--invo-primary);
  border-color: #BFDBFE;
  background: #EFF6FF;
}

/* Dashboard Top Actions Container */
.dash-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dashboard Language Dropdown Component */
.dash-lang-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dash-lang-trigger {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  height: 38px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.16s ease;
}

.dash-lang-trigger:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.dash-lang-dropdown.is-open .dash-lang-trigger {
  border-color: #2563EB;
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dash-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.dash-lang-flag svg,
.lang-flag-svg {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-lang-chevron {
  width: 12px;
  height: 12px;
  color: #94A3B8;
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.dash-lang-dropdown.is-open .nav-lang-chevron {
  transform: rotate(180deg);
  color: #2563EB;
}

.dash-lang-dropdown .lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  padding: 6px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.16s;
}

.dash-lang-dropdown.is-open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-menu-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.lang-menu-item.active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 700;
}

.lang-item-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-item-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 5px;
  border-radius: 4px;
}

.lang-menu-item.active .lang-item-badge {
  background: #DBEAFE;
  color: #1D4ED8;
}

.lang-item-name {
  flex: 1;
}

.lang-item-check {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0;
}

.lang-menu-item.active .lang-item-check {
  opacity: 1;
}

/* User Profile Dropdown Container */
.dash-profile-dropdown {
  position: relative;
  display: inline-flex;
}

.dash-user-profile-pill {
  height: 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 4px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-family: inherit;
  text-align: left;
}

.dash-user-profile-pill:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}

.dash-profile-dropdown.is-open .dash-user-profile-pill {
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dash-profile-chevron {
  width: 14px;
  height: 14px;
  color: #94A3B8;
  flex-shrink: 0;
  fill: currentColor;
  margin-left: 2px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}

.dash-profile-dropdown.is-open .dash-profile-chevron {
  transform: rotate(180deg);
  color: #2563EB;
}

/* Floating Profile Menu */
.dash-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 14px 35px -5px rgba(15, 23, 42, 0.14), 0 5px 12px -2px rgba(15, 23, 42, 0.06);
  padding: 8px;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.16s;
  box-sizing: border-box;
}

.dash-profile-dropdown.is-open .dash-profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dash-profile-menu-header {
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 10px;
  margin-bottom: 6px;
}

.dash-menu-header-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-menu-header-email {
  font-size: 0.73rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.dash-menu-header-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #16A34A;
  margin-top: 6px;
}

.dash-status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.dash-profile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.12s ease;
}

.dash-menu-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: #64748B;
  flex-shrink: 0;
  transition: color 0.12s ease;
}

.dash-menu-item:hover {
  background: #F1F5F9;
  color: #2563EB;
}

.dash-menu-item:hover svg {
  color: #2563EB;
}

.dash-profile-menu-divider {
  height: 1px;
  background: #E2E8F0;
  margin: 6px 0;
}

.dash-profile-menu-footer {
  display: flex;
  flex-direction: column;
}

.dash-menu-item-logout {
  color: #DC2626 !important;
  font-weight: 700 !important;
}

.dash-menu-item-logout svg {
  color: #DC2626 !important;
}

.dash-menu-item-logout:hover {
  background: #FEF2F2 !important;
  color: #B91C1C !important;
}

.dash-menu-item-logout:hover svg {
  color: #B91C1C !important;
}

.btn-top-logout {
  width: 100%;
  border-radius: 8px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #DC2626;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: left;
}

.btn-top-logout svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-top-logout:hover {
  background: #FEF2F2;
  color: #B91C1C;
}

.dash-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.dash-user-profile-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dash-user-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--invo-text-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.dash-user-role {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--invo-text-light);
  line-height: 1.0;
  margin-top: 1px;
}

/* Mobile Hamburger Toggle */
.dash-menu-toggle {
  display: none;
  background: var(--invo-card);
  border: 1px solid var(--invo-border);
  border-radius: var(--radius-md);
  padding: 8px;
  color: var(--invo-text-dark);
  cursor: pointer;
}

/* ==========================================================================
   TOP 4 METRIC STAT CARDS
   ========================================================================== */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.dash-stats-row.dash-stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  background: var(--invo-card);
  border-radius: var(--invo-radius-card);
  padding: 22px 24px;
  box-shadow: var(--invo-shadow-card);
  border: 1px solid var(--invo-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--invo-shadow-hover);
}

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-circle-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-circle-icon svg {
  width: 17px;
  height: 17px;
  fill: #FFFFFF;
}

.icon-orange {
  background: linear-gradient(135deg, #FF6B4A, #FF4B26);
}

.icon-green {
  background: linear-gradient(135deg, #10B981, #059669);
}

.icon-blue {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
}

.icon-pink {
  background: linear-gradient(135deg, #EC4899, #DB2777);
}

.icon-purple {
  background: linear-gradient(135deg, #8B5CF6, #6D28D9);
}

.icon-red {
  background: linear-gradient(135deg, #EF4444, #DC2626);
}

.stat-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--invo-text-muted);
}

.stat-card-bottom {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--invo-text-dark);
  letter-spacing: -0.02em;
}

.stat-growth-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tag-green {
  background: #ECFDF5;
  color: #059669;
}

.tag-red {
  background: #FEF2F2;
  color: #DC2626;
}

/* ==========================================================================
   MIDDLE ROW: SYSTEM LICENSE CONTROL CARD + SOLID BLUE CTA CARD
   ========================================================================== */
.dash-middle-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.dash-middle-grid>*,
.dash-bottom-grid>* {
  min-width: 0;
  max-width: 100%;
}

.invo-card {
  background: var(--invo-card);
  border-radius: var(--invo-radius-card);
  padding: 26px 28px;
  box-shadow: var(--invo-shadow-card);
  border: 1px solid var(--invo-border);
  min-width: 0;
  box-sizing: border-box;
}

/* Solid Vibrant Royal Blue CTA Card */
.invo-card-blue-cta {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-radius: var(--invo-radius-card);
  padding: 30px 28px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
  min-width: 0;
  box-sizing: border-box;
}

.cta-blue-glow-shape {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -60px;
  right: -60px;
  pointer-events: none;
}

.cta-pill-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.cta-blue-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.cta-blue-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cta-feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.95);
}

.cta-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-feature-item svg {
  width: 15px;
  height: 15px;
  fill: #FFFFFF;
  flex-shrink: 0;
}

.btn-cta-white {
  background: #FFFFFF;
  color: var(--invo-primary);
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--invo-radius-pill);
  padding: 13px 24px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   BOTTOM ROW: ACTIVITIES + RECENT INVOICES
   ========================================================================== */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 20px;
  min-width: 0;
  width: 100%;
}

.invo-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--invo-text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.activities-card,
.recent-invoices-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Activities Timeline */
.activities-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.activity-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon-circle svg {
  width: 17px;
  height: 17px;
  fill: #FFFFFF;
}

.icon-circle-green {
  background: #10B981;
}

.icon-circle-yellow {
  background: #F59E0B;
}

.icon-circle-blue {
  background: #2563EB;
}

.activity-text-wrap {
  flex: 1;
}

.activity-tag-green {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  margin-bottom: 2px;
}

.activity-tag-yellow {
  font-size: 0.72rem;
  font-weight: 700;
  color: #D97706;
  margin-bottom: 2px;
}

.activity-tag-blue {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 2px;
}

.activity-headline {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.45;
}

.activity-headline strong {
  color: var(--invo-text-dark);
}

.activity-time {
  font-size: 0.74rem;
  color: var(--invo-text-light);
  font-weight: 500;
  margin-top: 3px;
}

/* Recent Invoices Table */
.invo-table-responsive {
  overflow-x: auto;
}

.invo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.invo-table th {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--invo-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 1px solid #F1F5F9;
}

.invo-table td {
  font-size: 0.86rem;
  color: #334155;
  padding: 14px 12px;
  border-bottom: 1px solid #F8FAFC;
}

.invo-table tr:last-child td {
  border-bottom: none;
}

.badge-pill-paid {
  background: #ECFDF5;
  color: #059669;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-block;
}

.badge-pill-overdue {
  background: #FEF2F2;
  color: #DC2626;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-block;
}

.badge-pill-pending {
  background: #FFFBEB;
  color: #D97706;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: inline-block;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--invo-primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-text-link:hover {
  text-decoration: underline;
}

/* Invoices Pane (10 Rows Sized Slot) */
#pane-orders .invo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#pane-orders .invo-table-responsive {
  min-height: 480px;
}

/* ==========================================================================
   TAB PANES (Switching tabs)
   ========================================================================== */
.dash-tab-pane {
  display: none;
}

.dash-tab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: invoFadeIn 0.25s ease-out;
}

@keyframes invoFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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


/* Profile Panes Responsive Grid */
.dash-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  min-width: 0;
}

/* ==========================================================================
   CLEAN PRICING CARDS (PANE: PRODUCTS & PLANS)
   ========================================================================== */
.pricing-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.clean-plan-card {
  background: #FFFFFF;
  border-radius: var(--invo-radius-card);
  padding: 28px 24px;
  border: 1px solid var(--invo-border);
  box-shadow: var(--invo-shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.clean-plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--invo-shadow-hover);
}

.clean-plan-card.highlight {
  border: 2px solid var(--invo-primary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.clean-plan-card.solid-blue {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.3);
}

.clean-plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ribbon-blue {
  background: var(--invo-primary);
  color: #FFFFFF;
}

.ribbon-white {
  background: #FFFFFF;
  color: var(--invo-primary);
}

.clean-plan-head {
  margin-bottom: 20px;
}

.clean-plan-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: inherit;
  margin-bottom: 4px;
}

.clean-plan-sub {
  font-size: 0.78rem;
  color: var(--invo-text-light);
}

.solid-blue .clean-plan-sub {
  color: rgba(255, 255, 255, 0.85);
}

.clean-plan-price-wrap {
  margin-bottom: 22px;
}

.clean-plan-currency {
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
}

.clean-plan-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: inherit;
  letter-spacing: -0.02em;
}

.clean-plan-period {
  font-size: 0.78rem;
  color: var(--invo-text-muted);
}

.solid-blue .clean-plan-period {
  color: rgba(255, 255, 255, 0.85);
}

.clean-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 0.82rem;
}

.clean-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clean-feature-item svg {
  width: 16px;
  height: 16px;
  fill: #10B981;
  flex-shrink: 0;
}

.solid-blue .clean-feature-item svg {
  fill: #FFFFFF;
}

.btn-plan-select {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--invo-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid var(--invo-border);
  background: #F8FAFC;
  color: var(--invo-text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-plan-select:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.btn-plan-select.btn-primary {
  background: var(--invo-primary);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-plan-select.btn-primary:hover {
  background: var(--invo-primary-hover);
  transform: translateY(-1px);
}

.btn-plan-select.btn-white {
  background: #FFFFFF;
  color: var(--invo-primary);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-plan-select.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   MODAL WINDOWS (CHECKOUT, QRIS, INVOICE, RESET ID PERANGKAT)
   ========================================================================== */
.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 8, 30, 0.65);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dash-modal.open {
  display: flex;
}

.dash-modal-dialog {
  background: #FFFFFF;
  border-radius: var(--invo-radius-card);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--invo-border);
  overflow: hidden;
  animation: invoFadeIn 0.25s ease-out;
}

.dash-modal-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--invo-border);
}

.dash-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--invo-text-dark);
}

.dash-modal-close {
  background: transparent;
  border: none;
  color: var(--invo-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}

.dash-modal-close:hover {
  color: var(--invo-text-dark);
  background: #F1F5F9;
}

.dash-modal-body {
  padding: 24px;
}

.dash-modal-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--invo-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 0 0 var(--invo-radius-card) var(--invo-radius-card);
}

/* QRIS Modal Card */
.dash-qris-card {
  background: #FFFFFF;
  border: 1.5px solid var(--invo-border);
  border-radius: var(--invo-radius-card);
  padding: 20px;
  text-align: center;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.dash-qris-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--invo-border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.dash-qris-logo {
  font-weight: 900;
  font-size: 1.1rem;
  color: #DC2626;
  letter-spacing: 0.05em;
}

.dash-qris-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--invo-text-light);
}

.dash-qris-svg-wrapper {
  background: #FFFFFF;
  padding: 12px;
  display: inline-flex;
  border-radius: 12px;
  border: 1px solid var(--invo-border);
}

.dash-countdown-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  border-radius: var(--invo-radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: #B45309;
}

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

.dash-toast {
  pointer-events: auto;
  background: #FFFFFF;
  border: 1px solid var(--invo-border);
  border-left: 4px solid var(--invo-primary);
  border-radius: var(--invo-radius-pill);
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--invo-text-dark);
  animation: invoFadeIn 0.25s ease-out;
  transition: all 0.3s ease;
}

.dash-toast.success {
  border-left-color: #10B981;
}

.dash-toast.error {
  border-left-color: #EF4444;
}

/* SVG Utility classes */
.icon-svg {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.icon-svg-xs {
  width: 14px;
  height: 14px;
}

.icon-svg-sm {
  width: 18px;
  height: 18px;
}

.icon-svg-md {
  width: 22px;
  height: 22px;
}

.icon-svg-lg {
  width: 28px;
  height: 28px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {

  .dash-stats-row,
  .dash-stats-row.dash-stats-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .dash-middle-grid,
  .dash-bottom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 860px) {

  /* Prevent background scrolling when mobile sidebar drawer is open */
  html.sidebar-mobile-open,
  body.dash-window-shell.sidebar-mobile-open {
    overflow: hidden !important;
    touch-action: none;
    -webkit-overflow-scrolling: auto;
  }

  body.dash-window-shell.sidebar-mobile-open .dash-main-canvas {
    overflow: hidden !important;
    pointer-events: none;
  }

  .dash-sidebar-backdrop {
    z-index: 4999;
    touch-action: none;
    overscroll-behavior: contain;
  }

  .dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    max-width: 82vw;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 5000;
    padding: 18px 14px max(24px, env(safe-area-inset-bottom)) 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .dash-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .dash-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.4);
  }

  .dash-sidebar>div:first-child {
    flex: none;
    display: block;
  }

  .dash-sidebar-brand {
    margin-bottom: 16px;
    padding: 0 4px;
  }

  .dash-sidebar-nav {
    overflow-y: visible;
    flex: none;
    gap: 4px;
  }

  .dash-nav-item {
    padding: 10px 14px;
    font-size: 0.88rem;
    gap: 12px;
  }

  .dash-nav-item svg {
    width: 17px;
    height: 17px;
  }

  .dash-nav-divider {
    margin: 6px 10px 2px;
  }

  .dash-nav-group-label {
    font-size: 0.65rem;
    padding: 5px 14px 2px;
  }

  .dash-sidebar-bottom {
    padding-top: 14px;
    margin-top: auto;
    flex-shrink: 0;
    border-top: 1px solid var(--invo-sidebar-border);
  }

  .dash-logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #F87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    border-radius: var(--invo-radius-pill);
    cursor: pointer;
  }

  .dash-logout-link svg {
    fill: #EF4444;
    width: 18px;
    height: 18px;
  }

  .dash-logout-link:hover,
  .dash-logout-link:active {
    background: rgba(239, 68, 68, 0.22);
    color: #FFFFFF;
  }

  .dash-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dash-main-canvas {
    padding: 20px 16px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .dash-profile-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
}

/* Tablet & Mobile Table-to-Card Transformation (<= 768px) - User Dashboard Only */
@media (max-width: 768px) {
  body:not(.dash-admin-shell) .invo-table-responsive {
    overflow-x: visible !important;
    min-height: auto !important;
  }

  body:not(.dash-admin-shell) #pane-orders .invo-table-responsive {
    min-height: auto !important;
  }

  body:not(.dash-admin-shell) .invo-table {
    display: block !important;
    width: 100% !important;
  }

  body:not(.dash-admin-shell) .invo-table thead {
    display: none !important;
  }

  body:not(.dash-admin-shell) .invo-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body:not(.dash-admin-shell) .invo-table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas:
      "invoice date"
      "plan nominal"
      "status action" !important;
    align-items: center !important;
    gap: 8px 12px !important;
    background: #F8FAFC !important;
    border: 1px solid var(--invo-border) !important;
    border-radius: var(--radius-md) !important;
    padding: 12px 14px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  body:not(.dash-admin-shell) #full-orders-table tbody tr {
    grid-template-areas:
      "invoice date"
      "plan nominal"
      "method method"
      "status action" !important;
  }

  body:not(.dash-admin-shell) .invo-table tbody tr td {
    padding: 0 !important;
    border: none !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-id {
    grid-area: invoice !important;
    font-size: 0.88rem !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-date {
    grid-area: date !important;
    font-size: 0.78rem !important;
    text-align: right !important;
    justify-self: end !important;
    color: #64748B !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-plan {
    grid-area: plan !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-method {
    grid-area: method !important;
    font-size: 0.78rem !important;
    color: var(--invo-text-light) !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-amount {
    grid-area: nominal !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    text-align: right !important;
    justify-self: end !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-status {
    grid-area: status !important;
  }

  body:not(.dash-admin-shell) .invo-table .cell-order-action {
    grid-area: action !important;
    text-align: right !important;
    justify-self: end !important;
  }

  body:not(.dash-admin-shell) .invo-table tbody tr td[colspan] {
    grid-column: 1 / -1 !important;
    display: block !important;
    text-align: center !important;
    padding: 24px 12px !important;
  }

  /* Download Hero Responsive */
  .dash-download-card {
    padding: 18px 16px !important;
  }

  .dash-download-hero {
    flex-direction: column !important;
    gap: 16px !important;
  }

  .dash-download-hero-left {
    min-width: 0 !important;
    width: 100% !important;
  }

  .dash-download-hero-right {
    width: 100% !important;
    align-items: stretch !important;
    align-self: auto !important;
    gap: 10px !important;
  }

  .dash-download-hero-right a,
  .dash-download-hero-right button {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .dash-download-hero-right span {
    text-align: center !important;
  }

  .dash-download-note {
    padding: 16px 14px !important;
  }

  .dash-download-note-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .dash-download-note-head a {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* Smartphone Breakpoint (<= 640px) */
@media (max-width: 640px) {
  .dash-main-canvas {
    padding: 16px 12px 36px 12px !important;
  }

  .dash-canvas-inner {
    gap: 16px !important;
  }

  .dash-greeting-title {
    font-size: 1.12rem !important;
    line-height: 1.3 !important;
  }

  .dash-greeting-sub {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  .dash-stats-row,
  .dash-stats-row.dash-stats-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  .stat-card {
    padding: 14px 16px !important;
    gap: 8px !important;
    border-radius: var(--radius-md) !important;
  }

  .stat-card-top {
    gap: 10px !important;
  }

  .stat-circle-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .stat-circle-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .stat-label {
    font-size: 0.78rem !important;
  }

  .stat-value {
    font-size: 1.45rem !important;
  }

  .dash-search-container {
    width: 180px;
  }

  .dash-top-actions {
    gap: 8px !important;
  }

  .dash-user-profile-meta {
    display: none;
  }

  .invo-card {
    padding: 18px 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .invo-card-blue-cta {
    padding: 22px 18px !important;
    border-radius: var(--radius-md) !important;
  }

  .invo-card-title {
    font-size: 1.05rem !important;
  }

  .cta-blue-title {
    font-size: 1.2rem !important;
  }

  /* Activity item text wrapping */
  .activity-item {
    gap: 10px !important;
    min-width: 0 !important;
  }

  .activity-icon-circle {
    width: 32px !important;
    height: 32px !important;
  }

  .activity-icon-circle svg {
    width: 15px !important;
    height: 15px !important;
  }

  .activity-text-wrap {
    min-width: 0 !important;
    flex: 1 !important;
    word-break: break-word !important;
  }

  .activity-headline {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    word-break: break-word !important;
  }

  .activity-time {
    font-size: 0.72rem !important;
  }

  /* License Actions Grid */
  .dash-license-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding-top: 14px !important;
    border-top: 1px solid var(--invo-border) !important;
    width: 100% !important;
  }

  .dash-license-actions #home-btn-renew {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    font-size: 0.88rem !important;
  }

  .dash-license-actions #home-btn-redeem-key {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
  }

  .dash-license-actions #home-btn-reset-hwid,
  .dash-license-actions #home-btn-copy-hwid {
    width: 100% !important;
    justify-content: center !important;
    padding: 9px 8px !important;
    font-size: 0.8rem !important;
    white-space: nowrap !important;
  }

  .dash-license-actions .btn-text-link {
    grid-column: 1 / -1 !important;
    margin: 6px auto 0 auto !important;
    font-size: 0.84rem !important;
  }

  /* HWID Action Buttons */
  .dash-hwid-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .dash-hwid-actions button {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
  }

  /* Profile Forms & Cloud Backup */
  .dash-profile-grid .invo-card {
    padding: 18px 16px !important;
  }

  .dash-profile-grid button[type="submit"],
  .dash-profile-grid #btn-submit-change-password,
  .dash-profile-grid #btn-submit-change-email,
  .dash-profile-grid #btn-submit-change-whatsapp {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
  }

  .cloud-backup-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .cloud-backup-actions button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Support Pane */
  .dash-support-actions {
    width: 100% !important;
  }

  .dash-support-actions a {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 18px !important;
  }

  /* Pricing Cards Single Column on Mobile */
  .pricing-grid-clean {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .clean-plan-card {
    padding: 20px 18px !important;
  }

  /* Modals Mobile Friendliness */
  .dash-modal {
    padding: 12px !important;
  }

  .dash-modal-dialog {
    max-height: calc(100dvh - 24px) !important;
    width: 100% !important;
    border-radius: var(--radius-md) !important;
  }

  .dash-modal-header {
    padding: 16px 18px !important;
  }

  .dash-modal-title {
    font-size: 1.05rem !important;
  }

  .dash-modal-body {
    padding: 18px 16px !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .dash-modal-body form>div:last-child {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }

  .dash-modal-body form>div:last-child button {
    width: 100% !important;
    justify-content: center !important;
  }

  .dash-modal-footer {
    padding: 14px 18px 18px 18px !important;
  }

  .dash-toast-container {
    left: 14px !important;
    right: 14px !important;
    bottom: 18px !important;
    align-items: center !important;
  }

  .dash-toast {
    width: 100% !important;
    max-width: 360px !important;
    justify-content: center !important;
  }
}

/* Compact Mobile Screen (<= 360px) */
@media (max-width: 360px) {
  .dash-main-canvas {
    padding: 12px 10px 32px 10px !important;
  }

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

  .clean-plan-card {
    padding: 16px 14px !important;
  }

  .dash-top-actions {
    gap: 6px !important;
  }

  .dash-lang-trigger {
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 0.76rem !important;
    border-radius: 10px !important;
    gap: 5px !important;
  }

  .dash-lang-flag,
  .dash-lang-flag svg,
  .lang-flag-svg {
    width: 15px !important;
    height: 15px !important;
  }

  .nav-lang-chevron {
    width: 11px !important;
    height: 11px !important;
  }

  .dash-user-profile-pill {
    height: 36px !important;
    padding: 0 8px 0 3px !important;
    border-radius: 10px !important;
    gap: 5px !important;
  }

  .dash-avatar-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.78rem !important;
  }

  .dash-profile-chevron {
    width: 12px !important;
    height: 12px !important;
  }

  .dash-profile-menu {
    width: 230px !important;
    right: 0 !important;
  }

  .dash-license-actions {
    grid-template-columns: 1fr !important;
  }

  .dash-license-actions #home-btn-reset-hwid,
  .dash-license-actions #home-btn-copy-hwid {
    grid-column: 1 / -1 !important;
  }
}

/* Dashboard Pagination Component (Segmented Group Style) */
.dash-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 16px;
  border-top: 1px solid var(--invo-border);
  font-size: 0.82rem;
  color: var(--invo-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.dash-pagination-info {
  font-weight: 500;
  font-size: 0.8rem;
  color: #64748B;
}

.dash-pagination-group {
  display: inline-flex;
  align-items: stretch;
  background: #FFFFFF;
  border: 1px solid var(--invo-border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dash-page-btn {
  background: #FFFFFF;
  border: none;
  border-right: 1px solid var(--invo-border);
  border-radius: 0;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  user-select: none;
  outline: none;
}

.dash-page-btn:last-child {
  border-right: none;
}

.dash-page-btn:hover:not(:disabled):not(.active) {
  background: #F8FAFC;
  color: var(--invo-primary);
}

.dash-page-btn.active {
  background: #EFF6FF;
  color: var(--invo-primary);
  font-weight: 700;
}

.dash-page-btn:disabled {
  color: #CBD5E1;
  background: #FAFAFA;
  cursor: not-allowed;
  opacity: 0.7;
}

.dash-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  background: #FFFFFF;
  border-right: 1px solid var(--invo-border);
  color: #94A3B8;
  font-size: 0.78rem;
  user-select: none;
}

/* Smooth Page Transition Animation */
@keyframes dashSmoothFade {
  0% {
    opacity: 0.35;
    transform: translateY(3px);
  }

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

.dash-fade-in {
  animation: dashSmoothFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .dash-fade-in {
    animation: none;
  }
}



/* Mobile Bottom Sheet Modal Transformation (<= 768px) */
@media (max-width: 768px) {
  .dash-modal {
    padding: 0 !important;
    align-items: flex-end !important;
  }

  .dash-modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 20px 20px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3) !important;
    animation: dashModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .dash-modal-header {
    padding: 16px 20px !important;
    flex-shrink: 0 !important;
  }

  .dash-modal-body {
    padding: 16px 20px 28px 20px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex: 1 !important;
  }

  .dash-modal-footer {
    padding: 14px 20px 20px 20px !important;
    flex-shrink: 0 !important;
  }
}

@keyframes dashModalSlideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* ==========================================================================
   AUTHENTICATION MOBILE RESPONSIVENESS (Login, Register & Lupa Password)
   Ultra-Fluid Responsive Design across all Viewports (320px - 992px)
   Strictly Zero Emojis, Pure SaaS Vector System
   ========================================================================== */

/* Breakpoint: Tablets & Mobile Landscape / Portrait (<= 992px) */
@media (max-width: 992px) {
  .auth-page-wrapper {
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: hidden !important;
  }

  .auth-showcase-side {
    display: none !important;
  }

  .auth-form-side {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding: 32px 24px 28px 24px !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .auth-form-content-box {
    margin: 28px auto !important;
    max-width: 440px !important;
    width: 100% !important;
  }
}

/* Breakpoint: Phablets & Large Phones (<= 640px) */
@media (max-width: 640px) {
  .auth-form-side {
    padding: 24px 20px 24px 20px !important;
  }

  .auth-form-header-bar {
    width: 100% !important;
  }

  .auth-logo-text {
    font-size: 1.2rem !important;
  }

  .auth-heading-area {
    margin-bottom: 22px !important;
  }

  .auth-title {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }

  .auth-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .auth-tabs-segmented {
    margin-bottom: 16px !important;
  }

  .auth-tab-btn {
    padding: 8px 6px !important;
    font-size: 0.82rem !important;
  }

  .form-group {
    margin-bottom: 16px !important;
  }

  .form-input {
    font-size: 16px !important;
    /* Critical for iOS Safari: prevents viewport zooming */
    padding: 12px 14px 12px 42px !important;
  }

  .form-row-between {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
  }

  .btn-submit-auth {
    min-height: 48px !important;
    font-size: 0.95rem !important;
    padding: 13px 20px !important;
  }

  /* Responsive Modal Reset Password */
  .modal-backdrop-custom {
    padding: 12px !important;
    align-items: center !important;
  }

  .modal-card-custom {
    padding: 24px 18px 20px 18px !important;
    min-height: auto !important;
    max-height: calc(100vh - 24px) !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 16px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .modal-close-btn {
    top: 12px !important;
    right: 12px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .modal-icon-badge {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 10px !important;
  }

  .modal-title {
    font-size: 1.25rem !important;
  }

  .modal-subtitle {
    font-size: 0.82rem !important;
  }

  #forgot-otp-code {
    font-size: 1.15rem !important;
    letter-spacing: 4px !important;
  }
}

/* Breakpoint: Standard Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .auth-form-side {
    padding: 20px 16px 20px 16px !important;
  }

  .auth-logo-icon {
    width: 32px !important;
    height: 32px !important;
  }

  .auth-logo-text {
    font-size: 1.12rem !important;
  }

  .auth-logo-sub {
    font-size: 0.65rem !important;
  }

  .auth-back-link {
    font-size: 0.78rem !important;
    padding: 5px 10px !important;
    gap: 4px !important;
  }

  .auth-form-content-box {
    margin: 16px auto !important;
  }

  .auth-title {
    font-size: 1.45rem !important;
  }

  .auth-subtitle {
    font-size: 0.84rem !important;
  }

  .auth-tab-btn {
    padding: 8px 4px !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
  }

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

  .form-row-between {
    margin-bottom: 18px !important;
  }

  .btn-submit-auth {
    font-size: 0.9rem !important;
    padding: 12px 16px !important;
  }

  .auth-bottom-switch {
    margin-top: 20px !important;
    font-size: 0.82rem !important;
  }

  .auth-form-footer {
    padding-top: 18px !important;
    font-size: 0.74rem !important;
  }
}

/* Breakpoint: Compact / Narrow Mobile Phones (<= 360px) */
@media (max-width: 360px) {
  .auth-form-side {
    padding: 16px 12px 16px 12px !important;
  }

  .auth-title {
    font-size: 1.35rem !important;
  }

  .auth-subtitle {
    font-size: 0.8rem !important;
  }

  .auth-tab-btn {
    font-size: 0.74rem !important;
    padding: 7px 2px !important;
  }

  .form-row-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .modal-card-custom {
    padding: 20px 12px 16px 12px !important;
  }

  .modal-title {
    font-size: 1.15rem !important;
  }

  #forgot-otp-code {
    font-size: 1.05rem !important;
    letter-spacing: 3px !important;
  }
}