﻿/* =========================================================================
   MANIBHADRA GOLD & AASHI ORNAMENT — Customer & Staff Web System
   Central Color Theme loaded from theme.css (#5C6859 - else all, #FDEAEA - main bg)
   ========================================================================= */

@import url('theme.css');

/* --- Central Design System Tokens (Inherits from theme.css) ---------------- */
:root {
  /* Brand Core Colors (#5C6859 - else all) */
  --primary:           #5C6859;
  --primary-hover:     #4d584a;
  --primary-dark:      #3d473b;
  --primary-darker:    #2d352b;
  --primary-light:     #788674;
  --primary-subtle:    rgba(92, 104, 89, 0.08);
  --primary-muted:     rgba(92, 104, 89, 0.14);
  --primary-border:    rgba(92, 104, 89, 0.22);
  --primary-border2:   rgba(92, 104, 89, 0.42);
  --primary-glow:      rgba(92, 104, 89, 0.20);
  --primary-glow-lg:   rgba(92, 104, 89, 0.35);

  --secondary:         #82917f;
  --secondary-hover:   #71806e;
  --secondary-light:   #f6ecec;
  --secondary-dark:    #475244;
  --secondary-subtle:  rgba(92, 104, 89, 0.15);
  --secondary-border:  rgba(92, 104, 89, 0.35);

  /* Gradients */
  --primary-gradient:        linear-gradient(135deg, #5C6859 0%, #3d473b 100%);
  --secondary-gradient:      linear-gradient(135deg, #82917f 0%, #5C6859 100%);
  --brand-gradient:          linear-gradient(135deg, #5C6859 0%, #788674 100%);
  --brand-gradient-subtle:   linear-gradient(135deg, rgba(92, 104, 89, 0.08) 0%, rgba(253, 234, 234, 0.45) 100%);
  --header-gradient:         linear-gradient(135deg, #5C6859 0%, #3d473b 100%);
  --card-gradient:           linear-gradient(180deg, #ffffff 0%, #fdf7f7 100%);

  /* Neutrals & Text */
  --text:              #232822;
  --text-dark:         #1a2019;
  --text-sm:           #424c40;
  --text-dim:          #5b6658;
  --text-muted:        #6a7567;
  --text-placeholder:  #949e92;
  --text-inverse:      #ffffff;

  /* Surfaces & Backgrounds (#FDEAEA - main bg color) */
  --bg:                #FDEAEA;
  --bg-2:              #fae0e0;
  --bg-sand:           #FDEAEA;
  --bg-card:           #ffffff;
  --bg-card-2:         #fff8f8;
  --bg-glass:          rgba(255, 255, 255, 0.94);
  --bg-glass-2:        rgba(253, 234, 234, 0.96);
  --cream:             #FDEAEA;

  /* Legacy Compatibility Aliases */
  --gold:              var(--primary);
  --gold-light:        var(--secondary);
  --gold-dark:         var(--primary-dark);
  --gold-vivid:        var(--primary);
  --gold-border:       var(--primary-border);
  --gold-border2:      var(--primary-border2);
  --gold-glow:         var(--primary-glow);
  --gold-glow2:        var(--primary-glow-lg);
  --champagne:         var(--secondary);
  --portal-bg:         var(--bg);
  --portal-card-bg:    var(--bg-card);
  --portal-btn:        var(--primary);
  --portal-btn-hover:  var(--primary-hover);
  --portal-gold:       var(--primary);
  --portal-gold-light: var(--secondary);
  --portal-text:       var(--text);
  --portal-border:     var(--primary-border);
  --theme-color:       var(--primary);
  --theme-dark:        var(--primary-dark);
  --theme-light:       var(--secondary);
  --btn-dark:          var(--primary);
  --btn-dark-hover:    var(--primary-hover);
  --dark:              var(--text);

  /* Status Colors */
  --success:           #16a34a;
  --success-bg:        #f0fdf4;
  --success-border:    #bbf7d0;
  --warning:           #d97706;
  --warning-bg:        #fffbeb;
  --warning-border:    #fde68a;
  --danger:            #dc2626;
  --danger-bg:         #fef2f2;
  --danger-border:     #fecaca;
  --info:              #0284c7;
  --info-bg:           #f0f9ff;
  --info-border:       #bae6fd;

  /* Radii */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(37, 32, 42, 0.05);
  --shadow-sm:   0 2px 8px rgba(92, 104, 89, 0.08);
  --shadow:      0 4px 20px rgba(92, 104, 89, 0.1);
  --shadow-md:   0 8px 28px rgba(92, 104, 89, 0.14);
  --shadow-lg:   0 16px 44px rgba(92, 104, 89, 0.18);
  --shadow-card: 0 4px 20px rgba(37, 32, 42, 0.05), 0 0 0 1px rgba(92, 104, 89, 0.16);
  --shadow-gold: 0 0 28px rgba(92, 104, 89, 0.28);
  --shadow-glow: 0 0 24px rgba(92, 104, 89, 0.35);

  /* Transitions */
  --tr-fast: 0.15s ease;
  --tr:      0.22s ease;
  --tr2:     0.32s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-nav:     'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-btn:     'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-number:  'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Reset & Base (Mobile-First) ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body, input, select, textarea, button, table, .badge, .form-control, .order-code, .stat-value, .detail-value {
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--tr), opacity var(--tr);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.85rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.45rem); }
h4 { font-size: clamp(0.98rem, 2vw, 1.2rem); }

p {
  color: var(--text-sm);
  line-height: 1.65;
}

/* --- Keyframes ------------------------------------------------------------ */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes shimmer  { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(92, 104, 89, 0.2); }
  50%      { box-shadow: 0 0 28px rgba(92, 104, 89, 0.5); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

/* --- Scrollbar ------------------------------------------------------------ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(92, 104, 89, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Layout Containers ---------------------------------------------------- */
.page-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(14px, 2.5vw, 24px);
  flex: 1;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- Buttons (Touch-Friendly & Modern) ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 44px; /* Touch friendly */
  border-radius: var(--radius-sm);
  font-family: var(--font-btn);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--tr2);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}

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

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 18px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b043ad 0%, #3d473b 100%) !important;
  box-shadow: 0 6px 24px var(--primary-glow-lg) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  border: 1.5px solid var(--primary);
  color: var(--primary-dark) !important;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--secondary-light) !important;
  border-color: var(--primary) !important;
  color: var(--primary-darker) !important;
  box-shadow: 0 4px 16px var(--primary-glow) !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--primary-border);
  color: var(--text-sm);
}

.btn-ghost:hover {
  background: var(--primary-subtle) !important;
  border-color: var(--primary) !important;
  color: var(--primary-dark) !important;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
}

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

.btn-danger {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger) !important;
}

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

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

.btn-success:hover {
  background: var(--success) !important;
  color: #ffffff !important;
  border-color: var(--success) !important;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.42);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning) !important;
}

.btn-warning:hover {
  background: var(--warning) !important;
  color: #ffffff !important;
}

.btn-sm {
  padding: 6px 14px;
  min-height: 36px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}

.btn-lg {
  padding: 14px 28px;
  min-height: 50px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-full {
  width: 100%;
}

/* --- Form Controls (Mobile Optimized) ------------------------------------- */
.form-group {
  margin-bottom: 18px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media(min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

label .req {
  color: var(--danger);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(92, 104, 89, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px prevents iOS automatic zoom on tap */
  min-height: 46px;
  transition: all var(--tr);
  outline: none;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: var(--text-placeholder);
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(92, 104, 89, 0.22);
}

.form-control:hover:not(:focus) {
  border-color: rgba(92, 104, 89, 0.45);
}

textarea.form-control {
  resize: vertical;
  min-height: 96px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6859' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #ffffff;
  padding-right: 40px;
  cursor: pointer;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 5px;
}

/* --- Alerts & Notifications ---------------------------------------------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 18px;
  animation: fadeDown 0.25s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.alert-success { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.alert-error   { background: var(--danger-bg);  border: 1px solid var(--danger-border);  color: var(--danger); }
.alert-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.alert-info    { background: var(--info-bg);    border: 1px solid var(--info-border);    color: var(--info); }

/* --- Badges & Pills ------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-btn);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary, .badge-gold {
  background: var(--primary-muted);
  border: 1px solid var(--primary-border2);
  color: var(--primary-dark);
}

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

.badge-green, .badge-active   { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.badge-red, .badge-rose       { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.badge-pending, .badge-yellow { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.badge-blue                   { background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info); }
.badge-inactive               { background: var(--bg-2); border: 1px solid rgba(37, 32, 42, 0.12); color: var(--text-dim); }

/* --- Site Header (Jewel Theme) -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(14px, 3vw, 28px);
  background: var(--header-gradient);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(110, 20, 108, 0.25);
  color: #ffffff;
}

.site-header a {
  color: #ffffff;
}

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

.header-brand-logo {
  max-height: 48px;
  height: 48px;
  width: auto;
  object-fit: contain;
}

.header-brand-logo-aashi {
  max-height: 38px;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.site-header .btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.site-header .btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

/* --- Site Footer ---------------------------------------------------------- */
.site-footer {
  background: var(--text);
  border-top: 1px solid var(--primary-border);
  padding: 24px 20px;
  text-align: center;
  margin-top: auto;
}

.site-footer p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.site-footer a {
  color: var(--secondary);
}

/* =========================================================================
   LOGIN & AUTH PAGE — Responsive Dual Panel Layout & Mobile Excellence
   ========================================================================= */
.login-wrapper {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 36px) clamp(12px, 3vw, 24px);
  background: radial-gradient(circle at 15% 15%, rgba(253, 234, 234, 0.95) 0%, rgba(92, 104, 89, 0.12) 40%, var(--bg) 100%);
  position: relative;
  overflow-x: hidden;
}

.login-card {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(92, 104, 89, 0.20), 0 0 0 1px rgba(92, 104, 89, 0.18);
  animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  z-index: 2;
}

.login-form-panel {
  background: #ffffff;
  padding: clamp(20px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-info-panel {
  background: linear-gradient(160deg, rgba(253, 234, 234, 0.85) 0%, rgba(92, 104, 89, 0.10) 100%);
  padding: clamp(20px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media(min-width: 860px) {
  .login-card {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .login-form-panel {
    border-right: 1px solid rgba(92, 104, 89, 0.18);
  }
}

/* Brand Emblem Header */
.login-brand-header {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.brand-pill-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(92, 104, 89, 0.22);
  box-shadow: 0 4px 18px rgba(92, 104, 89, 0.10);
}
.brand-pill-container .logo-mb {
  height: 42px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}
.brand-pill-container .brand-v-divider {
  width: 1.5px;
  height: 26px;
  background: linear-gradient(180deg, rgba(92, 104, 89, 0.2), rgba(92, 104, 89, 0.6), rgba(92, 104, 89, 0.2));
}
.brand-pill-container .logo-aashi {
  height: 33px;
  max-width: 120px;
  width: auto;
  object-fit: contain;
}

/* Heading */
.login-heading-wrap {
  text-align: center;
  margin-bottom: 16px;
}
.login-main-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
  letter-spacing: -0.01em;
}
.login-main-sub {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

/* Form Controls with Icon Wrappers */
.login-field-group {
  margin-bottom: 14px;
}
.login-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.field-prefix-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.login-input-control {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  font-size: 1rem;
  color: var(--text);
  background: #ffffff;
  border: 1.5px solid rgba(92, 104, 89, 0.25);
  border-radius: 12px;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.login-input-control:focus {
  background: #ffffff;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(92, 104, 89, 0.18);
}
.login-input-control.has-toggle {
  padding-right: 44px;
}
.pwd-toggle-action {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease;
  z-index: 2;
}
.pwd-toggle-action:hover {
  color: var(--primary);
}

/* Identified User Chip */
.identified-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(92, 104, 89, 0.08) 100%);
  border: 1.5px solid rgba(39, 174, 96, 0.35);
  border-radius: 10px;
  padding: 7px 12px;
  margin-top: 8px;
  animation: fadeIn 0.25s ease;
}
@keyframes pulseGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}
.pulse-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25);
  flex-shrink: 0;
  animation: pulseGlow 1.8s infinite;
}
.identified-info-text {
  flex: 1;
  min-width: 0;
}
.identified-sub {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.identified-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}
.identified-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identified-role-badge {
  font-size: 0.64rem;
  padding: 2px 7px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

/* Submit Button */
.login-btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #5C6859 0%, #3d473b 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-btn);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 6px 20px rgba(92, 104, 89, 0.32);
  transition: all 0.2s ease;
}
.login-btn-submit:hover {
  background: linear-gradient(135deg, #4d584a 0%, #2d352b 100%);
  box-shadow: 0 8px 26px rgba(92, 104, 89, 0.42);
  transform: translateY(-1px);
}
.login-btn-submit:active {
  transform: scale(0.985);
}

/* Company Panel Cards */
.company-section-header {
  margin-bottom: 12px;
}
.co-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}
.co-main-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.login-info-brand-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.login-company-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(92, 104, 89, 0.22);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(92, 104, 89, 0.06);
  transition: all 0.2s ease;
}
.login-company-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(92, 104, 89, 0.16);
  transform: translateY(-1px);
}
.co-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}
.co-card-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.co-karat-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(92, 104, 89, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(92, 104, 89, 0.25);
  white-space: nowrap;
}
.co-card-tag {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.25;
}
.co-card-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  text-decoration: none;
  background: rgba(92, 104, 89, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(92, 104, 89, 0.15);
  transition: all 0.15s ease;
}
.contact-link:hover {
  background: var(--primary);
  color: #ffffff;
}
.login-address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(92, 104, 89, 0.18);
  padding-top: 10px;
  line-height: 1.35;
}
.login-address-bar .addr-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* Mobile specific polish */
@media(max-width: 859px) {
  .login-wrapper {
    padding: 10px 12px;
  }
  .login-card {
    border-radius: 20px;
    max-width: 460px;
    box-shadow: 0 12px 36px rgba(92, 104, 89, 0.16), 0 0 0 1px rgba(92, 104, 89, 0.15);
  }
  .login-form-panel {
    padding: 18px 16px 14px;
  }
  .login-info-panel {
    padding: 14px 16px;
    border-top: 1.5px solid rgba(92, 104, 89, 0.14);
  }
  .login-brand-header {
    margin-bottom: 12px;
  }
  .brand-pill-container {
    padding: 6px 14px;
    gap: 10px;
  }
  .brand-pill-container .logo-mb {
    height: 38px;
    max-width: 125px;
  }
  .brand-pill-container .logo-aashi {
    height: 30px;
    max-width: 105px;
  }
  .login-main-title {
    font-size: 1.2rem;
  }
  .login-main-sub {
    font-size: 0.78rem;
  }
  .login-input-control {
    height: 44px;
    font-size: 0.94rem;
  }
  .login-btn-submit {
    height: 46px;
    font-size: 0.92rem;
  }
  .login-info-brand-grid {
    gap: 8px;
    margin-bottom: 10px;
  }
  .login-company-card {
    padding: 10px 12px;
    border-radius: 12px;
  }
  .co-card-title {
    font-size: 0.88rem;
  }
  .co-card-tag {
    font-size: 0.71rem;
    margin-bottom: 5px;
  }
  .contact-link {
    font-size: 0.72rem;
    padding: 2px 7px;
  }
  .login-address-bar {
    font-size: 0.69rem;
    padding-top: 8px;
  }
}

@media(max-width: 380px) {
  .login-wrapper {
    padding: 6px 8px;
  }
  .login-form-panel {
    padding: 14px 12px 12px;
  }
  .login-info-panel {
    padding: 12px 12px;
  }
  .brand-pill-container .logo-mb {
    height: 34px;
    max-width: 110px;
  }
  .brand-pill-container .logo-aashi {
    height: 26px;
    max-width: 90px;
  }
  .brand-pill-container {
    padding: 5px 10px;
    gap: 8px;
  }
}

/* =========================================================================
   CATALOGUE & FOLDERS
   ========================================================================= */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 40vw, 200px), 1fr));
  gap: clamp(12px, 2.5vw, 20px);
}

.folder-card {
  background: #ffffff;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 26px) 16px;
  text-align: center;
  text-decoration: none;
  transition: all var(--tr2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.folder-card:hover {
  border-color: var(--primary);
  background: var(--card-gradient);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.folder-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-muted);
  border: 1.5px solid var(--primary-border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: all var(--tr);
}

.folder-card:hover .folder-icon {
  background: var(--secondary-light);
  transform: scale(1.08);
  box-shadow: 0 0 16px var(--primary-glow);
}

.folder-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.folder-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* --- Image Grid (Fluid Responsive) ---------------------------------------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 35vw, 190px), 1fr));
  gap: clamp(10px, 2vw, 18px);
}

.image-item {
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  transition: all var(--tr2);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.image-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.image-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 8px 24px var(--primary-glow);
}

.image-item-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: #ffffff;
  position: relative;
  padding: 12px 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.image-item:hover img {
  transform: scale(1.04);
}

.image-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #ffffff;
  border: 1.8px solid var(--primary-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  transition: all 0.15s ease;
  z-index: 5;
}

.image-item.selected .image-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.image-item-info {
  padding: 8px 12px 12px;
  background: #ffffff;
}

.image-item-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Floating Bottom Action / Cart Bar (Mobile Optimized) ----------------- */
.cart-bar {
  position: fixed;
  bottom: clamp(14px, 3vw, 24px);
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  width: calc(100% - 28px);
  max-width: 580px;
  background: rgba(37, 32, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(253, 234, 234, 0.3);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--primary-border);
  z-index: 300;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #ffffff;
}

.cart-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cart-count-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.count-bubble {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* =========================================================================
   RESPONSIVE TABLES (Touch & Mobile Friendly)
   ========================================================================= */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
  background: #ffffff;
}

.orders-table, .admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.orders-table th, .admin-table th {
  padding: 12px 14px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg-2);
  border-bottom: 1px solid var(--primary-border);
  white-space: nowrap;
}

.orders-table td, .admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(92, 104, 89, 0.1);
  color: var(--text);
  vertical-align: middle;
}

.orders-table tbody tr:hover, .admin-table tbody tr:hover {
  background: var(--primary-subtle);
}

/* =========================================================================
   MODAL / LIGHTBOX
   ========================================================================= */
.modal-backdrop, .lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(37, 32, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
}

.modal-backdrop.show, .lightbox.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--primary-border2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 60px var(--primary-glow);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
}

.modal-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--primary-border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg);
}

/* =========================================================================
   PWA INSTALL BANNER
   ========================================================================= */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  z-index: 9999;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.3s ease;
}

.pwa-install-banner.show {
  display: flex;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--bg);
  padding: 4px;
  border: 1px solid var(--primary-border);
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.pwa-banner-desc {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================================
   GLOBAL MOBILE-FIRST REFINEMENTS (Compact, clean, responsive)
   ========================================================================= */
@media (max-width: 680px) {
  html, body {
    overflow-x: hidden;
  }
  .page-container {
    padding: 12px 10px 40px;
  }
  .site-header {
    padding: 8px 12px;
  }
  .header-brand-logo {
    max-height: 40px;
    height: 40px;
  }
  .header-brand-logo-aashi {
    max-height: 32px;
    height: 32px;
  }
  .btn {
    padding: 8px 14px;
    font-size: 0.84rem;
  }
  .btn-sm {
    padding: 5px 10px;
    font-size: 0.74rem;
  }
  .form-control {
    font-size: 0.88rem;
    padding: 8px 12px;
  }
}