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

/* ========================================================== */
/* STOREZYY DESIGN SYSTEM — REAL-WORLD SAAS & FINTECH THEME   */
/* Inspired by Stripe, Linear, Shopify & Modern Fintech POS   */
/* ========================================================== */

:root,
[data-theme="light"] {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Premium Royal Indigo & Sapphire Brand Accents */
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.16);

  --secondary-color: #0284c7;
  --secondary-hover: #0369a1;
  --secondary-light: #f0f9ff;

  /* Clean Studio Light Surfaces */
  --bg-main: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-input: #ffffff;
  --bg-landing: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-landing-gradient: radial-gradient(circle at 50% 0%, #eef2ff 0%, #f8fafc 75%);
  
  --border-glass: rgba(0, 0, 0, 0.07);
  --bg-glass-card: rgba(255, 255, 255, 0.90);
  --bg-plan-card: #ffffff;

  --text-primary: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border-color: #e2e8f0;
  --border-focus: #818cf8;

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.1);
  --color-info: #0284c7;
  --color-info-bg: rgba(2, 132, 199, 0.1);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

[data-theme="dark"] {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Modern Vivid Iris & Sky Accents */
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.14);
  --primary-glow: rgba(99, 102, 241, 0.28);

  --secondary-color: #38bdf8;
  --secondary-hover: #0ea5e9;
  --secondary-light: rgba(56, 189, 248, 0.14);

  /* Deep Obsidian & Slate Navy Surfaces */
  --bg-main: #0b0f19;
  --bg-sidebar: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-input: #1f2937;
  --bg-landing: linear-gradient(180deg, #0b0f19 0%, #111827 100%);
  --bg-landing-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #0b0f19 80%);
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --bg-glass-card: rgba(17, 24, 39, 0.80);
  --bg-plan-card: rgba(17, 24, 39, 0.75);

  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-color: #1f2937;
  --border-focus: #6366f1;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.55), 0 4px 8px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.7), 0 8px 14px -6px rgba(0, 0, 0, 0.55);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.16);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.16);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.16);
  --color-info: #38bdf8;
  --color-info-bg: rgba(56, 189, 248, 0.16);
}

/* ========================================================== */
/* AMBIENT LIGHTING BACKGROUND SCENE                          */
/* ========================================================== */
.bg-3d-scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.orb-3d {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  will-change: transform;
}

.orb-3d-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  top: -120px;
  left: 15%;
  animation: orbMove1 26s infinite alternate ease-in-out;
}

.orb-3d-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
  bottom: -100px;
  right: 10%;
  animation: orbMove2 30s infinite alternate ease-in-out;
}

.orb-3d-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  top: 45%;
  right: 40%;
  animation: orbMove3 22s infinite alternate ease-in-out;
}

@keyframes orbMove1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, 60px, 0) scale(1.1); }
  100% { transform: translate3d(-40px, 90px, 0) scale(0.95); }
}

@keyframes orbMove2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-90px, -60px, 0) scale(1.12); }
  100% { transform: translate3d(50px, -40px, 0) scale(0.92); }
}

@keyframes orbMove3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, -70px, 0) scale(1.08); }
  100% { transform: translate3d(-70px, 50px, 0) scale(0.94); }
}

/* ========================================================== */
/* BASE STYLES & RESET                                        */
/* ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-primary);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
}

/* ========================================================== */
/* UNIVERSAL LUCIDE & SVG ICON SIZE STABILITY                 */
/* Prevents icons from expanding, jumping or zooming on click */
/* ========================================================== */
svg.lucide,
.lucide,
i[data-lucide] {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  max-width: 100%;
  pointer-events: none;
  transition: none !important;
  transform: none !important;
}

/* Button Icons */
.btn svg,
.btn i,
.btn .lucide {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
}

.btn-sm svg,
.btn-sm i,
.btn-sm .lucide {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  max-width: 13px !important;
  max-height: 13px !important;
}

.btn-lg svg,
.btn-lg i,
.btn-lg .lucide {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}

/* Form Password Visibility Toggles */
button[id^="toggle-"] svg,
button[id^="toggle-"] i,
button[id^="toggle-"] .lucide,
#toggle-login-password svg,
#toggle-signup-password svg,
#toggle-signup-confirm-password svg,
#toggle-forgot-pwd-new svg,
#toggle-forgot-pwd-confirm svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  pointer-events: none !important;
}

/* ========================================================== */
/* PASSWORD WRAPPER & VISIBILITY TOGGLE                       */
/* ========================================================== */
.password-wrapper {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.password-wrapper input {
  width: 100% !important;
  padding-right: 44px !important;
  box-sizing: border-box !important;
}

.password-toggle {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  z-index: 10 !important;
  color: var(--text-muted) !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  border-radius: 6px !important;
  transition: color 0.15s ease, background-color 0.15s ease !important;
}

.password-toggle:hover {
  color: var(--text-primary) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .password-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.password-toggle svg,
.password-toggle i,
.password-toggle .lucide {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  pointer-events: none !important;
}

/* Sidebar Nav Items */
.nav-item svg,
.nav-item i,
.nav-item .lucide {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}

/* Header & Theme Icons */
.btn-theme-toggle svg,
.btn-theme-toggle i,
.btn-theme-toggle .lucide,
.btn-animation-toggle svg,
.btn-animation-toggle i,
.btn-animation-toggle .lucide {
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
}

/* Status Badges */
.badge-status svg,
.badge-status i,
.badge-status .lucide {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
}

/* Section Title & Card Heading Icons */
.section-title svg,
.section-title i,
.section-title .lucide {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
}

/* Enquiry Action Icons */
.btn-whatsapp-enquiry svg,
.btn-whatsapp-enquiry i,
.btn-mail-enquiry svg,
.btn-mail-enquiry i {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}

[data-theme="dark"] body {
  background: radial-gradient(ellipse 90% 55% at 50% -20%, rgba(99, 102, 241, 0.12), transparent 70%),
              var(--bg-main);
}

[data-theme="light"] body {
  background: radial-gradient(ellipse 90% 45% at 50% -20%, rgba(79, 70, 229, 0.05), transparent 70%),
              var(--bg-main);
}

/* Modern Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #334155;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ========================================================== */
/* TYPOGRAPHY                                                 */
/* ========================================================== */
h1, h2, h3, h4, h5, h6,
.section-title,
.sidebar-logo,
.header-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-value,
.plan-price,
#login-shop-id,
#register-shop-id,
.data-table td:first-child {
  font-family: var(--font-mono);
}

/* Crisp Title & Text Styling */
.glow-text {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

[data-theme="dark"] .glow-text {
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 4px 0 0 0;
}

.hero-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ========================================================== */
/* SURFACES & CARDS (Linear/Stripe Grade)                     */
/* ========================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

[data-theme="dark"] .glass-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

[data-theme="dark"] .glass-card:hover {
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

/* ========================================================== */
/* BUTTONS & CONTROLS                                         */
/* ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

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

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-1px);
  color: #ffffff;
}

/* ========================================================== */
/* AUTH FORM SUBMIT BUTTONS SIZE & LAYOUT STABILITY           */
/* ========================================================== */
#btn-submit-signup,
.signup-submit-button,
#btn-auth-login-password,
#btn-request-login-otp,
#btn-verify-login-otp,
#btn-submit-verify-email,
#btn-send-reset-code,
#btn-submit-reset-password {
  width: 100% !important;
  min-height: 42px !important;
  max-height: 46px !important;
  height: 44px !important;
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  border-radius: 12px 6px 12px 6px !important;
  position: relative !important;
  overflow: hidden !important;
  transform: none !important;
  flex: none !important;
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, opacity 0.2s ease !important;
}

#btn-submit-signup:hover,
.signup-submit-button:hover,
#btn-auth-login-password:hover,
#btn-request-login-otp:hover,
#btn-verify-login-otp:hover,
#btn-submit-verify-email:hover,
#btn-send-reset-code:hover,
#btn-submit-reset-password:hover {
  transform: none !important;
  background-color: var(--primary-hover) !important;
}

#btn-submit-signup:active,
.signup-submit-button:active,
#btn-auth-login-password:active,
#btn-request-login-otp:active,
#btn-verify-login-otp:active,
#btn-submit-verify-email:active,
#btn-send-reset-code:active,
#btn-submit-reset-password:active {
  transform: none !important;
}

#btn-submit-signup:disabled,
.signup-submit-button:disabled,
#btn-auth-login-password:disabled,
#btn-request-login-otp:disabled,
#btn-verify-login-otp:disabled,
#btn-submit-verify-email:disabled,
#btn-send-reset-code:disabled,
#btn-submit-reset-password:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
  height: 44px !important;
  max-height: 46px !important;
}

#btn-submit-signup svg,
#btn-submit-signup i,
#btn-submit-signup .lucide,
#btn-auth-login-password svg,
#btn-request-login-otp svg,
#btn-verify-login-otp svg,
#btn-submit-verify-email svg,
#btn-send-reset-code svg,
#btn-submit-reset-password svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  pointer-events: none !important;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-outline {
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-color);
  color: #ffffff;
}

.btn-danger {
  background-color: var(--color-danger-bg);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
}

.btn-danger:hover {
  background-color: var(--color-danger);
  color: #ffffff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11.5px;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
}

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

/* ========================================================== */
/* FORM INPUTS & LABELS                                       */
/* ========================================================== */
.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input {
  font-family: var(--font-primary);
  font-size: 13.5px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .form-input {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: #1a2234;
}

.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ========================================================== */
/* LANDING PAGE & AUTH GATEWAY                                */
/* ========================================================== */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-color);
  padding: 10px 16px;
}

.landing-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: min(100% - 16px, 1200px);
  margin: 0 auto;
  gap: 12px;
}

.landing-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .landing-header-nav {
    display: none !important;
  }
}

.landing-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  height: auto;
  padding: 32px 16px 100px 16px;
  color: var(--text-primary);
  position: relative;
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
  box-sizing: border-box;
}

.landing-container {
  max-width: 1040px;
  width: min(100% - 24px, 1040px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.landing-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 84px;
  position: relative;
  z-index: 10;
}

#hero-spot,
#auth-spot,
#features-spot,
#how-it-works-spot,
#pricing-spot,
#reviews-spot,
#founder-spot,
#footer-spot,
.info-card,
.plan-card,
.founder-card {
  scroll-margin-top: 84px;
}

.landing-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

@media (max-width: 992px) {
  .landing-hero-grid {
    gap: 32px;
  }
}

.landing-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-glass);
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.04);
}

/* Large Center Hero Logo on Landing Page */
.hero-large-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 26px 12px 26px 14px;
  border: 3.5px solid var(--border-color);
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 5px 6px 0px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

[data-theme="dark"] .hero-large-logo {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 5px 6px 0px rgba(0, 0, 0, 0.6);
}

.hero-large-logo:hover {
  transform: translateY(-6px) scale(1.06) rotate(-2deg);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.22), 7px 8px 0px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
  .hero-large-logo {
    width: 110px;
    height: 110px;
    border-radius: 20px 10px 20px 10px;
  }
}

/* Contact & Enquiry Action Buttons */
.enquiry-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn-whatsapp-enquiry {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  box-shadow: 3px 4px 0px rgba(0, 0, 0, 0.2) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  border-radius: 14px 6px 14px 8px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-whatsapp-enquiry:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 5px 7px 0px rgba(0, 0, 0, 0.25) !important;
  filter: brightness(1.06) !important;
}

.btn-mail-enquiry {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 2.5px solid var(--border-color) !important;
  box-shadow: 3px 4px 0px rgba(0, 0, 0, 0.12) !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  border-radius: 6px 14px 8px 14px !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-mail-enquiry:hover {
  transform: translateY(-3px) scale(1.03) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 5px 7px 0px rgba(0, 0, 0, 0.16) !important;
}

/* Floating WhatsApp Quick Action Button */
.floating-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  border-radius: 999px;
  border: 2.5px solid #ffffff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4), 3px 4px 0px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
}

.floating-whatsapp-widget:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.5), 4px 6px 0px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

@media (max-width: 640px) {
  .floating-whatsapp-widget span {
    display: none;
  }
  .floating-whatsapp-widget {
    padding: 12px;
    bottom: 16px;
    right: 16px;
  }
}

/* Real-World Pricing Plans */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-plan-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .plan-card {
  border-color: rgba(255, 255, 255, 0.08);
}

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

.plan-card h4 {
  font-size: 14.5px;
  font-weight: 700;
  margin: 4px 0 6px 0;
  color: var(--text-primary);
}

.plan-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.plan-price span {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 400;
  font-family: var(--font-primary);
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-card ul li {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.plan-card ul li i {
  width: 13px;
  height: 13px;
  color: var(--color-success);
  flex-shrink: 0;
}

.plan-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-light);
  color: var(--primary-color);
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

/* Featured / Pro Tier Card */
.premium-plan {
  border-color: var(--primary-color) !important;
  background: var(--bg-plan-card);
  box-shadow: 0 4px 20px var(--primary-glow);
}

[data-theme="dark"] .premium-plan {
  background: rgba(30, 27, 75, 0.4);
  border-color: rgba(99, 102, 241, 0.6) !important;
}

.premium-plan .plan-badge {
  background: var(--primary-color);
  color: #ffffff;
}

/* Founder & Testimonial Cards */
.founder-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .founder-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}

.founder-quote {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  font-style: italic;
  margin: 10px 0;
  text-align: left;
}

.support-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================== */
/* APP WORKSPACE & SIDEBAR                                    */
/* ========================================================== */
.portal-container {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 250px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  transition: all 0.25s ease;
  z-index: 100;
}

[data-theme="dark"] .sidebar {
  border-right-color: rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding: 4px;
}

.sidebar-logo img,
#sidebar-logo-img {
  width: 38px !important;
  height: 38px !important;
  max-height: 38px !important;
  max-width: 38px !important;
  border-radius: 8px;
  object-fit: contain;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 9px 12px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.nav-item button:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

[data-theme="dark"] .nav-item button:hover {
  background-color: rgba(99, 102, 241, 0.12);
  color: #ffffff;
}

.nav-item.active button {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 700;
}

[data-theme="dark"] .nav-item.active button {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-item button i {
  width: 16px;
  height: 16px;
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 14px;
}

[data-theme="dark"] .sidebar-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.staff-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* Header */
.main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header {
  height: 64px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

[data-theme="dark"] .header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.header-title {
  font-size: 16.5px;
  font-weight: 700;
}

.main-content {
  padding: 28px;
  flex: 1;
  overflow-y: auto;
}

/* ========================================================== */
/* STAT CARDS & METRICS                                       */
/* ========================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

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

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .stat-icon {
  background-color: rgba(99, 102, 241, 0.16);
  color: var(--primary-color);
}

/* ========================================================== */
/* DATA TABLES                                                */
/* ========================================================== */
.table-container {
  overflow-x: auto;
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-sidebar);
}

[data-theme="dark"] .table-container {
  border-color: rgba(255, 255, 255, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background-color: var(--bg-main);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .data-table th {
  background-color: #141b2d;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

[data-theme="dark"] .data-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.data-table tr:hover td {
  background-color: var(--primary-light);
}

[data-theme="dark"] .data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* ========================================================== */
/* POS BILLING SPLIT & CATALOG                                */
/* ========================================================== */
.billing-split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .billing-split {
    grid-template-columns: 1fr;
  }
}

.billing-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.billing-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-sidebar);
}

[data-theme="dark"] .billing-item-row {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================================== */
/* AI COPILOT CARD                                            */
/* ========================================================== */
.ai-copilot-card {
  border: 1px solid rgba(79, 70, 229, 0.2) !important;
  background: var(--bg-card) !important;
}

[data-theme="dark"] .ai-copilot-card {
  border-color: rgba(99, 102, 241, 0.25) !important;
  background: rgba(17, 24, 39, 0.85) !important;
}

.ai-copilot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ai-badge {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--primary-color);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* ========================================================== */
/* STATUS BADGES & PENDING BILLS                              */
/* ========================================================== */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-overdue {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-paid {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-partial {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] .badge-partial {
  border-color: rgba(56, 189, 248, 0.3);
}

/* Pending Dashboard Summary Metrics */
.pending-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.pending-stat-card {
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--primary-color);
}

.pending-stat-card.stat-pending { border-left-color: #f59e0b; }
.pending-stat-card.stat-overdue { border-left-color: #ef4444; }
.pending-stat-card.stat-today { border-left-color: var(--secondary-color); }
.pending-stat-card.stat-cleared { border-left-color: #10b981; }

.pending-stat-val {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
  display: block;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* Filter Tab Pills */
.pending-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .pending-filter-bar {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

.pending-filter-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.pending-filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.pending-filter-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.pending-count-bubble {
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.pending-filter-btn:not(.active) .pending-count-bubble {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

[data-theme="dark"] .pending-filter-btn:not(.active) .pending-count-bubble {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

/* Customer Grouped Cards */
.customer-group-card {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

[data-theme="dark"] .customer-group-card {
  border-color: rgba(255, 255, 255, 0.08);
}

.customer-group-header {
  padding: 14px 18px;
  background: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease;
}

.customer-group-header:hover {
  background: var(--primary-light);
}

[data-theme="dark"] .customer-group-header:hover {
  background: rgba(99, 102, 241, 0.08);
}

.customer-group-card.open .customer-group-header {
  border-bottom-color: var(--border-color);
}

.customer-group-body {
  padding: 14px;
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .customer-group-body {
  background: rgba(0, 0, 0, 0.2);
}

/* ========================================================== */
/* MODALS & OVERLAYS                                          */
/* ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display: block"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-dialog {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .modal-dialog {
  border-color: rgba(255, 255, 255, 0.1);
  background: #111827;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* WhatsApp Preview & Actions */
.whatsapp-preview-box {
  background: #064e3b;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  color: #ecfdf5;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.5;
  position: relative;
  margin: 12px 0;
}

.whatsapp-preview-box::before {
  content: "WhatsApp Message Preview";
  position: absolute;
  top: -8px;
  left: 12px;
  background: #10b981;
  color: #064e3b;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
}

.btn-whatsapp {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #059669 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-paid {
  background: #10b981 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
}

.btn-paid:hover {
  background: #059669 !important;
}

.auto-reminder-banner {
  background: var(--primary-light);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

[data-theme="dark"] .auto-reminder-banner {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
}

/* ========================================================== */
/* ADMIN CONSOLE & TABLES                                     */
/* ========================================================== */
#tab-admin {
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.admin-scroll-section {
  max-height: 250px;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  scrollbar-width: thin;
}

[data-theme="dark"] .admin-scroll-section {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================================== */
/* MOTION ENGINE SUPPORT & MICRO-INTERACTIONS                 */
/* ========================================================== */
#premium-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-main);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#premium-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.premium-loader-mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-loader-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary-color);
  border-right-color: var(--secondary-color);
  animation: loaderSpin 0.9s linear infinite;
}

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

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9998;
  background: transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--primary-color);
}

/* Tasteful Cursor Ambient Glow */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9997;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  will-change: transform;
}

#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--primary-color);
  pointer-events: none;
  z-index: 9997;
  will-change: transform;
}

/* Tab Switch Animation */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animations toggle off override */
.animations-disabled .bg-3d-scene,
.animations-disabled #bg-3d-scene,
.animations-disabled #cursor-glow,
.animations-disabled #cursor-dot {
  display: none !important;
}

.animations-disabled .orb-3d {
  animation: none !important;
}

/* Mobile Header & Responsive Workspace Navigation System (<768px) */
.mobile-top-bar {
  display: none;
}

.mobile-nav-backdrop {
  display: none;
}

.pos-mobile-tabs {
  display: none;
}

.pos-floating-cart-bar {
  display: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
  border-radius: var(--radius-md);
}

@media (max-width: 767px) {
  .portal-container {
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
  }

  /* Mobile Top Bar (Sticky Header for Mobile) */
  .mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 120;
    box-shadow: var(--shadow-sm);
  }

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

  .mobile-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
  }

  .mobile-brand span {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .btn-mobile-menu {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    cursor: pointer;
  }

  /* Sidebar Drawer on Mobile */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: -300px !important;
    width: 280px !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 160 !important;
    box-shadow: var(--shadow-xl) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background-color: var(--bg-sidebar) !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 20px 16px !important;
    border-right: 1px solid var(--border-color) !important;
    border-bottom: none !important;
  }

  .sidebar.mobile-drawer-open {
    transform: translateX(300px) !important;
  }

  .mobile-drawer-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  .sidebar-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 20px !important;
  }

  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-nav-backdrop.active {
    display: block;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
  }

  .nav-item button {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    border-radius: var(--radius-md) !important;
    min-height: 44px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  /* Main Workspace Layout on Mobile */
  .main-panel {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  .header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 52px !important;
  }

  .header-title {
    font-size: 16px !important;
  }

  .main-content {
    padding: 12px 12px 60px 12px !important;
  }

  /* Mobile Input & Touch Target Rules */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important; /* Disables iOS safari zoom jump */
    min-height: 42px;
  }

  /* POS Terminal Mobile Tab Bar & Floating Cart */
  .pos-mobile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    background: var(--primary-light);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
  }

  .pos-mobile-tab-btn {
    flex: 1;
    padding: 10px 6px;
    font-size: 12.5px;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .pos-mobile-tab-btn.active {
    background: var(--bg-sidebar);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
  }

  .billing-split {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .billing-column-cart.mobile-hidden,
  .billing-column-catalog.mobile-hidden {
    display: none !important;
  }

  .pos-floating-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 14px;
    left: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.45);
    z-index: 90;
    cursor: pointer;
    font-weight: 800;
    font-size: 13.5px;
  }

  /* Data Cards for Tables on Mobile */
  .data-table-card-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .mobile-data-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
  }

  /* Modals on Mobile */
  .modal-content {
    width: calc(100vw - 20px) !important;
    max-width: 100% !important;
    margin: 10px auto !important;
    max-height: 88vh !important;
    max-height: 88dvh !important;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
  }

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

  .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--bg-sidebar);
    padding: 12px 14px !important;
    border-top: 1px solid var(--border-color);
    z-index: 10;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}


/* ========================================================== */
/* DOODLE & GEOMETRIC SHAPES THEME (LANDING PAGE)            */
/* ========================================================== */

/* Asymmetric Organic Doodle Card Frames */
.landing-portal .info-card,
.landing-portal .landing-card {
  border-radius: 28px 12px 26px 14px !important;
  border: 2.5px solid var(--border-color) !important;
  box-shadow: 6px 7px 0px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

[data-theme="dark"] .landing-portal .info-card,
[data-theme="dark"] .landing-portal .landing-card {
  box-shadow: 6px 7px 0px rgba(0, 0, 0, 0.45), 0 16px 32px rgba(0, 0, 0, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.landing-portal .info-card:hover,
.landing-portal .landing-card:hover {
  transform: translateY(-3px);
  box-shadow: 8px 10px 0px rgba(0, 0, 0, 0.16), 0 18px 36px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .landing-portal .info-card:hover,
[data-theme="dark"] .landing-portal .landing-card:hover {
  box-shadow: 8px 10px 0px rgba(0, 0, 0, 0.55), 0 20px 40px rgba(0, 0, 0, 0.35) !important;
}

/* Washi Tape Stickers Pinned to Card Corners */
.doodle-tape {
  position: absolute;
  top: -12px;
  height: 24px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  user-select: none;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.doodle-tape-yellow {
  left: 24px;
  background: #fde047;
  color: #713f12;
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
  transform: rotate(-3deg);
}

.doodle-tape-mint {
  right: 24px;
  background: #6ee7b7;
  color: #064e3b;
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
  transform: rotate(3.5deg);
}

.doodle-tape-coral {
  left: 36px;
  background: #fda4af;
  color: #881337;
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
  transform: rotate(-2.5deg);
}

.doodle-tape-violet {
  right: 32px;
  background: #d8b4fe;
  color: #4c1d95;
  border-left: 2px dashed rgba(0,0,0,0.15);
  border-right: 2px dashed rgba(0,0,0,0.15);
  transform: rotate(2.8deg);
}

/* Rubber Stamp Badges */
.doodle-stamp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 2px dashed var(--primary-color);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  background: var(--primary-light);
  transform: rotate(-4deg);
}

/* Playful Quick Login Chips */
.btn-quick-login-chip {
  border: 2px solid var(--border-color) !important;
  border-radius: 12px 6px 14px 8px !important;
  box-shadow: 2px 3px 0px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.btn-quick-login-chip:hover {
  transform: translateY(-2px) rotate(1deg) !important;
  box-shadow: 3px 4px 0px rgba(0, 0, 0, 0.15) !important;
}

/* Playful Pricing Plan Cards */
.landing-portal .plan-card {
  border-radius: 24px 10px 22px 12px !important;
  border: 2.5px solid var(--border-color) !important;
  box-shadow: 4px 5px 0px rgba(0, 0, 0, 0.1) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

.landing-portal .plan-card.premium-plan {
  border-radius: 12px 26px 14px 24px !important;
  border-color: var(--primary-color) !important;
  box-shadow: 5px 6px 0px var(--primary-color) !important;
}

.landing-portal .plan-card:hover {
  transform: translateY(-4px) rotate(-0.5deg) !important;
  box-shadow: 6px 8px 0px rgba(0, 0, 0, 0.15) !important;
}

.landing-portal .plan-card.premium-plan:hover {
  transform: translateY(-5px) rotate(1deg) !important;
  box-shadow: 7px 9px 0px var(--primary-color) !important;
}

/* Comic Speech Bubble Testimonials */
.doodle-comic-card {
  position: relative;
  background: var(--bg-sidebar);
  border: 2.5px solid var(--border-color);
  border-radius: 20px 20px 4px 20px;
  padding: 16px;
  box-shadow: 4px 5px 0px rgba(0, 0, 0, 0.1);
}

.doodle-comic-card::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 24px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 10px 0 0;
  border-color: var(--border-color) transparent transparent transparent;
}

/* ========================================================== */
/* FEATURE DOODLE STICKERS LAYER & ANIMATIONS                */
/* ========================================================== */
/* ========================================================== */
/* FEATURE DOODLE STICKERS & 3D TOUCH BACKGROUND ENGINE       */
/* ========================================================== */
.bg-3d-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 1;
  overflow: hidden;
}

.doodle-stickers-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
  z-index: 0;
}

.doodle-sticker {
  position: absolute;
  pointer-events: none !important;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.2px;
  white-space: nowrap;
  user-select: none;
  border-radius: 12px;
  opacity: 0.85;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.sticker-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.sticker-title {
  font-weight: 800;
  font-size: 11.5px;
}

/* Enhanced Vibrant Gradients & Soft Glows (Light Mode) */
.color-indigo { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); color: #3730a3; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(67, 56, 202, 0.12); }
.color-yellow { background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%); color: #854d0e; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(234, 179, 8, 0.15); }
.color-pink { background: linear-gradient(135deg, #ffe4e6 0%, #fecdd3 100%); color: #9f1239; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(225, 29, 72, 0.12); }
.color-green { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(22, 101, 52, 0.12); }
.color-rose { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); color: #9d174d; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(190, 24, 93, 0.12); }
.color-sky { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); color: #075985; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(3, 105, 161, 0.12); }
.color-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); color: #6b21a8; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(126, 34, 206, 0.12); }
.color-teal { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); color: #115e59; border: 2px solid #ffffff; box-shadow: 0 10px 25px rgba(15, 118, 110, 0.12); }

/* Dark Mode Glowing Glassmorphism Accents */
[data-theme="dark"] .color-indigo { background: linear-gradient(135deg, rgba(30, 41, 89, 0.85) 0%, rgba(49, 46, 129, 0.85) 100%); color: #c7d2fe; border: 1.5px solid rgba(165, 180, 252, 0.35); box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25); }
[data-theme="dark"] .color-yellow { background: linear-gradient(135deg, rgba(84, 65, 12, 0.85) 0%, rgba(113, 63, 18, 0.85) 100%); color: #fef08a; border: 1.5px solid rgba(253, 224, 71, 0.35); box-shadow: 0 10px 30px rgba(234, 179, 8, 0.22); }
[data-theme="dark"] .color-pink { background: linear-gradient(135deg, rgba(88, 28, 45, 0.85) 0%, rgba(136, 19, 55, 0.85) 100%); color: #fecdd3; border: 1.5px solid rgba(252, 165, 165, 0.35); box-shadow: 0 10px 30px rgba(244, 63, 94, 0.22); }
[data-theme="dark"] .color-green { background: linear-gradient(135deg, rgba(20, 60, 36, 0.85) 0%, rgba(20, 83, 45, 0.85) 100%); color: #bbf7d0; border: 1.5px solid rgba(134, 239, 172, 0.35); box-shadow: 0 10px 30px rgba(34, 197, 94, 0.22); }
[data-theme="dark"] .color-rose { background: linear-gradient(135deg, rgba(88, 28, 65, 0.85) 0%, rgba(131, 24, 67, 0.85) 100%); color: #fbcfe8; border: 1.5px solid rgba(244, 114, 182, 0.35); box-shadow: 0 10px 30px rgba(236, 72, 153, 0.22); }
[data-theme="dark"] .color-sky { background: linear-gradient(135deg, rgba(12, 74, 110, 0.85) 0%, rgba(3, 105, 161, 0.85) 100%); color: #bae6fd; border: 1.5px solid rgba(125, 211, 252, 0.35); box-shadow: 0 10px 30px rgba(14, 165, 233, 0.22); }
[data-theme="dark"] .color-purple { background: linear-gradient(135deg, rgba(76, 29, 149, 0.85) 0%, rgba(109, 40, 217, 0.85) 100%); color: #e9d5ff; border: 1.5px solid rgba(216, 180, 254, 0.35); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.22); }
[data-theme="dark"] .color-teal { background: linear-gradient(135deg, rgba(19, 78, 74, 0.85) 0%, rgba(15, 118, 110, 0.85) 100%); color: #99f6e4; border: 1.5px solid rgba(94, 234, 212, 0.35); box-shadow: 0 10px 30px rgba(20, 184, 166, 0.22); }

/* Distinct Hand-Crafted Shapes */
.shape-pill { border-radius: 9999px; }
.shape-receipt { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 92% 100%, 84% calc(100% - 6px), 76% 100%, 68% calc(100% - 6px), 60% 100%, 52% calc(100% - 6px), 44% 100%, 36% calc(100% - 6px), 28% 100%, 20% calc(100% - 6px), 12% 100%, 4% calc(100% - 6px), 0 100%); border-radius: 8px 8px 0 0; padding-bottom: 14px; }
.shape-ticket { clip-path: polygon(0 0, 100% 0, 100% 30%, 94% 50%, 100% 70%, 100% 100%, 0 100%, 0 70%, 6% 50%, 0 30%); padding: 9px 17px; }
.shape-price-tag { clip-path: polygon(16px 0%, 100% 0%, 100% 100%, 16px 100%, 0% 50%); border-radius: 0 10px 10px 0; padding-left: 22px; }
.shape-speech-bubble { border-radius: 18px 18px 18px 4px; }
.shape-rounded-rect { border-radius: 16px 6px 16px 6px; }
.shape-cloud { border-radius: 28px 28px 18px 18px; }
.shape-blob { border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%; }
.shape-starburst { clip-path: polygon(50% 0%, 61% 11%, 75% 4%, 81% 18%, 96% 18%, 95% 33%, 100% 46%, 93% 59%, 97% 73%, 84% 80%, 82% 95%, 68% 91%, 58% 100%, 46% 93%, 34% 98%, 27% 85%, 13% 84%, 13% 69%, 3% 60%, 8% 46%, 1% 32%, 14% 24%, 12% 9%, 27% 10%); padding: 11px 17px; }

/* Subtle Floating Animations */
.float-anim-1 { animation: float-sticker-1 12s ease-in-out infinite; }
.float-anim-2 { animation: float-sticker-2 15s ease-in-out infinite; animation-delay: 1s; }
.float-anim-3 { animation: float-sticker-3 10s ease-in-out infinite; animation-delay: 0.5s; }
.float-anim-4 { animation: float-sticker-4 16s ease-in-out infinite; animation-delay: 2s; }
.float-anim-5 { animation: float-sticker-1 13s ease-in-out infinite; animation-delay: 2.5s; }
.float-anim-6 { animation: float-sticker-2 17s ease-in-out infinite; animation-delay: 0.8s; }

@keyframes float-sticker-1 {
  0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 12px), 0) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

@keyframes float-sticker-2 {
  0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(var(--px, 0px), calc(var(--py, 0px) - 15px), 0) rotate(calc(var(--rot, 0deg) - 2.5deg)); }
}

@keyframes float-sticker-3 {
  0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(calc(var(--px, 0px) + 6px), calc(var(--py, 0px) - 10px), 0) rotate(calc(var(--rot, 0deg) + 2deg)); }
}

@keyframes float-sticker-4 {
  0%, 100% { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg)); }
  50% { transform: translate3d(calc(var(--px, 0px) - 6px), calc(var(--py, 0px) - 14px), 0) rotate(calc(var(--rot, 0deg) - 2deg)); }
}

/* Exact Document Margin Positions (Gutters outside main container) */
/* Hero Section */
.pos-smart-billing { top: 90px; left: 1.5vw; --rot: -7deg; }
.pos-digital-invoices { top: 240px; left: 1vw; --rot: 5deg; }
.pos-pending-reminders { top: 390px; left: 1vw; --rot: -5deg; }

.pos-customer-mgmt { top: 100px; right: 1.5vw; --rot: 6deg; }
.pos-inventory-mgmt { top: 230px; right: 1vw; --rot: -8deg; }
.pos-cloud-data { top: 380px; right: 1.5vw; --rot: 5deg; }

/* Auth Section */
.pos-tax-invoice { top: 570px; left: 1.5vw; --rot: 8deg; }
.pos-whatsapp-bills { top: 710px; left: 1vw; --rot: -6deg; }

.pos-sales-reports { top: 580px; right: 1.5vw; --rot: 7deg; }
.pos-multi-store { top: 730px; right: 1vw; --rot: -6deg; }

/* Features Section */
.pos-secure-login { top: 1020px; left: 1vw; --rot: -9deg; }
.pos-100-secure { top: 1040px; right: 1vw; --rot: 8deg; }

/* How It Works Section */
.pos-business-analytics { top: 1520px; left: 1vw; --rot: -6deg; }
.pos-grow-business { top: 1540px; right: 1.5vw; --rot: 7deg; }

/* Pricing Section */
.pos-works-on-devices { top: 2120px; left: 1vw; --rot: -5deg; }
.pos-save-time { top: 2150px; right: 1vw; --rot: 6deg; }

/* Sparkles & Micro Details */
.doodle-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 15px;
  opacity: 0.5;
  animation: pulse-sparkle 4s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes pulse-sparkle {
  0% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
  100% { opacity: 0.7; transform: scale(1.15) rotate(15deg); }
}

.pos-sp-1 { top: 70px; left: 14vw; }
.pos-sp-2 { top: 180px; right: 12vw; }
.pos-sp-3 { top: 340px; left: 15vw; }
.pos-sp-4 { top: 500px; right: 14vw; }
.pos-sp-5 { top: 950px; left: 13vw; }
.pos-sp-6 { top: 1450px; right: 13vw; }
.pos-sp-7 { top: 2050px; left: 14vw; }
.pos-sp-8 { top: 2500px; right: 14vw; }

/* Responsive Rules: Hide stickers on screen widths <= 1280px so they never overlap feature cards */
@media (max-width: 1280px) {
  .doodle-stickers-layer {
    display: none !important;
  }
}

/* ========================================================== */
/* COMPREHENSIVE RESPONSIVE BREAKPOINTS (320px to 1920px)     */
/* ========================================================== */

/* Desktop Extra Wide (1920px+) */
@media (min-width: 1920px) {
  .landing-container {
    max-width: 1280px;
  }
}

/* Standard Desktop & Mac (1280px - 1440px) */
@media (min-width: 1280px) and (max-width: 1440px) {
  .landing-container {
    max-width: 1180px;
  }
}

/* Small Laptop & Tablet Landscape (1024px - 1279px) */
@media (max-width: 1279px) {
  .landing-container {
    width: min(100% - 24px, 1100px);
    gap: 28px;
  }
  .landing-hero-grid {
    gap: 24px;
  }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .landing-portal .landing-card {
    max-width: 100%;
  }
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
}

/* Mobile Devices (320px - 767px) */
@media (max-width: 767px) {
  .landing-portal {
    padding: 16px 12px 60px 12px;
  }
  .landing-container {
    width: 100%;
    gap: 20px;
  }
  .landing-portal .info-card,
  .landing-portal .landing-card {
    padding: 20px 14px !important;
    border-radius: 18px 8px 18px 8px !important;
  }
  .brand-header {
    gap: 10px;
  }
  .glow-text {
    font-size: 26px;
  }
  .tagline {
    font-size: 11.5px;
  }
  .hero-desc {
    font-size: 12.5px;
    line-height: 1.5;
  }
  .hero-large-logo {
    width: 100px;
    height: 100px;
    border-radius: 18px 8px 18px 8px;
    padding: 6px;
  }
  .enquiry-action-bar {
    gap: 8px;
    flex-direction: column;
    width: 100%;
  }
  .btn-whatsapp-enquiry,
  .btn-mail-enquiry {
    width: 100% !important;
    justify-content: center !important;
  }
  .doodle-tape {
    font-size: 8.5px;
    padding: 0 8px;
    height: 20px;
    top: -10px;
    left: 14px !important;
    right: auto !important;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .doodle-comic-card {
    padding: 14px !important;
  }
  .founder-card {
    padding: 16px !important;
  }
  .auth-mode-tabs button {
    font-size: 10.5px !important;
    padding: 6px 4px !important;
  }
}

/* Compact Mobile (320px - 414px) */
@media (max-width: 414px) {
  .landing-portal {
    padding: 12px 8px 50px 8px;
  }
  .landing-portal .info-card,
  .landing-portal .landing-card {
    padding: 16px 12px !important;
  }
  .glow-text {
    font-size: 22px;
  }
  .hero-large-logo {
    width: 86px;
    height: 86px;
  }
  .btn-quick-login-chip {
    font-size: 9.5px !important;
    padding: 3px 6px !important;
  }
  .form-input {
    font-size: 12.5px !important;
    padding: 7px 10px !important;
  }
  .founder-support {
    flex-direction: column;
    align-items: stretch !important;
  }
  .founder-support .support-badge {
    justify-content: center !important;
  }
}

/* ========================================================== */
/* ========================================================== */
/* STOREZYY MASTER EMPLOYEE ID CARD (VERTICAL CR80 DESIGN)   */
/* Standard CR80 Size: 53.98mm x 85.60mm                    */
/* ========================================================== */

.storezyy-idcard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.storezyy-idcard-card {
  width: 72mm;
  height: 114mm;
  background: #ffffff;
  border-radius: 4.5mm;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4mm 4mm;
  color: #0f172a;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  user-select: none;
}

/* Organic Corner Color Blobs */
.idcard-blob-tl {
  position: absolute;
  top: -10mm;
  left: -10mm;
  width: 28mm;
  height: 28mm;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  pointer-events: none;
  z-index: 1;
}

.idcard-blob-tr {
  position: absolute;
  top: -10mm;
  right: -10mm;
  width: 28mm;
  height: 28mm;
  border-radius: 60% 40% 30% 70% / 50% 40% 60% 50%;
  pointer-events: none;
  z-index: 1;
}

.idcard-blob-bl {
  position: absolute;
  bottom: -10mm;
  left: -10mm;
  width: 28mm;
  height: 28mm;
  border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
  pointer-events: none;
  z-index: 1;
}

.idcard-blob-br {
  position: absolute;
  bottom: -10mm;
  right: -10mm;
  width: 28mm;
  height: 28mm;
  border-radius: 40% 60% 50% 50% / 50% 30% 70% 50%;
  pointer-events: none;
  z-index: 1;
}

/* Color Themes for Blobs */
.idcard-front-blobs .idcard-blob-tl { background: #c084fc; opacity: 0.9; } /* Purple */
.idcard-front-blobs .idcard-blob-tr { background: #4ade80; opacity: 0.9; } /* Green */
.idcard-front-blobs .idcard-blob-bl { background: #facc15; opacity: 0.9; } /* Yellow */
.idcard-front-blobs .idcard-blob-br { background: #f472b6; opacity: 0.9; } /* Pink */

.idcard-back-blobs .idcard-blob-tl { background: #f472b6; opacity: 0.9; } /* Pink */
.idcard-back-blobs .idcard-blob-tr { background: #facc15; opacity: 0.9; } /* Yellow */
.idcard-back-blobs .idcard-blob-bl { background: #c084fc; opacity: 0.9; } /* Purple */
.idcard-back-blobs .idcard-blob-br { background: #4ade80; opacity: 0.9; } /* Green */

/* Lanyard Slot */
.idcard-lanyard-slot {
  width: 14mm;
  height: 3mm;
  border-radius: 99mm;
  background: #ffffff;
  border: 0.4mm solid #cbd5e1;
  margin: 0 auto 1.5mm auto;
  position: relative;
  z-index: 3;
}

/* Header & Logo */
.idcard-header-logo {
  text-align: center;
  position: relative;
  z-index: 3;
  margin-bottom: 1.5mm;
}

.idcard-logo-img {
  max-height: 9mm;
  max-width: 32mm;
  object-fit: contain;
}

.idcard-logo-fallback {
  font-size: 4.5mm;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.idcard-tagline {
  font-size: 1.8mm;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  margin: 0.4mm 0 0 0;
  letter-spacing: 0.3px;
}

/* Custom Card Text Banner */
.idcard-custom-text-banner {
  text-align: center;
  position: relative;
  z-index: 3;
  margin: 1mm 0 2mm 0;
  padding: 0 1mm;
}

.idcard-custom-text-main {
  font-size: 8mm;
  font-weight: 900;
  color: #1e1b4b;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  line-height: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Photo Container */
.idcard-photo-container {
  position: relative;
  z-index: 3;
  width: 26mm;
  height: 26mm;
  margin: 0 auto;
}

.idcard-photo-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 0.8mm;
  background: linear-gradient(135deg, #3b82f6, #ec4899, #facc15);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.idcard-photo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 0.6mm solid #ffffff;
}

/* Front Details */
.idcard-employee-name {
  font-size: 4.2mm;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  margin: 2.5mm 0 0.8mm 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  z-index: 3;
}

.idcard-employee-designation {
  font-size: 3.2mm;
  font-weight: 900;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 3;
}

.idcard-designation-accents {
  font-size: 2.5mm;
  color: #94a3b8;
  margin: 0 1.5mm;
}

/* Back Contact Rows */
.idcard-back-contacts {
  position: relative;
  z-index: 3;
  margin: 2mm 0;
  display: flex;
  flex-direction: column;
  gap: 2.2mm;
}

.idcard-contact-row {
  display: flex;
  align-items: center;
  gap: 2.5mm;
}

.idcard-icon-circle {
  width: 6mm;
  height: 6mm;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 3mm;
  font-weight: bold;
  flex-shrink: 0;
}

.idcard-icon-blue { background: #3b82f6; }
.idcard-icon-green { background: #22c55e; }
.idcard-icon-purple { background: #a855f7; }
.idcard-icon-pink { background: #ec4899; }

.idcard-contact-text {
  font-size: 2.5mm;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 0.3mm dotted #cbd5e1;
  padding-bottom: 0.6mm;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Back QR Section */
.idcard-back-qr-box {
  position: relative;
  z-index: 3;
  background: #ffffff;
  border: 0.4mm solid #e2e8f0;
  border-radius: 3mm;
  padding: 2mm;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  width: 28mm;
  margin: 1.5mm auto 0 auto;
}

.idcard-back-qr-img {
  width: 24mm;
  height: 24mm;
  display: block;
  margin: 0 auto;
}

.idcard-back-socials {
  text-align: center;
  position: relative;
  z-index: 3;
  margin-top: 1.5mm;
  font-size: 2.2mm;
  font-weight: 700;
  color: #475569;
}

/* ========================================== */
/* A4 OFFER LETTER & LANDSCAPE CERTIFICATE    */
/* ========================================== */

.a4-document-portrait {
  background: #ffffff;
  color: #0f172a;
  padding: 36px 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

.a4-document-landscape {
  background: #ffffff;
  background-image: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.04) 0px, transparent 50%);
  color: #0f172a;
  padding: 24px 32px;
  border-radius: 12px;
  border: 2px solid #2563eb;
  outline: 2px solid #10b981;
  outline-offset: -8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  font-family: 'Outfit', sans-serif;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* CERTIFICATE CORNER DOODLES */
.cert-doodle-top-left {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-top: 3px solid #2563eb;
  border-left: 3px solid #10b981;
  border-top-left-radius: 8px;
  pointer-events: none;
}

.cert-doodle-bottom-right {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-bottom: 3px solid #2563eb;
  border-right: 3px solid #10b981;
  border-bottom-right-radius: 8px;
  pointer-events: none;
}/* PRINT MEDIA OVERRIDES */
/* ========================================== */
/* GLOBAL PRINT MEDIA OVERRIDES              */
/* ========================================== */
@media print {
  /* Hide UI action buttons and navigation chrome */
  .no-print,
  .sidebar,
  .top-bar,
  .modal-overlay button,
  .idcard-print-controls {
    display: none !important;
  }

  /* When printing a specific modal, keep #app-workspace visible and hide non-modal siblings */
  body.printing-offer #app-workspace > *:not(#modal-offer-letter),
  body.printing-certificate #app-workspace > *:not(#modal-certificate),
  body.printing-idcard #app-workspace > *:not(#modal-employee-idcard),
  body.printing-offer > *:not(#app-workspace),
  body.printing-certificate > *:not(#app-workspace),
  body.printing-idcard > *:not(#app-workspace) {
    display: none !important;
  }

  body.printing-certificate #modal-certificate,
  body.printing-offer #modal-offer-letter,
  body.printing-idcard #modal-employee-idcard {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 99999 !important;
  }

  body.printing-certificate #modal-certificate .modal-content,
  body.printing-offer #modal-offer-letter .modal-content,
  body.printing-idcard #modal-employee-idcard .modal-content {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    max-width: none !important;
  }

  /* Printable ID Cards: Side-by-side Front & Back */
  body.printing-idcard #idcard-print-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12mm !important;
    padding: 15mm !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    visibility: visible !important;
  }

  /* Printable Certificate: Full A4 Landscape (297mm x 210mm) */
  body.printing-certificate #certificate-print-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 297mm !important;
    height: 210mm !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    overflow: hidden !important;
    visibility: visible !important;
  }

  /* Printable Offer Letter: Full A4 Portrait (210mm x 297mm) */
  body.printing-offer #offer-letter-print-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    overflow: hidden !important;
    visibility: visible !important;
  }

  body.printing-certificate #certificate-print-container *,
  body.printing-offer #offer-letter-print-container *,
  body.printing-idcard #idcard-print-container * {
    visibility: visible !important;
  }

  @page {
    margin: 0;
  }
}

body.printing-certificate {
  @page { size: A4 landscape; margin: 0; }
}

body.printing-offer {
  @page { size: A4 portrait; margin: 0; }
}

body.printing-idcard {
  @page { size: A4 landscape; margin: 0; }
}
