html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--brand-900);
  overflow-x: clip;
}

body > *:first-child,
header:first-child,
.announcement-bar:first-child,
.admin-shell:first-child {
  margin-top: 0 !important;
}

h1, h2, h3, h4, h5, h6, p, ul, ol {
  margin: 0 !important;
  padding: 0;
}

body {
  background:
    radial-gradient(1200px 520px at -5% -10%, rgba(var(--accent-rgb), 0.16), transparent 42%),
    radial-gradient(900px 420px at 105% 0%, rgba(var(--brand-500-rgb), 0.12), transparent 40%),
    linear-gradient(180deg, var(--brand-50) 0%, #f8fbff 52%, var(--brand-100) 100%);
  position: relative;
  top: -1px;
  min-height: calc(100vh + 1px);
}

main > :first-child {
  margin-top: 0 !important;
}

main > section:first-child:not(.home-hero-slider) {
  padding-top: 1rem !important;
}

.announcement-bar {
  background: linear-gradient(90deg, var(--brand-900) 0%, var(--brand-700) 45%, var(--brand-500) 75%, var(--accent) 100%);
  position: relative;
  margin-top: -1px !important;
  z-index: 1251;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

body.store-announcement-hidden .announcement-bar {
  opacity: 0;
  transform: translateY(-100%);
}

.nav-link {
  border-radius: 10px;
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}

.storefront-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
}

.storefront-header-action > i {
  font-size: 1em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.storefront-header-action:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}

/* Keep top nav dropdowns above hero/banner sections */
header,
header nav,
header .container,
header .max-w-7xl {
  overflow: visible !important;
}

header {
  position: sticky;
  top: 0;
  z-index: 1200 !important;
}

header ul ul,
header .dropdown-menu,
header .submenu,
header [role="menu"] {
  position: absolute;
  z-index: 1300 !important;
}

.home-hero-slider {
  position: relative;
  z-index: 1;
}

.home-notification-popup-wrap {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(4px);
}

.home-notification-popup {
  position: relative;
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--brand-100);
  background: linear-gradient(135deg, #fff 0%, var(--brand-50) 100%);
  box-shadow: 0 18px 40px rgba(var(--brand-700-rgb), 0.16);
  padding: 18px 18px 16px;
}

.home-popup-image {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.home-notification-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.home-notification-alert {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.home-notification-danger {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
}

.home-notification-warning,
.home-notification-promo {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.home-notification-success {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.home-popup-theme-brand {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  color: #0f172a;
}

.home-popup-theme-info {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  color: #0f172a;
}

.home-popup-theme-success {
  border-color: #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  color: #0f172a;
}

.home-popup-theme-warning {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  color: #0f172a;
}

.home-popup-theme-danger {
  border-color: #fecaca;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  color: #0f172a;
}

.home-popup-theme-dark {
  border-color: #334155;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

.home-popup-theme-dark .home-notification-close {
  border-color: #475569;
  background: #0f172a;
  color: #f1f5f9;
}

.home-section-head {
  margin-bottom: 22px;
}

.home-section-subtitle {
  margin-top: 10px !important;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.65;
  color: #64748b;
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
  background:
    linear-gradient(180deg, #ffffff 0%, #fefefe 62%, var(--brand-50) 100%);
  border-color: rgba(var(--brand-700-rgb), 0.18) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.book-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--brand-700-rgb), 0.34) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.book-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
}

.book-card-media::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(180deg, rgba(15,23,42,.18), rgba(15,23,42,.02));
  opacity: .5;
  z-index: 2;
}

.book-card-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: -140%;
  width: 72%;
  height: 100%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.34) 45%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  transition: left .65s ease;
  pointer-events: none;
  z-index: 3;
}

.book-card:hover .book-card-media::after {
  left: 150%;
}

.book-cover-a4 {
  width: 100%;
  aspect-ratio: 210 / 297;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.book-card:hover .book-cover-a4 {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.03);
}

.book-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
}

.book-card-body > .js-card-add-cart-form,
.book-card-body > .book-card-cta {
  margin-top: auto !important;
}

.book-card-body > .js-card-add-cart-form {
  display: block;
  width: 100%;
}

.book-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.book-card-top-brand {
  min-width: 0;
  flex: 1 1 90px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.book-card-top-actions {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  margin-left: auto;
  max-width: 100%;
}

.book-card-top-actions .badge {
  max-width: 100%;
  white-space: nowrap;
}

.book-card-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-700-rgb), 0.16);
  background: rgba(255,255,255,.92);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  font-size: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.book-card-top-link:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--brand-700-rgb), 0.3);
  background: #fff;
  box-shadow: 0 8px 14px rgba(var(--brand-700-rgb), 0.12);
}

.book-card-title {
  color: #0f172a;
  line-height: 1.32;
  letter-spacing: .01em;
}

.book-card-price {
  font-size: 1.2rem;
  letter-spacing: .01em;
}

.book-card-link {
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 700;
}

.book-card-link:hover {
  color: var(--brand-900);
  text-decoration: underline;
}

.book-card-cta {
  border: 1px solid rgba(var(--brand-700-rgb), 0.18);
  background: linear-gradient(90deg, var(--brand-900), var(--brand-700));
  color: #fff !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.book-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(var(--brand-700-rgb), 0.24);
  filter: brightness(.99);
}

@media (max-width: 768px) {
  .home-section-head {
    margin-bottom: 18px;
  }

  .home-section-subtitle {
    margin-top: 8px !important;
    font-size: 12.5px;
    line-height: 1.55;
  }

  .book-cover-a4 {
    min-height: 220px;
  }
}

.grid-overlay {
  background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.home-banner-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.home-book-carousel {
  position: relative;
  overflow: hidden;
  padding: 4px 4px 2px;
}

.home-book-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 248px);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.home-book-carousel-track::-webkit-scrollbar {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-book-carousel-track { cursor: grab; }
}

.home-book-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.home-book-carousel-track.is-dragging * {
  cursor: grabbing;
  user-select: none;
}

.home-book-carousel-card {
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
  border-radius: 24px !important;
}

.book-card-quantity:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 1px solid var(--brand-700, #9f1239);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.book-card-quantity button {
  flex: 0 0 44px;
  min-height: 44px;
  font-size: 24px;
  font-weight: 600;
  color: inherit;
}
.book-card-quantity button:hover { background: rgba(0, 0, 0, .05); }
.book-card-quantity button:disabled { opacity: .4; cursor: not-allowed; }
.book-card-quantity span { font-size: 14px; font-weight: 600; }
.js-card-add-cart-form > button[hidden] { display: none !important; }

.home-book-carousel-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-book-carousel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(var(--brand-700-rgb), 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(var(--brand-700-rgb), 0.12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease;
}

.home-book-carousel-cta:hover {
  color: var(--brand-900);
  border-color: rgba(var(--brand-700-rgb), 0.34);
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 100%);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(var(--brand-700-rgb), 0.18);
}

.home-book-carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: rgba(255,255,255,.94);
  color: #1d4ed8;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.home-book-carousel-nav:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.1);
}

@media (max-width: 1024px) {
  .home-book-carousel-track {
    grid-auto-columns: minmax(220px, 230px);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .home-book-carousel-track {
    grid-auto-columns: minmax(210px, calc(100vw - 88px));
    gap: 14px;
  }
}

.home-banner-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
  display: block;
}

.home-banner-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.home-coupon-banner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--brand-100);
  display: block;
  box-shadow: 0 10px 24px rgba(var(--brand-700-rgb), 0.14);
  transition: transform .2s ease;
}

.home-coupon-banner:hover {
  transform: translateY(-2px);
}

.home-coupon-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-coupon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
}

.home-coupon-banner-fluid {
  width: fit-content;
  max-width: 100%;
}

.home-coupon-img-fixed {
  height: 132px !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

@media (min-width: 768px) {
  .home-coupon-img-fixed {
    height: 156px !important;
  }
}

.home-coupon-banner-top img {
  height: 118px;
}

.home-coupon-banner-middle img {
  height: 156px;
}

@media (max-width: 768px) {
  .home-coupon-banner-top img {
    height: 108px;
  }
  .home-coupon-banner-middle img {
    height: 132px;
  }
}

.home-middle-banner,
.home-side-banner {
  border-radius: 16px;
  overflow: hidden;
  display: block;
  border: 1px solid var(--brand-100);
  box-shadow: 0 12px 26px rgba(var(--brand-700-rgb), 0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-middle-banner:hover,
.home-side-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(var(--brand-700-rgb), 0.2);
}

.home-middle-banner img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.partner-marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.school-partners-heading {
  max-width: 760px;
  margin-inline: auto !important;
  margin-bottom: 28px !important;
}

.storefront-ui main .school-partners-heading .home-section-subtitle {
  margin-inline: auto !important;
}

.school-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.school-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 14px;
  padding: 24px 18px;
  border: 1px solid #e4e8ed;
  border-radius: 14px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.school-partner-logo {
  width: 100%;
  height: 72px;
  display: grid;
  align-items: center;
  justify-content: center;
}

.school-partner-logo > * { grid-area: 1 / 1; }

.school-partner-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: auto;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-family: var(--storefront-heading-font), sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.school-partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.school-partner-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #334155;
  overflow-wrap: anywhere;
}

.school-partner-visit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--brand-700);
  font-size: 11px;
  line-height: 1.5;
}

a.school-partner-card:hover {
  border-color: var(--brand-100);
  box-shadow: 0 6px 18px rgba(var(--brand-700-rgb), .08);
}

a.school-partner-card:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .school-partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .school-partner-card { padding: 20px 14px; }
  .school-partner-logo, .school-partner-logo img { max-height: 60px; }
}

@media (max-width: 359px) {
  .school-partners-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .school-partner-card { transition: none; }
}

.partner-marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  padding: 8px 0;
  animation: partnerMarquee 26s linear infinite;
}

.partner-logo-card {
  min-width: 180px;
  max-width: 180px;
  display: grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  padding: 0;
  text-decoration: none;
  transition: transform .2s ease;
}

.partner-logo-card img {
  width: auto;
  max-width: 160px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .85;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}

.partner-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-1px);
}

.partner-logo-card span {
  font-size: 11px;
  line-height: 1.2;
  color: #64748b;
  text-align: center;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 8px;
}

.review-marquee-wrap {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
}

.review-marquee-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: max-content;
  animation: partnerMarquee 30s linear infinite;
}

.review-mini-card {
  min-width: 310px;
  max-width: 310px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 11px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.review-mini-cover {
  width: 64px;
  height: 92px;
  border-radius: 10px;
  border: 1px solid #dbeafe;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.1);
}

.review-mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ratings-shell {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--brand-500-rgb), .14) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.rating-stat-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rating-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rating-form-card {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
}

.policy-page-shell {
  position: relative;
}

.policy-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.policy-page-hero-copy,
.policy-page-hero-meta {
  border: 1px solid #dbeafe;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #eef6ff 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.07);
}

.policy-page-hero-copy {
  padding: 26px 28px;
}

.policy-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.78);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.policy-page-title {
  margin-top: 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 900;
  color: #0f172a;
}

.policy-page-lead {
  margin-top: 12px;
  max-width: 60ch;
  color: #475569;
  font-size: 15px;
  line-height: 1.72;
}

.policy-page-hero-meta {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.policy-meta-card {
  border-radius: 22px;
  border: 1px solid rgba(191,219,254,.9);
  background: rgba(255,255,255,.82);
  padding: 16px;
}

.policy-meta-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
}

.policy-meta-value {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.policy-page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.policy-sidebar {
  position: sticky;
  top: 96px;
}

.policy-sidebar-card,
.policy-content-card {
  border: 1px solid #dbeafe;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f8fbff 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.policy-sidebar-card {
  padding: 18px;
}

.policy-sidebar-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #334155;
}

.policy-sidebar-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.policy-sidebar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: rgba(255,255,255,.82);
  color: #334155;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.policy-sidebar-link:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.policy-sidebar-link.is-active {
  border-color: rgba(var(--brand-700-rgb), 0.24);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  color: var(--brand-800);
  box-shadow: 0 12px 24px rgba(var(--brand-700-rgb), 0.12);
}

.policy-sidebar-arrow {
  font-size: 15px;
  color: #64748b;
}

.policy-content-card {
  padding: 28px;
}

.policy-content-prose {
  color: #334155;
  font-size: 15px;
  line-height: 1.78;
}

.policy-content-prose > :first-child {
  margin-top: 0;
}

.policy-content-prose h2,
.policy-content-prose h3,
.policy-content-prose h4 {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.2;
}

.policy-content-prose h2 {
  margin: 0 0 18px;
  font-size: 30px;
}

.policy-content-prose h3 {
  margin: 28px 0 12px;
  font-size: 20px;
}

.policy-content-prose h4 {
  margin: 22px 0 10px;
  font-size: 17px;
}

.policy-content-prose p,
.policy-content-prose ul,
.policy-content-prose ol {
  margin: 0 0 14px;
}

.policy-content-prose ul,
.policy-content-prose ol {
  padding-left: 22px;
}

.policy-content-prose li {
  margin-bottom: 8px;
}

.policy-content-prose a {
  color: var(--brand-700);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes partnerMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .partner-logo-card {
    min-width: 150px;
    max-width: 150px;
  }
  .partner-logo-card img {
    max-width: 128px;
    height: 40px;
  }

  .policy-page-hero,
  .policy-page-layout {
    grid-template-columns: 1fr;
  }

  .policy-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .policy-page-hero-copy,
  .policy-page-hero-meta,
  .policy-sidebar-card,
  .policy-content-card {
    border-radius: 22px;
  }

  .policy-page-hero-copy,
  .policy-content-card {
    padding: 20px;
  }

  .policy-content-prose {
    font-size: 14px;
    line-height: 1.72;
  }

  .policy-content-prose h2 {
    font-size: 25px;
  }
}

.home-side-banner img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  display: block;
}

.home-promo-side-column {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.home-promo-side-stack {
  display: grid;
  gap: 16px;
}

@media (min-width: 1024px) {
  /* The promo image determines the row height; side banners share that space. */
  .home-promo-side-match .home-promo-side-stack {
    position: absolute;
    inset: 0;
    grid-auto-rows: minmax(0, 1fr);
  }

  .home-promo-side-match .home-side-banner {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
  }

  .home-promo-side-match .home-side-banner img {
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
  }
}

.home-hero-slider {
  position: relative;
  overflow: hidden;
  background: #0b4f89;
}

.home-hero-track {
  position: relative;
  min-height: 220px;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
  display: block;
}

.home-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.home-hero-slide img {
  width: 100%;
  height: min(46vw, 460px);
  min-height: 220px;
  object-fit: cover;
  display: block;
}

.home-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(4px);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.home-hero-nav.prev { left: 14px; }
.home-hero-nav.next { right: 14px; }

.home-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.home-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .45);
}

.home-hero-dot.is-active {
  background: #fff;
}

.ticket-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .02em;
}

.ticket-attach-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-700);
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 999px;
  padding: 6px 10px;
}

.support-mail-shell,
.support-thread-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.support-mail-header,
.support-thread-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid #cfe3ff;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.98) 0%, #eef6ff 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.support-mail-header > div:first-child,
.support-thread-header > div:first-child,
.support-mail-main,
.support-thread-main,
.support-thread-conversation,
.support-thread-reply-panel,
.support-thread-sidebar,
.support-mail-sidebar {
  min-width: 0;
}

.support-mail-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #2563eb;
}

.support-mail-title {
  font-size: clamp(1rem, 0.85vw + .84rem, 1.32rem);
  line-height: 1.24;
  font-weight: 800;
  color: #0f172a;
  margin-top: 6px !important;
  overflow-wrap: anywhere;
}

.support-mail-subtitle {
  max-width: 760px;
  margin-top: 6px !important;
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.support-mail-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 360px);
  flex: 0 1 360px;
}

.support-mail-summary-card {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: rgba(255,255,255,.82);
  min-width: 0;
}

.support-mail-summary-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}

.support-mail-summary-card strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
  line-height: 1.05;
  color: #0f172a;
}

.support-mail-layout,
.support-thread-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.support-thread-layout {
  align-items: start;
}

.support-mail-sidebar,
.support-thread-sidebar {
  display: grid;
  gap: 12px;
}

.support-mail-panel {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f8fbff 100%);
  padding: 14px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

.support-mail-panel.muted {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.support-mail-panel-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 10px;
}

.support-mail-panel p,
.support-thread-original-message,
.support-thread-body,
.support-thread-meta-list strong,
.support-mail-row-subject,
.support-mail-row-snippet,
.support-mail-customer,
.support-thread-author,
.support-mail-meta-line,
.support-thread-role,
.support-thread-time,
.support-mail-row-meta {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.support-mail-chip-stack {
  display: grid;
  gap: 7px;
}

.support-mail-chip-stack.compact {
  gap: 6px;
}

.support-mail-filter-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  padding: 10px 11px;
  border: 1px solid #dbeafe;
  border-radius: 13px;
  color: #1e293b;
  background: #fff;
  font-weight: 600;
  transition: all .18s ease;
  min-width: 0;
}

.support-mail-filter-chip span,
.support-mail-filter-chip strong {
  min-width: 0;
}

.support-mail-filter-chip i {
  color: #2563eb;
  flex-shrink: 0;
}

.support-mail-filter-chip.active,
.support-mail-filter-chip:hover {
  background: linear-gradient(90deg, #eff6ff, #f8fbff);
  border-color: #93c5fd;
  color: #0f172a;
}

.support-mail-filter-chip strong {
  margin-left: auto;
  color: #1d4ed8;
}

.support-mail-main,
.support-thread-main {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.support-mail-toolbar,
.support-thread-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  min-width: 0;
}

.support-mail-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 300px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 13px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
}

.support-mail-search i {
  color: #64748b;
  flex-shrink: 0;
}

.support-mail-search input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
  width: 100%;
  min-width: 0;
}

.support-mail-toolbar-actions,
.support-mail-inline-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.support-mail-inline-filters select {
  min-width: 135px;
}

.support-mail-list-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.support-mail-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.support-mail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 168px);
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f8fbff 100%);
  padding: 12px 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  min-width: 0;
}

.support-mail-row:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.support-mail-row-main {
  min-width: 0;
}

.support-mail-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.support-mail-row-user,
.support-thread-author-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.support-mail-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.support-mail-avatar.small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 12px;
}

.support-mail-customer,
.support-thread-author {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.support-mail-meta-line,
.support-thread-role,
.support-thread-time {
  font-size: 10.5px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.support-mail-row-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.support-mail-row-subject {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.support-mail-row-snippet {
  margin-top: 3px;
  color: #475569;
  line-height: 1.45;
}

.support-mail-row-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  min-width: 0;
}

.support-mail-empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  min-height: 180px;
  border: 1px dashed #bfdbfe;
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  color: #64748b;
  padding: 20px;
}

.support-mail-empty i {
  font-size: 24px;
  color: #3b82f6;
}

.support-mail-empty.compact {
  min-height: 140px;
}

.support-thread-main {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.support-thread-conversation,
.support-thread-reply-panel {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.support-thread-messages {
  display: grid;
  gap: 10px;
  padding: 12px;
  max-height: 68vh;
  overflow-y: auto;
}

.support-thread-message {
  border-radius: 16px;
  border: 1px solid #dbeafe;
  padding: 12px;
  background: #fff;
  min-width: 0;
}

.support-thread-message.is-admin {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.support-thread-message-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.support-thread-body,
.support-thread-original-message {
  margin-top: 10px;
  color: #334155;
  line-height: 1.6;
  white-space: pre-line;
}

.support-thread-meta-list {
  display: grid;
  gap: 9px;
}

.support-thread-meta-list div {
  display: grid;
  gap: 3px;
}

.support-thread-meta-list span {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.support-thread-meta-list strong {
  color: #0f172a;
  font-size: 12.5px;
  line-height: 1.45;
}

.support-thread-reply-panel {
  position: sticky;
  top: 86px;
}

.support-thread-form {
  display: grid;
  gap: 12px;
  padding: 12px;
  min-width: 0;
}

.support-thread-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-mail-pager {
  justify-content: flex-end;
  margin-top: 2px;
  flex-wrap: wrap;
}

@media (max-width: 1280px) {
  .support-mail-layout,
  .support-thread-layout {
    grid-template-columns: 1fr;
  }

  .support-thread-main {
    grid-template-columns: 1fr;
  }

  .support-thread-reply-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .support-mail-header,
  .support-thread-header,
  .support-mail-toolbar,
  .support-thread-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .support-mail-summary {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex-basis: auto;
  }

  .support-mail-toolbar-actions,
  .support-mail-inline-filters {
    width: 100%;
  }

  .support-mail-inline-filters select,
  .support-mail-toolbar-actions .btn {
    flex: 1 1 160px;
  }

  .support-mail-list-head {
    display: none;
  }
}

@media (max-width: 768px) {
  .support-mail-shell,
  .support-thread-shell {
    gap: 12px;
  }

  .support-mail-header,
  .support-thread-header,
  .support-mail-toolbar,
  .support-thread-toolbar,
  .support-mail-panel,
  .support-thread-form,
  .support-thread-messages {
    padding: 12px;
  }

  .support-mail-summary {
    grid-template-columns: 1fr;
  }

  .support-mail-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 11px 12px;
  }

  .support-mail-row-meta,
  .support-mail-row-side {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }

  .support-mail-row-top,
  .support-thread-message-head {
    flex-direction: column;
    align-items: stretch;
  }

  .support-thread-form-grid {
    grid-template-columns: 1fr;
  }

  .support-thread-messages {
    max-height: none;
  }
}

@media (max-width: 520px) {
  .support-mail-title {
    font-size: 1rem;
  }

  .support-mail-subtitle,
  .support-mail-row-snippet,
  .support-thread-body,
  .support-thread-original-message {
    line-height: 1.5;
  }

  .support-mail-filter-chip {
    padding: 9px 10px;
  }

  .support-mail-inline-filters select,
  .support-mail-toolbar-actions .btn,
  .support-mail-search {
    width: 100%;
    flex-basis: 100%;
  }

  .support-mail-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }
}

.support-reply-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.support-reply-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.support-reply-title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
  margin-top: 4px !important;
}

.support-reply-copy {
  margin-top: 5px !important;
  color: #64748b;
  line-height: 1.45;
}

.support-reply-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(90deg, #eff6ff, #f8fbff);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.support-reply-form {
  gap: 12px;
}

.support-reply-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.support-reply-select-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
}

.support-reply-select-card select {
  min-height: 42px;
  padding: 10px 12px !important;
  background: #fff !important;
  line-height: 1.35;
}

.support-reply-editor {
  display: grid;
  gap: 8px;
}

.support-reply-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.support-reply-hint {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
}

.support-reply-editor textarea {
  min-height: 180px;
  padding: 14px 16px !important;
  background: #fff !important;
  border-radius: 14px !important;
  line-height: 1.55 !important;
  vertical-align: top;
  resize: vertical;
}

.support-reply-upload {
  display: grid;
  gap: 6px;
}

.support-reply-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-reply-upload-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border: 1px dashed #93c5fd;
  border-radius: 14px;
  background: #f8fbff;
  color: #1e40af;
  font-weight: 600;
  cursor: pointer;
}

.support-reply-actions {
  display: grid;
  gap: 8px;
}

.support-reply-footnote {
  font-size: 10.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .support-reply-control-grid {
    grid-template-columns: 1fr;
  }

  .support-reply-editor-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
.support-view-shell {
  display: grid;
  gap: 12px;
}

.support-view-header,
.support-view-panel {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.support-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
}

.support-view-header-main,
.support-view-main,
.support-view-sidebar,
.support-view-thread,
.support-view-message,
.support-view-facts,
.support-view-form,
.support-view-form-grid {
  min-width: 0;
}

.support-view-ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 10.5px;
  color: #64748b;
}

.support-view-ticket-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fbff;
}

.support-view-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.support-view-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 12px;
}

.support-view-main,
.support-view-sidebar {
  display: grid;
  gap: 12px;
}

.support-view-panel {
  padding: 12px;
}

.support-view-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.support-view-thread {
  display: grid;
  gap: 8px;
  max-height: 72vh;
  overflow-y: auto;
  padding-right: 2px;
}

.support-view-message {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.support-view-message.is-admin {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.support-view-message-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.support-view-facts {
  display: grid;
  gap: 8px;
}

.support-view-facts div {
  display: grid;
  gap: 3px;
}

.support-view-facts span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.support-view-facts strong {
  font-size: 12.5px;
  line-height: 1.45;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.support-view-form {
  display: grid;
  gap: 10px;
}

.support-view-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1100px) {
  .support-view-grid {
    grid-template-columns: 1fr;
  }

  .support-view-thread {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .support-view-header,
  .support-view-message-head,
  .support-view-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .support-view-header-actions {
    justify-content: flex-start;
  }

  .support-view-form-grid {
    grid-template-columns: 1fr;
  }
}
.support-simple-shell {
  display: grid;
  gap: 12px;
}

.support-simple-header,
.support-simple-filters,
.support-simple-list-wrap {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.support-simple-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
}

.support-simple-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.support-simple-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f8fbff;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

.support-simple-stat strong {
  font-size: 13px;
  color: #0f172a;
}

.support-simple-filters {
  padding: 10px 12px;
}

.support-simple-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.support-simple-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.support-simple-search i {
  color: #64748b;
  flex-shrink: 0;
}

.support-simple-search input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: auto !important;
  width: 100%;
  min-width: 0;
}

.support-simple-filter-form select {
  min-width: 150px;
}

.support-simple-list-wrap {
  padding: 8px;
}

.support-simple-list-head {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.7fr) minmax(150px, 0.8fr) 110px;
  gap: 12px;
  padding: 6px 10px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #64748b;
  text-transform: uppercase;
}

.support-simple-list {
  display: grid;
  gap: 6px;
}

.support-simple-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(0, 1.7fr) minmax(150px, 0.8fr) 110px;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.support-simple-row:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  transform: translateY(-1px);
}

.support-simple-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.support-simple-subject,
.support-simple-status,
.support-simple-updated {
  min-width: 0;
}

.support-simple-status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.support-simple-updated {
  font-size: 10.5px;
  line-height: 1.45;
  color: #64748b;
  text-align: right;
}

.support-simple-order {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 980px) {
  .support-simple-header {
    flex-direction: column;
    align-items: stretch;
  }

  .support-simple-list-head {
    display: none;
  }

  .support-simple-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .support-simple-updated {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .support-simple-filter-form > * {
    width: 100%;
  }
}
.compact-mail-shell {
  gap: 12px;
}

.compact-mail-header {
  padding: 12px 14px;
  border-radius: 16px;
}

.support-mail-chipbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.support-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.support-summary-chip strong {
  color: #0f172a;
  font-size: 13px;
}

.compact-mail-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px;
}

.compact-mail-sidebar,
.compact-thread-sidebar {
  gap: 10px;
}

.compact-mail-panel {
  padding: 12px;
  border-radius: 16px;
}

.support-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.compact-mail-main,
.compact-thread-main {
  gap: 10px;
}

.compact-mail-toolbar,
.compact-thread-topline {
  padding: 9px 10px;
  border-radius: 14px;
}

.compact-mail-search {
  padding: 7px 10px;
}

.support-mail-table-head {
  display: grid;
  grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.7fr) minmax(150px, 0.75fr);
  gap: 12px;
  padding: 0 12px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.compact-mail-list {
  gap: 6px;
}

.compact-mail-row {
  grid-template-columns: minmax(210px, 0.95fr) minmax(0, 1.7fr) minmax(150px, 0.75fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
}

.compact-mail-row:hover {
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.07);
}

.compact-mail-row .support-mail-row-user {
  align-items: center;
}

.compact-mail-row .support-mail-customer {
  font-size: 12.5px;
}

.compact-mail-row .support-mail-row-subject {
  margin-top: 0;
  font-size: 12.5px;
}

.compact-mail-row .support-mail-row-snippet {
  font-size: 11.5px;
}

.compact-mail-meta {
  gap: 4px;
  font-size: 10px;
}

.compact-mail-badges {
  gap: 4px;
}

.compact-thread-layout {
  grid-template-columns: 1fr;
}

.compact-thread-main {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
}

.notification-center-shell {
  display: grid;
  gap: 14px;
}

.notification-center-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(var(--brand-700-rgb), 0.12);
  border-radius: 22px;
  background:
    radial-gradient(720px 240px at 100% 0%, rgba(var(--accent-rgb), 0.18), transparent 45%),
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(239,246,255,0.96) 48%, rgba(255,255,255,0.98) 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.notification-center-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.notification-center-title {
  margin-top: 6px !important;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  line-height: 1.02;
  font-weight: 900;
  color: #0f172a;
}

.notification-center-subtitle {
  margin-top: 8px !important;
  max-width: 700px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.notification-center-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-summary-pill {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  text-align: center;
}

.notification-summary-pill strong {
  display: block;
  font-size: 18px;
  line-height: 1;
  color: #0f172a;
}

.notification-summary-pill span {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
}

.notification-center-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 14px;
}

.notification-history-panel,
.notification-detail-panel {
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.notification-history-panel {
  padding: 12px;
}

.notification-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  padding: 2px 2px 10px;
}

.notification-panel-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
}

.notification-panel-title {
  margin-top: 4px !important;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.notification-history-list {
  display: grid;
  gap: 8px;
  max-height: 820px;
  overflow-y: auto;
  padding-right: 2px;
}

.notification-history-card {
  display: block;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.notification-history-card:hover,
.notification-history-card.is-active {
  border-color: #93c5fd;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.notification-history-card.is-active {
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
}

.notification-history-arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: var(--brand-700);
  flex-shrink: 0;
}

.notification-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}

.notification-history-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
}

.notification-detail-panel {
  overflow: hidden;
}

.notification-detail-head {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.24);
}

.notification-accent-pill,
.notification-audience-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 800;
}

.notification-audience-chip {
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.78);
  color: #334155;
}

.notification-detail-title {
  margin-top: 12px !important;
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  line-height: 1.15;
  font-weight: 900;
}

.notification-detail-subtitle {
  margin-top: 8px !important;
  font-size: 11px;
  color: inherit;
  opacity: .78;
}

.notification-detail-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.notification-detail-media {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.65);
}

.notification-detail-media img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
}

.notification-detail-copy {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  overflow-wrap: anywhere;
}

.notification-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.notification-fact-card {
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
}

.notification-fact-card span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
}

.notification-fact-card strong {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.notification-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-filter-panel {
  position: sticky;
  top: 96px;
  align-self: start;
}

.shop-filter-card {
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 24px;
  background:
    radial-gradient(180px 120px at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, #f8fbff 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
}

.shop-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.shop-filter-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #64748b;
}

.shop-filter-title {
  margin-top: 4px !important;
  font-size: 1.1rem;
  color: #0f172a;
}

.shop-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-700);
}

.shop-filter-stack {
  display: grid;
  gap: 12px;
}

.shop-filter-grid {
  display: grid;
  gap: 10px;
}

.shop-filter-field {
  display: grid;
  gap: 6px;
}

.shop-filter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #475569;
}

.shop-price-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: #ffffff;
}

.shop-price-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.shop-price-caption {
  margin-top: 4px !important;
  font-size: 12px;
  color: #64748b;
}

.shop-price-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: #eff6ff;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.shop-price-slider {
  position: relative;
  height: 34px;
}

.shop-price-track,
.shop-price-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 6px;
  border-radius: 999px;
}

.shop-price-track {
  background: #dbeafe;
}

.shop-price-progress {
  background: linear-gradient(90deg, var(--brand-700), var(--accent));
}

.shop-price-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 4px;
  width: 100%;
  appearance: none;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.shop-price-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--brand-700);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid var(--brand-700);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-slider input[type="range"]::-webkit-slider-runnable-track,
.shop-price-slider input[type="range"]::-moz-range-track {
  background: transparent;
}

.shop-price-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shop-filter-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 1024px) {
  .shop-filter-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .shop-filter-card {
    padding: 14px;
    border-radius: 18px;
  }

  .shop-filter-header,
  .shop-price-head {
    flex-direction: column;
  }

  .shop-price-inputs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .notification-center-grid {
    grid-template-columns: 1fr;
  }

  .notification-history-list {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .notification-center-hero {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-center-summary {
    width: 100%;
  }

  .notification-summary-pill {
    flex: 1 1 calc(33.333% - 10px);
  }

  .notification-detail-head,
  .notification-detail-body {
    padding: 14px;
  }

  .notification-detail-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .notification-summary-pill {
    flex: 1 1 calc(50% - 10px);
  }
}

.compact-thread-conversation,
.compact-thread-reply-panel {
  border-radius: 16px;
}

.compact-thread-messages {
  gap: 8px;
  padding: 10px;
}

.compact-thread-message {
  padding: 10px;
  border-radius: 14px;
}

.compact-thread-meta {
  gap: 8px;
}

.compact-thread-reply-panel {
  position: static;
}

.compact-thread-form {
  gap: 10px;
  padding: 10px;
}

@media (max-width: 1280px) {
  .compact-thread-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .compact-mail-layout {
    grid-template-columns: 1fr;
  }

  .support-mail-table-head {
    display: none;
  }

  .compact-mail-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .compact-mail-header {
    padding: 10px 12px;
  }

  .support-mail-chipbar {
    width: 100%;
  }

  .support-summary-chip {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}
.fade-in {
  opacity: 1;
  transform: none;
  transition: none;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.card { @apply bg-white rounded-2xl shadow-soft border border-slate-200; }
.badge { @apply inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold; }

/* Admin UI */
body.admin-ui {
  background:
    radial-gradient(900px 500px at -5% -10%, rgba(56, 189, 248, 0.16), transparent 40%),
    radial-gradient(1100px 560px at 110% 0%, rgba(37, 99, 235, 0.14), transparent 42%),
    linear-gradient(180deg, #edf5ff 0%, #f3f8ff 42%, #f8fbff 100%);
  color: #1e293b;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

body.admin-ui::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  z-index: 1;
  background: linear-gradient(90deg, #041534 0%, #0b2f6a 38%, #0f6cbd 70%, #38bdf8 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.18);
}

.admin-shell,
.admin-shell > aside,
.admin-shell > div {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.admin-shell {
  position: relative;
  z-index: 2;
}

.admin-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(2px);
}

.admin-sidebar {
  background: linear-gradient(180deg, #041534 0%, #092a63 50%, #0b2f6a 100%);
  border-right: 1px solid rgba(56, 189, 248, 0.28);
  transition: transform .22s ease, width .22s ease, opacity .22s ease;
}

.admin-sidebar-toggle {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
}

.admin-sidebar-toggle i {
  font-size: 20px;
  line-height: 1;
}

body.admin-sidebar-collapsed .admin-sidebar {
  width: 0 !important;
  min-width: 0 !important;
  transform: translateX(-100%);
  opacity: 0;
  overflow: hidden;
  border-right: none;
}

body.admin-sidebar-collapsed .admin-shell > .flex-1 {
  width: 100%;
}

@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(288px, calc(100vw - 32px));
    display: flex !important;
    flex-direction: column;
    transform: translateX(-100%);
    opacity: 0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
    opacity: 1;
  }

  body.admin-sidebar-open {
    overflow: hidden;
  }

  .admin-shell > .flex-1 {
    width: 100%;
  }
}

.admin-side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #dbeafe;
  transition: all .2s ease;
}

.admin-side-link:hover {
  background: rgba(125, 211, 252, 0.18);
  color: #fff;
}

.admin-side-link.active {
  background: linear-gradient(90deg, rgba(56,189,248,.42), rgba(37,99,235,.34));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(186,230,253,.48), 0 8px 16px rgba(8, 47, 120, 0.28);
}

.admin-topbar {
  background: rgba(239, 248, 255, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #bfdbfe;
  position: sticky;
  top: 0;
  z-index: 20;
  margin-top: 0 !important;
}

.admin-topbar h1 {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.25rem);
  line-height: 1.2;
}

.admin-topbar p {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bfdbfe;
  background: #f0f9ff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #1e3a8a;
}

.admin-alert {
  border-radius: 12px;
  border: 1px solid;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.admin-alert.success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.admin-alert.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.admin-field-label {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

body.admin-ui input:not([type="checkbox"]):not([type="radio"]),
body.admin-ui select,
body.admin-ui textarea {
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #f8fcff;
  font-size: 13px;
  line-height: 1.35;
  transition: all .15s ease;
}

body.admin-ui input:not([type="checkbox"]):not([type="radio"]):focus,
body.admin-ui select:focus,
body.admin-ui textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  transition: all .18s ease;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 5px 9px;
  font-size: 11px;
}

.btn-primary {
  background: linear-gradient(90deg, #1d4ed8, #0ea5e9);
  color: #fff;
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.24);
}

.btn-primary:hover {
  filter: brightness(.97);
}

.btn-outline {
  background: #f8fbff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.btn-outline:hover {
  background: #eef6ff;
}

.btn-success {
  background: linear-gradient(90deg, #059669, #10b981);
  color: #fff;
}

.btn-success:hover {
  filter: brightness(.95);
}

.btn-danger {
  background: linear-gradient(90deg, #dc2626, #ef4444);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(.95);
}

.btn-warning {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: #fff;
}

.btn-warning:hover {
  filter: brightness(.95);
}

body.admin-ui table thead th {
  font-weight: 700;
  color: #1e3a8a;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .02em;
}

body.admin-ui table tbody tr:hover {
  background: #f0f9ff;
}

body.admin-ui table td {
  font-size: 12.5px;
  line-height: 1.35;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid transparent;
}

body.admin-ui .text-xs {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

body.admin-ui .text-sm {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

body.admin-ui .text-base {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body.admin-ui h2 {
  font-size: clamp(0.95rem, 0.7vw + 0.78rem, 1.1rem);
  line-height: 1.25;
}

body.admin-ui h3 {
  font-size: clamp(0.9rem, 0.55vw + 0.75rem, 1rem);
  line-height: 1.3;
}

@media (max-width: 1280px) {
  body.admin-ui {
    font-size: 12.5px;
  }

  .admin-side-link {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .btn {
    padding: 7px 11px;
    font-size: 12.5px;
  }
}

@media (max-width: 768px) {
  body.admin-ui {
    font-size: 12px;
    line-height: 1.4;
  }

  .admin-topbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .admin-sidebar-toggle {
    width: 40px;
    height: 40px;
  }

  .admin-pill {
    padding: 4px 9px;
    font-size: 10.5px;
  }

  body.admin-ui table td,
  body.admin-ui table thead th {
    font-size: 11.5px;
  }
}

.status-success {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.status-danger {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.status-warning {
  color: #92400e;
  background: #fffbeb;
  border-color: #fcd34d;
}

.status-neutral {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.blink-important {
  animation: blinkImportant 1.15s ease-in-out infinite;
}

@keyframes blinkImportant {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
  50% {
    opacity: .55;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .18);
  }
}

.admin-table-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0f9ff 0%, #f8fbff 100%);
}

.admin-table-tools-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-table-tools-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.admin-tool-input {
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  min-height: 38px;
  font-size: 13px;
  color: #1e3a8a;
}

.admin-tool-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}

.admin-tool-search {
  min-width: 250px;
}

.admin-tool-xs {
  min-width: 120px;
}

.admin-table-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-table-pager .text-slate-500 {
  white-space: nowrap;
}

.admin-dashboard {
  display: grid;
  gap: 20px;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  gap: 22px;
  padding: 24px;
  border: 1px solid #dbeafe;
  border-radius: 32px;
  background:
    radial-gradient(360px 220px at 0% 0%, rgba(56, 189, 248, 0.22), transparent 58%),
    radial-gradient(300px 220px at 100% 100%, rgba(59, 130, 246, 0.14), transparent 52%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #edf5ff 100%);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.admin-dashboard-hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.admin-dashboard-kicker,
.admin-dashboard-mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.admin-dashboard-kicker {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #1d4ed8;
}

.admin-dashboard-mini-label {
  color: #64748b;
}

.admin-dashboard-hero-copy h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.65rem, 1.45vw + 1rem, 2.35rem);
  line-height: 1.04;
  font-weight: 900;
  color: #0f172a;
}

.admin-dashboard-hero-copy p {
  max-width: 62ch;
  color: #475569;
  font-size: 14px;
  line-height: 1.72;
}

.admin-dashboard-hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard-highlight-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(191, 219, 254, .9);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}

.admin-dashboard-highlight-pill span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-dashboard-highlight-pill strong {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.admin-dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dashboard-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(191, 219, 254, .95);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.admin-dashboard-hero-link:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.06);
}

.admin-dashboard-filter,
.admin-dashboard-panel {
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.admin-dashboard-filter {
  padding: 16px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.admin-dashboard-panel {
  padding: 16px;
}

.admin-dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-dashboard-panel-head h3 {
  margin-top: 4px !important;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-dashboard-mode-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-dashboard-digest-grid,
.admin-dashboard-overview-grid,
.admin-dashboard-table-grid {
  display: grid;
  gap: 12px;
}

.admin-dashboard-digest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard-digest-card {
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-dashboard-digest-card span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-dashboard-digest-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  color: #0f172a;
}

.admin-dashboard-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
  color: #9f1239;
  box-shadow: 0 12px 22px rgba(190, 24, 93, 0.08);
}

.admin-dashboard-alert-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #ffe4e6;
  font-size: 18px;
  flex-shrink: 0;
}

.admin-dashboard-alert-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-dashboard-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-dashboard-stat-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, #f8fbff 100%);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.05);
}

.admin-dashboard-stat-value {
  margin-top: 8px;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.7rem);
  line-height: 1;
  font-weight: 900;
  color: #020617;
}

.admin-dashboard-stat-meta {
  margin-top: 8px;
  font-size: 11px;
  color: #64748b;
}

.admin-dashboard-stat-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  font-size: 19px;
  flex-shrink: 0;
}

.admin-dashboard-stat-card.tone-emerald .admin-dashboard-stat-icon { background: linear-gradient(135deg, #059669, #10b981); }
.admin-dashboard-stat-card.tone-sky .admin-dashboard-stat-icon { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.admin-dashboard-stat-card.tone-violet .admin-dashboard-stat-icon { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.admin-dashboard-stat-card.tone-amber .admin-dashboard-stat-icon { background: linear-gradient(135deg, #d97706, #f59e0b); }

.admin-dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 20px;
  align-items: start;
}

.admin-dashboard-chart-wrap {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,.12), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-dashboard-chart-wrap canvas {
  display: block;
  width: 100%;
}

.admin-dashboard-table-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-dashboard-watchlist {
  display: grid;
  gap: 10px;
}

.admin-dashboard-watch-card,
.admin-dashboard-action-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.admin-dashboard-watch-card:hover,
.admin-dashboard-action-link:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.admin-dashboard-watch-icon,
.admin-dashboard-action-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  flex-shrink: 0;
}

.admin-dashboard-watch-label,
.admin-dashboard-watch-meta {
  display: block;
}

.admin-dashboard-watch-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-dashboard-watch-value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.admin-dashboard-watch-meta {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

.admin-dashboard-watch-card.tone-danger {
  border-color: #fecdd3;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
}

.admin-dashboard-watch-card.tone-danger .admin-dashboard-watch-icon {
  background: #ffe4e6;
  color: #be123c;
}

.admin-dashboard-watch-card.tone-info .admin-dashboard-watch-icon {
  background: #eff6ff;
  color: #1d4ed8;
}

.admin-dashboard-watch-card.tone-success .admin-dashboard-watch-icon {
  background: #ecfdf5;
  color: #047857;
}

.admin-dashboard-watch-card.tone-brand .admin-dashboard-watch-icon {
  background: #eef2ff;
  color: #4338ca;
}

.admin-dashboard-watch-card.tone-neutral .admin-dashboard-watch-icon {
  background: #f8fafc;
  color: #334155;
}

.admin-dashboard-action-group {
  display: grid;
  gap: 8px;
  padding: 2px 0;
}

.admin-dashboard-group-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-order-shell {
  display: grid;
  gap: 18px;
}

.admin-order-hero,
.admin-order-card {
  border: 1px solid #dbeafe;
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.admin-order-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(59, 130, 246, 0.15), transparent 55%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #edf5ff 100%);
}

.admin-order-hero-main,
.admin-order-sidebar,
.admin-order-main,
.admin-order-item-copy,
.admin-order-history-copy {
  min-width: 0;
}

.admin-order-kicker,
.admin-order-section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.admin-order-kicker {
  padding: 7px 11px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #1d4ed8;
}

.admin-order-section-label {
  color: #64748b;
}

.admin-order-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.admin-order-title-row h2 {
  font-size: clamp(1.2rem, 1vw + 1rem, 1.75rem);
  line-height: 1.15;
  font-weight: 900;
  color: #0f172a;
}

.admin-order-title-row p {
  max-width: 760px;
  margin-top: 7px !important;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.admin-order-status-stack,
.admin-order-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-order-status-stack {
  justify-content: flex-end;
}

.admin-order-hero-actions {
  align-content: flex-start;
  justify-content: flex-end;
}

.admin-order-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-order-metric-card {
  padding: 13px 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.admin-order-metric-card span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-order-metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.admin-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 360px;
  gap: 18px;
  align-items: start;
}

.admin-order-main,
.admin-order-sidebar {
  display: grid;
  gap: 16px;
}

.admin-order-card {
  padding: 18px;
}

.admin-order-card-toned {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.admin-order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-order-card-head h3 {
  margin-top: 4px !important;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.admin-order-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-order-item-list,
.admin-order-history,
.admin-order-detail-stack {
  display: grid;
  gap: 10px;
}

.admin-order-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-order-item-media {
  width: 74px;
}

.admin-order-cover {
  width: 74px;
  aspect-ratio: 210 / 297;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid #dbeafe;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.admin-order-item-title {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
}

.admin-order-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.admin-order-item-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 11px;
  font-weight: 700;
}

.admin-order-item-total {
  text-align: right;
}

.admin-order-item-total span,
.admin-order-history-top span,
.admin-order-detail-row span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-order-item-total strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  color: #1d4ed8;
}

.admin-order-history-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.admin-order-history-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 0 0 5px rgba(191, 219, 254, 0.8);
}

.admin-order-history-copy {
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-order-history-row:last-child .admin-order-history-copy {
  padding-bottom: 0;
  border-bottom: none;
}

.admin-order-history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-history-top strong,
.admin-order-detail-row strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.admin-order-history-copy p {
  margin-top: 5px !important;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
}

.admin-order-form {
  display: grid;
  gap: 14px;
}

.admin-order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-order-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-order-detail-stack.compact {
  gap: 8px;
}

.admin-order-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-order-detail-row.total {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.admin-order-address {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .admin-table-tools {
    padding: 8px;
  }
  .admin-table-tools-left,
  .admin-table-tools-right {
    width: 100%;
  }
  .admin-table-tools-right {
    justify-content: flex-end;
  }
  .admin-tool-search {
    min-width: 100%;
    flex: 1 1 100%;
  }

  .admin-dashboard-hero,
  .admin-dashboard-main-grid,
  .admin-dashboard-table-grid,
  .admin-order-layout,
  .admin-order-hero {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-overview-grid,
  .admin-dashboard-snapshot-grid,
  .admin-order-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-order-hero-actions,
  .admin-order-status-stack {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-dashboard-hero,
  .admin-dashboard-filter,
  .admin-dashboard-panel,
  .admin-dashboard-stat-card,
  .admin-order-hero,
  .admin-order-card {
    padding: 14px;
  }

  .admin-dashboard-digest-grid,
  .admin-dashboard-overview-grid,
  .admin-dashboard-snapshot-grid,
  .admin-order-metric-grid,
  .admin-order-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-order-title-row,
  .admin-order-history-top,
  .admin-order-detail-row,
  .admin-order-form-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-order-item {
    grid-template-columns: 1fr;
  }

  .admin-order-item-total {
    text-align: left;
  }

  .admin-dashboard-hero-copy h2 {
    max-width: none;
    font-size: 1.6rem;
  }

  .admin-dashboard-hero-highlights {
    grid-template-columns: 1fr;
  }
}

.cart-checkout-btn {
  display: block;
  transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease, filter .22s ease;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.cart-checkout-primary {
  background: linear-gradient(90deg, var(--brand-700), var(--brand-500));
  color: #ffffff !important;
  border: 1px solid rgba(var(--brand-700-rgb), 0.35);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.cart-checkout-primary:hover {
  filter: brightness(.98) saturate(1.03);
}

.google-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid #dadce0;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.google-auth-btn:hover {
  color: #111827;
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.google-auth-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.18), 0 12px 24px rgba(15, 23, 42, 0.08);
}

.google-auth-btn__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(218, 220, 224, 0.9);
  flex-shrink: 0;
}

.google-auth-btn__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

@media (max-width: 640px) {
  .google-auth-btn {
    min-height: 46px;
    padding: 10px 14px;
    gap: 10px;
  }

  .google-auth-btn__icon {
    width: 32px;
    height: 32px;
  }
}
.wa-float-btn {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 1250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid rgba(22, 163, 74, 0.7);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.wa-float-btn i {
  font-size: 18px;
  line-height: 1;
}

.wa-float-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(22, 163, 74, 0.42);
  filter: brightness(1.03);
}

@media (max-width: 640px) {
  .wa-float-btn {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .wa-float-btn span {
    display: none;
  }
}

@media (min-width: 992px) {
  .cart-summary-card:hover .cart-checkout-btn,
  .cart-summary-card:focus-within .cart-checkout-btn {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
    filter: saturate(1);
    box-shadow: 0 12px 24px rgba(var(--brand-700-rgb), 0.24);
  }
}

/* Storefront media responsiveness */
main img {
  max-width: 100%;
}

@media (max-width: 1024px) {
  .home-hero-slide img {
    height: min(48vw, 380px);
    min-height: 180px;
  }

  .home-middle-banner img {
    min-height: 180px;
    max-height: 280px;
  }

  .home-banner-card img {
    height: 170px;
  }
}

@media (max-width: 768px) {
  .book-cover-a4 {
    min-height: 190px;
  }

  .home-hero-track {
    min-height: 170px;
  }

  .home-hero-slide img {
    height: 54vw;
    min-height: 160px;
    max-height: 280px;
  }

  .home-hero-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .home-middle-banner img {
    min-height: 150px;
    max-height: 220px;
  }

  .home-banner-card img {
    height: 150px;
  }

  .home-coupon-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-coupon-banner-fluid {
    width: 100%;
  }

  .home-coupon-img-fixed {
    width: 100% !important;
    height: auto !important;
    max-height: 170px;
    object-fit: contain !important;
  }

  .partner-logo-card {
    min-width: 130px;
    max-width: 130px;
  }

  .partner-logo-card img {
    max-width: 110px;
    height: 34px;
  }

  .review-mini-card {
    min-width: 270px;
    max-width: 270px;
  }
}

@media (max-width: 480px) {
  .home-hero-slide img {
    height: 58vw;
    min-height: 145px;
    max-height: 220px;
  }

  .home-middle-banner img {
    min-height: 135px;
    max-height: 190px;
  }

  .book-cover-a4 {
    min-height: 175px;
  }
}


