/* MewArt — Shared component styles for HTML wireframes
   Balenciaga aesthetic: light editorial base + grey accents + bold pink CTA */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
.display { font-family: var(--font-display); font-weight: var(--fw-black); letter-spacing: -0.03em; line-height: 1.02; }
.h1 { font-size: var(--fs-3xl); font-weight: var(--fw-black); letter-spacing: -0.025em; line-height: 1.05; }
.h2 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); letter-spacing: -0.015em; line-height: 1.1; }
.h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); letter-spacing: -0.01em; line-height: 1.2; }
.h4 { font-size: var(--fs-lg); font-weight: var(--fw-semi); line-height: 1.25; }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-mono { font-family: var(--font-mono); }
.text-muted { color: var(--text-3); }
.text-pink { color: var(--pink); }
.text-balenciaga { text-transform: uppercase; letter-spacing: 0.18em; font-weight: var(--fw-bold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 20px;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  letter-spacing: 0.02em;
  transition: var(--t-base);
  white-space: nowrap;
}
.btn-pink {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--shadow-pink-sm);
}
.btn-pink:hover { background: var(--pink-3); }
.btn-dark {
  background: var(--bg-dark);
  color: #fff;
}
.btn-dark:hover { background: var(--bg-dark-2); }
.btn-light {
  background: var(--bg-0);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost {
  color: var(--text-2);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { color: var(--pink); border-color: var(--pink); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: var(--fs-base); }
.btn-sm { padding: 8px 14px; font-size: var(--fs-xs); }

/* ---- Card ---- */
.card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-elev { background: var(--bg-0); box-shadow: var(--shadow-md); border-color: transparent; }
.card-dark {
  background: var(--bg-dark);
  color: var(--text-light-1);
  border-color: var(--bg-dark-2);
}
.card-grey {
  background: var(--bg-5);
  color: var(--text-light-1);
  border-color: var(--bg-5);
}
.card-pad { padding: var(--s-5); }
.card-pad-lg { padding: var(--s-7); }

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-pink { background: var(--pink); color: #fff; }
.badge-pink-soft { background: var(--pink-soft); color: var(--pink-3); }
.badge-dark { background: var(--bg-dark); color: var(--text-light-1); }
.badge-grey { background: var(--bg-5); color: var(--text-light-1); }
.badge-outline { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* ---- Input ---- */
.input {
  width: 100%;
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: var(--fs-base);
  font-family: inherit;
  transition: var(--t-base);
}
.input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-tint); }
.input::placeholder { color: var(--text-4); }
.input-light { background: var(--bg-0); color: var(--text-1); border-color: var(--border); }

/* ---- Avatar ---- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--pink) 0%, #6b21a8 100%);
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.avatar-lg { width: 64px; height: 64px; font-size: var(--fs-md); }
.avatar-sm { width: 28px; height: 28px; font-size: var(--fs-xs); }

/* ---- Layout helpers ---- */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.end { justify-content: flex-end; }
.flex-1 { flex: 1; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.p-4 { padding: var(--s-4); } .p-5 { padding: var(--s-5); } .p-6 { padding: var(--s-6); }

/* ---- Phone frame for mobile wireframes ---- */
body.mobile-page {
  background: var(--bg-dark-2);     /* dark outer frame so light phone pops */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}
.phone {
  width: 375px;
  height: 812px;
  background: var(--bg-1);            /* light phone interior */
  border-radius: 48px;
  border: 12px solid #111;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #111;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 28px 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--text-1);
  z-index: 50;
  background: var(--bg-1);
}
.phone-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding-top: 12px;
  background: var(--bg-1);
}
.phone-content::-webkit-scrollbar { display: none; }

/* ---- Bottom nav (mobile) — 5 items with center FAB ---- */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 10px 8px 22px;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  position: relative;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-4);
  font-size: 10px;
  font-weight: var(--fw-medium);
  padding: 4px 8px;
  flex: 1;
  transition: var(--t-fast);
}
.bottom-nav-item.active { color: var(--pink); }
.bottom-nav-item svg { width: 22px; height: 22px; }

/* Floating Action Button — center Add */
.bottom-nav-fab {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -32px;
  margin-left: 4px;
  margin-right: 4px;
  box-shadow: 0 8px 20px var(--pink-glow), 0 0 0 4px var(--bg-0);
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 5;
  transition: transform 180ms var(--ease);
}
.bottom-nav-fab:hover { transform: scale(1.06) rotate(45deg); }
.bottom-nav-fab svg { width: 26px; height: 26px; }

/* Bottom sheet (modal sheet from bottom — for Add menu) */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
}
.sheet {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-0);
  border-radius: 24px 24px 0 0;
  padding: 12px 20px 32px;
  z-index: 101;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}
.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.sheet-title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  margin-bottom: 4px;
}
.sheet-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--divider);
}
.sheet-action:last-child { border-bottom: none; }
.sheet-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pink-tint);
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.sheet-action-meta { flex: 1; }
.sheet-action-title { font-size: 14px; font-weight: var(--fw-semi); }
.sheet-action-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ---- App bar ---- */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.app-bar-back {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-bar-title { font-size: var(--fs-md); font-weight: var(--fw-semi); }

/* ---- Course card ---- */
.course-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t-base);
}
.course-card:hover { border-color: var(--pink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.course-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2a1a2a 0%, #4a2238 50%, #1a1a1c 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 12px;
}
.course-thumb-pink { background: linear-gradient(135deg, #ff4d8d 0%, #7c2855 100%); }
.course-thumb-purple { background: linear-gradient(135deg, #6b21a8 0%, #1a1a1c 100%); }
.course-meta { padding: 14px; }
.course-title { font-size: var(--fs-sm); font-weight: var(--fw-semi); line-height: 1.3; margin-bottom: 6px; }
.course-sub { font-size: var(--fs-xs); color: var(--text-3); }
.course-price { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--pink); margin-top: 6px; }

/* ---- Web container ---- */
.web-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.web-section { padding: var(--s-10) 0; }

/* ---- Dashboard layout ---- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.dash-sidebar {
  background: var(--bg-dark);
  color: var(--text-light-1);
  border-right: 1px solid var(--bg-dark-2);
  padding: var(--s-6) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.dash-logo { padding: 0 var(--s-3) var(--s-6); display: flex; align-items: center; gap: var(--s-3); color: var(--text-light-1); }
.dash-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--pink);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  color: #fff;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-3);
  color: var(--text-light-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--r-md);
  transition: var(--t-base);
}
.dash-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-light-1); }
.dash-nav-item.active {
  background: linear-gradient(90deg, var(--pink-tint), transparent);
  color: var(--pink);
  border-left: 3px solid var(--pink);
  padding-left: calc(var(--s-3) - 3px);
}
.dash-nav-section { font-size: var(--fs-xs); color: var(--text-light-3); opacity: 0.5; padding: var(--s-5) var(--s-3) var(--s-2); text-transform: uppercase; letter-spacing: 0.1em; font-weight: var(--fw-semi); }
.dash-main { background: var(--bg-1); padding: 0; overflow-y: auto; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-7);
  border-bottom: 1px solid var(--border);
  background: var(--bg-0);
}
.dash-content { padding: var(--s-7); }

/* ---- KPI card ---- */
.kpi {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}
.kpi-label { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--fw-semi); margin-bottom: var(--s-3); }
.kpi-value { font-size: var(--fs-2xl); font-weight: var(--fw-black); letter-spacing: -0.02em; color: var(--text-1); }
.kpi-delta { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--s-3); font-size: var(--fs-xs); }
.kpi-delta.up { color: var(--success); }
.kpi-delta.down { color: var(--danger); }
.kpi-spark {
  position: absolute;
  right: var(--s-4);
  bottom: var(--s-4);
  width: 100px;
  height: 32px;
  opacity: 0.7;
}

/* ---- Table ---- */
.table { width: 100%; border-collapse: collapse; background: var(--bg-0); }
.table th, .table td { padding: 14px 16px; text-align: left; font-size: var(--fs-sm); }
.table th { color: var(--text-3); font-weight: var(--fw-semi); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-2); }
.table td { border-top: 1px solid var(--divider); }
.table tr:hover { background: var(--bg-1); }

/* ---- Layout toggle (grid vs sidebar) ---- */
.layout-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.layout-toggle-btn {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--t-fast);
}
.layout-toggle-btn.active {
  background: var(--pink);
  color: #fff;
}
.layout-toggle-btn svg { width: 12px; height: 12px; }

/* ---- Category sidebar layout (Bavia-style) ---- */
.cat-layout { display: flex; min-height: 100%; }
.cat-sidebar {
  width: 86px;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.cat-item {
  text-align: center;
  padding: 8px 4px;
  position: relative;
}
.cat-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  transition: var(--t-base);
}
.cat-item.active .cat-item-thumb {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px var(--bg-1), 0 0 0 4px var(--pink);
}
.cat-item-label {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
  line-height: 1.2;
  font-weight: 500;
}
.cat-item.active .cat-item-label {
  color: var(--pink);
  font-weight: 700;
}

.cat-main { flex: 1; min-width: 0; background: var(--bg-0); }
.cat-hero {
  height: 90px;
  background: linear-gradient(135deg, #2a1a2a 0%, #4a2238 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.cat-hero-title {
  padding: 12px 16px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text-1);
  background: var(--bg-0);
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  border-top-left-radius: 16px;
}
.cat-product {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  align-items: center;
}
.cat-product:last-child { border-bottom: none; }
.cat-product-thumb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-product-meta { flex: 1; min-width: 0; }
.cat-product-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}
.cat-product-desc {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
  line-height: 1.4;
}
.cat-product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cat-product-old {
  font-size: 12px;
  color: var(--text-4);
  text-decoration: line-through;
}
.cat-product-new {
  font-size: 16px;
  color: var(--pink);
  font-weight: 800;
}
.cat-product-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--pink);
  color: var(--pink);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

/* Per-product quick actions (right side of cat-product) */
.cat-product-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.cat-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: var(--t-fast);
}
.cat-action-btn svg { width: 14px; height: 14px; }
.cat-action-btn.cat-fav.active {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: var(--pink);
}
.cat-action-btn.cat-fav.active svg { fill: var(--pink); }
.cat-action-btn.cat-add {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 2px 8px var(--pink-glow);
}
.cat-action-btn.cat-add:hover { transform: scale(1.08); }

/* Mini cart floating bar */
.mini-cart {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 90px;
  background: var(--bg-dark);
  color: var(--text-light-1);
  border-radius: 14px;
  padding: 12px 14px 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 50;
  animation: mini-cart-in 240ms var(--ease);
}
@keyframes mini-cart-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.mini-cart-stack {
  display: flex;
  align-items: center;
}
.mini-cart-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-dark);
  margin-left: -10px;
}
.mini-cart-thumb:first-child { margin-left: 0; }
.mini-cart-meta { flex: 1; min-width: 0; }
.mini-cart-title { font-size: 12px; opacity: 0.7; }
.mini-cart-total { font-size: 15px; font-weight: 800; color: var(--pink); }

/* ---- Misc ---- */
[data-href] { cursor: pointer; }
.divider { height: 1px; background: var(--divider); }

/* Utility: ẩn scrollbar nhưng giữ scroll (cross-browser) */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-pink { background: var(--pink); box-shadow: 0 0 0 4px var(--pink-tint); }
.dot-success { background: var(--success); }
.dot-warning { background: var(--warning); }
.dot-danger { background: var(--danger); }

/* ============================================================
   Coral Pop · Component overrides (the only theme)
   Transform design ngôn ngữ khi [data-theme="coral-pop"] active:
   extreme rounded, floating shadow, pill CTA bolder, image-forward,
   display typography lớn hơn + serif italic accent. Inspired by
   Hypebeast NFT / AirPods / Pixury cosmetic apps.
   ============================================================ */
[data-theme="coral-pop"] {
  /* Bump radius scale to feel softer / more modern */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
}

/* Body background — peach gradient instead of flat */
[data-theme="coral-pop"] body {
  background: radial-gradient(circle at 20% 10%, #ffe8df 0%, #fce4dc 40%, #f8d4c5 100%) fixed;
}

/* Cards — floating layered look, no border, larger radius, coral-tinted shadow */
[data-theme="coral-pop"] .card {
  border: none;
  border-radius: var(--r-xl);
  background: var(--bg-0);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 32px -8px rgba(255, 122, 107, 0.18),
    0 4px 12px rgba(26, 26, 46, 0.06);
}
[data-theme="coral-pop"] .card-elev {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 48px -12px rgba(255, 122, 107, 0.28),
    0 8px 24px rgba(26, 26, 46, 0.08);
}
[data-theme="coral-pop"] .card-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border-color: transparent;
}

/* Buttons — pill CTA bolder + floating coral glow */
[data-theme="coral-pop"] .btn {
  padding: 14px 24px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
}
[data-theme="coral-pop"] .btn-sm { padding: 10px 18px; }
[data-theme="coral-pop"] .btn-lg { padding: 18px 32px; font-size: var(--fs-md); }
[data-theme="coral-pop"] .btn-pink {
  box-shadow:
    0 8px 24px rgba(255, 122, 107, 0.45),
    0 2px 4px rgba(255, 122, 107, 0.25);
}
[data-theme="coral-pop"] .btn-pink:hover {
  background: var(--pink-2);
  transform: translateY(-1px);
  box-shadow:
    0 12px 32px rgba(255, 122, 107, 0.55),
    0 4px 8px rgba(255, 122, 107, 0.30);
}
[data-theme="coral-pop"] .btn-dark {
  background: #1a1a2e;
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.30);
}

/* Inputs — pill rounded, more padding, soft tinted bg */
[data-theme="coral-pop"] .input {
  border-radius: var(--r-full);
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 16px rgba(255, 122, 107, 0.10);
}

/* Badges — softer + more padding */
[data-theme="coral-pop"] .badge {
  padding: 6px 14px;
  letter-spacing: 0.06em;
  font-weight: var(--fw-bold);
}
[data-theme="coral-pop"] .badge-pink {
  box-shadow: 0 4px 12px rgba(255, 122, 107, 0.35);
}

/* Typography — bigger display, optional serif italic accent class */
[data-theme="coral-pop"] .display {
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
[data-theme="coral-pop"] .h1 { letter-spacing: -0.035em; line-height: 1.0; }
[data-theme="coral-pop"] .h2 { letter-spacing: -0.025em; }
[data-theme="coral-pop"] .text-balenciaga {
  letter-spacing: 0.22em;
  font-weight: 800;
}

/* Coral Pop accent serif italic — for editorial display flourish */
[data-theme="coral-pop"] .cp-italic {
  font-family: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Filter chip — pill bolder */
[data-theme="coral-pop"] .filter-chip {
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}
[data-theme="coral-pop"] .filter-chip.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 6px 16px rgba(255, 122, 107, 0.40);
}

/* KPI card — floating */
[data-theme="coral-pop"] .kpi {
  border: none;
  border-radius: var(--r-xl);
  background: var(--bg-0);
  padding: 24px;
  box-shadow:
    0 8px 24px -6px rgba(255, 122, 107, 0.18),
    0 2px 6px rgba(26, 26, 46, 0.04);
}

/* Sidebar (admin dashboard) — softer + rounded items */
[data-theme="coral-pop"] .dash-sidebar {
  background: rgba(255, 255, 255, 0.55);
  border-right: none;
  backdrop-filter: blur(20px);
}
[data-theme="coral-pop"] .dash-nav-item {
  border-radius: var(--r-md);
  margin: 2px 8px;
  padding: 10px 14px;
}
[data-theme="coral-pop"] .dash-nav-item.active {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 122, 107, 0.35);
}
[data-theme="coral-pop"] .dash-topbar {
  background: transparent;
  border: none;
}

/* Table — softer rows, more breathing */
[data-theme="coral-pop"] .table th {
  background: transparent;
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  font-weight: 700;
  letter-spacing: 0.08em;
}
[data-theme="coral-pop"] .table td {
  border-bottom: 1px solid rgba(26, 26, 46, 0.05);
  padding: 16px 20px;
}
[data-theme="coral-pop"] .table tbody tr:hover {
  background: rgba(255, 122, 107, 0.05);
}

/* Avatar — coral gradient */
[data-theme="coral-pop"] .avatar {
  background: linear-gradient(135deg, #ff7a6b 0%, #ffa490 60%, #f95d4d 100%);
  box-shadow: 0 4px 12px rgba(255, 122, 107, 0.30);
}

/* Mobile phone frame — softer shell */
[data-theme="coral-pop"] .phone {
  box-shadow:
    0 30px 80px rgba(255, 122, 107, 0.25),
    0 12px 24px rgba(26, 26, 46, 0.08);
}

/* Mobile bottom-nav — floating glass pill instead of flat edge bar, to match
   the coral-pop language (rounded, glassmorphism, coral-glow shadow). The
   peach phone interior shows through the margin gap = floating effect.
   `align-items: flex-end` is kept from the base rule (the FAB's negative
   margin-top depends on it) — only cosmetics + label wrapping are touched. */
[data-theme="coral-pop"] .bottom-nav {
  margin: 8px 8px 10px;
  padding: 10px 6px 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-top: none;
  border-radius: 26px;
  box-shadow:
    0 14px 34px -8px rgba(255, 122, 107, 0.34),
    0 4px 12px rgba(26, 26, 46, 0.06);
}
/* nowrap stops 2-word labels ("Khoá học", "Sản phẩm") wrapping in the
   narrower pill — wrapping made those items taller and pushed their icons
   out of line with single-word items. */
[data-theme="coral-pop"] .bottom-nav-item {
  white-space: nowrap;
  padding: 4px 2px;
  font-weight: var(--fw-semi);
}
[data-theme="coral-pop"] .bottom-nav-item.active {
  color: var(--pink);
}
/* FAB — stronger coral glow + white ring sized for the glass pill */
[data-theme="coral-pop"] .bottom-nav-fab {
  box-shadow:
    0 10px 28px rgba(255, 122, 107, 0.50),
    0 0 0 5px rgba(255, 255, 255, 0.95);
}

/* Row action icon — softer */
[data-theme="coral-pop"] .row-action {
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.5);
}
[data-theme="coral-pop"] .row-action:hover {
  background: var(--pink);
  box-shadow: 0 4px 12px rgba(255, 122, 107, 0.40);
}

/* CMS sticky footer action bar (course-editor) — theme-adaptive shadow.
   Default: neutral upward shadow. Coral Pop: coral-glow upward shadow +
   glass bg so it matches the rest of the coral-pop CMS surfaces. */
.cms-action-bar {
  box-shadow: 0 -4px 16px rgba(10, 10, 10, 0.08);
}
[data-theme="coral-pop"] .cms-action-bar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow:
    0 -10px 30px -6px rgba(255, 122, 107, 0.30),
    0 -2px 8px rgba(26, 26, 46, 0.06);
}

/* ============================================================
   Coral Pop — utility classes (showcase design language)
   Dùng cho demo + có thể tái sử dụng trong các trang khác khi
   theme coral-pop active.
   ============================================================ */

/* Hero card — image-forward, extra rounded, floating */
.cp-hero {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg-2);
}
[data-theme="coral-pop"] .cp-hero {
  border-radius: 40px;
  box-shadow:
    0 30px 60px -16px rgba(255, 122, 107, 0.35),
    0 12px 24px rgba(26, 26, 46, 0.10);
}

/* Floating pill chip — for "20 new arrivals 🔥" style */
.cp-float-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(26, 26, 46, 0.12);
  backdrop-filter: blur(8px);
}

/* Color swatch row — circular */
.cp-swatch-row { display: flex; gap: 14px; align-items: center; }
.cp-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.12);
  cursor: pointer;
  transition: transform 200ms;
}
.cp-swatch:hover { transform: scale(1.15); }
.cp-swatch.active {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* Feature icon row (Clean / Longwear / Hydrating style) */
.cp-feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  text-align: center;
}
.cp-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px;
}
.cp-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(255, 122, 107, 0.18);
}
.cp-feature-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.2;
}

/* Sticky CTA bar at bottom (Buy NFT / Place Bid style) */
.cp-sticky-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: var(--bg-0);
  border-radius: 9999px;
  box-shadow:
    0 16px 40px rgba(255, 122, 107, 0.25),
    0 4px 12px rgba(26, 26, 46, 0.10);
}
.cp-sticky-cta .cp-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cp-sticky-cta .cp-cta-text {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-1);
}
.cp-sticky-cta .cp-cta-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Info chip stack (right-side: 03 Run / 04 Round / 30m style) */
.cp-info-stack { display: flex; flex-direction: column; gap: 12px; }
.cp-info-pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.06);
}
.cp-info-pill .cp-info-value { font-size: 16px; font-weight: 800; color: #1a1a2e; }
.cp-info-pill .cp-info-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* Star rating (4.9 (2.4K) style) */
.cp-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.cp-rating .cp-stars { color: #ffb547; letter-spacing: 1px; }
.cp-rating .cp-rating-num { font-weight: 800; color: var(--text-1); }
.cp-rating .cp-rating-count { color: var(--text-3); font-size: 12px; }
