:root {
  color-scheme: light;
  --deep: #031d25;
  --ocean: #06313b;
  --ink: #102b33;
  --muted: #617780;
  --aqua: #22c6d4;
  --cyan: #dff9fb;
  --reef: #ff8a1e;
  --line: #dce8eb;
  --paper: #f3f7f8;
  --panel: #ffffff;
  --danger: #d7265f;
  --ok: #0c8f63;
  --shadow: 0 18px 44px rgba(3, 29, 37, 0.12);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 8px 28px rgba(3,29,37,.07); backdrop-filter: blur(16px); }
.header-main { max-width: 1480px; margin: 0 auto; padding: 16px 28px; display: grid; grid-template-columns: auto minmax(280px, 1fr) auto; gap: 22px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.22rem; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: .82rem; }
.search-form { position: relative; display: grid; grid-template-columns: 1fr auto; border: 2px solid #d4e5e8; border-radius: 8px; overflow: visible; background: #fff; }
.search-form input { min-height: 48px; border: 0; padding: 0 16px; outline: 0; background: transparent; }
.search-form button, .btn, .product-card button, .newsletter button, .admin-form button { min-height: 42px; border: 0; border-radius: 8px; padding: 0 16px; font-weight: 900; background: var(--deep); color: #fff; }
.search-form button { border-radius: 0; min-height: 48px; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.header-actions a { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font-weight: 850; background: #fff; }
.header-actions b { min-width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--reef); color: #fff; font-size: .76rem; }
.mega-nav { max-width: 1480px; margin: 0 auto; padding: 0 28px 14px; display: flex; gap: 6px; overflow-x: auto; }
.mega-nav a { flex: 0 0 auto; padding: 10px 13px; border-radius: 8px; background: #eaf5f7; font-weight: 850; }
.suggestions { position: absolute; left: 0; right: 0; top: 54px; display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; }
.suggestions a { display: block; padding: 11px 14px; border-bottom: 1px solid #eef4f5; }
.suggestions a:last-child { border-bottom: 0; }

main { max-width: 1480px; margin: 0 auto; padding: 24px 28px 42px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: center; min-height: 430px; border-radius: 8px; padding: clamp(28px, 5vw, 58px); color: #fff; background: radial-gradient(circle at 78% 16%, rgba(255,255,255,.4), transparent 23%), linear-gradient(135deg, #031d25 0%, #0c7584 62%, #ff8a1e 100%); box-shadow: var(--shadow); overflow: hidden; }
.hero span { text-transform: uppercase; font-size: .8rem; font-weight: 900; color: #c6fbff; }
.hero h1 { max-width: 760px; margin: 10px 0 12px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: .96; letter-spacing: 0; }
.hero p { max-width: 650px; color: rgba(255,255,255,.88); font-size: 1.08rem; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; }
.btn.primary { background: var(--deep); color: #fff; }
.btn.ghost { background: #fff; color: var(--deep); border: 1px solid var(--line); }
.btn.whatsapp, .btn.google { background: #0caf65; color: #fff; }
.water-scene { position: relative; min-height: 250px; display: grid; place-items: center; }
.water-scene img { width: 220px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.22)); animation: floaty 6s ease-in-out infinite; }
.water-scene i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.55); animation: bubble 5s ease-in-out infinite; }
.water-scene i:nth-child(2) { left: 15%; top: 20%; }
.water-scene i:nth-child(3) { right: 18%; top: 35%; width: 28px; height: 28px; animation-delay: 1s; }
.water-scene i:nth-child(4) { left: 45%; bottom: 16%; width: 10px; height: 10px; animation-delay: 1.7s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes bubble { 50% { transform: translateY(-28px) scale(1.15); opacity: .55; } }

.category-grid, .quick-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-grid a, .brand-strip a, .quick-grid a { min-height: 96px; display: grid; align-content: center; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(3,29,37,.06); font-weight: 900; }
.category-grid small { color: var(--muted); font-weight: 750; }
.split-head, .list-toolbar, .admin-top { margin: 26px 0 14px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.split-head h2, .list-toolbar h1, .page-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.brand-strip { margin: 26px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-strip a { min-height: 48px; padding: 0 16px; }
.guide-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-grid h2 { grid-column: 1 / -1; margin: 0; }
.post-card, .article, .page-head, .auth-card, .success-card, .summary-card, .tabs, .contact-grid > *, .account-layout > *, .admin-main section, .admin-gate { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 22px; box-shadow: 0 8px 20px rgba(3,29,37,.06); }
.post-card h3 { margin-top: 0; }
.post-card p, .page-head p, .product-card p, .article p { color: var(--muted); line-height: 1.65; }

.catalog-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.filters { position: sticky; top: 132px; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px; box-shadow: 0 8px 20px rgba(3,29,37,.06); }
.filters label, .form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; outline: 0; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; }
.check input { width: auto; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 8px 20px rgba(3,29,37,.06); }
.product-image { position: relative; min-height: 170px; display: grid; place-items: center; background: linear-gradient(135deg, #ecfbfc, #ffffff); }
.product-image img { width: 96px; height: 96px; object-fit: contain; }
.product-image b { position: absolute; left: 10px; top: 10px; border-radius: 8px; padding: 5px 8px; background: var(--danger); color: #fff; font-size: .75rem; }
.product-info { display: grid; gap: 8px; padding: 14px; }
.product-info small { color: var(--muted); font-weight: 750; }
.product-info h3 { min-height: 46px; margin: 0; font-size: 1rem; line-height: 1.28; }
.rating { color: #f6a400; font-size: .86rem; }
.rating span { color: var(--muted); }
.price { display: flex; gap: 8px; align-items: baseline; }
.price del { color: var(--muted); }
.price strong { font-size: 1.18rem; }
.card-actions { display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.card-actions button[disabled] { opacity: .65; }

.breadcrumb { margin-bottom: 14px; color: var(--muted); font-weight: 750; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 24px; align-items: start; }
.gallery, .buy-box { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 22px; box-shadow: 0 8px 20px rgba(3,29,37,.06); }
.gallery > img { width: min(360px, 70%); margin: 40px auto; }
.gallery div { display: flex; gap: 8px; justify-content: center; }
.buy-box { display: grid; gap: 13px; }
.buy-box h1 { margin: 0; font-size: 2.1rem; }
.detail-price strong { font-size: 2rem; }
.tabs { margin: 24px 0; }
.tabs details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.tabs details:last-child { border-bottom: 0; }
.tabs summary { cursor: pointer; font-weight: 900; }

.cart-layout, .checkout-page, .contact-grid, .account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-line img { width: 64px; height: 64px; object-fit: contain; background: #eff8fa; border-radius: 8px; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { min-width: 30px; min-height: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.form-grid { display: grid; gap: 12px; }
.checkout-page .form-grid { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px; }
.checkout-choice { display: flex; gap: 10px; margin: 12px 0 18px; }
.auth-card, .success-card { max-width: 520px; margin: 32px auto; display: grid; gap: 12px; }
.account-layout { grid-template-columns: 260px minmax(0, 1fr); }
.account-layout aside { display: grid; gap: 8px; align-content: start; }
.account-layout aside a, .account-layout aside button { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 12px; text-align: left; font-weight: 850; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-grid article { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 18px; }
.metric-grid strong { display: block; font-size: 1.7rem; }
.metric-grid span { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 24px; margin-top: 30px; padding: 36px 28px; background: var(--deep); color: #dff9fb; }
.site-footer nav, .site-footer form { display: grid; align-content: start; gap: 8px; }
.site-footer h3 { margin: 0 0 8px; color: #fff; }
.site-footer input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.floating-whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #0caf65; color: #fff; font-weight: 950; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; border-radius: 8px; padding: 12px 16px; background: var(--deep); color: #fff; box-shadow: var(--shadow); }

.admin-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; background: #eef4f6; }
.admin-sidebar { position: sticky; top: 0; min-height: 100vh; background: var(--deep); color: #e7fbfd; padding: 22px; }
.admin-sidebar .brand { color: #fff; margin-bottom: 26px; }
.admin-sidebar nav { display: grid; gap: 6px; }
.admin-sidebar nav a { border-radius: 8px; padding: 10px 12px; color: #dff9fb; font-weight: 850; }
.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); }
.admin-main { padding: 26px; max-width: none; }
.admin-gate { max-width: 520px; }
.admin-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(3,29,37,.06); }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 11px; text-align: left; }
.admin-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; }

/* Enterprise admin */
.admin-body { grid-template-columns: 292px minmax(0, 1fr); background: #f6f8fa; color: #17252b; }
.admin-body:not(.admin-authenticated) { grid-template-columns: 1fr; background: radial-gradient(circle at 18% 12%, rgba(15,118,130,.16), transparent 32%), radial-gradient(circle at 78% 18%, rgba(255,135,31,.12), transparent 28%), #f6f8fa; }
.admin-body:not(.admin-authenticated) .admin-sidebar { display: none; }
.admin-body:not(.admin-authenticated) .admin-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; }
.admin-body:not(.admin-authenticated) #adminApp,
.admin-body:not(.admin-authenticated) #adminCommandPalette { display: none !important; }
.admin-body:not(.admin-authenticated) .admin-gate { width: min(520px, calc(100vw - 32px)); max-width: 520px; display: grid; gap: 14px; border: 1px solid #dce8eb; border-radius: 12px; background: rgba(255,255,255,.96); padding: 34px; box-shadow: 0 24px 70px rgba(3,29,37,.16); }
.admin-body:not(.admin-authenticated) .admin-gate h1 { margin: 0; color: var(--deep); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; }
.admin-body:not(.admin-authenticated) .admin-gate p { margin: 0 0 4px; color: var(--muted); font-weight: 760; }
.admin-body:not(.admin-authenticated) .admin-gate input { min-height: 50px; background: #f8fbfc; }
.admin-body:not(.admin-authenticated) .admin-gate button { min-height: 50px; border: 0; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 950; cursor: pointer; }
.admin-body:not(.admin-authenticated) .admin-gate button:hover { background: #06333f; transform: translateY(-1px); }
.admin-sidebar { background: #091f27; border-right: 1px solid rgba(255,255,255,.08); padding: 16px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.admin-brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-brand button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.06); color: #e7fbfd; }
.admin-nav { overflow: auto; padding-right: 4px; }
.admin-nav section { display: grid; gap: 4px; margin-bottom: 14px; }
.admin-nav h3 { margin: 0 0 4px; color: #7aa7b1; font-size: .72rem; letter-spacing: .08em; }
.admin-nav a { min-height: 36px; display: flex; align-items: center; gap: 9px; border-radius: 8px; padding: 0 10px; color: #d9eef2; font-weight: 780; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; transform: none; }
.admin-nav a span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.08); font-size: .68rem; color: #8ee9f0; }
.admin-sidebar-foot { display: grid; gap: 6px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; }
.admin-sidebar-foot a, .admin-sidebar-foot button { min-height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.06); color: #e7fbfd; text-align: left; padding: 0 10px; font-weight: 800; }
.admin-sidebar-foot small { color: #82a9b1; }
.admin-main { padding: 0; overflow: auto; }
.admin-command { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(260px, 620px) auto; gap: 16px; align-items: center; border-bottom: 1px solid #dce8eb; background: rgba(255,255,255,.92); padding: 14px 22px; backdrop-filter: blur(16px); }
.admin-command span { display: block; color: #6b7d84; font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.admin-command strong { font-size: 1.15rem; }
.admin-search { position: relative; }
.admin-search input { height: 42px; background: #f6f8fa; }
#adminSearchResults { position: absolute; top: 48px; left: 0; right: 0; display: grid; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
#adminSearchResults:empty { display: none; }
#adminSearchResults a { padding: 10px 12px; border-bottom: 1px solid #eef2f4; }
.admin-command > button, .admin-actions button, .admin-filterbar button, .admin-table button, .detail-head button, .editor-side button, .settings-form button { min-height: 38px; border: 1px solid #d6e2e5; border-radius: 8px; background: #fff; color: var(--deep); font-weight: 850; padding: 0 12px; }
.admin-command b { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; }
.admin-page { padding: 22px; display: grid; gap: 18px; }
.admin-table-head, .detail-head, .ops-panel header { display: flex; justify-content: space-between; align-items: end; gap: 14px; }
.admin-table-head h1, .detail-head h1 { margin: 0 0 4px; font-size: 1.8rem; }
.admin-table-head p, .detail-head p { margin: 0; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filterbar { display: grid; grid-template-columns: minmax(220px, 1fr) 180px 180px auto; gap: 8px; align-items: center; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-kpi { position: relative; overflow: hidden; border: 1px solid #dce8eb; border-radius: 8px; background: #fff; padding: 16px; box-shadow: 0 7px 20px rgba(3,29,37,.04); }
.admin-kpi span { color: var(--muted); font-weight: 850; font-size: .84rem; }
.admin-kpi strong { display: block; margin: 8px 0 4px; font-size: 1.55rem; }
.admin-kpi small { color: #778b93; }
.admin-kpi i { position: absolute; right: -20px; bottom: -34px; width: 110px; height: 80px; border-radius: 50%; background: rgba(34,198,212,.12); }
.admin-grid-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 14px; }
.ops-panel { border: 1px solid #dce8eb; border-radius: 8px; background: #fff; padding: 16px; box-shadow: 0 7px 20px rgba(3,29,37,.04); }
.ops-panel h2 { margin: 0; }
.admin-chart { height: 240px; }
.bar-chart { height: 100%; display: flex; align-items: end; gap: 9px; border-left: 1px solid #e5eef1; border-bottom: 1px solid #e5eef1; padding: 10px 10px 0; }
.bar-chart span { flex: 1; min-height: 8px; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, var(--aqua), #087583); position: relative; }
.bar-chart b { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .72rem; }
.queue-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; border-bottom: 1px solid #eef2f4; padding: 10px 0; }
.admin-table-wrap { border: 1px solid #dce8eb; border-radius: 8px; background: #fff; overflow: auto; box-shadow: 0 7px 20px rgba(3,29,37,.04); }
.admin-table-wrap footer { display: flex; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid #eef2f4; padding: 10px; color: var(--muted); }
.admin-table { min-width: 920px; box-shadow: none; border-radius: 0; }
.admin-table th { background: #f6f8fa; white-space: nowrap; }
.admin-table td { vertical-align: middle; }
.admin-table input[type="number"] { width: 92px; padding: 7px; }
.admin-thumb { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #eef8fa; }
.admin-empty { display: grid; gap: 4px; justify-items: start; padding: 16px; color: var(--muted); }
.admin-empty strong { color: var(--ink); }
.admin-editor { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.editor-main, .editor-side { border: 1px solid #dce8eb; border-radius: 8px; background: #fff; padding: 18px; }
.editor-side { position: sticky; top: 86px; display: grid; gap: 12px; }
.admin-product-editor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.admin-product-editor textarea, .admin-upload, .admin-product-editor h3, .variant-table { grid-column: 1 / -1; }
.admin-upload { min-height: 118px; display: grid; place-items: center; border: 1px dashed #b9cfd4; border-radius: 8px; background: #f8fbfc; color: var(--muted); }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-tabs a { min-height: 38px; display: inline-flex; align-items: center; border: 1px solid #dce8eb; border-radius: 8px; background: #fff; padding: 0 12px; font-weight: 850; }
.settings-form { max-width: 760px; grid-template-columns: repeat(2, 1fr); }
.command-palette { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: 12vh; background: rgba(3,29,37,.28); }
.command-palette > div { width: min(720px, calc(100vw - 32px)); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 12px; }
.admin-collapsed { grid-template-columns: 86px minmax(0, 1fr); }
.admin-collapsed .admin-sidebar .brand span, .admin-collapsed .admin-nav h3, .admin-collapsed .admin-nav a:not(:has(span)) { display: none; }
.admin-collapsed .admin-nav a { justify-content: center; font-size: 0; }
.admin-collapsed .admin-sidebar-foot a, .admin-collapsed .admin-sidebar-foot button, .admin-collapsed .admin-sidebar-foot small { display: none; }

@media (max-width: 1080px) {
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; min-height: auto; }
  .admin-nav { display: flex; overflow-x: auto; gap: 12px; }
  .admin-nav section { min-width: 180px; }
  .admin-command, .admin-filterbar, .admin-grid-two, .admin-editor { grid-template-columns: 1fr; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .editor-side { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1120px) {
  .header-main, .catalog-shell, .product-detail, .cart-layout, .checkout-page, .contact-grid, .account-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  main { padding: 16px; }
  .header-main { grid-template-columns: 1fr; padding: 14px 16px; }
  .header-actions { overflow-x: auto; }
  .mega-nav { padding: 0 16px 12px; }
  .hero { min-height: 0; padding: 24px; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 3.4rem); }
  .category-grid, .guide-grid, .product-grid, .metric-grid, .site-footer, .admin-form { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; min-height: auto; }
  .floating-whatsapp { width: 52px; height: 52px; }
}

/* Commerce UX refresh */
.service-bar { background: var(--deep); color: #dff9fb; font-size: .86rem; }
.service-bar > div { max-width: 1480px; margin: 0 auto; padding: 8px 28px; display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
.service-bar span { margin-right: auto; font-weight: 850; }
.service-bar a { color: #dff9fb; opacity: .92; }
.header-main { grid-template-columns: auto auto minmax(360px, 1fr) auto; gap: 14px; }
.category-nav { position: relative; }
.category-trigger { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--deep); padding: 0 14px; font-weight: 950; white-space: nowrap; }
.category-panel { position: absolute; left: 0; top: calc(100% - 1px); width: 300px; display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 8px; z-index: 40; animation: menuReveal .16s ease both; }
.category-nav:hover .category-panel, .category-nav.open .category-panel { display: grid; }
.category-panel a { min-height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; border-radius: 7px; color: var(--ink); font-weight: 850; }
.category-panel a:hover { background: #eef8fa; color: var(--ocean); }
.search-form { grid-template-columns: 44px 1fr auto; border-width: 1px; box-shadow: 0 4px 14px rgba(3,29,37,.04); }
.search-leading { display: grid; place-items: center; color: var(--muted); }
.search-form input { padding-left: 0; }
.search-form button { border-radius: 0 7px 7px 0; padding-inline: 20px; }
.icon { width: 21px; height: 21px; flex: 0 0 auto; }
.header-actions { gap: 6px; }
.icon-action { position: relative; width: 58px; min-height: 54px; display: grid !important; place-items: center; gap: 2px; border: 0 !important; border-radius: 8px; background: transparent !important; padding: 5px 6px !important; color: var(--deep); font-weight: 850; }
.icon-action:hover { background: #eef8fa !important; }
.icon-action small { display: block; font-size: .72rem; color: var(--muted); line-height: 1; }
.icon-action b { position: absolute; right: 7px; top: 5px; min-width: 18px; height: 18px; font-size: .68rem; }
.cart-action { width: 86px; }
.cart-action span { font-size: .72rem; color: var(--muted); }
.user-menu { position: relative; }
.user-dropdown { position: absolute; right: 0; top: calc(100% - 1px); width: 220px; display: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 8px; z-index: 50; animation: menuReveal .16s ease both; }
.user-menu.open .user-dropdown, .user-menu:hover .user-dropdown { display: grid; }
.user-dropdown a, .user-dropdown button { min-height: 38px; border: 0; background: transparent; border-radius: 7px; text-align: left; padding: 0 10px; color: var(--ink); font-weight: 820; }
.user-dropdown a:hover, .user-dropdown button:hover { background: #eef8fa; }
.user-dropdown hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.mega-nav { display: none; }
.floating-whatsapp { width: 54px; height: 54px; color: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.floating-whatsapp .icon { width: 30px; height: 30px; }
.floating-whatsapp span { position: absolute; right: 64px; white-space: nowrap; border-radius: 8px; padding: 8px 10px; background: var(--deep); color: #fff; font-size: .86rem; opacity: 0; pointer-events: none; transform: translateX(8px); transition: .18s ease; }
.floating-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 18px 34px rgba(12,175,101,.32); }
.floating-whatsapp:hover span { opacity: 1; transform: translateX(0); }
@keyframes menuReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes softRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.product-card, .category-grid a, .post-card, .cart-line, .empty-state, .auth-shell { animation: softRise .38s ease both; }
.product-card, .category-grid a, .post-card, .icon-action, .category-trigger { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.product-card:hover, .category-grid a:hover, .post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(3,29,37,.11); }
.category-trigger:hover, .icon-action:hover { transform: translateY(-1px); }
.icon-action b[hidden] { display: none; }

.favorites-head, .cart-page-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 18px; }
.favorites-head h1, .cart-page-head h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 3vw, 3rem); }
.favorites-head p, .cart-page-head p { margin: 0; color: var(--muted); }
.favorites-page { min-height: 360px; }
.empty-state { min-height: 310px; display: grid; place-items: center; align-content: center; text-align: center; gap: 12px; border: 1px dashed #bfd3d8; border-radius: 8px; background: #fff; padding: 34px; }
.empty-state .icon { width: 58px; height: 58px; color: var(--aqua); }
.empty-state h2 { margin: 0; font-size: 1.5rem; }
.empty-state p { margin: 0; max-width: 440px; color: var(--muted); }

.cart-layout { grid-template-columns: minmax(0, 1fr) 380px; }
.cart-list { display: grid; gap: 12px; }
.cart-line { grid-template-columns: 96px minmax(0, 1fr) 190px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px; box-shadow: 0 8px 20px rgba(3,29,37,.05); }
.cart-thumb { width: 96px; height: 96px; display: grid; place-items: center; border-radius: 8px; background: #eff8fa; }
.cart-thumb img { width: 72px; height: 72px; object-fit: contain; }
.cart-copy { display: grid; gap: 5px; }
.cart-copy small, .cart-copy span, .cart-controls small { color: var(--muted); }
.cart-copy strong { font-size: 1.04rem; }
.link-button { min-height: auto; border: 0; background: transparent; padding: 0 12px 0 0; color: var(--ocean); font-weight: 850; }
.link-button.danger { color: var(--danger); }
.cart-controls { display: grid; justify-items: end; align-content: center; gap: 8px; }
.qty { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { border: 0; border-radius: 0; min-width: 38px; }
.qty span { min-width: 34px; text-align: center; font-weight: 900; }
.order-summary { position: sticky; top: 124px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 20px; box-shadow: var(--shadow); }
.order-summary h2 { margin-top: 0; }
.order-summary dl { display: grid; gap: 10px; margin: 14px 0; }
.order-summary dl div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.order-summary dd { margin: 0; color: var(--ink); font-weight: 900; }
.summary-total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 1.22rem; color: var(--ink) !important; }
.shipping-progress { border-radius: 8px; background: #eef8fa; padding: 12px; }
.shipping-progress p { margin: 0 0 8px; color: var(--ocean); font-weight: 850; }
.shipping-progress span { display: block; height: 7px; border-radius: 999px; background: #d2e7eb; overflow: hidden; }
.shipping-progress i { display: block; height: 100%; border-radius: 999px; background: var(--reef); }
.coupon-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.coupon-box summary { cursor: pointer; font-weight: 900; }
.coupon-box div { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.coupon-box button { border: 0; border-radius: 8px; background: var(--deep); color: #fff; font-weight: 900; padding: 0 14px; }
.checkout-cta { width: 100%; min-height: 52px; margin-top: 14px; }
.trust-list { display: grid; gap: 8px; margin-top: 14px; color: var(--muted); font-size: .9rem; }
.trust-list span { display: flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 18px; height: 18px; color: var(--ocean); }

.auth-shell { max-width: 1040px; margin: 34px auto; display: grid; grid-template-columns: .95fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.auth-visual { min-height: 540px; display: grid; align-content: center; gap: 18px; padding: 44px; color: #fff; background: radial-gradient(circle at 75% 18%, rgba(255,255,255,.3), transparent 22%), linear-gradient(135deg, #031d25, #0b6f7d 70%, #ff8a1e); }
.auth-visual img { width: 142px; filter: drop-shadow(0 18px 28px rgba(0,0,0,.24)); }
.auth-visual h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1; }
.auth-visual p { margin: 0; color: rgba(255,255,255,.86); line-height: 1.7; }
.auth-panel { display: grid; align-content: center; gap: 12px; padding: 44px; }
.auth-panel h2 { margin: 0 0 6px; font-size: 1.8rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.password-field { position: relative; display: grid; }
.password-field input { padding-right: 78px; }
.password-field button { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 44px; display: grid; place-items: center; border: 0; border-radius: 7px; background: #eef8fa; color: var(--ocean); padding: 0; }
.password-field button .icon { width: 20px; height: 20px; }
.forgot-link { justify-self: end; color: var(--ocean); font-weight: 850; font-size: .9rem; }
.auth-separator { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.auth-separator::before, .auth-separator::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.google-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 900; }
.google-button[aria-busy="true"] { opacity: .7; pointer-events: none; }
.auth-switch { margin: 0; text-align: center; color: var(--muted); }
.auth-switch a { color: var(--ocean); font-weight: 900; }

@media (max-width: 1120px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .category-nav { grid-column: 1 / 2; }
  .search-form { grid-column: 1 / -1; grid-row: 2; }
  .cart-layout, .auth-shell { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .auth-visual { min-height: 280px; }
}

@media (max-width: 760px) {
  .service-bar { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand small { display: none; }
  .brand img { width: 46px; height: 46px; }
  .category-trigger span, .category-trigger .icon-down, .icon-action small, .cart-action span { display: none; }
  .category-trigger { width: 48px; padding: 0; justify-content: center; }
  .category-panel { width: min(320px, calc(100vw - 32px)); }
  .header-actions { justify-content: end; }
  .icon-action { width: 44px; min-height: 46px; }
  .cart-action { width: 48px; }
  .favorites-head, .cart-page-head { align-items: start; flex-direction: column; }
  .cart-line { grid-template-columns: 74px 1fr; }
  .cart-controls { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: auto 1fr; align-items: center; }
  .auth-panel, .auth-visual { padding: 24px; }
  .auth-row { grid-template-columns: 1fr; }
  .floating-whatsapp span { display: none; }
}

/* Footer refresh */
.site-footer { position: relative; grid-template-columns: 1.3fr .8fr .9fr 1.25fr; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer::before { content: ""; position: absolute; inset: -90px auto auto 8%; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(34,198,212,.22), transparent 65%); animation: footerGlow 7s ease-in-out infinite; pointer-events: none; }
.site-footer::after { content: ""; position: absolute; right: 9%; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,30,.18), transparent 66%); animation: footerGlow 8s ease-in-out infinite reverse; pointer-events: none; }
.site-footer > * { position: relative; z-index: 1; }
.footer-brand { display: grid; align-content: start; gap: 12px; }
.footer-brand img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 12px 20px rgba(0,0,0,.28)); }
.footer-brand strong { font-size: 1.16rem; color: #fff; }
.site-footer p { margin: 0; color: #c8e7ec; line-height: 1.55; }
.site-footer a { color: #dff9fb; transition: color .18s ease, transform .18s ease; }
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.newsletter p { color: #c8e7ec; }
.newsletter div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.newsletter button { min-height: 46px; border-radius: 8px; padding: 0 16px; background: var(--aqua); color: var(--deep); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; color: #a8cbd1; font-size: .9rem; }
@keyframes footerGlow { 50% { transform: translateY(18px) scale(1.08); opacity: .72; } }

@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr; }
  .newsletter div, .footer-bottom { grid-template-columns: 1fr; display: grid; }
}

/* Admin store-theme refresh */
.admin-body.admin-authenticated {
  grid-template-columns: 304px minmax(0, 1fr);
  background:
    radial-gradient(circle at 86% 8%, rgba(255,138,30,.14), transparent 24%),
    radial-gradient(circle at 16% 2%, rgba(34,198,212,.16), transparent 28%),
    var(--paper);
}
.admin-body.admin-authenticated::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55), transparent 340px);
  z-index: -1;
}
.admin-body.admin-authenticated .admin-sidebar {
  margin: 16px 0 16px 16px;
  min-height: calc(100vh - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.admin-body.admin-authenticated .admin-brand {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-body.admin-authenticated .admin-brand .brand {
  color: var(--deep);
}
.admin-body.admin-authenticated .admin-brand .brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 10px 18px rgba(3,29,37,.12));
}
.admin-body.admin-authenticated .admin-brand .brand small {
  color: var(--muted);
}
.admin-body.admin-authenticated .admin-brand button {
  border-color: var(--line);
  background: #eef8fa;
  color: var(--ocean);
}
.admin-body.admin-authenticated .admin-nav {
  padding: 4px 2px 4px 0;
}
.admin-body.admin-authenticated .admin-nav h3 {
  color: #6f8b93;
}
.admin-body.admin-authenticated .admin-nav a {
  min-height: 40px;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}
.admin-body.admin-authenticated .admin-nav a span {
  background: #e8f5f7;
  color: var(--ocean);
  font-weight: 950;
}
.admin-body.admin-authenticated .admin-nav a:hover {
  background: #eef8fa;
  color: var(--ocean);
  transform: translateX(2px);
}
.admin-body.admin-authenticated .admin-sidebar-foot {
  border-top-color: var(--line);
}
.admin-body.admin-authenticated .admin-sidebar-foot a,
.admin-body.admin-authenticated .admin-sidebar-foot button {
  border: 1px solid var(--line);
  background: #f8fbfc;
  color: var(--deep);
}
.admin-body.admin-authenticated .admin-sidebar-foot a:hover,
.admin-body.admin-authenticated .admin-sidebar-foot button:hover {
  background: #eef8fa;
}
.admin-body.admin-authenticated .admin-sidebar-foot small {
  color: var(--muted);
}
.admin-body.admin-authenticated .admin-main {
  padding: 16px 18px 28px;
}
.admin-body.admin-authenticated #adminApp {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.admin-body.admin-authenticated .admin-command {
  top: 16px;
  margin: 0 auto 16px;
  max-width: 1480px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(3,29,37,.08);
}
.admin-body.admin-authenticated .admin-command span {
  color: var(--ocean);
}
.admin-body.admin-authenticated .admin-command strong {
  color: var(--deep);
  font-size: 1.24rem;
}
.admin-body.admin-authenticated .admin-search input {
  height: 46px;
  border-width: 1px;
  background: #f8fbfc;
  box-shadow: 0 4px 14px rgba(3,29,37,.04);
}
.admin-body.admin-authenticated #adminSearchResults a:hover,
.admin-body.admin-authenticated #commandResults a:hover {
  background: #eef8fa;
}
.admin-body.admin-authenticated .admin-command > button,
.admin-body.admin-authenticated .admin-actions button,
.admin-body.admin-authenticated .admin-filterbar button,
.admin-body.admin-authenticated .admin-table button,
.admin-body.admin-authenticated .detail-head button,
.admin-body.admin-authenticated .editor-side button,
.admin-body.admin-authenticated .settings-form button {
  min-height: 40px;
  border: 0;
  background: var(--deep);
  color: #fff;
  box-shadow: 0 8px 18px rgba(3,29,37,.12);
}
.admin-body.admin-authenticated .admin-command > button {
  background: #eef8fa;
  color: var(--deep);
  box-shadow: none;
}
.admin-body.admin-authenticated .admin-command b {
  background: var(--reef);
}
.admin-body.admin-authenticated .admin-page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0;
}
.admin-body.admin-authenticated .admin-table-head,
.admin-body.admin-authenticated .detail-head {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,251,252,.92));
  padding: 18px;
  box-shadow: 0 8px 20px rgba(3,29,37,.06);
}
.admin-body.admin-authenticated .admin-table-head h1,
.admin-body.admin-authenticated .detail-head h1 {
  color: var(--deep);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.admin-body.admin-authenticated .admin-filterbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  padding: 12px;
  box-shadow: 0 8px 20px rgba(3,29,37,.05);
}
.admin-body.admin-authenticated .admin-kpi {
  min-height: 132px;
  border-color: var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff 0%, #f0fbfc 100%);
  box-shadow: 0 10px 24px rgba(3,29,37,.07);
  animation: softRise .35s ease both;
}
.admin-body.admin-authenticated .admin-kpi strong {
  color: var(--deep);
  font-size: 1.85rem;
}
.admin-body.admin-authenticated .admin-kpi i {
  right: -28px;
  bottom: -38px;
  width: 130px;
  height: 96px;
  background: radial-gradient(circle, rgba(34,198,212,.18), transparent 68%);
}
.admin-body.admin-authenticated .ops-panel,
.admin-body.admin-authenticated .admin-table-wrap,
.admin-body.admin-authenticated .editor-main,
.admin-body.admin-authenticated .editor-side {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(3,29,37,.07);
}
.admin-body.admin-authenticated .ops-panel header {
  border-bottom: 1px solid #edf5f6;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.admin-body.admin-authenticated .ops-panel h2 {
  color: var(--deep);
}
.admin-body.admin-authenticated .bar-chart {
  border-color: #d9eaed;
  background: linear-gradient(180deg, rgba(238,248,250,.55), transparent);
  border-radius: 8px;
}
.admin-body.admin-authenticated .bar-chart span {
  background: linear-gradient(180deg, #22c6d4, #0b6f7d);
  box-shadow: 0 6px 18px rgba(34,198,212,.22);
}
.admin-body.admin-authenticated .queue-row {
  border-bottom-color: #edf5f6;
}
.admin-body.admin-authenticated .admin-table th {
  background: #eef8fa;
  color: var(--ocean);
  font-size: .78rem;
  letter-spacing: .02em;
}
.admin-body.admin-authenticated .admin-table tr:hover td {
  background: #fbfefe;
}
.admin-body.admin-authenticated .admin-table td {
  border-bottom-color: #edf5f6;
}
.admin-body.admin-authenticated .admin-thumb {
  background: linear-gradient(135deg, #ecfbfc, #fff);
}
.admin-body.admin-authenticated .admin-empty {
  border: 1px dashed #bfd3d8;
  border-radius: 8px;
  background: #fbfefe;
}
.admin-body.admin-authenticated .admin-upload {
  background: #f0fbfc;
}
.admin-body.admin-authenticated .settings-tabs a {
  background: #eef8fa;
  color: var(--deep);
}
.admin-body.admin-authenticated .command-palette {
  background: rgba(3,29,37,.22);
  backdrop-filter: blur(8px);
}
.admin-body.admin-authenticated .command-palette > div {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-collapsed.admin-authenticated {
  grid-template-columns: 98px minmax(0, 1fr);
}
.admin-collapsed.admin-authenticated .admin-sidebar {
  padding: 14px 10px;
}

@media (max-width: 1080px) {
  .admin-body.admin-authenticated {
    grid-template-columns: 1fr;
  }
  .admin-body.admin-authenticated .admin-sidebar {
    margin: 10px;
    min-height: auto;
  }
  .admin-body.admin-authenticated .admin-command {
    top: 0;
  }
  .admin-body.admin-authenticated .admin-main {
    padding: 10px;
  }
}

@media (max-width: 760px) {
  .admin-body.admin-authenticated .admin-command,
  .admin-body.admin-authenticated .admin-table-head,
  .admin-body.admin-authenticated .detail-head {
    align-items: stretch;
  }
  .admin-body.admin-authenticated .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
  .admin-body.admin-authenticated .admin-table-head,
  .admin-body.admin-authenticated .detail-head {
    flex-direction: column;
  }
}

/* Admin premium refinement */
.admin-body.admin-authenticated {
  grid-template-columns: 260px minmax(0, 1fr);
  background:
    radial-gradient(circle at 96% -4%, rgba(34,198,212,.18), transparent 24%),
    linear-gradient(180deg, #f7fbfc 0%, #eef6f8 100%);
  color: #132b33;
}
.admin-body.admin-authenticated .admin-sidebar {
  margin: 12px 0 12px 12px;
  min-height: calc(100vh - 24px);
  padding: 14px;
  border-color: rgba(177,205,211,.7);
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 55px rgba(3,29,37,.10);
}
.admin-body.admin-authenticated .admin-brand {
  gap: 8px;
  padding-bottom: 12px;
}
.admin-body.admin-authenticated .admin-brand .brand {
  gap: 10px;
}
.admin-body.admin-authenticated .admin-brand .brand img {
  width: 42px;
  height: 42px;
}
.admin-body.admin-authenticated .admin-brand .brand strong {
  font-size: 1.02rem;
  line-height: 1.05;
}
.admin-body.admin-authenticated .admin-brand .brand small {
  font-size: .75rem;
}
.admin-body.admin-authenticated .admin-brand button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.admin-body.admin-authenticated .admin-nav {
  padding-right: 0;
}
.admin-body.admin-authenticated .admin-nav section {
  gap: 3px;
  margin-bottom: 12px;
}
.admin-body.admin-authenticated .admin-nav h3 {
  margin: 0 0 5px;
  padding: 0 8px;
  font-size: .68rem;
  letter-spacing: .12em;
  color: #78959d;
}
.admin-body.admin-authenticated .admin-nav a {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 9px;
  gap: 8px;
  color: #18343c;
  font-size: .92rem;
  font-weight: 860;
}
.admin-body.admin-authenticated .admin-nav a span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #eaf7f9, #f7fcfd);
  color: #0a7180;
  font-size: .62rem;
  box-shadow: inset 0 0 0 1px rgba(34,198,212,.18);
}
.admin-body.admin-authenticated .admin-nav a:hover {
  background: linear-gradient(135deg, #e9f7f9, #ffffff);
  box-shadow: inset 3px 0 0 var(--aqua);
  transform: none;
}
.admin-body.admin-authenticated .admin-sidebar-foot {
  gap: 7px;
}
.admin-body.admin-authenticated .admin-sidebar-foot a,
.admin-body.admin-authenticated .admin-sidebar-foot button {
  min-height: 36px;
  border-radius: 8px;
  font-size: .86rem;
}
.admin-body.admin-authenticated .admin-main {
  padding: 12px 18px 26px;
  min-width: 0;
}
.admin-body.admin-authenticated .admin-command {
  top: 12px;
  min-height: 72px;
  grid-template-columns: minmax(170px, 260px) minmax(360px, 1fr) auto;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border-color: rgba(177,205,211,.75);
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 44px rgba(3,29,37,.09);
}
.admin-body.admin-authenticated .admin-command span {
  font-size: .68rem;
  letter-spacing: .12em;
}
.admin-body.admin-authenticated .admin-command strong {
  display: block;
  margin-top: 2px;
  font-size: 1.15rem;
  line-height: 1.05;
}
.admin-body.admin-authenticated .admin-search input {
  height: 44px;
  border-color: #d8e8eb;
  border-radius: 8px;
  background: #fbfefe;
  font-size: .95rem;
}
.admin-body.admin-authenticated .admin-command > button {
  min-height: 44px;
  border-radius: 8px;
  background: #eef8fa;
  color: var(--deep);
  font-size: .92rem;
  font-weight: 900;
}
.admin-body.admin-authenticated .admin-page {
  gap: 12px;
}
.admin-body.admin-authenticated .admin-table-head,
.admin-body.admin-authenticated .detail-head {
  min-height: 112px;
  padding: 18px 20px;
  border-color: rgba(177,205,211,.75);
  background:
    radial-gradient(circle at 98% 0%, rgba(34,198,212,.18), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,250,251,.96));
  box-shadow: 0 14px 38px rgba(3,29,37,.08);
}
.admin-body.admin-authenticated .admin-table-head h1,
.admin-body.admin-authenticated .detail-head h1 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  letter-spacing: 0;
}
.admin-body.admin-authenticated .admin-table-head p,
.admin-body.admin-authenticated .detail-head p {
  max-width: 680px;
  font-size: .95rem;
  line-height: 1.45;
}
.admin-body.admin-authenticated .admin-actions {
  justify-content: flex-end;
}
.admin-body.admin-authenticated .admin-actions button,
.admin-body.admin-authenticated .admin-actions .btn,
.admin-body.admin-authenticated .admin-table-head > button,
.admin-body.admin-authenticated .detail-head > button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: .9rem;
}
.admin-body.admin-authenticated .admin-filterbar {
  grid-template-columns: minmax(280px, 1fr) 170px 170px auto;
  padding: 10px;
  border-color: rgba(177,205,211,.72);
  box-shadow: 0 10px 26px rgba(3,29,37,.055);
}
.admin-body.admin-authenticated .admin-filterbar input,
.admin-body.admin-authenticated .admin-filterbar select {
  min-height: 42px;
  background: #fbfefe;
}
.admin-body.admin-authenticated .admin-filterbar button {
  min-height: 42px;
  border-radius: 8px;
}
.admin-body.admin-authenticated .admin-kpi-grid {
  gap: 10px;
}
.admin-body.admin-authenticated .admin-kpi {
  min-height: 116px;
  padding: 14px 15px;
  border-color: rgba(177,205,211,.72);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 32px rgba(3,29,37,.07);
}
.admin-body.admin-authenticated .admin-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--aqua), #0b6f7d);
}
.admin-body.admin-authenticated .admin-kpi span {
  font-size: .76rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.admin-body.admin-authenticated .admin-kpi strong {
  margin: 8px 0 2px;
  font-size: 1.55rem;
}
.admin-body.admin-authenticated .admin-kpi small {
  font-size: .78rem;
}
.admin-body.admin-authenticated .admin-grid-two {
  gap: 12px;
}
.admin-body.admin-authenticated .ops-panel,
.admin-body.admin-authenticated .admin-table-wrap,
.admin-body.admin-authenticated .editor-main,
.admin-body.admin-authenticated .editor-side {
  border-color: rgba(177,205,211,.72);
  box-shadow: 0 12px 32px rgba(3,29,37,.065);
}
.admin-body.admin-authenticated .ops-panel {
  padding: 14px;
}
.admin-body.admin-authenticated .ops-panel h2 {
  font-size: 1.05rem;
}
.admin-body.admin-authenticated .admin-table-wrap {
  border-radius: 8px;
  background: rgba(255,255,255,.94);
}
.admin-body.admin-authenticated .admin-table {
  font-size: .92rem;
}
.admin-body.admin-authenticated .admin-table th,
.admin-body.admin-authenticated .admin-table td {
  padding: 12px 13px;
}
.admin-body.admin-authenticated .admin-table th {
  height: 44px;
  background: #f0f8fa;
  color: #315963;
  font-size: .72rem;
  letter-spacing: .08em;
}
.admin-body.admin-authenticated .admin-table td {
  height: 58px;
  color: #263c43;
}
.admin-body.admin-authenticated .admin-table code {
  border: 1px solid #dbecef;
  border-radius: 7px;
  background: #f6fbfc;
  padding: 4px 7px;
  color: #315963;
  font-size: .78rem;
}
.admin-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  border: 1px solid #dbecef;
  background: #f6fbfc;
  color: #315963;
  font-size: .78rem;
  font-weight: 900;
  white-space: nowrap;
}
.admin-badge.success {
  border-color: rgba(12,143,99,.22);
  background: rgba(12,143,99,.09);
  color: #0c6e4e;
}
.admin-badge.warning {
  border-color: rgba(255,138,30,.28);
  background: rgba(255,138,30,.11);
  color: #8a4b05;
}
.admin-badge.danger {
  border-color: rgba(215,38,95,.24);
  background: rgba(215,38,95,.09);
  color: #9f1e49;
}
.admin-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.admin-body.admin-authenticated .admin-table button,
.admin-body.admin-authenticated .admin-action-button,
.admin-body.admin-authenticated .admin-table-wrap footer button {
  min-height: 34px;
  border: 1px solid #d8e8eb;
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
  box-shadow: none;
  padding: 0 11px;
  font-size: .84rem;
  font-weight: 900;
}
.admin-body.admin-authenticated .admin-table button:hover,
.admin-body.admin-authenticated .admin-action-button:hover,
.admin-body.admin-authenticated .admin-table-wrap footer button:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.admin-body.admin-authenticated .admin-table-wrap footer {
  min-height: 48px;
  padding: 8px 10px;
  background: #fbfefe;
  color: #78959d;
  font-size: .86rem;
}
.admin-body.admin-authenticated input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ocean);
}
.admin-body.admin-authenticated input[type="number"] {
  max-width: 92px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: .86rem;
}
.admin-body.admin-authenticated .command-palette > div {
  padding: 10px;
  box-shadow: 0 28px 80px rgba(3,29,37,.24);
}
.admin-collapsed.admin-authenticated {
  grid-template-columns: 84px minmax(0, 1fr);
}
.admin-collapsed.admin-authenticated .admin-sidebar {
  margin-left: 10px;
}

@media (max-width: 1240px) {
  .admin-body.admin-authenticated {
    grid-template-columns: 236px minmax(0, 1fr);
  }
  .admin-body.admin-authenticated .admin-command {
    grid-template-columns: 1fr;
  }
}

/* Admin interaction and measurement fixes */
.admin-body.admin-authenticated {
  grid-template-columns: 286px minmax(0, 1fr);
}
.admin-body.admin-authenticated .admin-sidebar {
  overflow: hidden;
  contain: paint;
}
.admin-body.admin-authenticated .admin-nav {
  overflow-x: hidden;
  padding-right: 0;
}
.admin-body.admin-authenticated .admin-nav a {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-body.admin-authenticated .admin-nav a:hover {
  transform: none;
}
.admin-body.admin-authenticated .admin-page {
  width: 100%;
  justify-self: stretch;
  max-width: min(1420px, calc(100vw - 334px));
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}
.admin-body.admin-authenticated .admin-grid-two {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: start;
}
.admin-body.admin-authenticated .ops-panel {
  min-width: 0;
}
.admin-body.admin-authenticated .ops-panel header {
  align-items: center;
}
.admin-body.admin-authenticated .ops-panel header select {
  width: 220px;
  min-width: 180px;
  max-width: 100%;
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 42px 0 12px;
  border-radius: 8px;
  font-size: .95rem;
}
.admin-body.admin-authenticated .admin-chart {
  height: 230px;
  min-height: 230px;
  max-height: 230px;
}
.admin-body.admin-authenticated .bar-chart {
  height: 230px;
  min-height: 230px;
  padding: 18px 14px 34px;
  gap: 6px;
  overflow: hidden;
}
.admin-body.admin-authenticated .bar-chart span {
  max-height: 170px;
  min-width: 8px;
  isolation: isolate;
}
.admin-body.admin-authenticated .bar-chart span.is-empty {
  background: linear-gradient(180deg, #d7eef2, #badfe6);
  box-shadow: none;
  opacity: .6;
}
.admin-body.admin-authenticated .bar-chart em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
  padding: 5px 7px;
  font-size: .68rem;
  font-style: normal;
  white-space: nowrap;
  transition: opacity .16s ease;
}
.admin-body.admin-authenticated .bar-chart span:hover em {
  opacity: 1;
}
.admin-body.admin-authenticated .bar-chart b {
  bottom: -25px;
  max-width: 56px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-body.admin-authenticated .admin-table-wrap {
  overflow: hidden;
}
.admin-body.admin-authenticated .admin-table {
  min-width: 920px;
}
.admin-body.admin-authenticated .admin-table-wrap {
  overflow-x: auto;
}
.admin-body.admin-authenticated .admin-table-wrap footer {
  position: sticky;
  left: 0;
  justify-content: flex-end;
}
.admin-body.admin-authenticated .admin-table-wrap footer span {
  margin-right: auto;
  padding-left: 4px;
  font-weight: 850;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3,29,37,.34);
  backdrop-filter: blur(10px);
}
.admin-modal-card {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(177,205,211,.9);
  border-radius: 10px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 90px rgba(3,29,37,.28);
}
.admin-modal-card header,
.admin-modal-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7f0f2;
}
.admin-modal-card footer {
  border-top: 1px solid #e7f0f2;
  border-bottom: 0;
  justify-content: flex-end;
}
.admin-modal-card span {
  color: var(--ocean);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-modal-card h2 {
  margin: 3px 0 0;
  color: var(--deep);
  font-size: 1.35rem;
}
.admin-modal-card header button,
.admin-modal-card footer button {
  min-height: 38px;
  border: 1px solid #d8e8eb;
  border-radius: 8px;
  background: #fff;
  color: var(--deep);
  padding: 0 13px;
  font-weight: 900;
  cursor: pointer;
}
.admin-modal-card footer button.primary {
  border-color: var(--deep);
  background: var(--deep);
  color: #fff;
}
.admin-modal-body {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}
.admin-modal-body label {
  display: grid;
  gap: 7px;
  color: #315963;
  font-size: .86rem;
  font-weight: 900;
}
.admin-modal-body input,
.admin-modal-body select,
.admin-modal-body textarea {
  min-height: 44px;
  border: 1px solid #d8e8eb;
  border-radius: 8px;
  background: #fbfefe;
  color: var(--deep);
  padding: 0 12px;
  font: inherit;
}

@media (max-width: 1240px) {
  .admin-body.admin-authenticated .admin-page {
    max-width: calc(100vw - 280px);
  }
  .admin-body.admin-authenticated .admin-grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .admin-body.admin-authenticated {
    grid-template-columns: 1fr;
  }
  .admin-body.admin-authenticated .admin-sidebar {
    margin: 10px;
    min-height: auto;
  }
  .admin-body.admin-authenticated .admin-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .admin-body.admin-authenticated .admin-nav section {
    min-width: 190px;
  }
  .admin-body.admin-authenticated .admin-page {
    max-width: 100%;
  }
}
