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

*, *::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;
}

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;
  width: 100%;
}

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

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

.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;
  font-size: 0.84rem;
  margin-bottom: 22px;
}

.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;
}
.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: 24px 18px 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top Window Dots */
.dash-window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  padding-left: 8px;
}
.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: 30px;
  padding: 0 8px;
  text-decoration: none;
}
.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: 6px;
  flex: 1;
}

.dash-nav-item {
  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%;
  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);
}

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

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

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

.bell-badge-pill {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--invo-primary);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--invo-bg);
}

.dash-user-profile-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  cursor: pointer;
}
.dash-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}
.dash-user-profile-meta {
  display: flex;
  flex-direction: column;
}
.dash-user-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--invo-text-dark);
  letter-spacing: -0.01em;
}
.dash-user-role {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--invo-text-light);
}

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

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

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

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

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

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

/* 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, 1fr);
  }
  .dash-middle-grid,
  .dash-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .dash-sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.4);
  }
  .dash-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dash-main-canvas {
    padding: 20px 16px;
  }
}

@media (max-width: 640px) {
  .dash-stats-row,
  .dash-stats-row.dash-stats-3 {
    grid-template-columns: 1fr;
  }
  .dash-search-container {
    width: 180px;
  }
  .dash-user-profile-meta {
    display: none;
  }
}

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

