/*
Theme Name: Bình Minh Hoa
Theme URI: https://cothoanina.byethost7.com
Author: Antigravity AI
Author URI: https://cothoanina.byethost7.com
Description: Theme WordPress chuyên nghiệp dành cho cửa hàng Hoa Tươi & Hoa Lụa Bình Minh Hoa. Tích hợp giỏ hàng AJAX, quản lý đơn hàng, phân quyền Supervisor/User, báo cáo doanh thu xuất Excel và hệ thống Voucher nâng cao.
Version: 98.0.0
License: GNU General Public License v2 or later
Text Domain: binh-minh-hoa
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #e63946;
  --primary-hover: #d62828;
  --primary-light: #fbeef0;
  --secondary: #457b9d;
  --dark: #1d3557;
  --light: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-family); background-color: var(--light); color: var(--gray-800); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* WP Core Requirements */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

/* ===== FRONTEND STYLES ===== */
/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2040;
  --blue-800: #1a3560;
  --blue-700: #1e4080;
  --blue-600: #1d5bb3;
  --blue-500: #2979d8;
  --blue-400: #5ba3f5;
  --blue-100: #e8f1fc;
  --blue-50:  #f0f6ff;

  --gold:    #c89b3c;
  --gold-lt: #f5e4b4;

  --pink:    #f06292;
  --pink-lt: #fce4ec;

  --white:   #ffffff;
  --gray-50: #f8f9fa;
  --gray-100:#f1f3f5;
  --gray-200:#e9ecef;
  --gray-400:#adb5bd;
  --gray-600:#6c757d;
  --gray-800:#343a40;
  --dark:    #0d1b2a;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(29,91,179,.08);
  --shadow-md: 0 8px 24px rgba(29,91,179,.14);
  --shadow-lg: 0 20px 60px rgba(29,91,179,.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition: .3s cubic-bezier(.4,0,.2,1);
  --transition-slow: .6s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.section { padding: 5rem 0; }
.section--alt { background: linear-gradient(to bottom, var(--white) 0%, var(--blue-50) 40px, var(--blue-50) calc(100% - 40px), var(--white) 100%); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.animate-fade-up { opacity: 0; animation: fadeUp .8s var(--transition-slow) forwards; }
.delay-1 { animation-delay: .15s; }
.delay-2 { animation-delay: .3s; }
.delay-3 { animation-delay: .45s; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--blue-900);
  line-height: 1.25;
  margin-bottom: .8rem;
}
.section-sub {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: var(--transition);
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--gray-800);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.dropdown__item:hover { background: var(--blue-50); color: var(--blue-600); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,50,.82) 0%,
    rgba(29,91,179,.55) 60%,
    rgba(10,22,50,.4) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 9rem 1.5rem 6rem;
}
.hero__sub {
  color: var(--blue-400);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.hero__desc {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 22px; height: 38px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 11px;
  position: relative;
}
.hero__scroll span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollBounce 1.8s infinite;
}

/* ===== CATEGORIES ===== */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}
.category-card:hover::before { opacity: 1; }
.category-card:hover { border-color: var(--blue-600); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card:hover .category-card__title,
.category-card:hover .category-card__desc { color: var(--white); }

.category-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}
.category-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.category-card__desc {
  font-size: .88rem;
  color: var(--gray-600);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

/* ===== FEATURES BAR ===== */
.features-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  border-radius: var(--radius-md);
  padding: 1.25rem 2rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  font-size: .9rem;
  font-weight: 500;
}
.feature-icon { font-size: 1.2rem; }

/* ===== PRODUCTS ===== */
.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-card__img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.product-card__img {
  width: 100%; height: 240px;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-card__img { transform: scale(1.07); }

.product-card__badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--pink);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 100px;
}
.product-card__badge--blue { background: var(--blue-600); }
.product-card__badge--gold { background: var(--gold); }

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,32,64,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .product-card__overlay { opacity: 1; }

.product-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--blue-900);
  margin-bottom: .4rem;
  font-weight: 600;
}
.product-card__desc {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: .8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: .5rem;
}
.product-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-600);
}

/* ===== WHY US ===== */
.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-us__content .section-title { text-align: left; }
.why-us__text { color: var(--gray-600); line-height: 1.8; margin-bottom: 2rem; }
.why-us__stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-600);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: var(--gray-600); margin-top: .25rem; }

.why-us__features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 2rem; }
.feature-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--gray-800);
}
.feature-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.why-us__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.why-us__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.why-us__badge-float {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-float__number { font-size: 1.6rem; font-weight: 700; color: var(--blue-700); }
.badge-float__text { font-size: .75rem; color: var(--gray-600); }

/* ===== BLOG ===== */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.blog-card__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card__img { transform: scale(1.06); }
.blog-card__tag {
  position: absolute;
  top: .75rem; left: .75rem;
  background: rgba(29,91,179,.9);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 100px;
}
.blog-card__body { padding: 1.5rem; }
.blog-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--blue-900);
  line-height: 1.4;
  margin-bottom: .6rem;
  font-weight: 600;
}
.blog-card__excerpt { font-size: .88rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1rem; }
.blog-card__link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: var(--transition);
}
.blog-card__link:hover { color: var(--blue-800); letter-spacing: .03em; }

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}
.contact__info-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--blue-900);
  margin-bottom: 1.5rem;
}
.contact__detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}
.contact__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.contact__detail strong { display: block; font-size: .85rem; font-weight: 600; color: var(--gray-800); margin-bottom: .15rem; }
.contact__detail p { font-size: .9rem; color: var(--gray-600); }

.contact__socials { display: flex; gap: .75rem; margin-top: 1.5rem; }
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  transition: var(--transition);
}
.social-btn:hover { background: var(--blue-600); color: var(--white); transform: translateY(-3px); }

/* Form */
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(41,121,216,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; font-size: .8rem; color: var(--gray-600); margin-top: .75rem; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 1.5rem 3rem;
}
.footer__brand .logo { margin-bottom: 1rem; }
.footer__brand-desc { font-size: .88rem; line-height: 1.7; color: rgba(255,255,255,.6); max-width: 260px; }

.footer__heading { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.footer__list li { margin-bottom: .55rem; }
.footer__list a { font-size: .88rem; color: rgba(255,255,255,.6); transition: var(--transition); }
.footer__list a:hover { color: var(--blue-400); }
.footer__list--contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; }
.footer__list--contact span { flex-shrink: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 1.25rem 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid #22c55e;
  transform: translateX(150%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  min-width: 300px;
}
.toast.show { transform: translateX(0); }
.toast__icon { font-size: 1.3rem; }
.toast__msg { font-size: .92rem; font-weight: 500; color: var(--gray-800); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 44px; height: 44px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-800); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .why-us__inner { grid-template-columns: 1fr; gap: 3rem; }
  .why-us__image { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(15,32,64,.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav__link { padding: .9rem 1rem; border-radius: var(--radius-sm); }
  .nav__dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255,255,255,.05);
    box-shadow: none;
    border-radius: 0;
    animation: none;
  }
  .dropdown__item { color: rgba(255,255,255,.7); }
  .dropdown__item:hover { background: rgba(255,255,255,.1); color: var(--white); }

  .hero__title { font-size: 2.8rem; }
  .hero__desc { font-size: 1rem; }
  .hero__actions { flex-direction: column; }

  .categories__grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .products__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .blog__grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact__form { padding: 1.75rem; }

  .footer__inner { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem 2rem; }
  .why-us__stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .categories__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.2rem; }
  .why-us__badge-float { left: .5rem; bottom: .5rem; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ===== VOUCHER SHOWCASE (Front page) ===== */
.vouchers-showcase {
  position: relative;
  background: linear-gradient(135deg, #fef3c7 0%, #fff7ed 50%, #fce7f3 100%);
}
.vouchers-showcase::before,
.vouchers-showcase::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  pointer-events: none;
}
.vouchers-showcase::before {
  top: 0;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
}
.vouchers-showcase::after {
  bottom: 0;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
}

.voucher-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.vs-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
  background: var(--white);
}
.vs-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.vs-card__ticket {
  display: flex;
  position: relative;
  color: var(--white);
  min-height: 100px;
}
.vs-card__ticket::before,
.vs-card__ticket::after {
  content: '';
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.vs-card__ticket::before { left: -11px; }
.vs-card__ticket::after  { right: -11px; }

/* Type theming */
.vs-buy_get  .vs-card__ticket { background: linear-gradient(135deg, #f59e0b, #d97706); }
.vs-percent  .vs-card__ticket { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.vs-fixed    .vs-card__ticket { background: linear-gradient(135deg, #22c55e, #16a34a); }
.vs-free_ship .vs-card__ticket { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }

.vs-card__left {
  flex: 1;
  padding: 1.25rem 1rem 1.25rem 1.75rem;
  display: flex; flex-direction: column; justify-content: center;
}
.vs-card__icon { font-size: 1.8rem; margin-bottom: .3rem; }
.vs-card__code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: .12em;
  background: rgba(255,255,255,.2);
  padding: .15rem .5rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: .3rem;
}
.vs-card__name {
  font-size: .9rem;
  opacity: .92;
  font-weight: 600;
}

.vs-card__right {
  min-width: 110px;
  padding: 1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(255,255,255,.35);
  text-align: center;
}
.vs-card__value {
  font-size: 1.3rem; font-weight: 900; line-height: 1.2;
  white-space: pre-line;
}
.vs-card__unit  { font-size: .72rem; opacity: .85; margin-top: .15rem; }

.vs-card__body {
  padding: .85rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
}
.vs-card__condition {
  font-size: .82rem; color: #6b7280;
  flex: 1;
}
.vs-card__expiry {
  font-size: .75rem;
  color: #9ca3af;
  white-space: nowrap;
}

.vs-card__copy-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--blue-600);
  color: var(--white);
  border: none; border-radius: 8px;
  padding: .45rem .85rem;
  font-size: .82rem; font-weight: 700;
  cursor: pointer;
  transition: background .25s, transform .15s;
  white-space: nowrap;
}
.vs-card__copy-btn:hover { background: var(--blue-700); transform: scale(1.05); }
.vs-card__copy-btn.copied {
  background: #16a34a;
  pointer-events: none;
}

.vs-empty {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-size: .95rem;
  grid-column: 1 / -1;
}

/* ===== FLOATING VOUCHER BOX ===== */
.vf-box {
  position: fixed;
  top: 100px; left: 24px;
  z-index: 9999;
  width: 230px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transform: translateX(120%) scale(.8);
  opacity: 0;
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  pointer-events: none;
}
.vf-box.visible {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.vf-box.dismissed {
  transform: translateX(120%) scale(.8) !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Pulsing glow border */
.vf-box__pulse {
  display: none;
}
@keyframes vfSpin {
  100% { transform: rotate(360deg); }
}

.vf-box__close {
  position: absolute; top: 8px; right: 8px;
  background: var(--gray-100);
  border: none; color: var(--gray-600);
  width: 24px; height: 24px; border-radius: 50%;
  font-size: .75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; z-index: 5;
}
.vf-box__close:hover { background: var(--gray-200); color: var(--gray-900); }

.vf-box__header { padding: .4rem .8rem .2rem; text-align: center; }
.vf-box__tag {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white; font-size: .65rem; font-weight: 800;
  padding: .15rem .5rem; border-radius: 100px; letter-spacing: .08em;
  animation: vfTagPulse 2s ease-in-out infinite;
}
@keyframes vfTagPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 8px rgba(245,158,11,.5); }
}

.vf-box__carousel {
  padding: .4rem .6rem; min-height: 70px;
  position: relative; overflow: hidden;
}
.vf-slide {
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; text-align: center; color: var(--gray-800);
  position: absolute; inset: 0; padding: .4rem .6rem;
  justify-content: center; opacity: 0;
  transform: translateX(20px);
  transition: opacity .4s, transform .4s; cursor: pointer;
}
.vf-slide.active { opacity: 1; transform: translateX(0); position: relative; }
.vf-slide__icon { font-size: 1.2rem; }
.vf-slide__code {
  font-family: 'Courier New', monospace;
  font-size: .9rem; font-weight: 900; letter-spacing: .08em;
  background: var(--gray-100); color: var(--gray-900);
  padding: .15rem .5rem; border-radius: 6px;
  animation: vfCodeGlow 2.5s ease-in-out infinite;
}
@keyframes vfCodeGlow {
  0%, 100% { background: var(--gray-100); }
  50% { background: var(--gray-200); }
}
.vf-slide__value {
  font-size: .95rem; font-weight: 900; color: #fbbf24;
  text-shadow: 0 0 8px rgba(251,191,36,.4);
}
.vf-slide__name { font-size: .7rem; opacity: .85; }
.vf-slide__copy { font-size: .6rem; opacity: .7; margin-top: .1rem; }

.vf-box__dots {
  display: flex; justify-content: center; gap: 5px; padding: .25rem 0 .4rem;
}
.vf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-300); transition: all .3s;
}
.vf-dot.active { background: #fbbf24; width: 16px; border-radius: 3px; }

.vf-box__cta {
  display: block; width: calc(100% - 1.2rem); margin: 0 auto .6rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white; border: none; padding: .4rem;
  border-radius: 8px; font-size: .75rem; font-weight: 700;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  animation: vfCtaPulse 2.5s ease-in-out infinite;
}
.vf-box__cta:hover { transform: scale(1.04); box-shadow: 0 0 12px rgba(245,158,11,.5); }
@keyframes vfCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.4); }
  50% { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

@media (max-width: 480px) {
  .vf-box { width: 250px; top: 80px; left: 16px; }
}

/* ===== SHOPPING CART UI ===== */
.floating-cart-btn {
  position: fixed;
  bottom: 80px; /* Above back to top */
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 99;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-cart-btn:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}
.floating-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fbbf24; /* yellow-400 */
  color: #000;
  font-size: 0.8rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Cart Modal */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cart-modal-content {
  background: white;
  width: 100%;
  max-width: 400px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-modal-overlay.active .cart-modal-content {
  transform: translateX(0);
}
.cart-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-modal-header h3 {
  font-size: 1.25rem;
  margin: 0;
}
.cart-modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
}
.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 1rem;
}
.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.cart-item-price {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--gray-300);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--gray-100); }
.cart-item-remove {
  color: var(--red-500);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}
.cart-modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.cart-voucher-wrap {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.cart-voucher-wrap input {
  flex: 1; padding: 0.6rem; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 0.9rem;
}
.cart-voucher-wrap button {
  padding: 0 1rem; background: var(--gray-800); color: white; border: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cart-empty-state {
  text-align: center;
  padding: 3rem 0;
  color: var(--gray-500);
}


/* ===== ADMIN STYLES ===== */
/* ===== RESET & VARS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-900: #0f2040;
  --blue-800: #1a3560;
  --blue-700: #1e4080;
  --blue-600: #1d5bb3;
  --blue-500: #2979d8;
  --blue-400: #5ba3f5;
  --blue-100: #e8f1fc;
  --blue-50:  #f0f6ff;

  --sidebar-bg: #0d1b2a;
  --sidebar-text: rgba(255,255,255,.75);
  --sidebar-active: rgba(41,121,216,.25);
  --sidebar-border: rgba(255,255,255,.06);

  --white:   #ffffff;
  --gray-50: #f8f9fa;
  --gray-100:#f1f3f5;
  --gray-200:#e9ecef;
  --gray-300:#dee2e6;
  --gray-400:#ced4da;
  --gray-500:#adb5bd;
  --gray-600:#6c757d;
  --gray-700:#495057;
  --gray-800:#343a40;
  --dark:    #0d1b2a;

  --green:  #22c55e;
  --red:    #ef4444;
  --orange: #f97316;
  --purple: #a855f7;
  --gold:   #f59e0b;

  --font: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', serif;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --sidebar-w: 260px;
  --topbar-h: 64px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.hidden { display: none !important; }

/* ===== LOGIN ===== */
.login-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: linear-gradient(135deg, var(--blue-900), var(--dark));
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-logo {
  font-size: 2rem;
  margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.login-logo span { font-family: var(--font-serif); font-size: 1.4rem; color: var(--blue-900); }
.login-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: .35rem; }
.login-sub { font-size: .88rem; color: var(--gray-600); margin-bottom: 1.75rem; }
.login-error { color: var(--red); font-size: .85rem; margin-bottom: .75rem; }
.login-hint { font-size: .8rem; color: var(--gray-500); margin-top: 1rem; }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 2.5rem; }
.input-icon { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); }

/* ===== LAYOUT ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  min-height: 100vh;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
.sidebar.closed { transform: translateX(-100%); }

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
}
.brand-icon { font-size: 2rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.brand-role { font-size: .72rem; color: var(--blue-400); }

.sidebar__nav { padding: 1rem .75rem; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.nav-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: rgba(255,255,255,.35); text-transform: uppercase;
  padding: .5rem .5rem .25rem;
}
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500;
  color: var(--sidebar-text);
  transition: var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--sidebar-active); color: var(--white); }
.nav-item.active { background: var(--sidebar-active); color: var(--white); border-left: 3px solid var(--blue-400); }
.nav-icon { font-size: 1.1rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--blue-600);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

/* MAIN */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin var(--transition);
}
.admin-main.expanded { margin-left: 0; }

/* TOPBAR */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.topbar__left { display: flex; align-items: center; gap: 1rem; }
.sidebar-toggle {
  font-size: 1.3rem;
  padding: .35rem;
  color: var(--gray-600);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { background: var(--gray-100); color: var(--dark); }
.breadcrumb { font-size: .9rem; font-weight: 600; color: var(--gray-700); }

.topbar__right { display: flex; align-items: center; gap: 1.25rem; }
.topbar__time { font-size: .82rem; color: var(--gray-500); }
.topbar__avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* CONTENT */
.admin-content { flex: 1; padding: 2rem 1.75rem; }
.panel { }
.panel.hidden { display: none; }

.panel-header { margin-bottom: 2rem; }
.panel-header--row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.panel-title { font-family: var(--font-serif); font-size: 1.7rem; color: var(--dark); margin-bottom: .3rem; }
.panel-sub { color: var(--gray-600); font-size: .9rem; }
.panel-header select {
  border-radius: 30px;
  padding: .6rem 1rem;
  border: 1px solid var(--gray-300);
  background-color: var(--gray-50);
  font-family: inherit;
  font-size: .9rem;
}
.panel-header select:focus {
  background-color: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(41,121,216,.1);
  outline: none;
}

/* ===== STATS GRID ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card__icon { font-size: 2.2rem; }
.stat-card__num { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-card__label { font-size: .78rem; color: var(--gray-600); margin-top: .25rem; }
.stat-card--blue .stat-card__num { color: var(--blue-600); }
.stat-card--green .stat-card__num { color: var(--green); }
.stat-card--purple .stat-card__num { color: var(--purple); }
.stat-card--orange .stat-card__num { color: var(--orange); }

/* DASHBOARD GRID */
.dashboard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; }
.dash-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.dash-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--gray-200);
}
.dash-card__header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.dash-link { font-size: .82rem; color: var(--blue-600); font-weight: 500; }
.dash-link:hover { text-decoration: underline; }

.recent-products { display: flex; flex-direction: column; gap: .75rem; }
.recent-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
}
.recent-item img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; }
.recent-item-info { flex: 1; }
.recent-item-name { font-size: .88rem; font-weight: 600; color: var(--dark); }
.recent-item-price { font-size: .8rem; color: var(--blue-600); font-weight: 600; }

.quick-guide { display: flex; flex-direction: column; gap: .85rem; }
.guide-item { display: flex; align-items: flex-start; gap: .85rem; font-size: .9rem; color: var(--gray-700); }
.guide-num {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--blue-100);
  color: var(--blue-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}

/* ===== TABLE TOOLBAR ===== */
.table-toolbar {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: center;
}
.search-wrap {
  position: relative; flex: 1; min-width: 220px;
}
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--gray-400); }
.search-wrap input { 
  padding-left: 2.6rem; 
  border-radius: 30px; 
  border: 1px solid var(--gray-300);
  padding-top: .6rem; padding-bottom: .6rem;
  background-color: var(--gray-50);
}
.search-wrap input:focus {
  background-color: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(41,121,216,.1);
}
.table-toolbar select { 
  min-width: 180px; 
  border-radius: 30px;
  padding: .6rem 1rem;
  border: 1px solid var(--gray-300);
  background-color: var(--gray-50);
}
.table-toolbar select:focus {
  background-color: var(--white);
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(41,121,216,.1);
}
.table-toolbar .btn { border-radius: 30px; padding: .6rem 1.4rem; }

/* ===== DATA TABLE ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-200); }
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--white);
  font-size: .88rem;
}
.data-table thead th {
  background: var(--gray-50);
  padding: .85rem 1rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
/* Column widths for Product Table */
#productTable th:nth-child(1) { width: 60px; }  /* Ảnh */
#productTable th:nth-child(2) { width: 20%; }    /* Tên */
#productTable th:nth-child(3) { width: auto; }   /* Mô tả */
#productTable th:nth-child(4) { width: 110px; }  /* Giá */
#productTable th:nth-child(5) { width: 90px; }   /* Badge */
#productTable th:nth-child(6) { width: 110px; }  /* Thao tác */

.data-table tbody td {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--blue-50); }

.table-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid var(--gray-200);
}
.table-img-placeholder {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border: 2px solid var(--gray-200);
}
.table-name { font-weight: 600; color: var(--dark); word-break: break-word; white-space: normal; }
.table-desc {
  color: var(--gray-600);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.table-price { font-weight: 700; color: var(--blue-600); white-space: nowrap; }
.badge-pill {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
}
.badge-pink  { background: #fce4ec; color: #c2185b; }
.badge-blue  { background: var(--blue-100); color: var(--blue-700); }
.badge-gold  { background: #fef3c7; color: #92400e; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red   { background: #fee2e2; color: #991b1b; }

.action-btns { display: flex; gap: .5rem; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-icon--edit { background: var(--blue-100); color: var(--blue-700); }
.btn-icon--edit:hover { background: var(--blue-600); color: var(--white); }
.btn-icon--del { background: #fee2e2; color: var(--red); }
.btn-icon--del:hover { background: var(--red); color: var(--white); }

/* Responsive table */
@media (max-width: 1024px) {
  .data-table { min-width: 600px; }
  .data-table tbody td { padding: .65rem .6rem; font-size: .82rem; }
  .data-table thead th { padding: .65rem .6rem; }
}


.empty-td { text-align: center; }
.empty-state { color: var(--gray-500); font-size: .9rem; padding: 1rem; }
.empty-state-big {
  display: flex; flex-direction: column; align-items: center;
  gap: .75rem; padding: 3rem;
  color: var(--gray-500);
}
.empty-state-big span { font-size: 3rem; }
.empty-state-big p { font-size: 1rem; font-weight: 500; }

/* ===== CATEGORIES ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}
.cat-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow-md); }
.cat-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.cat-card__name { font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.cat-card__desc { font-size: .85rem; color: var(--gray-600); }
.cat-card__actions {
  position: absolute; top: .75rem; right: .75rem;
  display: flex; gap: .4rem;
  opacity: 0; transition: var(--transition);
}
.cat-card:hover .cat-card__actions { opacity: 1; }

/* ===== SETTINGS ===== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.settings-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.settings-card--full { grid-column: 1 / -1; }
.settings-card__title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 1.25rem; }
.stats-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.save-success { font-size: .85rem; color: var(--green); margin-top: .75rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: .4rem;
}
.required { color: var(--red); }
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(41,121,216,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* Custom Dropdown UI */
.custom-dropdown {
  position: relative;
  min-width: 150px;
  user-select: none;
}
.custom-dropdown-selected {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 0.55rem 2.5rem 0.55rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.custom-dropdown-selected:hover { border-color: var(--gray-400); }
.custom-dropdown.active .custom-dropdown-selected {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.custom-dropdown-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  z-index: 100;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.custom-dropdown-options.hidden { display: none; }
.custom-dropdown-item {
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.2s;
}
.custom-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--blue-600);
}
.custom-dropdown-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-600);
  font-weight: 600;
}

/* Toggle checkbox */
.toggle-label { display: flex; align-items: center; gap: .75rem; cursor: pointer; font-size: .9rem; }
.toggle-label input[type="checkbox"] { display: none; }
.toggle-switch {
  width: 42px; height: 24px;
  background: var(--gray-300);
  border-radius: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}
.toggle-switch::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-label input:checked + .toggle-switch { background: var(--blue-500); }
.toggle-label input:checked + .toggle-switch::before { transform: translateX(18px); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font); font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 18px rgba(41,121,216,.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  box-shadow: 0 5px 20px rgba(41,121,216,.4);
}
.btn--ghost { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn--ghost:hover { background: var(--gray-200); }
.btn--outline-blue { background: transparent; border-color: var(--blue-400); color: var(--blue-600); }
.btn--outline-blue:hover { background: var(--blue-50); }
.btn--danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--danger:hover { background: #dc2626; }
.btn--sm { padding: .45rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; justify-content: center; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,27,42,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 780px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s ease;
}
.modal--sm { max-width: 440px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}
.modal__title { font-family: var(--font-serif); font-size: 1.25rem; color: var(--dark); font-weight: 700; }
.modal__close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal__close:hover { background: var(--gray-200); color: var(--dark); }

.modal__body { flex: 1; overflow-y: auto; padding: 1.75rem; }
.modal__footer {
  display: flex; align-items: center; justify-content: flex-end; gap: .75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gray-200);
}

/* MODAL GRID */
.modal-grid { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.upload-col {}
.upload-label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-700); margin-bottom: .5rem; }

.upload-area {
  width: 100%;
  aspect-ratio: 3/4;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  background: var(--gray-50);
  position: relative;
}
.upload-area:hover { border-color: var(--blue-400); background: var(--blue-50); }
.upload-area.dragover { border-color: var(--blue-500); background: var(--blue-50); }
.upload-preview { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  text-align: center; padding: 1rem;
  color: var(--gray-600); font-size: .85rem;
  pointer-events: none;
}
.upload-icon { font-size: 2.5rem; }

/* ===== TOAST ===== */
.toast-admin {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: .85rem 1.25rem;
  display: flex; align-items: center; gap: .65rem;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--green);
  font-size: .9rem; font-weight: 500;
  color: var(--dark);
  transform: translateX(120%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  min-width: 280px;
}
.toast-admin.show { transform: translateX(0); }

/* ===== RESPONSIVE DESKTOP VS MOBILE SEPARATION ===== */
@media (min-width: 1025px) {
  .products__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1.25rem !important; }
  .categories__grid { grid-template-columns: repeat(4, 1fr) !important; gap: 1.25rem !important; }
  .product-card__img-wrap, .product-card__img { height: 240px !important; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .products__grid { grid-template-columns: repeat(3, 1fr) !important; gap: 1rem !important; }
  .blog__grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-card__img-wrap, .product-card__img { height: 200px !important; }
}

@media (max-width: 768px) {
  .categories__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
  .products__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }
  .product-card__img-wrap, .product-card__img { height: 155px !important; }
  .product-card__body { padding: .75rem !important; }
  .product-card__name { font-size: .88rem !important; margin-bottom: .25rem !important; }
  .product-card__desc { font-size: .75rem !important; -webkit-line-clamp: 2 !important; margin-bottom: .5rem !important; }
  .product-card__price { font-size: .9rem !important; }
  .product-card__footer .btn { padding: .3rem .5rem !important; font-size: .75rem !important; }

  .blog__grid { grid-template-columns: 1fr !important; max-width: 500px !important; margin: 0 auto !important; }
  .contact__grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .contact__form { padding: 1.75rem !important; }
  .footer__grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0 !important; }
  .categories__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem !important; }
  .products__grid { grid-template-columns: repeat(2, 1fr) !important; gap: .6rem !important; }
  .product-card__img-wrap, .product-card__img { height: 145px !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-inputs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .modal-grid { grid-template-columns: 1fr; }
  .upload-area { aspect-ratio: 16/9; max-height: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-content { padding: 1.25rem 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .chpwd-wrap { grid-template-columns: 1fr; }
  .order-summary-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .order-summary-bar { grid-template-columns: 1fr 1fr; }
}

/* ===== NAV BADGE VARIANTS ===== */
.nav-badge--orange { background: var(--orange) !important; }

/* ===== ORDER SUMMARY BAR ===== */
.order-summary-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.order-summary-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.order-summary-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.os-num { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--dark); }
.os-label { font-size: .75rem; color: var(--gray-600); margin-top: .3rem; text-align: center; }
.os-pending   .os-num { color: var(--orange); }
.os-confirmed .os-num { color: var(--blue-600); }
.os-done      .os-num { color: var(--green); }
.os-cancelled .os-num { color: var(--red); }

/* ===== ORDER STATUS BADGES ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .28rem .7rem;
  border-radius: 100px;
  font-size: .75rem; font-weight: 700;
  white-space: nowrap;
}
.status-pending    { background: #fff3e0; color: #e65100; }
.status-confirmed  { background: var(--blue-100); color: var(--blue-700); }
.status-delivering { background: #e8f5e9; color: #2e7d32; }
.status-done       { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

.status-select {
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  padding: .2rem .65rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.status-select:focus { box-shadow: 0 0 0 3px rgba(41,121,216,.15); }

.order-note {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gray-600);
  font-size: .85rem;
}

.recent-order-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  margin-bottom: .6rem;
  font-size: .88rem;
}
.recent-order-item:last-child { margin-bottom: 0; }
.roi-name { font-weight: 600; color: var(--dark); }
.roi-meta { font-size: .78rem; color: var(--gray-500); }

/* ===== CHANGE PASSWORD ===== */
.chpwd-wrap {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 2rem;
  align-items: start;
}
.chpwd-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.chpwd-icon { font-size: 3.5rem; text-align: center; margin-bottom: 1rem; }
.chpwd-title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 700;
  color: var(--dark); text-align: center; margin-bottom: .4rem;
}
.chpwd-desc { font-size: .88rem; color: var(--gray-600); text-align: center; margin-bottom: 1.75rem; }
.chpwd-hint { text-align: center; font-size: .8rem; color: var(--gray-500); margin-top: 1rem; }
.chpwd-hint code {
  background: var(--gray-100); padding: .1rem .4rem;
  border-radius: 4px; font-family: monospace;
}

.pwd-input-wrap { position: relative; }
.pwd-input-wrap input { padding-right: 2.8rem; }
.pwd-toggle {
  position: absolute; right: .6rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: var(--gray-500);
  transition: var(--transition); line-height: 1;
}
.pwd-toggle:hover { color: var(--blue-600); }

.pwd-strength-wrap { margin-top: .6rem; display: flex; align-items: center; gap: .75rem; }
.pwd-strength-bar { flex: 1; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.pwd-strength-fill { height: 100%; border-radius: 3px; transition: width .4s ease, background .4s ease; width: 0; }
.pwd-strength-label { font-size: .8rem; font-weight: 600; white-space: nowrap; }

.pwd-rules { background: var(--gray-50); border-radius: var(--radius-sm); padding: 1rem; margin-top: .75rem; }
.pwd-rules-title { font-size: .8rem; font-weight: 700; color: var(--gray-700); margin-bottom: .5rem; }
.pwd-rule {
  font-size: .82rem; color: var(--gray-500); margin-bottom: .3rem;
  display: flex; align-items: center; gap: .4rem;
  transition: var(--transition);
}
.pwd-rule.valid { color: var(--green); font-weight: 600; }
.rule-icon { font-style: normal; width: 14px; }

.pwd-error {
  background: #fee2e2; border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: .65rem 1rem; font-size: .85rem; color: #dc2626; margin-top: .5rem;
}

.pwd-log-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
}
.pwd-log-card h4 {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--gray-200);
}
.pwd-log-item {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .85rem; border-radius: var(--radius-sm);
  background: var(--gray-50); margin-bottom: .6rem;
}
.pwd-log-item:last-child { margin-bottom: 0; }
.pwd-log-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-400); margin-top: .35rem; flex-shrink: 0; }
.pwd-log-time { font-size: .8rem; color: var(--gray-500); }
.pwd-log-msg  { font-size: .88rem; font-weight: 500; color: var(--dark); }

/* ===== NAV BADGE PURPLE ===== */
.nav-badge--purple { background: var(--purple) !important; }

/* ===== TOPBAR USER INFO ===== */
.topbar__user-info {
  display: flex; align-items: center; gap: .65rem;
}
.topbar__user-detail {
  display: flex; flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.topbar__username {
  font-size: .88rem; font-weight: 700;
  color: var(--dark);
}
.topbar__role {
  font-size: .72rem; color: var(--gray-500);
}

/* ===== USERS MANAGEMENT ===== */
.users-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 1024px) { .users-layout { grid-template-columns: 1fr; } }

.user-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.user-form-title {
  font-size: 1rem; font-weight: 700; color: var(--dark);
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-100);
}
.field-hint { font-size: .75rem; color: var(--gray-500); margin-top: .3rem; display: block; }
.user-form-error {
  background: #fee2e2; border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: .6rem .9rem; font-size: .85rem; color: #dc2626;
  margin-top: .5rem;
}

/* Role radio selector */
.role-select-wrap { display: flex; flex-direction: column; gap: .75rem; margin-top: .5rem; }
.role-option { display: flex; cursor: pointer; }
.role-option input[type="radio"] { display: none; }
.role-option-card {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
  flex: 1;
}
.role-option input:checked + .role-option-card {
  border-color: var(--blue-500);
  background: var(--blue-50);
}
.role-option-card:hover { border-color: var(--blue-400); }
.role-icon-big { font-size: 1.5rem; }
.role-option-card strong { display: block; font-size: .9rem; color: var(--dark); }
.role-option-card small { font-size: .78rem; color: var(--gray-500); }

/* Users list card */
.users-list-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.users-list-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: .75rem;
  border-bottom: 2px solid var(--blue-100);
}
.users-list-header h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.user-count-badge {
  background: var(--blue-100); color: var(--blue-700);
  padding: .2rem .7rem; border-radius: 100px;
  font-size: .78rem; font-weight: 700;
}

/* User card in list */
.user-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.user-card:last-child { margin-bottom: 0; }
.user-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.user-card--admin { border-left: 4px solid var(--gold); }
.user-card--user  { border-left: 4px solid var(--blue-400); }
.user-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  flex-shrink: 0;
}
.user-card--admin .user-card__avatar { background: linear-gradient(135deg,#f59e0b,#d97706); color: var(--white); }
.user-card--user  .user-card__avatar { background: linear-gradient(135deg,var(--blue-500),var(--blue-700)); color: var(--white); }
.user-card__info { flex: 1; min-width: 0; }
.user-card__displayname { font-size: .95rem; font-weight: 700; color: var(--dark); }
.user-card__username { font-size: .8rem; color: var(--gray-500); }
.user-card__meta { font-size: .75rem; color: var(--gray-400); margin-top: .2rem; }
.user-card__actions { display: flex; gap: .5rem; align-items: center; }

/* Role badge */
.role-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem; border-radius: 100px;
  font-size: .75rem; font-weight: 700;
}
.role-admin { background: #fef3c7; color: #92400e; }
.role-user  { background: var(--blue-100); color: var(--blue-700); }

/* Role legend */
.role-legend { display: flex; gap: .6rem; }

/* Admin-only menu item */
.admin-only.hidden-for-user { display: none !important; }

/* ===== NAV BADGE GREEN ===== */
.nav-badge--green { background: var(--green) !important; }

/* ===== HERO BACKGROUND UPLOAD ===== */
.hero-bg-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1rem;
}
@media (max-width: 768px) { .hero-bg-wrap { grid-template-columns: 1fr; } }

.hero-bg-preview {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px dashed var(--gray-300);
  background: var(--gray-50);
  position: relative;
}
.hero-bg-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: .5rem; color: var(--gray-500); text-align: center; padding: 1rem;
}
.hero-bg-placeholder p { font-size: .9rem; font-weight: 600; color: var(--gray-600); }
.hero-bg-placeholder small { font-size: .78rem; }
.hero-bg-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== VOUCHER GRID ===== */
.voucher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* Voucher card */
.vc-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  background: var(--white);
}
.vc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.vc-card--inactive { opacity: .65; filter: grayscale(.4); }
.vc-card--expired  { opacity: .5;  filter: grayscale(.7); }

.vc-card__ticket {
  display: flex;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  position: relative;
}
.vc-card__ticket::before,
.vc-card__ticket::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gray-100);
  top: 50%; transform: translateY(-50%);
}
.vc-card__ticket::before { left: -10px; }
.vc-card__ticket::after  { right: -10px; }

.vc-card__left {
  padding: 1.25rem 1rem 1.25rem 1.5rem;
  flex: 1;
  color: var(--white);
}
.vc-card__icon-big { font-size: 2rem; margin-bottom: .4rem; }
.vc-card__code {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: .12em;
  background: rgba(255,255,255,.15);
  padding: .2rem .6rem; border-radius: 6px;
  display: inline-block;
  margin-bottom: .4rem;
}
.vc-card__vname { font-size: .85rem; opacity: .9; }

.vc-card__right {
  padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed rgba(255,255,255,.3);
  min-width: 100px;
  text-align: center;
  color: var(--white);
}
.vc-card__value { font-size: 1.4rem; font-weight: 900; line-height: 1.2; }
.vc-card__unit  { font-size: .72rem; opacity: .8; margin-top: .2rem; }

.vc-card__body {
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
}
.vc-card__condition { font-size: .82rem; color: var(--gray-600); }
.vc-card__meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.vc-card__expiry { font-size: .75rem; color: var(--gray-500); }

.vc-card__footer {
  padding: .65rem 1.25rem;
  border-top: 1px solid var(--gray-100);
  display: flex; justify-content: space-between; align-items: center;
}

/* Voucher type color theming */
.vc-buy_get  .vc-card__ticket { background: linear-gradient(135deg,#f59e0b,#d97706); }
.vc-percent  .vc-card__ticket { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.vc-fixed    .vc-card__ticket { background: linear-gradient(135deg,#22c55e,#16a34a); }
.vc-free_ship .vc-card__ticket { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }

/* Status badges */
.vstatus-active   { background: #d1fae5; color: #065f46; }
.vstatus-inactive { background: #e5e7eb; color: #6b7280; }
.vstatus-expired  { background: #fee2e2; color: #991b1b; }

/* ===== VOUCHER MODAL ===== */
.modal--voucher { max-width: 840px; }
.voucher-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .voucher-form-grid { grid-template-columns: 1fr; } }

.voucher-type-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.vtype-btn {
  padding: .6rem .75rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: .85rem; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
  text-align: center;
}
.vtype-btn:hover { border-color: var(--blue-400); background: var(--blue-50); }
.vtype-btn.active { border-color: var(--blue-600); background: var(--blue-100); color: var(--blue-800); }

.vvalue-wrap { margin-top: .5rem; }
.v-preview {
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: .5rem .85rem;
  font-size: .88rem; font-weight: 700; color: var(--blue-700);
  margin-top: .5rem;
}

.voucher-free-ship-note {
  display: flex; align-items: center; gap: .75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  font-size: .88rem;
}
.voucher-free-ship-note span { font-size: 1.5rem; }
.voucher-free-ship-note strong { display: block; color: var(--blue-700); }
.voucher-free-ship-note small { color: var(--blue-500); }

/* Voucher preview inside modal */
.voucher-preview-wrap {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--gray-200);
}
.voucher-card-preview {
  display: flex;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  max-width: 480px;
}
.voucher-card-preview::before,
.voucher-card-preview::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  top: 50%; transform: translateY(-50%);
  z-index: 2;
}
.voucher-card-preview::before { left: -10px; }
.voucher-card-preview::after  { right: calc(130px - 10px); }

.vcp-left { display: flex; align-items: center; padding: 1rem 1.25rem 1rem 1.5rem; }
.vcp-icon { font-size: 2.5rem; }
.vcp-body { flex: 1; padding: 1rem .5rem; color: var(--white); }
.vcp-code { font-family: monospace; font-size: 1rem; font-weight: 900; letter-spacing: .1em; background: rgba(255,255,255,.15); padding: .1rem .5rem; border-radius: 4px; display: inline-block; margin-bottom: .25rem; }
.vcp-name { font-size: .9rem; font-weight: 700; }
.vcp-condition { font-size: .75rem; opacity: .8; margin-top: .2rem; }
.vcp-right { width: 130px; padding: 1rem; display: flex; align-items: center; justify-content: center; border-left: 2px dashed rgba(255,255,255,.4); text-align: center; color: var(--white); }
.vcp-value { font-size: 1.1rem; font-weight: 900; line-height: 1.3; }

/* Modal footer */
.modal__footer {
  display: flex; justify-content: flex-end; gap: .75rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: .75rem; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--gray-300);
  border-radius: 26px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--white);
  left: 3px; bottom: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }
.toggle-label { font-size: .88rem; font-weight: 600; color: var(--gray-700); }




/* Permissions checkboxes */
.permissions-list input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--blue-600);
  cursor: pointer;
  margin: 0;
}



/* ===== WP ADMIN BAR OVERLAP & LOGO COLOR FIX ===== */
body.admin-bar .header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px !important;
  }
}

.logo__title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
.logo__sub {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.75rem !important;
}

.nav__link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
}
.nav__link:hover, .nav__link.active {
  color: #FFD700 !important;
}

/* ===== FINAL WP FIXES FOR HEADER & FOOTER ===== */
body.admin-bar .header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .header {
    top: 46px !important;
  }
}

.logo__title {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
.logo__sub {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.75rem !important;
}

.nav__link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.nav__link:hover, .nav__link.active {
  color: #FFD700 !important;
}

.footer__inner {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
  gap: 2.5rem !important;
}
@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
  }
}
@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr !important;
  }
}

/* ===== LOGO & NAV TEXT VISIBILITY FIX ===== */
.header .logo__title,
.header .logo__name,
.logo__title,
.logo__name {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  display: block !important;
}

.header .logo__sub,
.header .logo__tagline,
.logo__sub,
.logo__tagline {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.75rem !important;
  display: block !important;
}

.header .nav__link,
.nav__link {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  opacity: 0.9 !important;
}

.header .nav__link:hover,
.header .nav__link.active,
.nav__link:hover,
.nav__link.active {
  color: #FFD700 !important;
  opacity: 1 !important;
}

/* ===== EXACT ORIGINAL LOGO TYPOGRAPHY & FLOATING CART FIX ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

.logo__title,
.logo__name {
  font-family: 'Roboto', 'Inter', system-ui, -apple-system, sans-serif !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.45rem !important;
  letter-spacing: 0.02em !important;
  word-spacing: 0.05em !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4) !important;
  display: block !important;
}

.logo__sub,
.logo__tagline {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-style: italic !important;
  color: #93c5fd !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  margin-top: 2px !important;
  display: block !important;
}

/* Floating Cart Button at Bottom Right */
.floating-cart-btn {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 9999 !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: var(--primary, #e63946) !important;
  color: #ffffff !important;
  font-size: 1.6rem !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(230,57,70,0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.floating-cart-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 12px 30px rgba(230,57,70,0.6) !important;
}

.floating-cart-badge,
.cart-btn__badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #FFD700 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  font-size: 0.85rem !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
}

/* HIDE ALL LOGIN HINTS DEFINITIVELY */
.login-hint, .chpwd-hint { display: none !important; opacity: 0 !important; visibility: hidden !important; }

