/* HEM Account / Cart / Checkout — SaaS dashboard + shared UI */
:root {
  --hem-blue: #086AD8;
  --hem-blue-dark: #0656b0;
  --hem-navy: #0e2b3d;
  --hem-bg: #f4f7fb;
  --hem-card: #ffffff;
  --hem-border: #e6ebf2;
  --hem-muted: #6b7a90;
  --hem-ok: #0a7a2f;
  --hem-danger: #b00020;
  --dash-side: #ffffff;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body.dash-body {
  margin: 0;
  font-family: var(--font);
  background: var(--hem-bg);
  color: var(--hem-navy);
}

/* —— Auth header links (public site, inside .attr-nav > ul) —— */
.navbar .attr-nav > ul {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-bottom: 0 !important;
}
.navbar .attr-nav > ul > li.hem-auth-li {
  display: flex;
  align-items: center;
  float: none;
  padding: 0 0 0 14px;
  margin: 0;
  list-style: none;
}
.navbar .attr-nav > ul > li.hem-auth-register .hem-register-btn,
.hem-register-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #086AD8 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  padding: 12px 22px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(8, 106, 216, 0.22);
}
.navbar .attr-nav > ul > li.hem-auth-register .hem-register-btn:hover,
.hem-register-btn:hover {
  background: #0656b0 !important;
  color: #fff !important;
}
.navbar .attr-nav > ul > li.hem-auth-cart .hem-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: #e8f1fc;
  color: #086AD8 !important;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none !important;
}
.hem-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #086AD8;
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  padding: 0 4px;
}
@media (max-width: 991px) {
  .navbar .attr-nav > ul > li.hem-auth-li {
    padding-left: 8px;
  }
  .navbar .attr-nav > ul > li.hem-auth-register .hem-register-btn {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  /* Keep Register visible; shrink phone block on tablet */
  .navbar .attr-nav .contact p {
    font-size: 13px;
    line-height: 1.3;
  }
  .navbar .attr-nav .contact i {
    font-size: 28px;
    margin-right: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 767px) {
  .navbar .attr-nav.inc-border {
    float: none;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
    display: flex;
    justify-content: flex-end;
  }
  .navbar .attr-nav > ul {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }
  .navbar .attr-nav > ul > li.contact {
    display: none !important;
  }
  .navbar .attr-nav > ul > li.hem-auth-li {
    padding: 0;
  }
  .navbar .attr-nav > ul > li.hem-auth-register .hem-register-btn {
    padding: 9px 16px !important;
  }
  .navbar .attr-nav > ul > li.hem-auth-user .hem-user-name {
    display: none;
  }
}

.hem-user-menu { position: relative; display: inline-flex; align-items: center; }
.hem-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe4f0;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: #0e2b3d;
}
.hem-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #086AD8, #0e2b3d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.hem-user-caret { color: #64748b; font-size: 11px; }
.hem-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(14,43,61,0.12);
  padding: 8px;
  z-index: 1000;
}
.hem-user-dropdown a {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: #0e2b3d !important;
  font-weight: 600;
  text-decoration: none;
}
.hem-user-dropdown a:hover { background: #e8f1fc !important; color: #086AD8 !important; }
.hem-user-dropdown a.danger { color: #b00020 !important; }
.hem-user-menu.open .hem-user-dropdown { display: block; }

.pay-methods-icons label { min-width: 0; flex: 1; }
.pay-method-card .pay-ico,
.pay-methods-icons .pay-method-card img {
  width: auto !important;
  max-width: 120px !important;
  height: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto 4px;
  background: transparent !important;
  padding: 0 !important;
}
.pay-methods-icons .pay-method-card {
  text-align: center;
  padding: 18px 14px 16px;
  background: #fff;
  min-height: 148px;
}
.pay-method-card .pay-method-title {
  justify-content: center;
  padding-top: 4px;
  font-size: 14px;
  font-weight: 700;
}
.qr-pay-box { text-align: center; margin-bottom: 14px; }
.hem-static-qr {
  max-width: 280px;
  width: 100%;
  border: 1px solid var(--hem-border);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.dash-avatar-link { text-decoration: none; display: inline-block; }
.dash-avatar.sm { text-decoration: none; }
.dash-user-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
}
.dash-user-links a { color: var(--hem-blue); text-decoration: none; font-weight: 600; }
.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .hem-user-name { display: none; }
}

/* —— SaaS shell —— */
.dash-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.dash-side {
  background: var(--dash-side);
  border-right: 1px solid var(--hem-border);
  padding: 18px 16px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 18px;
}
.dash-brand img { height: 28px; width: auto; }
.dash-brand strong { font-size: 18px; letter-spacing: 0.02em; color: var(--hem-navy); }
.dash-burger {
  display: none;
  margin-left: auto;
  border: 1px solid var(--hem-border);
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.dash-userblock {
  background: linear-gradient(165deg, #f3f8ff 0%, #ffffff 70%);
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
}
.dash-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #086AD8, #0e2b3d);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
  margin: 0 auto 10px;
  box-shadow: 0 8px 20px rgba(8,106,216,0.25);
}
.dash-avatar.sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
  margin: 0;
  box-shadow: none;
}
.dash-hello { font-size: 14px; color: var(--hem-muted); }
.dash-hello strong { color: var(--hem-navy); }
.dash-email { font-size: 11px; color: var(--hem-muted); margin: 4px 0 12px; word-break: break-all; }
.dash-cta {
  display: block;
  background: var(--hem-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(8,106,216,0.28);
}
.dash-cta:hover { background: var(--hem-blue-dark); }

.dash-nav .nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 14px 8px 6px;
  font-weight: 600;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.dash-nav a:hover { background: #f1f5f9; color: var(--hem-navy); }
.dash-nav a.active {
  background: #e8f1fc;
  color: var(--hem-blue);
  font-weight: 700;
}
.nav-ico {
  width: 22px;
  text-align: center;
  opacity: 0.75;
  font-size: 13px;
}

.dash-mainwrap { min-width: 0; display: flex; flex-direction: column; }
.dash-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--hem-border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.dash-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0 14px;
  max-width: 560px;
}
.dash-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font: inherit;
  outline: none;
}
.search-ico { color: var(--hem-muted); }
.dash-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-add {
  background: var(--hem-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f5f9;
  text-decoration: none;
  color: var(--hem-navy);
}
.badge-num {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--hem-blue);
  color: #fff;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
  font-weight: 700;
}

.dash-content { padding: 22px 24px 40px; }
.dash-pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.pagehead-left { display: flex; gap: 12px; align-items: center; }
.page-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hem-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: 0 10px 22px rgba(8,106,216,0.3);
}
.dash-pagehead h1 { margin: 0; font-size: 24px; }
.crumb { font-size: 13px; color: var(--hem-muted); margin-top: 2px; }
.pagehead-right { display: flex; gap: 8px; }
.chip {
  border: 1px solid var(--hem-border);
  background: #fff;
  color: var(--hem-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
}
.chip.on { background: var(--hem-blue); color: #fff; border-color: var(--hem-blue); }

.dash-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 120px;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #0e2b3d 0%, #086AD8 100%);
  color: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/wp-content/uploads/2022/02/6-2.jpg) center/cover;
  opacity: 0.28;
}
.dash-banner > * { position: relative; z-index: 1; }
.dash-banner h2 { margin: 0 0 4px; font-size: 18px; }
.dash-banner p { margin: 0; opacity: 0.9; font-size: 13px; }
.dash-banner .ban-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(14,43,61,0.04);
}
.stat-card .label { color: var(--hem-muted); font-size: 13px; font-weight: 500; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--hem-navy); margin-top: 6px; }
.stat-card .trend { margin-top: 8px; font-size: 12px; color: var(--hem-ok); font-weight: 600; }
.stat-card .trend.down { color: var(--hem-danger); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.panel-card {
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(14,43,61,0.04);
}
.panel-card .ph {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-card .ph.alert { background: #e11d48; color: #fff; }
.panel-card .ph.ok { background: #fff; color: var(--hem-navy); border-bottom: 1px solid var(--hem-border); }
.panel-card .pb { padding: 16px; }
.panel-card .pb p { margin: 0 0 10px; font-size: 13px; color: var(--hem-muted); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(14,43,61,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.svc-card h3 { margin: 0; font-size: 16px; color: var(--hem-navy); }
.svc-card .cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hem-blue);
}
.svc-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}
.badge-ongoing { background: #e8f1fc; color: #086AD8; }
.badge-done { background: #e6f6ea; color: #0a7a2f; }

.coming-soon {
  background: #fff;
  border: 1px dashed var(--hem-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--hem-muted);
  font-size: 14px;
}

.chat-box {
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 12px;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
  max-width: 820px;
}
.chat-bubble {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.5;
}
.chat-bubble.me { background: #e8f1fc; margin-left: auto; }
.chat-bubble.them { background: #f1f5f9; }
.chat-bubble .meta { font-size: 11px; color: var(--hem-muted); margin-bottom: 4px; }

/* —— Modern chat shell —— */
.chat-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 18px;
  overflow: hidden;
  min-height: 560px;
  box-shadow: 0 10px 30px rgba(14,43,61,0.06);
  margin-bottom: 18px;
}
.chat-sidebar {
  border-right: 1px solid var(--hem-border);
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}
.chat-sidebar-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--hem-border);
}
.chat-sidebar-head h3 { margin: 0 0 4px; font-size: 16px; }
.chat-thread-list { list-style: none; margin: 0; padding: 8px; overflow: auto; flex: 1; }
.chat-thread-item {
  display: block;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.chat-thread-item:hover { background: #fff; border-color: var(--hem-border); }
.chat-thread-item.active {
  background: #fff;
  border-color: #d6e6fb;
  box-shadow: 0 6px 16px rgba(8,106,216,0.08);
}
.chat-thread-item .t-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--hem-navy);
  margin-bottom: 4px;
}
.chat-thread-item .t-meta { font-size: 12px; color: var(--hem-muted); }
.chat-thread-item .t-badge {
  background: var(--hem-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 999px;
  padding: 0 5px;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}
.chat-main-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--hem-border);
  background: #fff;
}
.chat-main-head h3 { margin: 0; font-size: 16px; }
.chat-main-head .sub { margin: 2px 0 0; font-size: 12px; color: var(--hem-muted); }
.chat-stream {
  flex: 1;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
}
.chat-msg {
  max-width: min(78%, 520px);
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 4px 12px rgba(14,43,61,0.04);
}
.chat-msg.me {
  margin-left: auto;
  background: var(--hem-blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-msg.them {
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--hem-border);
  color: var(--hem-navy);
  border-bottom-left-radius: 6px;
}
.chat-msg .meta {
  font-size: 11px;
  opacity: 0.78;
  margin-bottom: 4px;
  font-weight: 600;
}
.chat-composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 14px 16px;
  border-top: 1px solid var(--hem-border);
  background: #fff;
}
.chat-composer textarea {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  background: #f8fafc;
}
.chat-composer textarea:focus {
  outline: 2px solid rgba(8,106,216,0.2);
  border-color: var(--hem-blue);
  background: #fff;
}
.chat-composer .btn-hem {
  border-radius: 12px;
  min-width: 96px;
  height: 48px;
}
.chat-empty {
  margin: auto;
  text-align: center;
  color: var(--hem-muted);
  padding: 40px 20px;
}
.chat-new-card {
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 22px rgba(14,43,61,0.04);
}
.chat-new-card h3 { margin: 0 0 6px; font-size: 16px; }
.chat-new-card .sub { margin: 0 0 14px; color: var(--hem-muted); font-size: 13px; }
.chat-new-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-new-row input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--hem-border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #f8fafc;
}
@media (max-width: 900px) {
  .chat-shell { grid-template-columns: 1fr; min-height: auto; }
  .chat-sidebar { min-height: auto; max-height: 240px; border-right: 0; border-bottom: 1px solid var(--hem-border); }
  .chat-stream { max-height: 360px; }
}

.hem-card {
  background: var(--hem-card);
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(14,43,61,0.04);
  margin-bottom: 18px;
}

.btn-hem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hem-blue);
  color: #fff !important;
  border: none;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 8px 18px rgba(8,106,216,0.2);
}
.btn-hem:hover { background: var(--hem-blue-dark); }
.btn-hem-outline {
  background: #fff;
  color: var(--hem-navy) !important;
  border: 1px solid var(--hem-border);
  box-shadow: none;
}
.btn-hem-outline:hover { border-color: var(--hem-blue); color: var(--hem-blue) !important; }
.btn-hem-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; box-shadow: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.hem-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--hem-navy); }
.hem-form .form-group { margin-bottom: 14px; }
.hem-form input, .hem-form select, .hem-form textarea {
  width: 100%;
  border: 1px solid var(--hem-border);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-family: inherit;
}
.hem-form textarea { min-height: 110px; resize: vertical; }
.hem-alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.hem-alert-err { background: #fdecec; color: var(--hem-danger); border: 1px solid #f5c2c7; }
.hem-alert-ok { background: #e8f8ee; color: var(--hem-ok); border: 1px solid #b7ebc6; }
.hem-alert-info { background: #e8f1fc; color: var(--hem-blue-dark); border: 1px solid #bfdbfe; }

.auth-page {
  min-height: 80vh;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: radial-gradient(circle at top right, rgba(8,106,216,0.14), transparent 42%), var(--hem-bg);
  font-family: var(--font);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--hem-border);
  box-shadow: 0 8px 24px rgba(14,43,61,0.08);
  padding: 32px;
}
.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-card .sub { color: var(--hem-muted); font-size: 13px; margin-bottom: 20px; }

.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th, .cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--hem-border); text-align: left; vertical-align: top; }
.cart-table th { font-size: 12px; text-transform: uppercase; color: var(--hem-muted); }
.fee { color: var(--hem-blue); font-weight: 700; }

.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.pay-methods label {
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  overflow: visible;
  background: transparent;
  min-width: 0;
  position: relative;
}
.pay-methods input { position: absolute; opacity: 0; pointer-events: none; }
.pay-methods label:has(input:checked) {
  border-color: transparent;
  box-shadow: none;
}
.pay-method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 148px;
  border: 1.5px solid var(--hem-border);
  border-radius: 16px;
  padding: 18px 14px 16px;
  background: #fff;
}
.pay-methods label:has(input:checked) .pay-method-card {
  border-color: var(--hem-blue);
  box-shadow: 0 0 0 3px rgba(8,106,216,0.15);
}
.pay-method-card img {
  width: auto !important;
  max-width: 120px !important;
  height: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 auto;
}
.pay-method-card .pay-method-title {
  padding: 0;
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}
.checkout-summary, .checkout-form-card {
  background: #fff;
  border: 1px solid var(--hem-border);
  border-radius: 14px;
  padding: 22px;
}
.checkout-summary .row-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hem-border);
  font-size: 14px;
}
.price-big { font-size: 28px; font-weight: 700; color: var(--hem-blue); margin-top: 12px; }
.pricing-note { color: var(--hem-muted); font-size: 13px; }
.sub { color: var(--hem-muted); font-size: 13px; }

@media (max-width: 1100px) {
  .stat-grid, .panel-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dash-app { grid-template-columns: 1fr; }
  .dash-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 8px 0 30px rgba(0,0,0,.12);
  }
  body.side-open .dash-side { transform: none; }
  .dash-burger { display: inline-block; }
  .stat-grid, .panel-grid { grid-template-columns: 1fr; }
  .dash-search { max-width: none; }
  .btn-add { display: none; }
}

/* —— Split auth (login / register) —— */
.auth-split-page {
  margin: 0;
  min-height: 100vh;
  background: #eaf1fb;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #0e2b3d;
}
.auth-split {
  max-width: 1080px;
  margin: 28px auto;
  min-height: calc(100vh - 56px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(14, 43, 61, 0.1);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}
.auth-split-form {
  padding: 28px 40px 36px;
  display: flex;
  flex-direction: column;
}
.auth-split-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.auth-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #0e2b3d;
  text-decoration: none;
  font-size: 18px;
}
.auth-back:hover { border-color: #086AD8; color: #086AD8; }
.auth-switch { margin: 0; font-size: 14px; color: #64748b; }
.auth-switch a { color: #086AD8; font-weight: 700; text-decoration: none; }
.auth-split-form h1 {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  color: #0e2b3d;
}
.auth-lead {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  max-width: 420px;
}
.auth-modern-form { max-width: 420px; }
.auth-field {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #dbe4f0;
  margin-bottom: 14px;
  padding: 4px 0;
}
.auth-field:focus-within { border-bottom-color: #086AD8; }
.auth-field-ico {
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: #e8f1fc;
  position: relative;
  flex-shrink: 0;
}
.auth-field-ico::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #086AD8;
  opacity: 0.35;
}
.auth-field-ico.mail::before { border-radius: 3px; }
.auth-field-ico.lock::before {
  inset: 7px 10px;
  border-radius: 3px 3px 6px 6px;
}
.auth-field-ico.phone::before {
  inset: 6px 11px;
  border-radius: 8px;
}
.auth-field-ico.co::before {
  inset: 8px;
  border-radius: 4px;
}
.auth-field input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 12px 4px;
  font: inherit;
  font-size: 15px;
  background: transparent;
  color: #0e2b3d;
}
.auth-eye {
  border: 0;
  background: transparent;
  color: #086AD8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  font-family: inherit;
}
.auth-rules {
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
  font-size: 12px;
  color: #94a3b8;
}
.auth-rules li {
  margin-bottom: 4px;
  padding-left: 18px;
  position: relative;
}
.auth-rules li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  position: absolute;
  left: 0;
  top: 4px;
}
.auth-rules li.ok { color: #0a7a2f; }
.auth-rules li.ok::before { background: #0a7a2f; }
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 280px;
  background: #086AD8;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 24px rgba(8, 106, 216, 0.3);
}
.auth-submit:hover { background: #0656b0; }
.auth-submit span { font-size: 18px; line-height: 1; }
.auth-home { margin-top: auto; padding-top: 24px; font-size: 13px; }
.auth-home a { color: #64748b; text-decoration: none; }
.auth-home a:hover { color: #086AD8; }

.hem-recaptcha-wrap {
  margin: 14px 0 4px;
  min-height: 78px;
}
.hem-recaptcha-wrap .g-recaptcha {
  transform-origin: left top;
}

.auth-split-panel {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 40%),
    linear-gradient(145deg, #0e2b3d 0%, #086AD8 55%, #3b82f6 100%);
  padding: 40px 32px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.auth-panel-card {
  background: rgba(255,255,255,0.96);
  color: #0e2b3d;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.auth-panel-label {
  font-size: 12px;
  font-weight: 700;
  color: #086AD8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.auth-panel-stat {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-panel-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}
.auth-panel-card strong {
  display: block;
  font-size: 16px;
  margin-top: 2px;
}
.auth-panel-brand {
  margin-top: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
    margin: 12px;
    min-height: auto;
  }
  .auth-split-panel { min-height: 220px; padding: 28px 20px; }
  .auth-split-form { padding: 22px 20px 28px; }
  .auth-split-form h1 { font-size: 28px; }
}

