/* ==========================================================
   صيدلية القطن | Cottanpharmacy — COMPLETE GLOBAL STYLES
   ========================================================== */
:root, html[data-theme="light"] {
  color-scheme: light;
  --ink: #1F2937;
  --text-soft: #6B7280;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --surface: #FFF0F3;
  --surface-hover: #FFE4EA;
  --line: #FFE4E8;
  --rose: #FFB7C5;
  --rose-deep: #E85D8A;
  --accent: #E85D8A;
  --accent-dark: #C7436E;
  --on-accent: #FFFFFF;
  --gold: #F2B807;
  --green: #16A34A;
  --red: #DC2626;
  --blue: #2563EB;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 26px rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

html, body, header, .view, .wrap, main, #app {
  background-color: #FFFFFF;
}

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cairo', sans-serif;
  line-height: 1.6;
  padding-bottom: 84px;
  min-height: 100vh;
}

.mono { 
  font-family: 'IBM Plex Mono', monospace; 
}

a { 
  color: inherit; 
  text-decoration: none; 
}

button { 
  font-family: inherit; 
  cursor: pointer; 
  border: none; 
  background: none; 
  color: inherit; 
}

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

svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.wrap { 
  max-width: 540px; 
  margin: 0 auto; 
  padding: 0 16px; 
}

@media (min-width: 768px) { 
  .wrap { max-width: 820px; } 
}

@media (min-width: 1024px) { 
  .wrap { max-width: 1100px; } 
}

/* ==========================================================
   STICKY ADMIN BAR
   ========================================================== */
.admin-sticky-bar {
  background: #111827;
  color: #FBBF24;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid #374151;
}

.admin-bar-btn {
  background: #F59E0B;
  color: #111827;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s;
  display: inline-block;
}

.admin-bar-btn:hover { 
  transform: scale(1.04); 
}

/* ==========================================================
   ANNOUNCEMENT BAR
   ========================================================== */
.announcement-bar {
  background: var(--surface);
  color: var(--rose-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  transition: all .2s;
}

/* ==========================================================
   HEADER & NAVIGATION
   ========================================================== */
header { 
  position: sticky; 
  top: 0; 
  z-index: 40; 
  background: #fff; 
  border-bottom: 1px solid var(--line); 
}

.nav { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 10px 0; 
  gap: 8px; 
}

.icon-btn { 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--ink); 
  flex-shrink: 0; 
  position: relative; 
  transition: background .2s; 
}

.icon-btn:active { 
  background: var(--surface); 
}

.logo-block { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  cursor: pointer; 
}

.logo-text { 
  font-weight: 900; 
  font-size: 19px; 
  color: var(--rose-deep); 
  letter-spacing: -0.5px; 
}

.logo-mark { 
  width: 34px; 
  height: 34px; 
  border-radius: 50%; 
  background: var(--surface); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border: 1px solid var(--line); 
}

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

.badge-count { 
  position: absolute; 
  top: -1px; 
  left: -1px; 
  background: var(--accent); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 800; 
  min-width: 17px; 
  height: 17px; 
  border-radius: 999px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 0 4px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
}

.user-header-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  transition: all .2s;
}

.user-header-chip:hover { 
  border-color: var(--rose); 
}

.user-chip-main { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  cursor: pointer; 
}

.user-chip-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-chip-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.user-chip-avatar svg { 
  width: 16px !important; 
  height: 16px !important; 
  max-width: 16px;
  max-height: 16px;
  color: var(--accent); 
}

.user-chip-name { 
  font-size: 11.5px; 
  font-weight: 800; 
  color: var(--ink); 
  max-width: 70px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.user-chip-logout-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FEE2E2;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid #FECACA;
}

.search-wrap { 
  padding: 6px 0 10px; 
}

.search-bar { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  background: #fff; 
  border: 1.5px solid var(--line); 
  border-radius: 999px; 
  padding: 10px 16px; 
  transition: border-color .2s, box-shadow .2s; 
}

.search-bar:focus-within { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px var(--surface); 
}

.search-bar input { 
  border: none; 
  outline: none; 
  flex: 1; 
  font-family: inherit; 
  font-size: 13.5px; 
  background: transparent; 
  color: var(--ink); 
}

.search-bar svg { 
  width: 18px; 
  height: 18px; 
  color: var(--text-soft); 
  flex-shrink: 0; 
}

/* ==========================================================
   SIDE MENU DRAWER
   ========================================================== */
.menu-overlay { 
  position: fixed; 
  inset: 0; 
  background: rgba(43,20,30,.45); 
  backdrop-filter: blur(2px); 
  z-index: 70; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity .25s; 
}

.menu-overlay.open { 
  opacity: 1; 
  pointer-events: auto; 
}

.menu-drawer { 
  position: fixed; 
  top: 0; 
  bottom: 0; 
  right: 0; 
  width: min(300px, 82vw); 
  background: #fff; 
  z-index: 80; 
  box-shadow: -10px 0 30px rgba(0,0,0,.12); 
  transform: translateX(100%); 
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1); 
  padding: 24px 18px; 
  overflow-y: auto; 
  display: flex; 
  flex-direction: column; 
}

.menu-drawer.open { 
  transform: translateX(0); 
}

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

.drawer-header h3 { 
  font-size: 17px; 
  margin: 0; 
  color: var(--rose-deep); 
  font-weight: 800; 
}

.menu-links { 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
  flex: 1; 
}

.menu-link { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 11px 10px; 
  border-radius: var(--radius-sm); 
  font-weight: 700; 
  font-size: 13.5px; 
  transition: background .18s; 
  text-align: right; 
  width: 100%; 
}

.menu-link:hover, .menu-link:active { 
  background: var(--surface); 
  color: var(--accent); 
}

.menu-link svg { 
  width: 20px; 
  height: 20px; 
  color: var(--accent); 
  flex-shrink: 0; 
}

.drawer-social-section { 
  margin-top: auto; 
  padding-top: 14px; 
  border-top: 1px solid var(--line); 
}

.drawer-social-title { 
  font-size: 11.5px; 
  font-weight: 800; 
  color: var(--text-soft); 
  margin-bottom: 8px; 
  text-align: center; 
}

.drawer-social-grid { 
  display: flex; 
  justify-content: center; 
  gap: 10px; 
  margin-bottom: 10px; 
}

.drawer-social-icon { 
  width: 36px; 
  height: 36px; 
  border-radius: 50%; 
  background: var(--surface); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--accent); 
  border: 1px solid var(--line); 
  transition: transform .15s; 
}

.drawer-social-icon:hover { 
  transform: scale(1.1); 
  color: var(--accent-dark); 
}

.drawer-footer { 
  font-size: 11px; 
  color: var(--text-soft); 
  text-align: center; 
}

/* ==========================================================
   HERO BANNER
   ========================================================== */
.hero-wrap { 
  padding: 6px 0 10px; 
}

.qutn-hybrid-banner {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--surface) 0%, #FFFFFF 45%, var(--surface-hover) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  gap: 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
  position: relative;
}

.qutn-hybrid-banner:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-hover); 
}

.banner-text-col { 
  flex: 1.3; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  text-align: right; 
  z-index: 3; 
}

.banner-text-col .main-title { 
  color: var(--rose-deep); 
  font-size: clamp(24px, 3.5vw, 38px); 
  font-weight: 900; 
  margin: 0; 
  line-height: 1.15; 
}

.banner-text-col .sub-title { 
  color: #374151; 
  font-size: clamp(15px, 2.1vw, 21px); 
  font-weight: 700; 
  margin: 0; 
}

.banner-text-col .desc-title { 
  color: var(--rose-deep); 
  font-size: clamp(12.5px, 1.5vw, 15.5px); 
  font-weight: 600; 
  margin: 0; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
}

.banner-model-col { 
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0; 
  width: 48%; 
  display: flex; 
  align-items: center; 
  justify-content: flex-start; 
  pointer-events: none; 
  z-index: 2; 
  overflow: hidden; 
}

.banner-model-col img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: center 20%; 
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); 
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%); 
}

@media (max-width: 600px) {
  .qutn-hybrid-banner { padding: 20px 16px; min-height: 175px; }
  .banner-model-col { width: 44%; }
}

/* ==========================================================
   PHARMACIST CONSULTATION CTA BANNER
   ========================================================== */
.consult-cta-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-hover) 100%);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all .25s ease;
  margin: 8px 0 14px;
}

.consult-cta-banner:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--shadow-hover); 
  border-color: var(--rose); 
}

.consult-cta-icon { 
  width: 44px; 
  height: 44px; 
  border-radius: 50%; 
  background: #fff; 
  border: 1.5px solid var(--line); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-shrink: 0; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
}

.consult-cta-text { 
  flex: 1; 
  text-align: right; 
}

.consult-cta-text h4 { 
  margin: 0 0 2px; 
  font-size: 14.5px; 
  font-weight: 800; 
  color: var(--rose-deep); 
}

.consult-cta-text p { 
  margin: 0; 
  font-size: 12px; 
  color: var(--text-soft); 
  line-height: 1.4; 
}

.consult-cta-btn { 
  background: var(--accent); 
  color: #fff; 
  font-size: 12.5px; 
  font-weight: 800; 
  padding: 8px 16px; 
  border-radius: 999px; 
  white-space: nowrap; 
  box-shadow: 0 3px 10px rgba(0,0,0,0.1); 
}

/* ==========================================================
   BRAND STRIP WITH LOGOS
   ========================================================== */
.section { 
  padding: 8px 0; 
  margin: 6px 0; 
}

.section-head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  margin-bottom: 12px; 
}

.section-head h2 { 
  font-size: 16.5px; 
  font-weight: 800; 
  margin: 0; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
}

.see-all { 
  font-size: 12.5px; 
  font-weight: 800; 
  color: var(--accent); 
  cursor: pointer; 
}

.brand-strip { 
  display: flex; 
  gap: 10px; 
  overflow-x: auto; 
  padding: 4px 2px 10px; 
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
}

.brand-strip::-webkit-scrollbar { 
  display: none; 
}

.brand-chip {
  flex: 0 0 auto;
  min-width: 105px;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-chip:hover { 
  border-color: var(--rose); 
  transform: translateY(-2px); 
}

.brand-chip.active { 
  border-color: var(--rose-deep); 
  border-width: 2px; 
  background: var(--surface); 
  color: var(--rose-deep); 
  box-shadow: 0 4px 14px rgba(0,0,0,0.08); 
}

.brand-chip-img { 
  width: 28px; 
  height: 28px; 
  border-radius: 8px; 
  object-fit: contain; 
  background: #fff; 
  border: 1px solid var(--line); 
  flex-shrink: 0; 
}

.brand-chip-dot { 
  width: 10px; 
  height: 10px; 
  border-radius: 50%; 
  flex-shrink: 0; 
}

.brand-chip.all-chip { 
  flex-direction: column; 
  gap: 2px; 
  justify-content: center; 
  font-size: 11.5px; 
  color: var(--accent); 
}

.brand-chip.all-chip svg { 
  width: 18px; 
  height: 18px; 
}

/* ==========================================================
   PRODUCT GRID & CARDS
   ========================================================== */
.product-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px; 
}

@media (min-width: 640px) { 
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } 
}

@media (min-width: 900px) { 
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } 
}

.product-card { 
  background: #fff; 
  border: 1px solid var(--line); 
  border-radius: 18px; 
  padding: 12px; 
  position: relative; 
  cursor: pointer; 
  transition: all .25s ease; 
  display: flex; 
  flex-direction: column; 
}

.product-card:hover { 
  box-shadow: var(--shadow-hover); 
  transform: translateY(-3px); 
  border-color: var(--rose); 
}

.wish-btn { 
  position: absolute; 
  top: 12px; 
  right: 12px; 
  z-index: 2; 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  background: rgba(255,255,255,.9); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}

.wish-btn svg { 
  width: 16px; 
  height: 16px; 
  color: var(--accent); 
}

.wish-btn.active svg { 
  fill: var(--accent); 
  color: var(--accent); 
}

.discount-badge { 
  position: absolute; 
  top: 12px; 
  left: 12px; 
  z-index: 2; 
  background: var(--accent); 
  color: #fff; 
  font-size: 10px; 
  font-weight: 800; 
  padding: 3px 8px; 
  border-radius: 999px; 
}

.product-thumb { 
  aspect-ratio: 1/1; 
  width: 100%; 
  border-radius: 14px; 
  background: var(--surface); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  margin-bottom: 10px; 
  position: relative; 
}

.product-thumb svg { 
  width: 48%; 
  height: 48%; 
}

.product-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.p-rating { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  font-size: 11px; 
  font-weight: 700; 
  color: var(--text-soft); 
  margin-bottom: 3px; 
}

.p-rating svg { 
  width: 12px; 
  height: 12px; 
  color: var(--gold); 
}

.p-name { 
  font-weight: 700; 
  font-size: 13px; 
  color: var(--ink); 
  line-height: 1.4; 
  min-height: 36px; 
  display: -webkit-box; 
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  margin-bottom: 2px; 
}

.p-size { 
  font-size: 11px; 
  color: var(--text-soft); 
  margin-bottom: 8px; 
}

.p-price-row { 
  display: flex; 
  align-items: baseline; 
  gap: 6px; 
  margin-top: auto; 
  margin-bottom: 10px; 
}

.p-price { 
  font-weight: 800; 
  font-size: 14px; 
  color: var(--ink); 
}

.p-oldprice { 
  font-size: 11px; 
  color: var(--text-soft); 
  text-decoration: line-through; 
}

.add-cart-btn { 
  width: 100%; 
  background: var(--accent); 
  color: #fff; 
  font-weight: 800; 
  font-size: 12.5px; 
  padding: 10px; 
  border-radius: 999px; 
  text-align: center; 
  transition: background .2s; 
  box-shadow: 0 3px 10px rgba(0,0,0,0.1); 
}

.add-cart-btn:hover { 
  background: var(--accent-dark); 
}

/* ==========================================================
   DIRECT ON-CARD ADMIN ACTIONS & FLOATING BUTTON
   ========================================================== */
.admin-card-actions { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 4px; 
  margin-top: 6px; 
  padding-top: 6px; 
  border-top: 1px dashed var(--line); 
}

.admin-card-actions button { 
  font-size: 10px; 
  font-weight: 800; 
  padding: 6px 2px; 
  border-radius: 8px; 
  text-align: center; 
}

.btn-admin-stock.is-in { background: #DCFCE7; color: #166534; }
.btn-admin-stock.is-out { background: #FEE2E2; color: #991B1B; }
.btn-admin-price { background: #FEF3C7; color: #B45309; }
.btn-admin-edit { background: #E0E7FF; color: #3730A3; }
.btn-admin-del { background: #FEE2E2; color: #DC2626; }

.admin-float-btn {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 48;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.4);
  cursor: pointer;
  transition: transform .2s;
}

.admin-float-btn:hover {
  transform: scale(1.08);
}

.no-results { 
  grid-column: 1/-1; 
  text-align: center; 
  padding: 50px 16px; 
  color: var(--text-soft); 
  font-size: 13.5px; 
  font-weight: 600; 
}

/* ==========================================================
   MODERN CATEGORIES GRID VIEW
   ========================================================== */
.cat-grid-modern { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 14px; 
  margin-top: 14px; 
  margin-bottom: 24px; 
}

@media (min-width: 640px) { 
  .cat-grid-modern { grid-template-columns: repeat(3, 1fr); gap: 18px; } 
}

@media (min-width: 900px) { 
  .cat-grid-modern { grid-template-columns: repeat(4, 1fr); gap: 20px; } 
}

.modern-cat-card {
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.modern-cat-card:hover { 
  transform: translateY(-4px); 
  border-color: var(--accent); 
  box-shadow: var(--shadow-hover); 
}

.modern-cat-img-wrap {
  width: 100%;
  aspect-ratio: 16/11;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.modern-cat-img-wrap img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  transition: transform .3s ease; 
}

.modern-cat-card:hover .modern-cat-img-wrap img { 
  transform: scale(1.05); 
}

.modern-cat-img-wrap svg { 
  width: 44px; 
  height: 44px; 
  color: var(--accent); 
}

.modern-cat-info { 
  padding: 12px 10px; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 4px; 
}

.modern-cat-title { 
  font-size: 14px; 
  font-weight: 800; 
  color: var(--ink); 
  margin: 0; 
}

.modern-cat-count { 
  font-size: 11px; 
  font-weight: 800; 
  color: var(--accent); 
  background: var(--surface); 
  padding: 3px 8px; 
  border-radius: 999px; 
  border: 1px solid var(--line); 
}

/* ==========================================================
   PROMO BANNERS & COUPONS INPUT
   ========================================================== */
.promo-banner { 
  position: relative; 
  border-radius: var(--radius-lg); 
  overflow: hidden; 
  background: var(--surface); 
  border: 1px solid var(--line); 
  padding: 18px; 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 14px; 
  box-shadow: var(--shadow-soft); 
}

.promo-thumb { 
  width: 80px; 
  height: 96px; 
  border-radius: 14px; 
  background: #fff; 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border: 1px solid var(--line); 
  overflow: hidden; 
}

.promo-thumb svg { 
  width: 55%; 
  height: 55%; 
}

.promo-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.promo-body h3 { 
  font-size: 15.5px; 
  font-weight: 800; 
  color: var(--rose-deep); 
  margin: 0 0 4px; 
}

.promo-body p { 
  font-size: 12px; 
  color: var(--text-soft); 
  margin: 0 0 6px; 
}

.promo-discount { 
  font-weight: 800; 
  color: var(--accent); 
  font-size: 13.5px; 
  margin-bottom: 8px; 
}

.promo-cta { 
  display: inline-flex; 
  background: var(--accent); 
  color: #fff; 
  font-weight: 800; 
  font-size: 12px; 
  padding: 8px 18px; 
  border-radius: 999px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

.promo-input-group { 
  display: flex; 
  gap: 8px; 
  margin: 14px 0 8px; 
}

.promo-input-group input { 
  flex: 1; 
  padding: 11px 14px; 
  border: 1.5px solid var(--line); 
  border-radius: 12px; 
  font-family: 'IBM Plex Mono', monospace; 
  font-weight: 700; 
  font-size: 13.5px; 
  text-transform: uppercase; 
  background: #fff; 
  color: var(--ink); 
  outline: none; 
}

.promo-input-group input:focus { 
  border-color: var(--accent); 
}

.promo-input-group button { 
  background: #111827; 
  color: #fff; 
  padding: 0 18px; 
  border-radius: 12px; 
  font-weight: 800; 
  font-size: 12.5px; 
  white-space: nowrap; 
  transition: all .2s; 
}

.promo-input-group button:hover { 
  background: var(--accent); 
}

.applied-promo-tag { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  background: #DCFCE7; 
  color: #15803D; 
  border: 1px solid #BBF7D0; 
  border-radius: 12px; 
  padding: 8px 14px; 
  font-size: 12px; 
  font-weight: 800; 
  margin-bottom: 12px; 
}

/* ==========================================================
   MY ORDERS VIEW & REALTIME TRACKING TIMELINE
   ========================================================== */
.order-card { 
  background: #fff; 
  border: 1.5px solid var(--line); 
  border-radius: var(--radius-md); 
  padding: 16px; 
  margin-bottom: 14px; 
  box-shadow: var(--shadow-soft); 
  text-align: right; 
}

.order-card-header { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-bottom: 10px; 
  border-bottom: 1px dashed var(--line); 
  padding-bottom: 8px; 
}

.order-card-id { 
  font-weight: 900; 
  color: var(--rose-deep); 
  font-size: 13.5px; 
}

.order-card-status { 
  font-size: 11px; 
  font-weight: 800; 
  padding: 4px 12px; 
  border-radius: 999px; 
  background: #DCFCE7; 
  color: #16A34A; 
}

.order-tracker-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 14px 0 12px;
  padding: 0 4px;
}

.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-soft);
  z-index: 2;
}

.order-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #6B7280;
}

.order-step.done .order-step-dot { background: #DCFCE7; color: #16A34A; }
.order-step.active .order-step-dot { background: var(--accent); color: #fff; }
.order-step.done, .order-step.active { color: var(--ink); }

.order-item-row { 
  display: flex; 
  justify-content: space-between; 
  font-size: 12.5px; 
  color: var(--ink); 
  margin-bottom: 4px; 
}

.order-card-footer { 
  display: flex; 
  justify-content: space-between; 
  align-items: baseline; 
  margin-top: 10px; 
  border-top: 1px solid var(--line); 
  padding-top: 8px; 
  font-weight: 800; 
  font-size: 13.5px; 
}

/* ==========================================================
   PRODUCT DETAIL, REVIEWS & CROSS-SELLING
   ========================================================== */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.share-btn:hover {
  background: var(--surface-hover);
}

.pd-image { 
  aspect-ratio: 1/1; 
  width: 100%; 
  border-radius: var(--radius-lg); 
  background: var(--surface); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 10px 0 16px; 
  border: 1px solid var(--line); 
  overflow: hidden; 
}

.pd-image svg { 
  width: 44%; 
  height: 44%; 
}

.pd-image img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.pd-brand { 
  font-size: 13px; 
  font-weight: 800; 
  color: var(--accent); 
  text-transform: uppercase; 
}

.pd-name { 
  font-size: 20px; 
  font-weight: 900; 
  margin: 6px 0 8px; 
  line-height: 1.4; 
  color: var(--ink); 
}

.pd-rating { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  font-size: 13px; 
  color: var(--text-soft); 
  font-weight: 700; 
  margin-bottom: 12px; 
}

.pd-price-row { 
  display: flex; 
  align-items: baseline; 
  gap: 10px; 
  margin-bottom: 8px; 
}

.pd-price { 
  font-size: 24px; 
  font-weight: 900; 
  color: var(--ink); 
}

.pd-oldprice { 
  font-size: 15px; 
  color: var(--text-soft); 
  text-decoration: line-through; 
}

.pd-discount { 
  background: var(--surface); 
  color: var(--accent); 
  font-weight: 800; 
  font-size: 12px; 
  padding: 4px 10px; 
  border-radius: 999px; 
  border: 1px solid var(--line); 
}

.pd-stock { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  color: var(--green); 
  font-weight: 800; 
  font-size: 12.5px; 
  margin: 6px 0 16px; 
}

.pd-stock.out { 
  color: var(--red); 
}

.pd-tabs { 
  display: flex; 
  gap: 6px; 
  border-bottom: 1.5px solid var(--line); 
  margin-bottom: 14px; 
  overflow-x: auto;
}

.pd-tab { 
  padding: 10px 6px; 
  font-weight: 800; 
  font-size: 13px; 
  color: var(--text-soft); 
  border-bottom: 2.5px solid transparent; 
  margin-inline-end: 12px; 
  cursor: pointer; 
  white-space: nowrap;
}

.pd-tab.active { 
  color: var(--accent); 
  border-color: var(--accent); 
}

.pd-tab-content { 
  display: none; 
  font-size: 13.5px; 
  color: var(--text-soft); 
  line-height: 1.9; 
  padding-bottom: 20px; 
}

.pd-tab-content.active { 
  display: block; 
}

.review-item {
  background: var(--surface);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
}

.review-author { font-weight: 800; font-size: 12.5px; color: var(--ink); display: flex; justify-content: space-between; }
.review-text { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.pd-qty-row { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin: 16px 0 24px; 
}

.pd-qty-stepper { 
  display: flex; 
  align-items: center; 
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: 999px; 
  overflow: hidden; 
}

.pd-qty-stepper button { 
  width: 42px; 
  height: 42px; 
  font-size: 20px; 
  font-weight: 800; 
  color: var(--accent); 
}

.pd-qty-stepper .val { 
  min-width: 32px; 
  text-align: center; 
  font-weight: 800; 
  font-size: 15px; 
}

.pd-add-btn { 
  flex: 1; 
  background: var(--accent); 
  color: #fff; 
  font-weight: 800; 
  font-size: 14.5px; 
  padding: 14px; 
  border-radius: 999px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); 
}

/* ==========================================================
   CART & CHECKOUT
   ========================================================== */
.cart-item { 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  padding: 14px 0; 
  border-bottom: 1px solid var(--line); 
}

.cart-item .thumb { 
  width: 68px; 
  height: 68px; 
  border-radius: 14px; 
  background: var(--surface); 
  flex-shrink: 0; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  border: 1px solid var(--line); 
}

.cart-item .thumb svg { 
  width: 32px; 
  height: 32px; 
}

.cart-item .thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.cart-item .info { 
  flex: 1; 
  min-width: 0; 
}

.cart-item .name { 
  font-weight: 700; 
  font-size: 13.5px; 
}

.cart-item .brand { 
  font-size: 11.5px; 
  color: var(--text-soft); 
}

.cart-qty-row { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-top: 8px; 
}

.cart-qty-btn { 
  width: 26px; 
  height: 26px; 
  border-radius: 50%; 
  background: var(--surface); 
  font-weight: 800; 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--accent); 
  border: 1px solid var(--line); 
}

.cart-qty-val { 
  font-size: 13px; 
  font-weight: 800; 
  min-width: 20px; 
  text-align: center; 
}

.cart-remove { 
  color: var(--red); 
  font-size: 11.5px; 
  font-weight: 700; 
  margin-inline-start: auto; 
  cursor: pointer; 
}

.summary-row { 
  display: flex; 
  justify-content: space-between; 
  font-size: 14px; 
  color: var(--text-soft); 
  padding: 8px 0; 
}

.summary-row.total { 
  font-weight: 900; 
  font-size: 17px; 
  color: var(--ink); 
  border-top: 1.5px solid var(--line); 
  margin-top: 8px; 
  padding-top: 14px; 
}

.checkout-btn { 
  width: 100%; 
  background: var(--accent); 
  color: #fff; 
  font-weight: 800; 
  font-size: 15px; 
  padding: 15px; 
  border-radius: 999px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  margin-top: 18px; 
  box-shadow: 0 4px 16px rgba(0,0,0,0.1); 
}

.form-field { 
  margin-bottom: 14px; 
  text-align: right; 
}

.form-field label { 
  display: block; 
  font-size: 13px; 
  font-weight: 700; 
  margin-bottom: 6px; 
}

.form-field input, .form-field textarea, .form-field select { 
  width: 100%; 
  padding: 12px 14px; 
  border: 1.5px solid var(--line); 
  border-radius: 14px; 
  font-family: inherit; 
  font-size: 13.5px; 
  background: #fff; 
  color: var(--ink); 
  outline: none; 
}

.form-field input:focus, .form-field textarea:focus { 
  border-color: var(--accent); 
}

.delivery-options { 
  display: flex; 
  gap: 10px; 
}

.delivery-opt { 
  flex: 1; 
  border: 1.5px solid var(--line); 
  border-radius: 14px; 
  padding: 12px; 
  text-align: center; 
  font-weight: 700; 
  font-size: 13px; 
  cursor: pointer; 
}

.delivery-opt.selected { 
  border-color: var(--accent); 
  background: var(--surface); 
  color: var(--accent); 
}

/* ==========================================================
   ACCOUNT & AUTH
   ========================================================== */
.account-card { 
  background: #fff; 
  border: 1px solid var(--line); 
  border-radius: var(--radius-lg); 
  padding: 24px 20px; 
  margin-bottom: 16px; 
  box-shadow: var(--shadow-soft); 
  text-align: center; 
}

.user-profile-header { 
  display: flex; 
  align-items: center; 
  gap: 14px; 
  margin-bottom: 16px; 
  text-align: right; 
}

.user-avatar { 
  width: 62px; 
  height: 62px; 
  border-radius: 50%; 
  border: 2.5px solid var(--rose); 
  background: var(--surface); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  overflow: hidden; 
  flex-shrink: 0; 
}

.user-avatar img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.user-info h3 { 
  margin: 0 0 2px; 
  font-size: 16.5px; 
  font-weight: 800; 
}

.user-info p { 
  margin: 0; 
  font-size: 12px; 
  color: var(--text-soft); 
}

.sync-indicator { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  font-size: 11.5px; 
  font-weight: 700; 
  color: var(--green); 
  margin-top: 4px; 
}

.sync-dot { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: var(--green); 
}

.auth-btn-google { 
  width: 100%; 
  background: #fff; 
  color: #1F2937; 
  border: 1.5px solid #E5E7EB; 
  padding: 14px 18px; 
  border-radius: 14px; 
  font-weight: 800; 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px; 
  box-shadow: 0 3px 10px rgba(0,0,0,0.06); 
}

.auth-btn-logout { 
  width: 100%; 
  background: #FEE2E2; 
  color: var(--red); 
  font-weight: 800; 
  font-size: 13.5px; 
  padding: 12px; 
  border-radius: 999px; 
  text-align: center; 
  margin-top: 10px; 
}

/* ==========================================================
   MODALS: STRICT DISPLAY NONE FOR TOTAL PROTECTION
   ========================================================== */
.welcome-modal-overlay, .admin-quick-modal-overlay, .notif-modal-overlay, .success-modal-overlay, .iab-modal, .consult-modal-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 55, 0.65);
  backdrop-filter: blur(4px);
  z-index: 150;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.welcome-modal-overlay.open, .admin-quick-modal-overlay.open, .notif-modal-overlay.open, .success-modal-overlay.open, .iab-modal.open, .consult-modal-overlay.open {
  display: flex !important;
}

.welcome-card, .admin-quick-card, .consult-modal-card, .notif-modal-card, .success-card, .iab-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  border: 1.5px solid var(--line);
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  position: relative;
}

.welcome-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px dashed var(--accent);
  padding: 10px 14px;
  border-radius: 14px;
  margin: 16px 0;
}

.welcome-code-box span { font-weight: 900; font-size: 17px; color: var(--rose-deep); }
.welcome-code-box button { background: var(--accent); color: #fff; font-weight: 800; font-size: 11.5px; padding: 6px 12px; border-radius: 8px; }
.welcome-action-btn { width: 100%; background: var(--accent); color: #fff; font-weight: 900; font-size: 14px; padding: 13px; border-radius: 999px; }

.consult-modal-card { max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.consult-header { padding: 16px 20px 12px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.consult-badge-pill { display: inline-block; background: var(--surface); color: var(--accent); font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
.consult-body { padding: 18px 20px; overflow-y: auto; flex: 1; text-align: right; }
.consult-toggle-group { display: flex; gap: 8px; }
.consult-toggle-btn { flex: 1; padding: 9px 6px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: center; }
.consult-toggle-btn.active { border-color: var(--accent); background: var(--surface); color: var(--rose-deep); font-weight: 800; }
.consult-submit-btn { width: 100%; background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); color: #fff; font-weight: 900; font-size: 14.5px; padding: 13px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; }

.notif-list { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.notif-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; text-align: right; }
.notif-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.notif-item-title { font-weight: 800; font-size: 13.5px; color: var(--rose-deep); }
.notif-item-time { font-size: 10.5px; color: var(--text-soft); }

.success-icon-badge { width: 72px; height: 72px; border-radius: 50%; background: #DCFCE7; color: #16A34A; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 34px; }
.success-actions { display: flex; flex-direction: column; gap: 8px; }

.iab-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 1.5px solid var(--line); color: var(--accent); }
.iab-step { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-radius: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.iab-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.iab-close-btn { width: 100%; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; padding: 12px; border-radius: 999px; margin-top: 14px; }

/* ==========================================================
   BOTTOM NAV & WHATSAPP FAB
   ========================================================== */
.bottom-nav { 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  z-index: 50; 
  background: rgba(255,255,255,0.96); 
  backdrop-filter: blur(8px); 
  border-top: 1px solid var(--line); 
  display: flex; 
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); 
}

.bn-item { 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 3px; 
  padding: 4px 2px; 
  position: relative; 
  color: var(--text-soft); 
}

.bn-item.active { 
  color: var(--accent); 
}

.bn-item svg { 
  width: 22px; 
  height: 22px; 
}

.bn-item .lbl { 
  font-size: 10.5px; 
  font-weight: 700; 
}

.fab-whatsapp { 
  position: fixed; 
  bottom: 90px; 
  left: 16px; 
  z-index: 45; 
  width: 52px; 
  height: 52px; 
  border-radius: 50%; 
  background: #25D366; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 8px 24px rgba(37,211,102,.4); 
}

.fab-whatsapp svg { 
  width: 28px; 
  height: 28px; 
  color: #fff; 
}

/* ==========================================================
   SEAMLESS ZERO-STUTTER VIEW TRANSITIONS
   ========================================================== */
.view { 
  display: none !important; 
  padding-top: 6px; 
}

.view.active { 
  display: block !important; 
  animation: fadeIn .15s ease; 
}

@keyframes fadeIn { 
  from { opacity: 0; } 
  to { opacity: 1; } 
}

#view-product { 
  min-height: 100vh; 
  padding-bottom: 60px; 
  overflow-y: visible !important; 
  -webkit-overflow-scrolling: touch; 
}

.pd-back { 
  display: inline-flex; 
  align-items: center; 
  gap: 6px; 
  padding: 10px 0 6px; 
  font-weight: 700; 
  font-size: 13.5px; 
  color: var(--text-soft); 
  cursor: pointer; 
}

.pd-back svg { 
  width: 18px; 
  height: 18px; 
}

/* ==========================================================
   ADMIN PANEL VIEW STYLES
   ========================================================== */
.admin-nav-header { background: #111827; color: #fff; padding: 14px 0; border-bottom: 1px solid #374151; position: sticky; top: 0; z-index: 100; }
.admin-nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.admin-brand-title { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 16px; color: #FBBF24; }
.admin-back-btn { background: #374151; color: #fff; padding: 6px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; transition: background .2s; }
.admin-back-btn:hover { background: #4B5563; }

.admin-view-header { background: linear-gradient(135deg, #1F2937 0%, #111827 100%); color: #fff; padding: 24px 20px 18px; border-radius: var(--radius-lg); margin-top: 18px; margin-bottom: 20px; border: 1px solid #374151; box-shadow: var(--shadow-soft); }
.admin-view-header h2 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: #FBBF24; display: flex; align-items: center; gap: 8px; }
.admin-view-header p { margin: 0; font-size: 12.5px; color: #9CA3AF; }

.admin-tabs-nav-view { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.admin-tabs-nav-view::-webkit-scrollbar { display: none; }
.admin-tab-btn-v { padding: 10px 16px; border-radius: 12px; background: #E5E7EB; color: #4B5563; font-size: 13px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: all .15s; }
.admin-tab-btn-v:hover { background: #D1D5DB; }
.admin-tab-btn-v.active { background: var(--accent); color: #fff; box-shadow: 0 4px 12px rgba(232, 93, 138, 0.3); }

.admin-stat-grid-v { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 640px) { .admin-stat-grid-v { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.admin-stat-card-v { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px 14px; text-align: center; box-shadow: var(--shadow-soft); }
.admin-stat-card-v .num { font-size: 22px; font-weight: 900; color: var(--rose-deep); }
.admin-stat-card-v .lbl { font-size: 12px; font-weight: 700; color: var(--text-soft); margin-top: 2px; }

.admin-chart-wrap { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-soft); }
.admin-chart-title { font-size: 15px; font-weight: 800; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; }
.chart-bars-row { display: flex; align-items: flex-end; justify-content: space-between; height: 130px; gap: 8px; padding-top: 10px; }
.chart-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bar-fill { width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--accent) 0%, #FBBF24 100%); min-height: 4px; transition: height .4s ease; }
.chart-bar-lbl { font-size: 10.5px; font-weight: 700; color: var(--text-soft); }

.admin-rank-list { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow-soft); }
.admin-rank-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-rank-item:last-child { border-bottom: none; }
.admin-rank-badge { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--accent); font-weight: 800; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.admin-order-manage-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-soft); text-align: right; }
.admin-order-status-select { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); outline: none; cursor: pointer; }

.admin-fieldset { border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 18px 16px; margin-bottom: 18px; background: #FFFFFF; box-shadow: var(--shadow-soft); }
.admin-fieldset legend { font-weight: 800; font-size: 14px; color: var(--rose-deep); padding: 0 10px; }
.admin-toggle-switch { display: flex; align-items: center; justify-content: space-between; background: #F9FAFB; padding: 12px 16px; border-radius: 12px; border: 1px solid #E5E7EB; margin-bottom: 14px; }
.admin-btn-save { width: 100%; background: var(--accent); color: #fff; font-weight: 900; font-size: 14.5px; padding: 13px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); margin-top: 10px; cursor: pointer; transition: transform .15s; }
.admin-btn-save:hover { transform: translateY(-1px); }

.log-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: right; margin-top: 8px; }
.log-table th { background: #F3F4F6; padding: 8px 10px; font-weight: 800; border-bottom: 1px solid var(--line); color: var(--ink); }
.log-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.log-badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; background: var(--surface); color: var(--accent); border: 1px solid var(--line); }

.admin-copy-code-box { background: #111827; color: #F3F4F6; border-radius: var(--radius-lg); padding: 22px; margin-bottom: 24px; text-align: center; border: 1px solid #374151; }
.btn-copy-full-code { background: linear-gradient(135deg, #10B981 0%, #059669 100%); color: #fff; font-weight: 900; font-size: 14px; padding: 12px 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* ==========================================================
   TOAST NOTIFICATION
   ========================================================== */
.toast { 
  position: fixed; 
  bottom: 90px; 
  left: 50%; 
  transform: translateX(-50%) translateY(20px); 
  background: var(--accent); 
  color: #fff; 
  padding: 12px 24px; 
  border-radius: 999px; 
  font-weight: 800; 
  font-size: 13px; 
  z-index: 200; 
  box-shadow: 0 10px 26px rgba(0,0,0,0.2); 
  opacity: 0; 
  transition: transform .25s, opacity .25s; 
  pointer-events: none; 
  text-align: center; 
  white-space: nowrap; 
  max-width: 90vw; 
}

.toast.show { 
  transform: translateX(-50%) translateY(0); 
  opacity: 1; 
}
