:root {
  --page: #f1f2f7;
  --brand: #0bc15c;
  --brand-dark: #09a44e;
  --brand-light: #e7f9ef;
  --dark: #0f131a;
  --muted: #6e7787;
  --border: #e5e7eb;
  --success: #0bc15c;
  --success-bg: #e7f9ef;
  --danger: #ff5043;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(15, 19, 26, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 19, 26, 0.12);
  --max: 1280px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; color: var(--dark); background: var(--page); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.hidden { display: none !important; }

.demo-bar { background: linear-gradient(90deg, #0f131a, #1a2332); color: #fff; text-align: center; padding: 0.45rem 1rem; font-size: 0.75rem; }
.demo-bar strong { color: var(--brand); }
.demo-bar a { color: var(--brand); font-weight: 700; }
.demo-admin-btn {
  display: inline-block; margin-left: 0.75rem; padding: 0.2rem 0.65rem;
  border-radius: 6px; background: var(--brand); color: #fff !important; font-size: 0.7rem;
}
.demo-admin-btn:hover { background: var(--brand-dark); }

.demo-info-note {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.6;
}
.demo-info-note strong { color: rgba(255,255,255,0.75); }
.demo-admin-link { color: var(--brand); font-weight: 700; }
.demo-admin-link:hover { text-decoration: underline; }

.topbar { background: var(--dark); color: #fff; font-size: 0.75rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; }
.topbar strong { color: var(--brand); }
.topbar-links { display: none; gap: 1.25rem; }
.topbar-links a:hover { color: var(--brand); }
@media (min-width: 640px) { .topbar-links { display: flex; } }

.header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--brand); letter-spacing: -0.03em; flex-shrink: 0; }
@media (min-width: 1024px) { .logo { font-size: 1.875rem; } }

.search-desktop { display: none; flex: 1; min-width: 0; }
@media (min-width: 1024px) { .search-desktop { display: flex; } }
.search-box { display: flex; width: 100%; border: 2px solid var(--brand); border-radius: 8px; overflow: hidden; }
.search-box select { border: 0; border-right: 1px solid var(--border); background: var(--page); padding: 0.6rem 0.75rem; color: var(--muted); font-size: 0.875rem; outline: none; }
.search-box input { flex: 1; min-width: 0; border: 0; padding: 0.65rem 1rem; font-size: 0.875rem; outline: none; }
.search-box button { border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.875rem; padding: 0 1.5rem; cursor: pointer; }
.search-box button:hover { background: var(--brand-dark); }

.header-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.header-btn { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.25rem 0.5rem; border: 0; background: none; color: var(--muted); font-size: 0.6875rem; cursor: pointer; }
.header-btn:hover { color: var(--brand); }
.header-btn .icon { font-size: 1.25rem; line-height: 1; }

.cart-btn { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--brand); background: var(--brand-light); border-radius: 8px; padding: 0.5rem 0.75rem; cursor: pointer; transition: 0.2s; }
.cart-btn:hover { background: var(--brand); color: #fff; }
.cart-btn:hover .cart-label, .cart-btn:hover .cart-total { color: #fff; }
.cart-label { font-size: 0.625rem; color: var(--muted); }
.cart-total { font-size: 0.75rem; font-weight: 700; color: var(--brand); }
.badge-count { position: absolute; top: -6px; right: -8px; min-width: 1rem; height: 1rem; padding: 0 0.25rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.5625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.icon-wrap { position: relative; display: inline-block; }

.search-mobile { display: block; border-top: 1px solid var(--border); padding: 0.5rem 0; }
@media (min-width: 1024px) { .search-mobile { display: none; } }

.cat-nav { background: var(--white); border-bottom: 1px solid var(--border); }
.cat-nav-inner { display: flex; align-items: center; gap: 0.25rem; overflow-x: auto; padding: 0.5rem 0; }
.cat-all { flex-shrink: 0; display: flex; align-items: center; gap: 0.5rem; background: var(--brand); color: #fff; font-size: 0.875rem; font-weight: 700; border-radius: 8px; padding: 0.6rem 1rem; margin: 0.25rem 0; }
.cat-link { flex-shrink: 0; white-space: nowrap; padding: 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--dark); }
.cat-link:hover, .cat-link.active { color: var(--brand); }

.carousel { padding-top: 1rem; }
.carousel-wrap { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { position: relative; min-width: 100%; height: 11rem; }
@media (min-width: 640px) { .carousel-slide { height: 14rem; } }
@media (min-width: 1024px) { .carousel-slide { height: 18rem; } }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,19,26,0.85), rgba(0,0,0,0.5)); }
.carousel-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 2.5rem; color: #fff; }
.carousel-tag { width: fit-content; margin-bottom: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); font-size: 0.75rem; font-weight: 700; }
.carousel-content h2 { max-width: 28rem; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
@media (min-width: 640px) { .carousel-content h2 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .carousel-content h2 { font-size: 2.25rem; } }
.carousel-content p { margin-top: 0.5rem; max-width: 20rem; font-size: 0.875rem; opacity: 0.9; }
.carousel-cta { margin-top: 1rem; width: fit-content; padding: 0.5rem 1.25rem; border-radius: 6px; background: var(--brand); color: #fff; font-size: 0.875rem; font-weight: 700; }
.carousel-dots { position: absolute; bottom: 0.75rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; }
.carousel-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; border: 0; background: rgba(255,255,255,0.5); cursor: pointer; transition: 0.2s; }
.carousel-dot.active { width: 1.5rem; background: #fff; }

.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 1rem 0; }
@media (min-width: 768px) { .promo-grid { grid-template-columns: repeat(4, 1fr); } }
.promo-tile { border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem; transition: box-shadow 0.2s; }
.promo-tile:hover { box-shadow: var(--shadow-lg); }
.promo-tile h3 { font-size: 0.9375rem; font-weight: 700; }
.promo-tile p { font-size: 0.8125rem; margin-top: 0.15rem; opacity: 0.8; }
.tile-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.tile-light { background: var(--brand-light); color: var(--brand-dark); }
.tile-neutral { background: var(--page); color: var(--dark); }
.tile-soft { background: rgba(11,193,92,0.1); color: var(--brand); }

.deal-strip { padding-bottom: 1rem; }
.deal-box { overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow); }
.deal-head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--brand-light); }
.deal-head h2 { font-size: 1rem; font-weight: 700; }
.deal-badge { display: none; margin-left: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 700; }
@media (min-width: 640px) { .deal-badge { display: inline; } }
.deal-timer { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; }
.deal-timer span:last-child { padding: 0.25rem 0.5rem; border-radius: 4px; background: var(--brand); color: #fff; font-family: monospace; font-size: 0.75rem; font-weight: 700; }
.deal-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding: 1rem; }
.deal-card { position: relative; flex-shrink: 0; width: 9rem; border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem; transition: 0.2s; cursor: pointer; }
@media (min-width: 640px) { .deal-card { width: 10rem; } }
.deal-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.deal-discount { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; padding: 0.1rem 0.4rem; border-radius: 4px; background: var(--brand); color: #fff; font-size: 0.625rem; font-weight: 700; }
.deal-img { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--page); }
.deal-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-card h4 { margin-top: 0.5rem; font-size: 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-price { font-size: 0.875rem; font-weight: 700; color: var(--brand); margin-top: 0.25rem; }
.deal-old { font-size: 0.6875rem; color: var(--muted); text-decoration: line-through; }

.section { padding: 1rem 0; }
.section-box { border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); padding: 1rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .section-box { padding: 1.25rem; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.section-head h2 { font-size: 1.125rem; font-weight: 700; }
@media (min-width: 640px) { .section-head h2 { font-size: 1.25rem; } }
.section-head p { font-size: 0.875rem; color: var(--muted); margin-top: 0.15rem; }
.section-link { flex-shrink: 0; font-size: 0.875rem; font-weight: 600; color: var(--brand); }
.section-link:hover { text-decoration: underline; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(5, 1fr); } }
.cat-card { display: flex; flex-direction: column; align-items: center; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); transition: 0.2s; cursor: pointer; }
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.cat-card img { width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover; }
.cat-card span { margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; text-align: center; }

.product-scroll { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.25rem; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; background: var(--white); overflow: hidden; transition: 0.2s; }
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card.compact { min-width: 11rem; }
@media (min-width: 640px) { .product-card.compact { min-width: 13rem; } }
.product-img-wrap { position: relative; aspect-ratio: 1; background: var(--page); padding: 0.5rem; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; cursor: pointer; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge { position: absolute; top: 0.5rem; left: 0.5rem; padding: 0.15rem 0.5rem; border-radius: 4px; background: var(--brand); color: #fff; font-size: 0.625rem; font-weight: 700; }
.product-body { padding: 0.75rem; padding-top: 0; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 0.6875rem; font-weight: 600; color: var(--brand); }
.product-name { margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.product-name:hover { color: var(--brand); }
.product-rating { margin-top: 0.25rem; font-size: 0.625rem; color: var(--muted); }
.product-rating strong { color: var(--brand); }
.product-price { margin-top: 0.35rem; font-size: 1.125rem; font-weight: 700; color: var(--brand); }
.product-old { font-size: 0.625rem; color: var(--muted); text-decoration: line-through; }
.product-tags { margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.tag { padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.5625rem; font-weight: 700; }
.tag-stock { background: var(--success-bg); color: var(--success); }
.tag-ship { background: var(--brand-light); color: var(--brand); }
.add-btn { margin-top: auto; padding-top: 0.5rem; }
.add-btn button { width: 100%; padding: 0.5rem; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.add-btn button:hover { background: var(--brand-dark); }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(6, 1fr); } }
.service-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1rem 0.5rem; }
.service-item .icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.service-item h4 { font-size: 0.8125rem; font-weight: 700; }
.service-item p { font-size: 0.6875rem; color: var(--muted); margin-top: 0.15rem; }

.footer { margin-top: 1.5rem; background: var(--dark); color: #fff; }
.footer-news { border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-news-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 0; text-align: center; }
@media (min-width: 640px) { .footer-news-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-news h3 { font-size: 1.125rem; font-weight: 700; }
.footer-news p { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.news-form { display: flex; width: 100%; max-width: 28rem; gap: 0.5rem; }
.news-form input { flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: 0.65rem 1rem; color: var(--dark); outline: none; }
.news-form button { flex-shrink: 0; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 0.875rem; font-weight: 700; padding: 0.65rem 1.25rem; cursor: pointer; }

.footer-main { padding: 2.5rem 0; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { font-size: 1.5rem; font-weight: 900; color: var(--brand); }
.footer-desc { margin-top: 0.75rem; max-width: 20rem; font-size: 0.875rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.footer-contact { margin-top: 1rem; list-style: none; font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.footer-contact li { margin-bottom: 0.5rem; }
.footer-contact a:hover { color: var(--brand); }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; }
.footer-col ul { margin-top: 0.75rem; list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.45); }
.payment-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.payment-badges span { padding: 0.25rem 0.6rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; font-size: 0.625rem; color: rgba(255,255,255,0.5); }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 51; width: 100%; max-width: 28rem; height: 100%; background: var(--white); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.drawer-head h2 { font-size: 1.125rem; font-weight: 700; }
.drawer-close { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: none; font-size: 1.125rem; cursor: pointer; }
.drawer-close:hover { background: var(--page); }
.cart-items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.cart-empty .icon { font-size: 3rem; opacity: 0.5; }
.cart-empty h3 { margin-top: 1rem; font-size: 1.125rem; }
.cart-item { display: flex; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 5rem; height: 5rem; border: 1px solid var(--border); border-radius: 8px; object-fit: contain; background: var(--page); padding: 0.25rem; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item-price { margin-top: 0.25rem; font-weight: 700; color: var(--brand); }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.5rem; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; }
.qty-box button { border: 0; background: none; padding: 0.25rem 0.6rem; cursor: pointer; font-size: 1rem; }
.qty-box span { min-width: 2rem; text-align: center; font-size: 0.875rem; font-weight: 600; }
.remove-btn { border: 0; background: none; font-size: 0.75rem; color: var(--muted); cursor: pointer; }
.remove-btn:hover { color: var(--danger); }
.cart-footer { border-top: 1px solid var(--border); background: var(--page); padding: 1rem 1.25rem; }
.cart-summary { font-size: 0.875rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.35rem; }
.summary-row.total { font-weight: 700; font-size: 1rem; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.summary-row.total span:last-child { color: var(--brand); }
.checkout-btn { width: 100%; margin-top: 1rem; padding: 0.875rem; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.checkout-btn:hover { background: var(--brand-dark); }

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; width: 100%; max-width: 42rem; max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); cursor: pointer; font-size: 1rem; }
.modal-inner { display: flex; flex-direction: column; }
@media (min-width: 640px) { .modal-inner { flex-direction: row; } }
.modal-img { flex: 1; background: var(--page); padding: 1.5rem; display: flex; align-items: center; justify-content: center; }
.modal-img img { max-height: 20rem; object-fit: contain; }
.modal-info { flex: 1; padding: 1.5rem; }
.modal-info .brand { font-size: 0.75rem; font-weight: 600; color: var(--brand); }
.modal-info h2 { margin-top: 0.35rem; font-size: 1.25rem; font-weight: 700; }
.modal-info .desc { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.modal-info .price { margin-top: 1rem; font-size: 1.75rem; font-weight: 700; color: var(--brand); }

.toast { position: fixed; bottom: 5rem; left: 50%; transform: translateX(-50%) translateY(1rem); z-index: 70; padding: 0.75rem 1.25rem; border-radius: 8px; background: var(--dark); color: #fff; font-size: 0.875rem; font-weight: 600; opacity: 0; pointer-events: none; transition: 0.3s; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) { .toast { bottom: 2rem; } }

.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; background: var(--white); border-top: 1px solid var(--border); padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .mobile-nav { display: none; } }
.mobile-nav a, .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.35rem; border: 0; background: none; color: var(--muted); font-size: 0.625rem; cursor: pointer; }
.mobile-nav a.active, .mobile-nav button:hover { color: var(--brand); }
.mobile-nav .icon { font-size: 1.25rem; }
body { padding-bottom: 4.5rem; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* Admin demo */
.admin-body { background: #f1f5f9; padding-bottom: 0; min-height: 100vh; }
.admin-sidebar {
  position: fixed; inset: 0 auto 0 0; width: 16rem; background: #0f172a; color: #fff;
  display: flex; flex-direction: column; z-index: 30;
}
.admin-brand { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo { font-size: 1.125rem; font-weight: 900; color: var(--brand); }
.admin-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.15rem; }
.admin-nav { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.admin-nav a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem 1rem; border-radius: 8px;
  font-size: 0.875rem; color: rgba(255,255,255,0.7);
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active { background: var(--brand); color: #fff; }
.admin-sidebar-foot { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar-foot a { font-size: 0.875rem; color: rgba(255,255,255,0.6); }
.admin-sidebar-foot a:hover { color: #fff; }

.admin-main { margin-left: 16rem; min-height: 100vh; display: flex; flex-direction: column; }
.admin-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: var(--shadow);
}
.admin-top p { font-size: 0.875rem; color: #64748b; }
.admin-demo-tag {
  padding: 0.2rem 0.55rem; border-radius: 4px; background: #fef3c7; color: #92400e;
  font-size: 0.7rem; font-weight: 700;
}
.admin-content { flex: 1; padding: 2rem; }
.admin-content h1 { font-size: 1.5rem; font-weight: 700; }
.admin-lead { margin-top: 0.35rem; color: #64748b; font-size: 0.9rem; }

.admin-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem;
}
@media (min-width: 768px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.admin-stat {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1rem 1.25rem;
}
.admin-stat span { display: block; font-size: 0.8rem; color: #64748b; }
.admin-stat strong { display: block; margin-top: 0.35rem; font-size: 1.5rem; color: #0f172a; }

.admin-panels {
  display: grid; gap: 1.25rem; margin-top: 1.5rem;
}
@media (min-width: 900px) { .admin-panels { grid-template-columns: 1.4fr 1fr; } }
.admin-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 1.25rem;
}
.admin-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { padding: 0.6rem 0.5rem; text-align: left; border-bottom: 1px solid #f1f5f9; }
.admin-table th { color: #64748b; font-weight: 600; font-size: 0.75rem; }
.pill { padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; }
.pill-warn { background: #fef3c7; color: #92400e; }
.pill-info { background: #dbeafe; color: #1d4ed8; }
.pill-ok { background: #dcfce7; color: #166534; }

.admin-actions { display: grid; gap: 0.5rem; }
.admin-actions button {
  padding: 0.65rem 0.85rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
  font-size: 0.85rem; font-weight: 600; text-align: left;
}
.admin-actions button:hover { border-color: var(--brand); color: var(--brand); }

.admin-foot-note {
  padding: 1rem 2rem 1.5rem; font-size: 0.8rem; color: #64748b; text-align: center;
  border-top: 1px solid #e2e8f0; background: #fff;
}
.admin-foot-note strong { color: #334155; }

@media (max-width: 767px) {
  .admin-sidebar { position: static; width: 100%; }
  .admin-main { margin-left: 0; }
  .admin-content, .admin-top, .admin-foot-note { padding-left: 1rem; padding-right: 1rem; }
}
