:root {
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f2f4f7;
  --bg: #f6f8fb;
  --navy: #07182f;
  --navy-2: #102a4c;
  --primary: #1769ff;
  --primary-dark: #0f4fd1;
  --cyan: #16b8d8;
  --green: #12b76a;
  --orange: #f79009;
  --shadow: 0 18px 55px rgba(16, 24, 40, .10);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, .07);
}

* {
  letter-spacing: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  text-decoration: none;
}

.shop-nav {
  background: rgba(5, 18, 38, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(14px);
  min-height: 62px;
}

.brand-mark,
.admin-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

.brand-mark span:last-child {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-icon,
.admin-logo i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
}

.brand-logo-img {
  width: auto;
  max-width: 188px;
  height: 44px;
  object-fit: contain;
}

.admin-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  padding: 4px;
}

.nav-trust {
  align-items: center;
  gap: 18px;
  color: #c9d8f2;
  font-size: .88rem;
  font-weight: 700;
}

.nav-trust i {
  color: var(--cyan);
  margin-right: 6px;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0f55e8);
  border: 0;
  box-shadow: 0 12px 26px rgba(23, 105, 255, .24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #0e45b8);
}

.btn-success {
  background: linear-gradient(135deg, var(--green), #039855);
  border: 0;
  box-shadow: 0 12px 26px rgba(18, 183, 106, .22);
}

.btn-soft {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, .13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .26);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.shop-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(22, 184, 216, .22), transparent 31%),
    linear-gradient(135deg, #07182f 0%, #102a4c 52%, #165fe5 100%);
  color: #fff;
  border-bottom: 1px solid var(--line);
}

.shop-hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 54px;
  background: linear-gradient(180deg, rgba(246, 248, 251, 0), var(--bg));
}

.shop-hero .container {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  padding: 8px 13px;
  margin-bottom: 18px;
  font-weight: 800;
}

.shop-hero h1 {
  max-width: 760px;
  line-height: 1.04;
}

.shop-hero .lead {
  color: #dbe7ff;
  max-width: 680px;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ebf3ff;
  font-weight: 700;
}

.trust-row i {
  color: var(--green);
}

.device-showcase {
  position: relative;
  min-height: 380px;
}

.device-card,
.delivery-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .42);
  color: var(--ink);
  box-shadow: var(--shadow);
  border-radius: 8px;
}

.main-device {
  position: absolute;
  right: 38px;
  top: 42px;
  width: 260px;
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.main-device > i {
  font-size: 4rem;
  color: var(--primary);
}

.main-device strong {
  font-size: 1.35rem;
}

.main-device small {
  color: var(--green);
  font-weight: 800;
}

.signal-dot {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(18, 183, 106, .15);
}

.device-card.mini {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 800;
}

.device-card.mini i {
  color: var(--primary);
  font-size: 1.35rem;
}

.device-card.a {
  left: 18px;
  top: 92px;
}

.device-card.b {
  right: 12px;
  bottom: 62px;
}

.delivery-card {
  position: absolute;
  left: 38px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  width: 290px;
}

.delivery-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ecfdf3;
  color: var(--green);
  font-size: 1.5rem;
}

.delivery-card span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.hero-panel,
.checkout-box,
.form-surface,
.product-card,
.success-panel,
.login-card,
.table-box,
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.section-title,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title h2,
.checkout-box h2,
.table-box h2,
.form-surface h2,
.page-head h1 {
  font-size: 1.35rem;
  margin: 0;
  font-weight: 850;
}

.section-title span,
.page-head span {
  color: var(--muted);
  font-weight: 700;
}

.product-card {
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #b2ccff;
  box-shadow: var(--shadow);
}

.product-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 28%, rgba(22, 184, 216, .22), transparent 31%),
    linear-gradient(135deg, #eef4ff, #f8fbff);
  color: var(--primary);
  font-size: 3rem;
  font-weight: 800;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-tag {
  display: inline-block;
  padding: 4px 9px;
  background: #eef4ff;
  color: var(--primary);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.06rem;
  margin: 0;
  font-weight: 850;
}

.product-card strong {
  color: var(--primary);
  white-space: nowrap;
}

.product-card p {
  min-height: 48px;
  color: var(--muted);
  font-size: .94rem;
  margin-top: 10px;
}

.form-surface,
.checkout-box,
.table-box,
.success-panel,
.login-card {
  padding: 22px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: #d0d5dd;
  padding: 11px 12px;
}

.form-control:focus,
.form-select:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 .22rem rgba(23, 105, 255, .12);
}

.form-label {
  color: #344054;
  font-weight: 800;
  font-size: .9rem;
}

.checkout-box {
  top: 92px;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-head span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .76rem;
}

.checkout-head > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #ecfdf3;
  color: var(--green);
  font-size: 1.35rem;
}

.cart-item,
.shipping-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fcfcfd;
}

.shipping-option {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.shipping-option:hover {
  border-color: #84adff;
  background: #f5f8ff;
}

.cart-item input {
  width: 76px;
}

.totals {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.totals .grand {
  font-size: 1.22rem;
  padding-top: 10px;
  border-top: 1px dashed #d0d5dd;
}

.totals .grand strong {
  color: var(--primary);
}

.success-panel {
  max-width: 640px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-methods label {
  cursor: pointer;
}

.payment-methods input {
  position: absolute;
  opacity: 0;
}

.payment-methods span {
  align-items: center;
  background: #fcfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 850;
  gap: 8px;
  justify-content: center;
  min-height: 54px;
  padding: 10px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.payment-methods input:checked + span {
  background: #eef4ff;
  border-color: var(--primary);
  color: var(--primary);
}

.auth-bg {
  background:
    radial-gradient(circle at top left, rgba(23, 105, 255, .18), transparent 30%),
    linear-gradient(135deg, #f8fbff, #eef4ff 52%, #fff);
}

.login-card {
  width: min(430px, 100%);
}

.login-card h1 {
  font-size: 1.6rem;
  font-weight: 850;
}

.admin-body {
  background: #f3f6fb;
}

.admin-sidebar {
  background:
    radial-gradient(circle at top left, rgba(22, 184, 216, .22), transparent 30%),
    linear-gradient(180deg, #07182f, #0a1f3a);
  color: #fff;
  min-height: 100vh;
  width: 250px;
  position: sticky;
  top: 0;
}

.admin-logo {
  color: #fff;
}

.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 800;
}

.admin-sidebar .nav-link:hover {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.admin-main {
  width: calc(100% - 250px);
}

.metric {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric:after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(23, 105, 255, .10);
}

.metric span {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 8px;
}

.table {
  margin-bottom: 0;
}

.table th {
  color: #475467;
  font-size: .82rem;
  text-transform: uppercase;
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-preview img {
  max-width: 188px;
  height: 44px;
  object-fit: contain;
  background: #07182f;
  border-radius: 8px;
  padding: 4px 8px;
}

.brand-preview span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  border-radius: 8px;
  font-size: 1.6rem;
}

.brand-preview small {
  display: block;
  color: var(--muted);
}

.notify-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfcfd;
  padding: 16px;
}

.notify-card .form-check-label i {
  color: var(--primary);
  margin-right: 6px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

.live-indicator i {
  color: var(--green);
}

.admin-live-alert {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #07182f, #1769ff);
  box-shadow: 0 22px 60px rgba(7, 24, 47, .32);
}

.admin-live-alert[hidden] {
  display: none;
}

.admin-live-alert strong,
.admin-live-alert span {
  display: block;
}

.admin-live-alert span {
  color: #dbe7ff;
  font-size: .92rem;
  margin-top: 2px;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list span {
  color: var(--muted);
  font-weight: 800;
}

.detail-list strong {
  text-align: right;
  font-weight: 800;
}

.print-body {
  background: #e5e7eb;
}

.print-page {
  max-width: 980px;
  margin: 28px auto;
}

.print-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.print-sheet {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.print-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--ink);
}

.print-header h1 {
  font-size: 1.9rem;
  font-weight: 850;
  margin: 0;
}

.print-header p {
  color: var(--muted);
  margin: 5px 0 0;
}

.print-status {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.print-sheet h2 {
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.print-sheet p {
  margin-bottom: 5px;
}

.print-totals {
  max-width: 360px;
  margin-left: auto;
}

.print-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.print-totals .grand {
  font-size: 1.25rem;
  border-bottom: 0;
}

@media print {
  @page {
    margin: 12mm;
  }

  .no-print {
    display: none !important;
  }

  .print-body {
    background: #fff;
  }

  .print-page {
    max-width: none;
    margin: 0;
  }

  .print-sheet {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
}

@media (max-width: 991px) {
  .device-showcase {
    min-height: 320px;
  }

  .main-device {
    right: 22px;
    width: 230px;
  }

  .admin-sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
  }

  .admin-main {
    width: 100%;
  }

  .admin-body .d-flex {
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .top-strip .container {
    flex-direction: column;
  }

  .shop-hero h1 {
    font-size: 2.15rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .device-showcase {
    display: none;
  }

  .section-title,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }
}
