/* ==========================================================================
   JAKA CLOUD - MASTER LANDING & AUTH STYLESHEET (landing.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & BASE TYPOGRAPHY
   -------------------------------------------------------------------------- */
:root {
  --bs-primary: #0c6ea4;
  --bs-primary-rgb: 12, 110, 164;
  --bs-primary-hover: #09537c;
  --bs-secondary: #11243b;
  --bs-secondary-rgb: 17, 36, 59;
  --bs-success: #198754;
  --bs-success-rgb: 25, 135, 84;
  --bs-body-font-family: 'Outfit', 'Noto Kufi Arabic', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--bs-body-font-family);
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  font-size: 0.92rem;
  line-height: 1.55;
}

html[dir="rtl"] body {
  font-family: 'Noto Kufi Arabic', 'Outfit', system-ui, sans-serif;
}

/* Compact Typography */
h1, .h1 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 800; line-height: 1.25; }
h2, .h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 700; }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; }
h4, .h4 { font-size: 1.1rem; font-weight: 600; }
h5, .h5 { font-size: 0.98rem; font-weight: 600; }
p, li { font-size: 0.9rem; }
.small, small { font-size: 0.82rem; }

.hidden { display: none !important; }

/* --------------------------------------------------------------------------
   2. BRAND BUTTONS & NAVBAR
   -------------------------------------------------------------------------- */
.btn-primary {
  background-color: #0c6ea4;
  border-color: #0c6ea4;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #08537d !important;
  border-color: #08537d !important;
}
.btn-outline-primary {
  color: #0c6ea4;
  border-color: #0c6ea4;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background-color: #0c6ea4 !important;
  border-color: #0c6ea4 !important;
  color: #ffffff !important;
}
.btn-success {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #ffffff !important;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
  background-color: #157347 !important;
  border-color: #146c43 !important;
  color: #ffffff !important;
}
.btn-outline-success {
  color: #198754;
  border-color: #198754;
}
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
  background-color: #198754 !important;
  border-color: #198754 !important;
  color: #ffffff !important;
}

/* Glassmorphic Navbar Login Button */
.btn-navbar-login,
.navbar .btn-outline-primary {
  background: linear-gradient(135deg, rgba(12, 110, 164, 0.06) 0%, rgba(2, 132, 199, 0.11) 100%) !important;
  border: 1.5px solid rgba(12, 110, 164, 0.22) !important;
  color: #0c6ea4 !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 14px rgba(12, 110, 164, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  transition: all 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.btn-navbar-login:hover,
.navbar .btn-outline-primary:hover {
  background: linear-gradient(135deg, rgba(12, 110, 164, 0.09) 0%, rgba(2, 132, 199, 0.15) 100%) !important;
  color: #0c6ea4 !important;
  border-color: rgba(12, 110, 164, 0.36) !important;
  box-shadow: 0 8px 20px -4px rgba(12, 110, 164, 0.16), 0 0 10px rgba(2, 132, 199, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  transform: none !important;
}
.btn-navbar-login:active,
.navbar .btn-outline-primary:active {
  background: linear-gradient(135deg, rgba(12, 110, 164, 0.12) 0%, rgba(2, 132, 199, 0.20) 100%) !important;
  border-color: rgba(12, 110, 164, 0.42) !important;
  color: #08537d !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(12, 110, 164, 0.10) !important;
}

.navbar .nav-link {
  color: #334155;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem !important;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: #0c6ea4 !important;
}
.navbar .btn {
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION, MOCKUPS & FLOATING BADGES
   -------------------------------------------------------------------------- */
.desktop-mockup-frame {
  width: 100%;
  max-width: 580px;
}
.mobile-mockup-frame {
  width: 48%;
  max-width: 220px;
}
.hero-badge-floating {
  position: relative;
  margin: 0.5rem auto 0.75rem auto;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 10;
}
.hero-badge-floating .badge {
  font-size: 0.8rem;
  padding: 0.4rem 1rem !important;
  letter-spacing: 0.02em;
}
.hero-badge-floating .badge i {
  font-size: 0.9rem;
}
@media (max-width: 576px) {
  .hero-badge-floating .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem !important;
  }
  .hero-badge-floating .badge i {
    font-size: 0.8rem;
  }
}
@media (min-width: 992px) {
  .desktop-mockup-frame { width: 78%; }
  .mobile-mockup-frame { width: 32%; margin-inline-end: -2rem; }
  .hero-badge-floating {
    position: absolute;
    top: -48px;
    right: 45px;
    left: auto;
    margin: 0;
    width: auto;
  }
  html[dir="rtl"] .hero-badge-floating {
    right: auto;
    left: 45px;
  }
}

/* Handwriting & Marker accents */
.handwriting-title {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.15;
}
.handwriting-subtitle {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  color: #0c6ea4;
  line-height: 1.25;
}
.marker-highlight {
  position: relative;
  display: inline-block;
  padding: 0 0.6rem;
  z-index: 1;
}
.marker-highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 18%;
  left: -4px;
  right: -4px;
  height: 75%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2,10 C25,6 60,8 98,4 C99,8 97,12 95,14 C70,16 35,14 2,16 C1,14 1,12 2,10 Z' fill='%23FBB130' opacity='0.85'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  transform: rotate(-1deg);
}
.sketch-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.sketch-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M3,5 Q25,2 50,7 T97,4' stroke='%230c6ea4' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Hero Cards */
.transition-card {
  transition: transform 0.45s ease-out, box-shadow 0.45s ease-out, background-color 0.3s ease;
  border: 1.5px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: 12px !important;
  min-height: 60px;
}
.transition-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 16px rgba(12, 110, 164, 0.08) !important;
  background-color: #fcfdfe !important;
  border-color: rgba(12, 110, 164, 0.2) !important;
}
.transition-card span, .transition-card h3 {
  font-size: 1.05rem !important;
}
.dashboard-style-card {
  transition: transform 0.45s ease-out, box-shadow 0.45s ease-out, border-color 0.3s ease;
  cursor: default;
  border-radius: 12px !important;
  min-height: 64px;
}
.dashboard-style-card:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05) !important;
}
.card-border-primary { border: 1px solid rgba(12, 110, 164, 0.3) !important; }
.card-border-primary:hover { border-color: rgba(12, 110, 164, 0.8) !important; }
.card-border-info { border: 1px solid rgba(13, 202, 240, 0.3) !important; }
.card-border-info:hover { border-color: rgba(13, 202, 240, 0.8) !important; }
.card-border-success { border: 1px solid rgba(25, 135, 84, 0.3) !important; }
.card-border-success:hover { border-color: rgba(25, 135, 84, 0.8) !important; }
.card-border-warning { border: 1px solid rgba(255, 193, 7, 0.3) !important; }
.card-border-warning:hover { border-color: rgba(255, 193, 7, 0.8) !important; }

.hero-left-col { position: relative; }
#lang-switch-btn:hover { color: #0c6ea4 !important; }
@media (min-width: 992px) {
  .hero-left-col::after {
    content: "";
    position: absolute;
    right: -10%;
    top: 5%;
    height: 90%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
  }
  #hero-industry-cards { --bs-gutter-y: 0.75rem; }
}
.hero-specialized-title { font-size: 3.2rem !important; margin-bottom: 2rem; }
.hero-right-top { min-height: 3rem; }
.hero-industry-link { text-decoration: none; display: block; color: inherit; height: 100%; }

/* --------------------------------------------------------------------------
   4. MARQUEE & PARTNERS
   -------------------------------------------------------------------------- */
.marquee-container {
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  gap: 2rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
html[dir="rtl"] .marquee-track {
  animation: marquee-rtl 40s linear infinite;
}
@keyframes marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}
.partner-logo-card {
  width: 120px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.6rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.partner-logo-card:hover {
  border-color: #0c6ea4 !important;
  box-shadow: 0 6px 16px rgba(12, 110, 164, 0.15) !important;
  transform: translateY(-2px);
}
.partner-logo-card img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: grayscale(15%);
  transition: filter 0.2s ease;
}
.partner-logo-card:hover img { filter: grayscale(0%); }

/* --------------------------------------------------------------------------
   5. PRICING & BILLING SWITCHER
   -------------------------------------------------------------------------- */
.billing-toggle-wrap {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
.billing-toggle-btn {
  border: none !important;
  background: transparent;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1.35rem;
  border-radius: 9999px !important;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.3;
}
.billing-toggle-btn:hover { color: #0c6ea4; }
.billing-toggle-btn.active {
  background-color: #0c6ea4 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(12, 110, 164, 0.35) !important;
}
.pricing-card {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  border: 2.5px solid rgba(12, 110, 164, 0.15) !important;
  border-top: 5px solid #0c6ea4 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.pricing-card:hover {
  border-color: #0c6ea4 !important;
  box-shadow: 0 12px 30px -6px rgba(12, 110, 164, 0.16) !important;
  transform: translateY(-6px);
}
.enterprise-card {
  background: linear-gradient(135deg, rgba(12, 110, 164, 0.04) 0%, #ffffff 50%, rgba(12, 110, 164, 0.06) 100%);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.enterprise-card:hover {
  border-color: rgba(12, 110, 164, 0.4) !important;
  box-shadow: 0 10px 30px rgba(12, 110, 164, 0.12) !important;
}
.purpose-box {
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.purpose-box:hover {
  border-color: #0c6ea4 !important;
  background-color: #f0f9ff !important;
}
.plan-select-pill {
  cursor: pointer;
  transition: all 0.2s ease;
}
.plan-select-pill.selected {
  border-color: #0c6ea4 !important;
  background-color: #f0f9ff !important;
}
.footer-social-link {
  width: 34px !important;
  height: 34px !important;
}

/* --------------------------------------------------------------------------
   6. SOLUTIONS & PRESENTATION DECK
   -------------------------------------------------------------------------- */
.solution-nav-pills {
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.solution-pill-btn {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.solution-pill-btn:hover {
  border-color: #0c6ea4;
  color: #0c6ea4;
  background: #f0f9ff;
}
.solution-pill-btn.active {
  background: #0c6ea4;
  border-color: #0c6ea4;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(12, 110, 164, 0.25);
}
.solution-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.solution-summary-card:hover {
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.solution-badge-custom {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.feature-check-list li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: #334155;
}

.presentation-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 1.5rem;
}
.slide-deck-wrapper {
  position: relative;
  min-height: 520px;
}
.slide-card {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
}
.slide-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.slide-number-badge {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
}
.slide-step-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0c6ea4;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.slide-workflow-connector { position: relative; }
.slide-workflow-connector::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 38px;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}
html[dir="rtl"] .slide-workflow-connector::before {
  left: 0;
  right: 38px;
}
@media (max-width: 768px) {
  .slide-workflow-connector::before { display: none; }
  .slide-card { padding: 1.25rem; }
}
.slide-nav-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}
.slide-nav-pill:hover { border-color: #0c6ea4; color: #0c6ea4; }
.slide-nav-pill.active { background: #0c6ea4; color: #ffffff; border-color: #0c6ea4; }
.slide-progress {
  height: 5px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.slide-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0c6ea4, #06b6d4);
  transition: width 0.3s ease;
}
.keyboard-hint {
  font-size: 0.75rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #64748b;
  font-family: monospace;
}
.slide-deck-wrapper.is-fullscreen {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 99999;
  background: #0b1120;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.slide-deck-wrapper.is-fullscreen .slide-card {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   7. INDUSTRY THEME SCOPING
   -------------------------------------------------------------------------- */
.theme-biz-trading { --biz-color: #2563eb; --biz-bg: #eff6ff; --biz-border: #93c5fd; }
.theme-biz-restaurants { --biz-color: #e11d48; --biz-bg: #fff1f2; --biz-border: #fecdd3; }
.theme-biz-supermarkets { --biz-color: #059669; --biz-bg: #ecfdf5; --biz-border: #a7f3d0; }
.theme-biz-textiles { --biz-color: #7c3aed; --biz-bg: #f5f3ff; --biz-border: #ddd6fe; }
.theme-biz-manufacturing { --biz-color: #d97706; --biz-bg: #fffbeb; --biz-border: #fde68a; }
.theme-biz-services { --biz-color: #0d9488; --biz-bg: #f0fdfa; --biz-border: #99f6e4; }
.theme-biz-gold-manufacturing { --biz-color: #b45309; --biz-bg: #fffbeb; --biz-border: #fde68a; }
.theme-biz-jewellery { --biz-color: #0284c7; --biz-bg: #f0f9ff; --biz-border: #bae6fd; }

.biz-icon-box { background-color: var(--biz-bg, #f1f5f9); width: 52px; height: 52px; }
.biz-badge {
  background-color: var(--biz-bg, #f1f5f9) !important;
  color: var(--biz-color, #0c6ea4) !important;
  border: 1.5px solid var(--biz-border, #cbd5e1) !important;
  padding: 0.55rem 1.25rem !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}
.biz-badge img { width: 24px !important; height: 24px !important; object-fit: contain; }
.biz-badge span { font-size: 0.98rem !important; font-weight: 700 !important; }
[class^="theme-biz-"] span.badge.rounded-pill {
  font-size: 0.92rem !important;
  padding: 0.45rem 1.15rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.biz-text-color { color: var(--biz-color, #0c6ea4); }
.biz-bg-color { background-color: var(--biz-color, #0c6ea4); }
.biz-card-theme {
  background-color: var(--biz-bg, #f1f5f9);
  border-color: var(--biz-border, #cbd5e1) !important;
}

/* --------------------------------------------------------------------------
   8. AUTH, LOGIN & PASSWORD RESET FLOW
   -------------------------------------------------------------------------- */
.login-page-wrap,
.forgot-page-wrap {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: radial-gradient(ellipse at 50% 10%, rgba(12, 110, 164, 0.07) 0%, rgba(248, 250, 252, 0.95) 75%);
  position: relative;
  box-sizing: border-box;
}

.login-card,
.forgot-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
  padding: 2.25rem 2.25rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}

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

.login-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.login-logo img { height: 42px; width: auto; }

.login-error,
.forgot-alert {
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.75rem 0.95rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}
.login-error,
.forgot-alert.error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
}
.forgot-alert.success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #16a34a;
}
.login-error svg,
.forgot-alert svg { flex-shrink: 0; }
.login-error.hidden,
.forgot-alert.hidden { display: none; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  box-sizing: border-box;
}
.btn-google:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}
.btn-google:active {
  transform: translateY(0);
  background: #f1f5f9;
}
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.35rem 0;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: lowercase;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.login-field,
.forgot-field { margin-bottom: 1.15rem; }
.login-field label,
.forgot-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.45rem;
}
html[dir="rtl"] .login-field label,
html[dir="rtl"] .forgot-field label { text-align: right; }

.login-input-wrap,
.forgot-input-wrap { position: relative; display: flex; align-items: center; }

.login-input-wrap svg.input-icon,
.forgot-input-wrap svg.input-icon {
  position: absolute;
  left: 0.95rem;
  color: #94a3b8;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  pointer-events: none;
  transition: color 0.2s;
}
html[dir="rtl"] .login-input-wrap svg.input-icon,
html[dir="rtl"] .forgot-input-wrap svg.input-icon { left: auto; right: 0.95rem; }

.login-input-wrap input,
.forgot-input-wrap input {
  width: 100%;
  height: 48px;
  padding: 0 2.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
  box-sizing: border-box;
}
.login-input-wrap input::placeholder,
.forgot-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 0.85;
}
.login-input-wrap input:focus,
.forgot-input-wrap input:focus {
  border-color: #0c6ea4;
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(12, 110, 164, 0.14);
}
.login-input-wrap input:focus + .btn-pw-toggle,
.login-input-wrap:focus-within svg.input-icon,
.forgot-input-wrap:focus-within svg.input-icon {
  color: #0c6ea4;
}

.btn-pw-toggle {
  position: absolute;
  right: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}
.btn-pw-toggle:hover { color: #0c6ea4; background: rgba(12, 110, 164, 0.08); }
html[dir="rtl"] .btn-pw-toggle { right: auto; left: 0.9rem; }

.btn-signin,
.btn-primary-action {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #0c6ea4 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  box-shadow: 0 4px 14px rgba(12, 110, 164, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.btn-signin:hover,
.btn-primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(12, 110, 164, 0.36);
}
.btn-signin:active,
.btn-primary-action:active {
  transform: translateY(0);
}
.btn-signin:disabled,
.btn-primary-action:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.btn-signin .spinner,
.btn-primary-action .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn-signin.loading .spinner,
.btn-primary-action.loading .spinner { display: inline-block; }
.btn-signin.loading .btn-label,
.btn-primary-action.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-footer-links,
.forgot-footer-links {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.92rem;
}
.login-footer-links a {
  color: #198754;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}
.login-footer-links a:hover {
  color: #157347;
  text-decoration: underline;
}
.forgot-footer-links a {
  color: #0c6ea4;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.forgot-footer-links a:hover { text-decoration: underline; }

.forgot-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.forgot-icon-badge {
  width: 52px;
  height: 52px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.forgot-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

/* Remembered Accounts Panel */
.login-layout-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 860px;
  z-index: 2;
}
.active-stores-panel {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.03);
  padding: 2rem 1.85rem;
  width: 100%;
  max-width: 380px;
  flex: 1;
  position: relative;
  z-index: 2;
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  box-sizing: border-box;
}
.login-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.35rem;
  text-align: center;
  letter-spacing: -0.015em;
}
.active-stores-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.4rem;
  letter-spacing: -0.015em;
}
.active-stores-panel-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 1.15rem;
  line-height: 1.3;
}
html[dir="rtl"] .active-stores-panel-title,
html[dir="rtl"] .active-stores-panel-subtitle { text-align: right; }

.active-stores-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 4px 2px;
}
.active-store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(12, 110, 164, 0.04) 0%, rgba(2, 132, 199, 0.08) 100%);
  border: 1.5px solid rgba(12, 110, 164, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.65rem 0.75rem 1rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  gap: 0.75rem;
  box-sizing: border-box;
}
html[dir="rtl"] .active-store-card { padding: 0.75rem 1rem 0.75rem 0.65rem; }
.active-store-card:hover {
  border-color: rgba(12, 110, 164, 0.4);
  background: linear-gradient(135deg, rgba(12, 110, 164, 0.08) 0%, rgba(2, 132, 199, 0.14) 100%);
  box-shadow: 0 4px 14px rgba(12, 110, 164, 0.12);
  transform: translateY(-1px);
}
.active-store-card.selected {
  border-color: #0c6ea4;
  background: #e0f2fe;
  box-shadow: 0 0 0 2px rgba(12, 110, 164, 0.25);
}
.active-store-card:active { transform: translateY(0); }
.active-store-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
  text-align: left;
}
html[dir="rtl"] .active-store-content { text-align: right; }
.active-store-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.active-store-domain {
  font-size: 0.78rem;
  color: #64748b;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.active-store-user-email {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.active-store-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.active-store-arrow {
  color: #0c6ea4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.active-store-card:hover .active-store-arrow { transform: translateX(3px); }
html[dir="rtl"] .active-store-arrow svg { transform: rotate(180deg); }
html[dir="rtl"] .active-store-card:hover .active-store-arrow { transform: translateX(-3px); }
.btn-remove-session {
  background: none;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
}
.btn-remove-session:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Target Store Badge */
.target-store-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.target-store-badge.hidden { display: none; }
.btn-clear-target {
  background: none;
  border: none;
  color: #0284c7;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.25s ease;
  padding: 1.25rem;
  box-sizing: border-box;
}
.modal-overlay.hidden { display: none; opacity: 0; }
.store-picker-dialog {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.85rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideUpFade 0.3s ease;
  box-sizing: border-box;
}
.store-picker-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
  text-align: center;
}
.store-picker-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  text-align: center;
}
.store-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 1.25rem;
}
.store-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
html[dir="rtl"] .store-picker-item { text-align: right; }
.store-picker-item:hover {
  border-color: #0c6ea4;
  background: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 110, 164, 0.1);
}
.store-picker-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.store-picker-name { font-size: 0.95rem; font-weight: 600; color: #0f172a; }
.store-picker-domain { font-size: 0.78rem; color: #64748b; font-family: monospace; }
.btn-cancel-modal {
  width: 100%;
  height: 42px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-cancel-modal:hover { background: #e2e8f0; }

/* --------------------------------------------------------------------------
   9. REGISTRATION WIZARD STYLES
   -------------------------------------------------------------------------- */
.register-page-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 3rem;
  position: relative;
}
.register-card {
  background: #ffffff;
  border: 1px solid rgba(12, 110, 164, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(11, 36, 59, 0.08), 0 4px 16px rgba(12, 110, 164, 0.04);
  padding: 2.25rem 2.25rem 2rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  animation: slideUpFade 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.register-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.register-logo img { height: 42px; width: auto; }
.wizard-steps-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1.25rem;
}
.wizard-step-segment {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.step-seg-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.wizard-step-segment.active .step-seg-bar { background: #0c6ea4; }
.wizard-step-segment.completed .step-seg-bar { background: #198754; }
.step-seg-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.3s ease;
}
.wizard-step-segment.active .step-seg-label { color: #0c6ea4; font-weight: 700; }
.wizard-step-segment.completed .step-seg-label { color: #198754; }

.verified-account-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
}
.verified-account-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.verified-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.verified-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0c6ea4;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.verified-email-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #15803d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-switch-account {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background-color 0.15s;
}
.btn-switch-account:hover { color: #dc2626; background: #fee2e2; }

/* --------------------------------------------------------------------------
   10. PRIVACY POLICY & SOLUTIONS DETAIL
   -------------------------------------------------------------------------- */
.policy-header {
  background: linear-gradient(135deg, #0c6ea4 0%, #11243b 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}
.policy-card {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}
.policy-section-title {
  color: #0c6ea4;
  font-weight: 700;
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.policy-badge {
  background-color: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}
.highlight-box {
  background: #f8fafc;
  border-left: 4px solid #0c6ea4;
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin: 1.25rem 0;
}
[dir="rtl"] .highlight-box {
  border-left: none;
  border-right: 4px solid #0c6ea4;
}
.deletion-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin: 1.25rem 0;
}
[dir="rtl"] .deletion-box {
  border-left: 1px solid #fecaca;
  border-right: 4px solid #dc2626;
}
.policy-content p, .policy-content li {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.solution-hero-banner {
  background: radial-gradient(circle at 10% 20%, rgba(12, 110, 164, 0.06) 0%, rgba(248, 250, 252, 1) 90%);
  border-bottom: 1px solid #e2e8f0;
}
.visual-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.06);
  overflow: hidden;
}
.metric-pill-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.module-feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #ffffff;
  padding: 1.5rem;
  transition: all 0.25s ease;
  height: 100%;
}
.module-feature-card:hover {
  border-color: var(--biz-color, #0c6ea4);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.other-solution-chip {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.other-solution-chip:hover {
  border-color: #0c6ea4;
  color: #0c6ea4;
  background: #f0f9ff;
  transform: translateY(-2px);
}
.other-solution-chip.active-chip {
  background: #0c6ea4;
  color: #ffffff;
  border-color: #0c6ea4;
}

/* --------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .handwriting-title {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
    margin-bottom: 0.75rem !important;
  }
  .handwriting-subtitle {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem) !important;
    margin-bottom: 1.5rem !important;
  }
  .transition-card {
    min-height: 42px !important;
    padding: 0.15rem 0.4rem !important;
    border-radius: 10px !important;
  }
  .transition-card img {
    width: 26px !important;
    height: 26px !important;
    padding: 2px !important;
    border-radius: 8px !important;
  }
  .transition-card span, .transition-card h3 {
    font-size: 0.92rem !important;
  }
  .hero-specialized-title {
    font-size: 1.8rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.85rem !important;
  }
  #hero {
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
  }
  .hero-left-col .mt-5 { margin-top: 1.25rem !important; }
  .hero-left-col::after {
    content: "";
    display: block;
    width: 80%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 1.25rem auto 0 auto;
  }
  .hero-left-col + .col-12 { margin-top: 0.75rem !important; }
  .partner-logo-card {
    width: 100px !important;
    height: 60px !important;
    padding: 0.4rem 0.5rem !important;
  }
  .marquee-track { gap: 1rem !important; }
  #hero-apps-container,
  #hero-industry-cards { --bs-gutter-y: 0.5rem; }
}

@media (max-width: 820px) {
  .login-page-wrap,
  .forgot-page-wrap {
    min-height: calc(100vh - 64px);
    padding: 1.5rem 1rem 2rem;
    align-items: center;
  }
  .login-layout-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 420px;
  }
  .active-stores-panel {
    max-width: 100%;
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
  }
  .active-stores-list {
    max-height: 220px;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .login-page-wrap,
  .forgot-page-wrap {
    padding: 1rem 0.85rem 1.5rem;
    min-height: calc(100vh - 60px);
  }
  .login-card,
  .forgot-card {
    padding: 1.65rem 1.25rem 1.5rem;
    border-radius: 18px;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
  }
  .login-card-title {
    font-size: 1.25rem;
    margin-bottom: 1.15rem;
  }
  .login-input-wrap input,
  .forgot-input-wrap input {
    font-size: 16px;
    height: 46px;
    padding: 0 2.5rem;
  }
  .btn-google, .btn-signin, .btn-primary-action {
    height: 46px;
    font-size: 0.92rem;
  }
  .login-footer-links,
  .forgot-footer-links {
    margin-top: 1.25rem;
  }
}
