/* ==============================
   VLG Lab Customer App — Styles
   ============================== */

:root {
  --primary: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1642;
  --accent: #ff6f00;
  --accent-light: #ffa000;
  --success: #2e7d32;
  --error: #c62828;
  --warning: #f57f17;
  --bg: #f0f2f8;
  --surface: #ffffff;
  --surface2: #f8f9ff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26,35,126,0.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --nav-h: 64px;
  --header-h: 56px;
  --gradient: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Outfit', 'Noto Sans Telugu', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
}

/* ---- Google Material Symbols ---- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.icon-xs { font-size: 15px !important; }
.icon-sm { font-size: 18px !important; }
.icon-md { font-size: 22px !important; }
.icon-lg { font-size: 26px !important; }
.icon-xl { font-size: 34px !important; }
.icon-2xl { font-size: 48px !important; }
.nav-symbol { font-size: 24px !important; }

/* ---- Splash ---- */
.splash {
  position: fixed; inset: 0; z-index: 999;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease;
}
.splash.fade-out { opacity: 0; pointer-events: none; }
.splash-content { text-align: center; color: #fff; padding: 24px; }
.splash-logo { font-size: 80px; animation: float 2s ease-in-out infinite; }
.splash-title { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-top: 12px; }
.splash-sub { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.splash-tagline { font-size: 12px; opacity: 0.7; margin-top: 8px; max-width: 260px; }
.splash-loader { margin-top: 40px; background: rgba(255,255,255,0.2); height: 3px; border-radius: 4px; overflow: hidden; }
.loader-bar { height: 100%; width: 0; background: #fff; animation: load 1.5s ease forwards; border-radius: 4px; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes load { to { width: 100% } }

/* ---- App ---- */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ---- Header ---- */
.top-nav {
  height: var(--header-h);
  background: var(--gradient);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(26,35,126,0.3);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; }
.nav-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 18px; font-weight: 700; }
.brand-icon { font-size: 22px; }
.icon-btn {
  width: 36px; height: 36px; border: none; background: rgba(255,255,255,0.15);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.25); }
.icon-btn svg { width: 18px; fill: #fff; }
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: #fff; font-size: 9px;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---- Pages ---- */
#pages { flex: 1; overflow: hidden; position: relative; }
.page {
  position: absolute; inset: 0; overflow-y: auto;
  background: var(--bg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform: translateX(100%); opacity: 0;
}
.page.active { transform: translateX(0); opacity: 1; }
.page-inner { padding: 16px; padding-bottom: 80px; }

/* ---- Auth Page ---- */
#page-auth { overflow-y: auto; }
.auth-hero {
  position: relative; padding: 60px 24px 80px;
  text-align: center; overflow: hidden;
}
.auth-hero-bg {
  position: absolute; inset: 0;
  background: var(--gradient);
  clip-path: ellipse(100% 85% at 50% 0);
}
.hero-content { position: relative; color: #fff; }
.hero-logo { font-size: 70px; animation: float 3s ease-in-out infinite; }
.hero-content h1 { font-size: 32px; font-weight: 800; margin-top: 8px; }
.hero-content p { font-size: 13px; opacity: 0.85; margin-top: 4px; }
.hero-tagline { font-size: 12px; opacity: 0.7; margin-top: 6px; max-width: 260px; margin-left: auto; margin-right: auto; }

.auth-card {
  background: var(--surface); border-radius: 24px 24px 0 0;
  margin-top: -24px; padding: 24px; min-height: 60vh;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  position: relative;
}
.tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tab {
  flex: 1; padding: 10px; border: none; background: none; border-radius: 10px;
  font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text-muted);
  transition: all 0.2s;
}
.tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--text);
  background: var(--surface2); transition: border 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(57,73,171,0.1);
}
.input-wrap { position: relative; }
.input-wrap input { width: 100%; padding-right: 48px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  border: none; background: none; cursor: pointer; font-size: 16px;
}
.btn-primary {
  padding: 14px 24px; background: var(--gradient); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 16px;
  font-weight: 700; cursor: pointer; letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(26,35,126,0.3);
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,35,126,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary-sm {
  padding: 8px 16px; background: var(--gradient); color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.btn-full { width: 100%; }
.btn-outline {
  padding: 12px 20px; border: 2px solid var(--primary); color: var(--primary);
  background: none; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-text { border: none; background: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }

.shop-note { margin-top: 20px; padding: 14px; background: var(--surface2); border-radius: var(--radius-sm); font-size: 13px; text-align: center; color: var(--text-muted); line-height: 1.6; }
.shop-note a { color: var(--primary); text-decoration: none; }

/* ---- Home Page ---- */
.home-header { padding: 16px; background: var(--gradient); color: #fff; padding-bottom: 4px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.welcome-text { font-size: 18px; font-weight: 800; }
.shop-location-sub { font-size: 11px; opacity: 0.8; margin-top: 2px; }
.shop-rating-badge {
  background: rgba(255,255,255,0.18); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700;
  border: 1px solid rgba(255,255,255,0.25); white-space: nowrap;
}

.shop-status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; color: #34d399;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 8px #10b981; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.18); border-radius: 12px;
  padding: 10px 14px; margin-bottom: 12px;
  backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}
.search-bar:focus-within { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.5); }
.search-bar svg { width: 18px; fill: rgba(255,255,255,0.85); flex-shrink: 0; }
.search-bar input { border: none; background: none; color: #fff; font-size: 14px; flex: 1; outline: none; font-family: inherit; }
.search-bar input::placeholder { color: rgba(255,255,255,0.7); }

/* ---- Promo Highlights Carousel ---- */
.promo-carousel {
  display: flex; gap: 12px; padding: 14px 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.promo-carousel::-webkit-scrollbar { display: none; }
.promo-card {
  flex: 0 0 260px; scroll-snap-align: start;
  border-radius: 16px; padding: 16px; color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08); transition: transform 0.2s;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 120px;
}
.promo-card:hover { transform: translateY(-2px); }
.promo-1 { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%); }
.promo-2 { background: linear-gradient(135deg, #701a75 0%, #86198f 60%, #a21caf 100%); }
.promo-3 { background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%); }
.promo-badge {
  display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,0.2);
  margin-bottom: 6px; align-self: flex-start;
}
.promo-card h3 { font-size: 14px; font-weight: 800; line-height: 1.25; margin-bottom: 4px; }
.promo-card p { font-size: 11px; opacity: 0.85; line-height: 1.3; }
.promo-action { font-size: 11px; font-weight: 700; color: #fde047; margin-top: 8px; }

/* ---- Section Title Bar ---- */
.section-label-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 4px;
}
.section-label-title { font-size: 15px; font-weight: 800; color: var(--text); }
.section-label-tag { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.category-chips {
  display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto;
  scrollbar-width: none;
}
.category-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  border: 1.5px solid var(--border); color: var(--text-muted);
  font-size: 12px; font-weight: 600; cursor: pointer; background: var(--surface);
  transition: all 0.2s; white-space: nowrap; font-family: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.chip:hover { border-color: var(--primary-light); color: var(--primary); }
.chip.active { background: var(--gradient); color: #fff; border-color: transparent; box-shadow: 0 2px 8px rgba(26,35,126,0.3); }

/* ---- Services Grid ---- */
.services-grid { padding: 12px 16px 90px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.service-card {
  background: var(--surface); border-radius: 18px;
  overflow: hidden; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1.5px solid var(--border); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,35,126,0.12); border-color: rgba(57,73,171,0.4); }
.service-card-img {
  height: 96px; position: relative; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e2e8f0 100%);
}
.service-card-icon { font-size: 44px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.service-card-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(26,35,126,0.85); color: #fff; font-size: 9px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px; letter-spacing: 0.3px;
  backdrop-filter: blur(4px);
}
.service-card-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.service-card-name { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.25; }
.service-card-subname { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.service-card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; }
.service-card-price { font-size: 13px; color: var(--primary); font-weight: 800; }
.service-card-unit { font-size: 10px; color: var(--text-muted); }
.service-card-action {
  display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 700;
  color: var(--primary-light); background: rgba(57,73,171,0.08); padding: 4px 8px; border-radius: 6px;
}
.service-card-action svg { width: 12px; height: 12px; fill: currentColor; }

.fab-badge {
  position: absolute; top: -3px; right: -3px;
  background: var(--error); color: #fff; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ---- Service Detail ---- */
.service-hero { padding: 32px 24px; text-align: center; background: var(--gradient); color: #fff; }
.service-hero-icon { font-size: 72px; }
.service-hero h2 { font-size: 24px; font-weight: 800; margin-top: 12px; }
.service-hero p { font-size: 14px; opacity: 0.8; margin-top: 6px; }
.service-price-tag { margin-top: 12px; display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 16px; border-radius: 20px; font-size: 18px; font-weight: 700; }

.service-body {
  padding: 20px;
  padding-bottom: 120px;
}

/* Sticky Bottom Action Bar for Service Detail */
.service-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 150;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.service-bottom-price-box {
  display: flex;
  flex-direction: column;
}

.service-bottom-price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.service-bottom-price-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.service-bottom-submit-btn {
  flex: 1;
  max-width: 240px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.option-section { margin-bottom: 20px; }
.option-section h4 { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.option-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
  padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  font-size: 13px; cursor: pointer; background: var(--surface2);
  transition: all 0.2s; font-family: inherit; color: var(--text);
}
.option-chip.selected { border-color: var(--primary); background: #eef0ff; color: var(--primary); font-weight: 600; }

.size-inputs { display: flex; gap: 12px; align-items: center; }
.size-inputs input { flex: 1; padding: 10px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; outline: none; }
.size-inputs input:focus { border-color: var(--primary-light); }
.qty-input-wrap { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--bg); font-size: 22px; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.qty-btn:hover { background: #e8ecff; }
.qty-display { font-size: 20px; font-weight: 700; width: 40px; text-align: center; }

.price-calc { background: var(--surface2); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.price-calc-label { font-size: 12px; color: var(--text-muted); }
.price-calc-val { font-size: 28px; font-weight: 800; color: var(--primary); margin-top: 4px; }

.file-upload-area {
  border: 2px dashed var(--primary-light); border-radius: var(--radius-sm);
  padding: 24px; text-align: center; cursor: pointer; transition: background 0.2s;
}
.file-upload-area:hover { background: #f0f4ff; }
.file-upload-area p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* ---- Order Items ---- */
.order-item-card { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; border: 1px solid var(--border); }
.order-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.order-item-name { font-weight: 700; font-size: 15px; }
.remove-btn { color: var(--error); border: none; background: none; font-size: 18px; cursor: pointer; }

/* ---- Price Summary ---- */
.price-summary { background: var(--surface2); border-radius: var(--radius-sm); padding: 16px; }
.price-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.price-row.total { border-top: 1.5px solid var(--border); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 800; color: var(--primary); }

/* ---- Order Card ---- */
.order-card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer; transition: transform 0.2s; }
.order-card:hover { transform: translateY(-1px); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.order-no { font-size: 15px; font-weight: 800; color: var(--primary); }
.order-date { font-size: 12px; color: var(--text-muted); }

/* ---- Status Badge ---- */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.status-received { background: #e3f2fd; color: #1565c0; }
.status-design { background: #f3e5f5; color: #7b1fa2; }
.status-printing { background: #e8f5e9; color: #2e7d32; }
.status-finishing { background: #fff8e1; color: #f57f17; }
.status-ready { background: #e8f5e9; color: #1b5e20; }
.status-delivered { background: #e0e0e0; color: #424242; }
.status-cancelled { background: #ffebee; color: #c62828; }

/* ---- Tracking ---- */
.tracking-steps { padding: 20px 16px; }
.step { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.step.done:not(:last-child)::after { background: var(--success); }
.step-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 1; }
.step.done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(26,35,126,0.2); }
.step-info h4 { font-size: 15px; font-weight: 600; }
.step-info p { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ---- Proof Approval ---- */
.proof-section { background: var(--surface2); border-radius: var(--radius); padding: 16px; margin: 16px 0; border: 2px solid var(--accent); }
.proof-section h4 { color: var(--accent); font-size: 15px; margin-bottom: 10px; }
.proof-img { width: 100%; border-radius: 8px; border: 1px solid var(--border); }
.proof-actions { display: flex; gap: 10px; margin-top: 12px; }

/* ---- Profile ---- */
.profile-header { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--gradient); border-radius: var(--radius); color: #fff; margin-bottom: 16px; }
.avatar { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.profile-header h2 { font-size: 20px; font-weight: 800; }
.profile-header p { font-size: 14px; opacity: 0.8; }

.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--surface); border-radius: var(--radius-sm); padding: 16px; text-align: center; border: 1px solid var(--border); }
.stat-val { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.menu-list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; font-size: 15px; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: var(--surface2); }

/* ---- Notification ---- */
.notif-item { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); }
.notif-item.read { border-color: var(--border); opacity: 0.7; }
.notif-title { font-size: 14px; font-weight: 700; }
.notif-body { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ---- Shop Info ---- */
.shop-card { background: var(--surface); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.shop-logo { font-size: 60px; margin-bottom: 12px; }
.shop-card h3 { font-size: 18px; font-weight: 800; color: var(--primary); line-height: 1.3; }
.tagline { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-style: italic; }
.shop-divider { height: 1px; background: var(--border); margin: 20px 0; }
.contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; text-align: left; }
.contact-item span { font-size: 22px; flex-shrink: 0; }
.contact-item p { font-size: 14px; line-height: 1.5; }
.contact-item.link { text-decoration: none; color: var(--text); }
.contact-item.link p { color: var(--primary); font-weight: 600; }
.hours { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.shop-actions { display: flex; gap: 10px; margin-top: 20px; flex-direction: column; }
.btn-whatsapp { padding: 14px; background: #25d366; color: #fff; border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; text-decoration: none; display: block; cursor: pointer; }

/* ---- Bottom Nav ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; align-items: center; z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border: none; background: none; cursor: pointer; padding: 8px 4px;
  color: var(--text-muted); transition: color 0.2s; font-family: inherit;
}
.nav-item svg { width: 22px; fill: currentColor; }
.nav-item span { font-size: 10px; font-weight: 600; }
.nav-item.active { color: var(--primary); }
.nav-item.order-fab { flex: 0 0 70px; }
.fab-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(26,35,126,0.4);
  margin-top: -20px; transition: transform 0.2s;
}
.fab-circle:hover { transform: scale(1.05); }
.fab-circle svg { width: 24px; fill: #fff; }

/* ---- Toast ---- */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #333; color: #fff; padding: 12px 24px; border-radius: 24px;
  font-size: 14px; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; white-space: nowrap;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px; max-height: 85vh;
  padding: 24px; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.3s;
}
.modal-overlay.show .modal { transform: translateY(0); }

/* ---- Khata ---- */
.khata-balance { background: var(--gradient); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; margin-bottom: 16px; }
.khata-balance .amount { font-size: 40px; font-weight: 800; }
.khata-balance .label { font-size: 14px; opacity: 0.8; }

/* ---- Utilities ---- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.section-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.page-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-header-row .section-title { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.select-input { padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; background: var(--surface2); font-family: inherit; }
.input-field { padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; background: var(--surface2); font-family: inherit; width: 100%; }
textarea { resize: vertical; }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; padding: 12px; background: var(--surface2); border-radius: var(--radius-sm); border: 1.5px solid var(--border); }
.radio-label input { accent-color: var(--primary); }

/* Loading skeleton */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Buttons ---- */
.btn-primary {
  background: var(--gradient); color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(26,35,126,0.3); transition: transform 0.15s, box-shadow 0.15s; font-family: inherit;
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  background: transparent; color: var(--primary); border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm); padding: 12px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: all 0.2s; font-family: inherit;
}
.btn-outline:hover { background: rgba(26,35,126,0.06); }

.btn-text {
  background: none; border: none; color: var(--primary); font-weight: 600;
  font-size: 14px; cursor: pointer; padding: 8px 12px; font-family: inherit;
}

.btn-full { width: 100%; box-sizing: border-box; }

.btn-whatsapp {
  background: #25d366; color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}

.btn-primary-sm {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}

