@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
  --brand-primary: #2563eb;
  --brand-secondary: #0f172a;
  --brand-accent: #eff6ff;
  --surface-0: #f6f8fc;
  --surface-1: rgba(255, 255, 255, 0.86);
  --surface-2: #ffffff;
  --surface-3: #f8fafc;
  --border-color: rgba(148, 163, 184, 0.2);
  --border-strong: rgba(148, 163, 184, 0.32);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.08), transparent 24%),
    var(--surface-0);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; display: block; }

.landing-placeholder,
.catalog-body,
.admin-body { min-height: 100vh; }

.landing-placeholder {
  display: grid;
  place-items: center;
  padding: 24px;
}

.placeholder-card,
.panel-card,
.sidebar-card {
  background: var(--surface-1);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.placeholder-card {
  max-width: 760px;
  padding: 44px;
  text-align: center;
}

.placeholder-logo {
  width: 88px;
  height: 88px;
  margin: 20px auto 18px;
  object-fit: contain;
  border-radius: 24px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.placeholder-lead {
  margin: 10px 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--brand-secondary);
}

.placeholder-company-copy {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.placeholder-company-copy strong {
  font-size: 0.98rem;
  color: var(--text-primary);
}

.placeholder-company-copy span {
  color: var(--text-secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 82%, white);
  color: var(--brand-primary);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.quick-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }

.primary-btn-animated {
  animation: landing-cta-pulse 2.6s ease-in-out infinite;
}

.whatsapp-btn {
  border-color: rgba(22, 163, 74, 0.28);
  background: linear-gradient(180deg, #25d366, #16a34a);
  color: #fff;
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.24);
}

.whatsapp-btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

@keyframes landing-cta-pulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-primary) 24%, transparent);
  }

  50% {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 40px color-mix(in srgb, var(--brand-primary) 32%, transparent);
  }
}

.primary-btn,
.secondary-btn,
.checkout,
.finish-btn,
.buy,
.details-btn,
.ghost-btn,
.buy-btn,
.continue-floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-btn,
.buy,
.finish-btn,
.checkout,
.buy-btn {
  border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, black 2%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 94%, white), color-mix(in srgb, var(--brand-primary) 82%, black 10%));
  color: #fff;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

.secondary-btn,
.details-btn,
.ghost-btn,
.continue-floating {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}

.primary-btn:hover,
.secondary-btn:hover,
.buy:hover,
.details-btn:hover,
.buy-btn:hover,
.checkout:hover,
.finish-btn:hover,
.ghost-btn:hover,
.continue-floating:hover,
.cart-btn:hover,
.action-btn:hover,
.page-btn:hover,
.theme-toggle:hover,
.palette-chip:hover,
.catalog-nav button:hover,
.qty button:hover {
  transform: translateY(-1px);
}

.full-width { width: 100%; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

.alert {
  padding: 15px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}

.alert.success { background: rgba(16, 185, 129, 0.08); color: #047857; border-color: rgba(16, 185, 129, 0.18); }
.alert.error { background: rgba(239, 68, 68, 0.08); color: #b91c1c; border-color: rgba(239, 68, 68, 0.16); }

.admin-body { padding: 0; }
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.admin-shell.single-card {
  grid-template-columns: minmax(320px, 1040px);
  justify-content: center;
  align-items: center;
  padding: 32px;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px;
  position: sticky;
  top: 0;
  min-height: 100vh;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-bottom: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.72);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.brand-mark,
.app-header-logo,
.user-avatar,
.user-menu-avatar {
  background: linear-gradient(135deg, var(--brand-secondary), color-mix(in srgb, var(--brand-primary) 88%, white));
  color: #fff;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-logo-image,
.app-header-logo-image { background: #fff; object-fit: contain; }
.brand-logo-image { width: 46px; height: 46px; border-radius: 14px; }

.sidebar-card h2,
.page-title,
.hero h1,
.auth-hero h1,
.product h3,
.modal-info h2,
.panel-card h1,
.panel-card h2,
.section-heading h2,
.section-heading h3 {
  font-family: Manrope, Inter, ui-sans-serif, sans-serif;
}

.sidebar-card h2 { margin: 0 0 2px; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.03em; }
.sidebar-card .muted { color: var(--text-muted); }

.side-nav { display: grid; gap: 6px; }

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 16px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: 0.18s ease;
  font-weight: 600;
  font-size: 0.95rem;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.side-nav a.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 82%, white), rgba(255, 255, 255, 0.98));
  color: var(--brand-primary);
  border-color: color-mix(in srgb, var(--brand-primary) 16%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nav-icon,
.stat-icon,
.card-icon,
.inline-icon,
.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.nav-icon svg,
.stat-icon svg,
.card-icon svg,
.inline-icon svg,
.btn-icon svg { width: 100%; height: 100%; display: block; }

.sidebar-user-card {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.content-stack {
  display: grid;
  gap: 20px;
  padding: 26px;
  align-content: start;
}

.panel-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
}

.panel-card h1,
.panel-card h2 { margin: 0; letter-spacing: -0.04em; }

.auth-card { padding: 32px; background: rgba(255, 255, 255, 0.98); }

.auth-card-premium {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.auth-hero {
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-primary) 16%, white), transparent 46%),
    linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-hero h1 { margin: 16px 0 10px; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.98; letter-spacing: -0.07em; }
.auth-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.auth-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, white);
  background: rgba(255, 255, 255, 0.92);
  color: color-mix(in srgb, var(--brand-primary) 75%, #111827);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.auth-mini-stats div {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.78);
}

.auth-mini-stats strong,
.auth-mini-stats span {
  display: block;
}

.auth-mini-stats strong {
  font-family: Manrope, Inter, ui-sans-serif, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.auth-mini-stats span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.auth-form-wrap {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.72);
  background: rgba(255, 255, 255, 0.96);
}

.auth-form-header {
  display: grid;
  gap: 18px;
  margin-bottom: 10px;
}

.auth-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-form-header .auth-brand-row { margin-bottom: 0; }
.auth-form-header h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.04em; }
.auth-form-header p { margin: 6px 0 0; }
.auth-login-form { gap: 16px; }
.auth-form-actions { display: grid; gap: 10px; margin-top: 4px; }
.install-card { align-items: stretch; }
.install-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.install-form-grid { gap: 16px; }
.install-note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(248, 250, 252, 0.9);
}

.install-note strong { display: block; margin-bottom: 4px; font-size: 0.92rem; }
.install-note p { margin: 0; }
.install-links { margin-top: 18px; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  position: static;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.app-header-brand { display: flex; align-items: center; gap: 12px; }

.app-header-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.app-header-logo-image { width: 42px; height: 42px; border-radius: 14px; }
.app-header-meta { display: grid; gap: 2px; }
.app-header-meta strong { font-size: 0.95rem; letter-spacing: -0.02em; }
.app-header-meta span { color: var(--text-muted); font-size: 0.82rem; }
.eyebrow { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.04em; }
.page-title { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; margin: 0; font-weight: 800; }
.page-subtitle { margin: 10px 0 0; color: var(--text-muted); font-size: 1rem; max-width: 680px; }
.topbar-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.page-heading-block { padding: 4px 0 4px; }

.catalog-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, black 2%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 94%, white), color-mix(in srgb, var(--brand-primary) 82%, black 10%));
  color: #fff;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--brand-primary) 24%, transparent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.catalog-link-btn:hover {
  transform: translateY(-1px);
}

.theme-toggle-group {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.78);
}

.theme-toggle {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
}

.theme-toggle.active { background: color-mix(in srgb, var(--brand-accent) 82%, white); color: var(--brand-primary); }

.user-menu { position: relative; }

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.user-menu-meta { display: grid; text-align: left; }
.user-menu-meta strong { font-size: 0.88rem; line-height: 1.1; }
.user-menu-meta small { color: var(--text-muted); font-size: 0.75rem; text-transform: capitalize; }

.user-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  padding: 8px;
  display: none;
}

.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-dropdown a { display: block; padding: 10px 12px; border-radius: 12px; font-size: 0.92rem; }
.user-menu-dropdown a:hover { background: rgba(248, 250, 252, 0.92); }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading.tight { margin-bottom: 16px; }
.section-heading h2, .section-heading h3 { margin: 0; }
.section-heading p { margin: 6px 0 0; }

.panel-card-header {
  margin: -26px -26px 22px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.92));
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.form-grid { display: grid; gap: 12px; }

.form-grid label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.cart-summary input,
.cart-summary textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder,
.cart-summary input::placeholder,
.cart-summary textarea::placeholder { color: #94a3b8; }

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.cart-summary input:focus,
.cart-summary textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--brand-primary) 36%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.field-help { margin: 6px 0 0; color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.checkbox-row input { width: auto; }
.split-card { display: grid; grid-template-columns: minmax(320px, 430px) 1fr; gap: 24px; }
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: transparent; }

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

thead th {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(248, 250, 252, 0.9);
  font-weight: 800;
}

.table-wrap table tr:hover td { background: rgba(248, 250, 252, 0.75); }
.actions-cell { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions-cell form { margin: 0; }
.link-danger { background: transparent; color: #b91c1c; padding: 0; }
.text-link { color: var(--brand-primary); font-weight: 700; }

.action-btn,
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.action-btn.edit { color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 15%, white); background: color-mix(in srgb, var(--brand-accent) 70%, white); }
.action-btn.delete { color: #b91c1c; border-color: rgba(239, 68, 68, 0.2); background: rgba(254, 242, 242, 0.9); }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }

.stat-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 22px;
  padding: 22px;
  display: grid;
  gap: 10px;
}

.stat-box strong {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  color: var(--text-primary);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.stat-box span {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.stat-box small { color: var(--text-muted); font-size: 0.82rem; font-weight: 700; word-break: break-all; }
.stat-icon { width: 20px; height: 20px; color: var(--brand-primary); }
.dashboard-note { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(226, 232, 240, 0.82); }
.whatsapp-stat-box strong {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.1;
  white-space: nowrap;
}

.compact-form,
.product-form {
  background: rgba(252, 253, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 22px;
  padding: 18px;
}

.product-form { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

.form-section {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
}

.form-section-head { margin-bottom: 14px; }
.form-section-head h3 { margin: 0 0 4px; font-size: 1.06rem; letter-spacing: -0.02em; }
.form-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.span-2 { grid-column: span 2; }
.align-end { display: flex; align-items: end; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.product-form > button,
.product-form > .checkbox-row,
.product-form > textarea,
.product-form > input[type="file"] { grid-column: span 2; }

.auth-card form { margin-top: 18px; }

.status-badge,
.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.success { background: rgba(16, 185, 129, 0.1); color: #15803d; border: 1px solid rgba(16, 185, 129, 0.15); }
.status-badge.muted-badge { background: rgba(248, 250, 252, 0.9); color: var(--text-muted); border: 1px solid rgba(226, 232, 240, 0.9); }
.role-pill { background: color-mix(in srgb, var(--brand-accent) 82%, white); color: var(--brand-primary); border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, white); text-transform: capitalize; }

.product-cell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.product-cell img { width: 56px; height: 56px; object-fit: contain; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(226, 232, 240, 0.9); }
.table-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }

.table-search,
.table-filter {
  min-width: 220px;
  padding: 12px 13px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.products-toolbar-wrap { align-items: end; }
.datatable-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.datatable-meta { color: var(--text-muted); font-size: 0.86rem; }
.datatable-pagination { display: flex; align-items: center; gap: 10px; }
.page-btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.page-indicator { color: var(--text-secondary); font-size: 0.86rem; }

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-dialog {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.admin-modal-dialog.large { width: min(1180px, 100%); }
.admin-modal-dialog.compact { width: min(560px, 100%); }
.admin-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 0; }

.admin-modal-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.94));
}

.admin-modal-card-header h2 { margin: 0; }
.admin-modal-card-header p { margin: 6px 0 0; }

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid var(--border-color);
  font-size: 1.4rem;
  line-height: 1;
}

.modal-form {
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.admin-modal-card-body {
  padding: 20px 22px;
  overflow-y: auto;
  min-height: 0;
}

.admin-modal-card-footer {
  padding: 16px 22px 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.96);
}

.compact-form .admin-modal-card-body,
.compact-form .admin-modal-card-footer {
  display: grid;
  gap: 12px;
}

.compact-form .admin-modal-card-footer {
  display: flex;
}

.product-form .admin-modal-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.settings-brand-preview { margin-bottom: 8px; }

.settings-brand-card,
.settings-brand-live {
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.settings-brand-card { display: flex; align-items: center; gap: 16px; padding: 18px; }
.settings-brand-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 18px; background: #fff; border: 1px solid rgba(226, 232, 240, 0.9); }
.settings-brand-placeholder { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; background: color-mix(in srgb, var(--brand-accent) 88%, white); color: var(--brand-primary); font-size: 0.82rem; font-weight: 700; }
.settings-brand-live { padding: 18px; }
.brand-live-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-live-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand-accent) 84%, white); color: var(--brand-primary); font-size: 0.8rem; font-weight: 800; }
.brand-live-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-live-button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--brand-primary); color: #fff; font-weight: 700; }
.brand-live-button.secondary { background: var(--brand-secondary); }
.brand-live-swatch-row { display: flex; gap: 12px; margin-top: 16px; }
.brand-swatch { width: 48px; height: 48px; border-radius: 16px; border: 1px solid rgba(226, 232, 240, 0.9); }
.brand-swatch.primary { background: var(--brand-primary); }
.brand-swatch.secondary { background: var(--brand-secondary); }
.brand-swatch.accent { background: var(--brand-accent); }
.settings-palette-row { display: flex; gap: 10px; flex-wrap: wrap; }

.color-settings-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.color-settings-head { margin-bottom: 16px; }
.color-settings-head h3 { margin: 0; font-size: 1.06rem; letter-spacing: -0.02em; }
.color-settings-head p { margin: 6px 0 0; }
.color-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.color-field {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.84);
}

.color-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.color-input-row input[type="color"] {
  width: 58px;
  min-width: 58px;
  height: 58px;
  padding: 4px;
  border-radius: 16px;
  cursor: pointer;
}

.color-hex {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.phone-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  background: rgba(248, 250, 252, 0.96);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.phone-input-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--brand-primary) 36%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.phone-input-wrap input:focus {
  box-shadow: none;
}

.whatsapp-preview-card {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: color-mix(in srgb, var(--brand-accent) 72%, white);
}

.whatsapp-preview-card strong,
.whatsapp-preview-card span {
  display: block;
}

.whatsapp-preview-card strong { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.whatsapp-preview-card span { margin-top: 6px; font-family: Manrope, Inter, sans-serif; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.04em; }
.whatsapp-preview-card.compact span { font-size: 1rem; }

.palette-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.catalog-body .panel-card { border-radius: var(--radius-lg); }

.catalog-body {
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-primary) 9%, white), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.06), transparent 24%),
    #f7f9fc;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.logo-wrap { display: flex; align-items: center; gap: 10px; }
.catalog-logo-image { width: 34px; height: 34px; object-fit: contain; border-radius: 10px; }
.logo { font-family: Manrope, Inter, sans-serif; font-size: clamp(0.96rem, 2.1vw, 1.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.catalog-header-meta-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.top-notice { margin: 0; color: var(--text-muted); max-width: 720px; font-size: 0.84rem; line-height: 1.35; }

.catalog-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, white);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-secondary);
  box-shadow: none;
}

.catalog-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42);
  animation: catalog-status-pulse 1.8s ease-out infinite;
}

.catalog-status-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.catalog-status-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.catalog-status-signal span {
  width: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-primary) 80%, white);
  animation: catalog-status-signal 1.1s ease-in-out infinite alternate;
}

.catalog-status-signal span:nth-child(1) { height: 6px; animation-delay: 0s; }
.catalog-status-signal span:nth-child(2) { height: 10px; animation-delay: 0.18s; }
.catalog-status-signal span:nth-child(3) { height: 14px; animation-delay: 0.32s; }

.catalog-live-wave {
  display: block;
  max-width: 1400px;
  height: 88px;
  margin: 2px auto 0;
  padding: 0 20px;
  opacity: 0.95;
}

.catalog-live-wave svg {
  width: 100%;
  height: 100%;
}

.catalog-live-wave-line {
  fill: none;
  stroke: url(#catalogLiveWaveGradient);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  animation: catalog-live-wave-move 5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.34));
}

.catalog-live-wave-line.secondary {
  opacity: 0.6;
  stroke-width: 1.6;
  animation-duration: 7s;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, transparent);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border-radius: 12px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: none;
}

.cart-btn #cartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.hero { padding: 18px 20px 10px; }

.hero-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 26px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-accent) 76%, white), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: var(--shadow-soft);
}

.hero-copy { max-width: 760px; }
.hero h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.96; letter-spacing: -0.07em; }
.hero p { margin: 0; color: var(--text-secondary); font-size: clamp(0.95rem, 1.7vw, 1.03rem); max-width: 660px; }

.hero-actions,
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions { margin-top: 16px; }
.hero-stats { margin-top: 14px; }

.hero-stat {
  min-width: 148px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stat strong { display: block; font-family: Manrope, Inter, sans-serif; font-size: 1.02rem; letter-spacing: -0.03em; }
.hero-stat span { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }

@keyframes catalog-status-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

@keyframes catalog-status-signal {
  from { opacity: 0.38; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-1px); }
}

@keyframes catalog-live-wave-move {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -140; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-status-dot,
  .catalog-status-signal span,
  .catalog-live-wave-line {
    animation: none;
  }
}

.catalog-nav {
  position: sticky;
  top: 82px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.catalog-nav button {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 14px;
  padding: 10px 16px;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.18s ease;
}

.catalog-nav button.active {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 78%, white), rgba(255, 255, 255, 0.98));
  color: var(--brand-secondary);
  border-color: color-mix(in srgb, var(--brand-primary) 14%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 10px 22px rgba(15, 23, 42, 0.06);
}

.catalog-nav button.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-primary), color-mix(in srgb, var(--brand-primary) 68%, white));
}

.catalog-nav button:hover {
  color: var(--text-primary);
  background: rgba(248, 250, 252, 0.92);
}

.container { max-width: 1400px; margin: 0 auto; padding: 14px 20px 56px; }

.catalog-highlights {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-highlight {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.catalog-highlight strong,
.catalog-highlight span {
  display: block;
}

.catalog-highlight strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 0.9rem;
  letter-spacing: -0.03em;
}

.catalog-highlight span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.catalog-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 6px 0 16px;
}

.catalog-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.05em;
}

.catalog-section-copy {
  margin: 6px 0 0;
  color: var(--text-muted);
  max-width: 680px;
  font-size: 0.94rem;
}

.catalog-section-meta {
  display: flex;
  justify-content: flex-end;
}

.catalog-result-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 280px);
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.catalog-filter-field {
  display: grid;
  gap: 7px;
}

.catalog-filter-field span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-filter-field input,
.catalog-filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  outline: none;
  padding: 0 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.catalog-filter-field input::placeholder {
  color: var(--text-muted);
}

.catalog-filter-field input:focus,
.catalog-filter-field select:focus {
  border-color: color-mix(in srgb, var(--brand-primary) 34%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }

.empty-state {
  padding: 34px;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  text-align: center;
}

.product {
  position: relative;
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 38%);
  pointer-events: none;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--brand-primary) 12%, white);
}

.product-media {
  position: relative;
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand-accent) 70%, white), transparent 40%),
    #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
}

.product img { width: 100%; height: 230px; object-fit: contain; cursor: pointer; transition: transform 0.28s ease; }
.product:hover img { transform: scale(1.04); }

.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-copy { display: grid; gap: 8px; }

.product-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--text-secondary);
  border: 1px solid rgba(226, 232, 240, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.product h3 { margin: 0; min-height: 0; font-size: 1.18rem; line-height: 1.15; letter-spacing: -0.04em; }
.product p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.product-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer { display: grid; gap: 14px; margin-top: auto; }
.product-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.price-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.price { font-family: Manrope, Inter, sans-serif; font-size: 1.7rem; font-weight: 800; margin: 0; letter-spacing: -0.05em; }

.qty {
  display: inline-grid;
  grid-template-columns: 42px minmax(28px, auto) 42px;
  justify-content: start;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.88);
}

.qty button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  color: var(--brand-secondary);
  font-weight: 800;
}

.qty span { text-align: center; font-weight: 800; color: var(--text-primary); }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 390px;
  max-width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 30;
  overflow-y: auto;
  box-shadow: -10px 0 45px rgba(15, 23, 42, 0.12);
}

.cart-panel.open { transform: translateX(0); }
.cart-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-panel-head h2 { margin: 0; letter-spacing: -0.04em; }

.cart-panel-eyebrow {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-panel-copy {
  margin: 10px 0 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.cart-item {
  display: grid;
  gap: 8px;
  padding: 11px;
  margin-bottom: 10px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.cart-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-main img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px;
}

.cart-item-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-item-copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cart-item-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 78%, white);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
}

.cart-item-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
}

.cart-item-qty-control button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-accent) 74%, white);
  color: var(--brand-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.cart-item-qty-control span {
  min-width: 18px;
  padding: 0 2px;
  text-align: center;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.cart-table-qty-cell {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.cart-item-qty-control-inline {
  justify-self: start;
}

.cart-panel-total-card {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, white);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--brand-accent) 72%, white));
}

.cart-panel-total-card span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-panel-total-card strong {
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: var(--brand-secondary);
}

.cart-actions { display: grid; gap: 10px; margin-top: 20px; }
.icon-only { width: 42px; min-width: 42px; padding: 0; }

.cart-clear-btn {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(255, 255, 255, 0.96);
}

.checkout[aria-disabled="true"],
.cart-actions button:disabled {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 40;
}

.modal-content {
  position: relative;
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow-strong);
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: rgba(248, 250, 252, 0.95);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--brand-secondary);
  font-size: 1.4rem;
}

.modal-gallery { display: grid; gap: 14px; }

.main-image {
  width: 100%;
  height: 440px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  padding: 16px;
}

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }

.thumbs img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  background: #f8fafc;
}

.thumbs img:hover { border-color: var(--brand-primary); }
.modal-info { display: grid; align-content: start; gap: 14px; }
.modal-info h2 { margin: 0; color: var(--brand-secondary); font-size: 2rem; line-height: 1; }
#modalPrice { color: var(--brand-primary); font-family: Manrope, Inter, sans-serif; font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -0.05em; }

.general-specs {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.88);
}

.general-specs strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-secondary);
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.general-specs p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.spec-item {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  background: rgba(248, 250, 252, 0.86);
}

.spec-item strong { display: block; margin-bottom: 4px; font-size: 0.82rem; color: var(--text-secondary); }
.spec-item span { color: var(--text-primary); font-weight: 600; }

.cart-page { max-width: 1280px; margin: 0 auto; padding: 26px 20px 56px; }
.cart-top-actions { display: flex; justify-content: flex-start; margin-bottom: 18px; }

.continue-floating {
  border-color: color-mix(in srgb, var(--brand-primary) 14%, white);
  background: color-mix(in srgb, var(--brand-accent) 76%, white);
  color: var(--brand-secondary);
}

.cart-table {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.cart-header-row,
.cart-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; padding: 18px 20px; align-items: center; }

.cart-header-row {
  background: color-mix(in srgb, var(--brand-accent) 72%, white);
  font-weight: 800;
  color: var(--brand-secondary);
}

.cart-row { border-top: 1px solid rgba(226, 232, 240, 0.86); }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 82px; height: 82px; object-fit: contain; background: #f8fafc; border-radius: 16px; border: 1px solid rgba(226, 232, 240, 0.9); }
.cart-price, .cart-total { color: var(--brand-primary); font-weight: 800; }
.remove-item { background: transparent; border: 0; color: #b91c1c; cursor: pointer; padding: 0; margin-top: 6px; font-weight: 700; }

.cart-summary {
  margin: 24px 0 0 auto;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow-soft);
}

.cart-info { color: var(--text-muted); margin: 0; }

.catalog-footer {
  margin-top: 18px;
  padding: 0;
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-secondary) 94%, white), color-mix(in srgb, var(--brand-secondary) 88%, black 5%));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-footer-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 20px 28px;
}

.catalog-footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-footer-brand-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.catalog-footer-brand-block p {
  margin: 0;
  max-width: 560px;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.7;
}

.catalog-footer-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-footer-card {
  padding: 0 0 0 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}

.catalog-footer-card strong,
.catalog-footer-card span,
.catalog-footer-copy {
  display: block;
}

.catalog-footer-card strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.catalog-footer-card span {
  margin-top: 8px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.9rem;
  line-height: 1.6;
}

.catalog-footer-links-card {
  display: grid;
  gap: 10px;
}

.catalog-footer-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.catalog-footer-links a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
}

.catalog-footer-links a:hover {
  text-decoration: underline;
}

.catalog-footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.catalog-footer-copy {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.9rem;
}

.catalog-footer-copy a {
  color: #fff;
  font-weight: 700;
}

.catalog-footer-copy a:hover {
  text-decoration: underline;
}

.admin-body.admin-theme-dark {
  --surface-0: #08111f;
  --surface-1: rgba(15, 23, 42, 0.84);
  --surface-2: #0f172a;
  --surface-3: #111827;
  --border-color: rgba(51, 65, 85, 0.62);
  --border-strong: rgba(71, 85, 105, 0.74);
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.4), transparent 24%),
    #08111f;
}

.admin-body.admin-theme-dark .muted { color: var(--text-muted); }

.admin-body.admin-theme-dark .sidebar-card,
.admin-body.admin-theme-dark .panel-card,
.admin-body.admin-theme-dark .user-menu-toggle,
.admin-body.admin-theme-dark .theme-toggle-group,
.admin-body.admin-theme-dark .settings-brand-card,
.admin-body.admin-theme-dark .settings-brand-live,
.admin-body.admin-theme-dark .admin-modal-dialog,
.admin-body.admin-theme-dark .compact-form,
.admin-body.admin-theme-dark .product-form,
.admin-body.admin-theme-dark .form-section,
.admin-body.admin-theme-dark .user-menu-dropdown,
.admin-body.admin-theme-dark .stat-box,
.admin-body.admin-theme-dark .sidebar-user-card,
.admin-body.admin-theme-dark .table-search,
.admin-body.admin-theme-dark .table-filter,
.admin-body.admin-theme-dark .auth-form-wrap,
.admin-body.admin-theme-dark .auth-hero {
  background: rgba(15, 23, 42, 0.84);
  color: var(--text-primary);
  border-color: rgba(51, 65, 85, 0.72);
}

.admin-body.admin-theme-dark .auth-card {
  background: rgba(15, 23, 42, 0.95);
}

.admin-body.admin-theme-dark .auth-card-premium {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(8, 17, 31, 0.98));
}

.admin-body.admin-theme-dark .auth-points span,
.admin-body.admin-theme-dark .auth-mini-stats div,
.admin-body.admin-theme-dark .install-note,
.admin-body.admin-theme-dark .color-settings-card,
.admin-body.admin-theme-dark .color-field,
.admin-body.admin-theme-dark .color-hex,
.admin-body.admin-theme-dark .phone-input-wrap,
.admin-body.admin-theme-dark .phone-prefix,
.admin-body.admin-theme-dark .whatsapp-preview-card,
.admin-body.admin-theme-dark .panel-card-header,
.admin-body.admin-theme-dark .admin-modal-card-header,
.admin-body.admin-theme-dark .admin-modal-card-footer {
  background: rgba(8, 17, 31, 0.88);
  color: var(--text-primary);
  border-color: rgba(51, 65, 85, 0.72);
}

.admin-body.admin-theme-dark .panel-card-header,
.admin-body.admin-theme-dark .admin-modal-card-header,
.admin-body.admin-theme-dark .admin-modal-card-footer {
  box-shadow: none;
}

.admin-body.admin-theme-dark .quick-links a,
.admin-body.admin-theme-dark .text-link {
  color: #c7d2fe;
}

.admin-body.admin-theme-dark .phone-prefix {
  border-right-color: rgba(51, 65, 85, 0.72);
}

.admin-body.admin-theme-dark .alert.success {
  background: rgba(16, 185, 129, 0.14);
  color: #86efac;
  border-color: rgba(16, 185, 129, 0.24);
}

.admin-body.admin-theme-dark .alert.error {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.24);
}

.admin-body.admin-theme-dark .admin-topbar {
  background: rgba(15, 23, 42, 0.84);
  border-color: rgba(51, 65, 85, 0.72);
}
.admin-body.admin-theme-dark .theme-toggle.active { background: rgba(37, 99, 235, 0.2); color: #bfdbfe; }
.admin-body.admin-theme-dark .side-nav a:hover { background: rgba(17, 24, 39, 0.9); border-color: rgba(51, 65, 85, 0.82); }
.admin-body.admin-theme-dark .side-nav a.active { background: rgba(37, 99, 235, 0.14); border-color: rgba(59, 130, 246, 0.26); }

.admin-body.admin-theme-dark .form-grid input,
.admin-body.admin-theme-dark .form-grid textarea,
.admin-body.admin-theme-dark .form-grid select,
.admin-body.admin-theme-dark .cart-summary input,
.admin-body.admin-theme-dark .cart-summary textarea,
.admin-body.admin-theme-dark .page-btn,
.admin-body.admin-theme-dark .action-btn,
.admin-body.admin-theme-dark .modal-close,
.admin-body.admin-theme-dark .palette-chip,
.admin-body.admin-theme-dark .brand-live-button.secondary,
.admin-body.admin-theme-dark .theme-toggle,
.admin-body.admin-theme-dark thead th,
.admin-body.admin-theme-dark td {
  background: rgba(8, 17, 31, 0.85);
  color: var(--text-primary);
  border-color: rgba(51, 65, 85, 0.72);
}

.admin-body.admin-theme-dark .table-wrap table tr:hover td { background: rgba(17, 24, 39, 0.94); }
.admin-body.admin-theme-dark .settings-brand-placeholder { background: rgba(37, 99, 235, 0.14); }
.admin-body.admin-theme-dark .brand-swatch { border-color: rgba(51, 65, 85, 0.78); }
.admin-body.admin-theme-dark code { color: #bfdbfe; }

@media (max-width: 980px) {
  .admin-shell,
  .split-card,
  .modal-content,
  .auth-card-premium { grid-template-columns: 1fr; }

  .auth-mini-stats { grid-template-columns: 1fr; }
  .color-settings-grid { grid-template-columns: 1fr; }
  .catalog-highlights { grid-template-columns: 1fr; }
  .catalog-footer-main,
  .catalog-footer-info-grid { grid-template-columns: 1fr; }

  .sidebar-card {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  }

  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .install-topbar { flex-direction: column; align-items: flex-start; }
  .form-section-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .settings-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shell { padding: 28px; }
  .specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .content-stack { padding: 16px; }
  .panel-card { padding: 18px; }
  .admin-shell.single-card { padding: 16px; }
  .admin-modal { padding: 12px; }
  .stats-grid,
  .product-form,
  .product-actions { grid-template-columns: 1fr; }

  .product-form > button,
  .product-form > .checkbox-row,
  .product-form > textarea,
  .product-form > input[type="file"] { grid-column: span 1; }

  .panel-card-header {
    margin: -18px -18px 18px;
    padding: 16px 18px;
  }

  .admin-modal-card-header,
  .admin-modal-card-body,
  .admin-modal-card-footer { padding-left: 16px; padding-right: 16px; }

  .table-toolbar,
  .topbar-actions,
  .section-heading,
  .datatable-footer,
  .hero-actions,
  .hero-stats,
  .catalog-section-head { width: 100%; }

  .datatable-footer,
  .section-heading,
  .brand-live-top,
  .catalog-section-head { flex-direction: column; align-items: flex-start; }

  .table-search,
  .table-filter,
  .brand-live-actions,
  .settings-palette-row { width: 100%; min-width: 0; }

  .catalog-header { align-items: flex-start; flex-direction: column; }
  .catalog-header-meta-row { width: 100%; }
  .catalog-nav { top: 110px; }
  .catalog-filters { grid-template-columns: 1fr; }
  .hero { padding-top: 22px; }
  .hero-shell { padding: 22px; border-radius: 24px; }
  .hero h1 { font-size: 1.7rem; line-height: 1; }
  .hero p { font-size: 0.92rem; line-height: 1.5; }
  .catalog-highlights { padding-bottom: 2px; }
  .catalog-section-head h2 { font-size: 1.5rem; }
  .catalog-section-copy { font-size: 0.88rem; }
  .catalog-footer { padding: 18px 16px 24px; }
  .catalog-footer-shell { padding: 22px; border-radius: 24px; }
  .catalog-footer-bottom { align-items: flex-start; }
  .product { gap: 12px; padding: 16px; border-radius: 22px; }
  .product-media { padding: 12px; border-radius: 18px; }
  .product img { height: 180px; }
  .product h3 { font-size: 1rem; line-height: 1.15; }
  .product p { font-size: 0.88rem; line-height: 1.5; }
  .product-footer { gap: 12px; }
  .price { font-size: 1.38rem; }
  .qty { gap: 6px; }
  .qty button { width: 38px; height: 38px; }
  .modal-content { padding: 16px; gap: 18px; }
  .modal-info {
    gap: 10px;
    grid-template-areas:
      "name"
      "price"
      "button"
      "description"
      "specs";
  }
  #modalName { grid-area: name; }
  #modalPrice { grid-area: price; }
  #modalAddBtn {
    grid-area: button;
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 100%;
    margin: 4px 0 6px;
  }
  #modalDescription {
    grid-area: description;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  #modalSpecs { grid-area: specs; }
  .modal-info h2 { font-size: 1.4rem; line-height: 1.05; }
  #modalPrice { font-size: 1.45rem; }
  .spec-item { padding: 10px 12px; }
  .spec-item strong { font-size: 0.76rem; }
  .spec-item span { font-size: 0.9rem; }
  .main-image { height: 240px; }
  .thumbs img { width: 64px; height: 64px; }
  .cart-header-row { display: none; }
  .cart-row { grid-template-columns: 1fr; }
  .cart-summary { max-width: none; }
  .quick-links { flex-direction: column; }
  .quick-links a { width: 100%; text-align: center; }
  .placeholder-card { padding: 28px; }
}
