:root {
  --navy: #0b2135;
  --navy-2: #12324d;
  --petrol: #0f6b72;
  --aqua: #38b7b2;
  --green: #5aa86a;
  --sand: #f3f6f7;
  --white: #ffffff;
  --text: #203040;
  --muted: #647384;
  --line: #dbe5e8;
  --shadow: 0 20px 50px rgba(11, 33, 53, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--petrol));
  position: relative;
  box-shadow: var(--shadow);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px 8px;
  border-radius: 50% 50% 38% 38%;
  background: linear-gradient(135deg, var(--aqua), var(--green));
  transform: rotate(-18deg);
}

.brand span {
  font-size: 1.14rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  color: var(--navy-2);
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--petrol);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--sand);
  color: var(--navy);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--petrol);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(15, 107, 114, 0.22);
}

.btn-primary:hover {
  background: #0c5b61;
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--petrol);
  color: var(--petrol);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  background: radial-gradient(circle at top right, rgba(56, 183, 178, 0.18), transparent 34%), linear-gradient(135deg, var(--navy), #102e45 58%, #0d5e64);
  color: var(--white);
  padding: 88px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 183, 178, 0.12);
  color: var(--aqua);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p,
.page-hero p {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.dashboard-mockup {
  background: var(--white);
  color: var(--text);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.mockup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.dot-row {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.status-pill {
  border-radius: 999px;
  background: #e6f6f5;
  color: var(--petrol);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.mockup-list {
  display: grid;
  gap: 10px;
}

.mockup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdfe;
}

.mockup-row strong {
  display: block;
  color: var(--navy);
}

.mockup-row small {
  color: var(--muted);
}

.price-tag {
  font-weight: 800;
  color: var(--petrol);
}

.trust-strip {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
}

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

.trust-item {
  padding: 22px 24px;
  background: var(--white);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--sand);
}

.section-header {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  color: var(--petrol);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.25;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 26px rgba(11, 33, 53, 0.05);
}

.card.highlight {
  border-color: rgba(15, 107, 114, 0.26);
  box-shadow: var(--shadow);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e8f6f5;
  color: var(--petrol);
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--petrol);
  font-weight: 900;
}

.step-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.visual-placeholder {
  min-height: 320px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(15, 107, 114, 0.16), rgba(56, 183, 178, 0.08)), repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0, rgba(255,255,255,0.08) 10px, rgba(255,255,255,0.02) 10px, rgba(255,255,255,0.02) 20px);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: 28px;
}

.image-card {
  min-height: 260px;
  border-radius: 24px;
  background: linear-gradient(135deg, #e8f6f5, #f5f8f9);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--petrol);
  font-weight: 900;
  text-align: center;
  padding: 20px;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--petrol));
  color: var(--white);
  border-radius: 30px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--petrol));
  color: var(--white);
  padding: 74px 0;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
  font-size: 0.94rem;
}

.notice {
  background: #e8f6f5;
  border: 1px solid rgba(15, 107, 114, 0.2);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 700;
}


.notice-error {
  background: #fff2f2;
  border-color: rgba(164, 48, 48, 0.18);
  color: #7d2020;
  margin-top: 14px;
}

.form-card .notice + form {
  margin-top: 18px;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fbfdfe;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(56, 183, 178, 0.22);
  border-color: var(--petrol);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-title {
  color: var(--white);
  font-weight: 900;
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--aqua);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .navbar {
    min-height: 70px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .hero-grid,
  .grid-2,
  .footer-grid,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero,
  .page-hero {
    padding: 58px 0;
  }

  .section {
    padding: 58px 0;
  }

  .grid-3,
  .grid-4,
  .form-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .nav-actions {
    width: auto;
  }

  .btn {
    width: 100%;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px;
  }
}


/* =========================
   Admin and account portal
   ========================= */

.portal-body,
.admin-body,
.account-body {
  min-height: 100vh;
  background: #f4f7f9;
  color: #123044;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
}

.portal-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.08);
}

.portal-card-narrow {
  width: min(100%, 560px);
}

.portal-form,
.admin-account-form {
  margin-top: 22px;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.admin-header,
.account-header {
  background: #0d2b3e;
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.admin-nav,
.account-nav {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.admin-header .brand,
.account-header .brand {
  color: #ffffff;
}

.admin-nav-actions,
.account-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.admin-welcome {
  color: rgba(255,255,255,0.82);
  font-size: 0.95rem;
}

.admin-main,
.account-main {
  padding: 44px 0 72px;
}

.admin-hero,
.account-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 28px;
}

.admin-hero h1,
.account-welcome h1 {
  margin-bottom: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.metric-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 8px;
  box-shadow: 0 12px 34px rgba(10, 33, 48, 0.06);
}

.metric-card strong {
  font-size: 2.2rem;
  line-height: 1;
  color: #0d2b3e;
}

.metric-card span {
  color: #54707e;
  font-weight: 600;
}

.table-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.08);
}

.table-card-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(18, 48, 68, 0.1);
}

.table-card-head h2 {
  margin: 0;
}

.table-card-head p {
  margin: 0;
  color: #54707e;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 18px 20px;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(18, 48, 68, 0.08);
}

.admin-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #54707e;
  background: #f8fbfc;
}

.admin-table td small {
  display: block;
  margin-top: 5px;
  color: #6b8290;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-active,
.status-ready {
  background: rgba(31, 132, 107, 0.12);
  color: #1f846b;
}

.status-disabled {
  background: rgba(158, 57, 57, 0.12);
  color: #9e3939;
}

.status-pending {
  background: rgba(191, 125, 24, 0.14);
  color: #986311;
}

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

.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: #0f5665;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.text-button:hover {
  text-decoration: underline;
}

.admin-form-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(520px, 1.28fr);
  align-items: start;
  gap: 28px;
}

.admin-form-intro {
  position: sticky;
  top: 28px;
}

.form-submit-row {
  margin-top: 26px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.account-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(10, 33, 48, 0.06);
}

.account-card h2 {
  margin-bottom: 10px;
}

.coming-label {
  display: inline-flex;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 86, 101, 0.1);
  color: #0f5665;
  font-size: 0.82rem;
  font-weight: 700;
}

.account-profile {
  margin-top: 22px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.profile-grid div {
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.08);
  border-radius: 16px;
  padding: 16px;
}

.profile-grid span,
.profile-grid strong {
  display: block;
}

.profile-grid span {
  color: #54707e;
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.profile-grid strong {
  color: #123044;
}

@media (max-width: 980px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-form-layout {
    grid-template-columns: 1fr;
  }

  .admin-form-intro {
    position: static;
  }

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

@media (max-width: 720px) {
  .admin-nav,
  .account-nav,
  .admin-hero,
  .account-welcome,
  .table-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .account-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    padding: 24px 20px;
  }
}


/* =========================
   Customer dashboard v2
   ========================= */

.dashboard-v2 .dashboard-main {
  padding-top: 38px;
}

.dashboard-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(10, 33, 48, 0.08);
  margin-bottom: 24px;
}

.dashboard-hero-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
}

.dashboard-hero-copy p {
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.7;
  color: #385668;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.dashboard-status-panel {
  background: #0d2b3e;
  color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.dashboard-status-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.dashboard-status-top small {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
}

.dashboard-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-status-grid div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px;
}

.dashboard-status-grid span,
.dashboard-status-grid strong {
  display: block;
}

.dashboard-status-grid span {
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
  margin-bottom: 7px;
}

.dashboard-status-grid strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
}

.dashboard-progress-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  padding: 28px 30px;
  box-shadow: 0 16px 46px rgba(10, 33, 48, 0.06);
  margin-bottom: 26px;
}

.dashboard-progress-banner h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.16;
}

.dashboard-progress-banner p {
  margin: 0;
  color: #4d6978;
  line-height: 1.7;
}

.dashboard-roadmap {
  display: grid;
  gap: 12px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 68, 0.1);
  background: #f7fafb;
}

.roadmap-item span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: #dfecef;
  color: #0f5665;
  flex: 0 0 auto;
}

.roadmap-active {
  background: rgba(31, 132, 107, 0.1);
  border-color: rgba(31, 132, 107, 0.18);
}

.roadmap-active span {
  background: #1f846b;
  color: #ffffff;
}

.roadmap-next strong {
  color: #254557;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 26px;
}

.dashboard-action-card {
  min-height: 252px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dashboard-action-card h2 {
  margin: 0 0 12px;
  font-size: 1.72rem;
  line-height: 1.18;
}

.dashboard-action-card p {
  margin: 0 0 18px;
  line-height: 1.65;
  color: #4d6978;
}

.dashboard-action-card .coming-label {
  margin-top: auto;
}

.dashboard-action-primary {
  background: linear-gradient(145deg, #0d2b3e 0%, #0f5665 100%);
  color: #ffffff;
}

.dashboard-action-primary h2,
.dashboard-action-primary p {
  color: #ffffff;
}

.dashboard-action-primary p {
  color: rgba(255,255,255,0.84);
}

.dashboard-action-primary .coming-label {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
}

.dashboard-card-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 22px;
  align-items: stretch;
}

.account-profile-v2 {
  margin-top: 0;
  padding: 30px;
}

.panel-head h2 {
  margin: 10px 0 0;
  font-size: 2rem;
}

.profile-grid-v2 {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid-v2 div {
  padding: 18px;
  min-height: 96px;
}

.dashboard-side-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.08);
  display: flex;
  flex-direction: column;
}

.dashboard-side-card h2 {
  margin: 10px 0 14px;
  font-size: 2rem;
  line-height: 1.15;
}

.dashboard-side-card p {
  margin: 0 0 22px;
  color: #4d6978;
  line-height: 1.7;
}

.dashboard-trustline {
  margin-top: auto;
  padding-top: 24px;
  color: #54707e;
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .dashboard-hero-card,
  .dashboard-progress-banner,
  .dashboard-lower-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .dashboard-hero-card,
  .dashboard-progress-banner,
  .account-profile-v2,
  .dashboard-side-card {
    padding: 22px;
    border-radius: 22px;
  }

  .dashboard-status-grid,
  .dashboard-action-grid,
  .profile-grid-v2 {
    grid-template-columns: 1fr;
  }

  .dashboard-hero-actions {
    flex-direction: column;
  }

  .dashboard-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-action-card {
    min-height: auto;
  }
}


/* =========================
   Shop V1 and order system
   ========================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
}

.portal-nav-link:hover,
.portal-nav-link.active {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
}

.portal-cart-link span {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #3cc7b0;
  color: #082534;
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-main {
  padding-top: 38px;
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 28px;
}

.shop-hero > div:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 30px;
  padding: 36px;
  box-shadow: 0 22px 60px rgba(10, 33, 48, 0.08);
}

.shop-hero h1,
.cart-page-head h1,
.orders-page-head h1,
.order-detail-head h1,
.submitted-card h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
}

.shop-hero p,
.cart-page-head p,
.orders-page-head p {
  color: #476473;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.shop-hero-note {
  background: #0d2b3e;
  border-radius: 30px;
  padding: 30px;
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(10, 33, 48, 0.12);
}

.shop-hero-note > strong {
  display: block;
  margin-bottom: 18px;
  font-size: 1.45rem;
}

.shop-hero-note > div {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.shop-hero-note p {
  color: rgba(255,255,255,0.8);
  margin: 10px 0 0;
  line-height: 1.55;
  font-size: 0.95rem;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.shop-badge-stable {
  background: rgba(31, 132, 107, 0.14);
  color: #1f846b;
}

.shop-hero-note .shop-badge-stable {
  background: rgba(72, 210, 181, 0.18);
  color: #d7fff7;
}

.shop-badge-daily {
  background: rgba(191, 125, 24, 0.14);
  color: #986311;
}

.shop-hero-note .shop-badge-daily {
  background: rgba(255, 205, 105, 0.18);
  color: #ffe0a0;
}

.shop-badge-review {
  background: rgba(15, 86, 101, 0.12);
  color: #0f5665;
}

.shop-hero-note .shop-badge-review {
  background: rgba(129, 217, 227, 0.18);
  color: #dcfbff;
}

.shop-category-bar,
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(10, 33, 48, 0.06);
  margin-bottom: 30px;
}

.shop-category-bar a,
.admin-filter-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  color: #23485a;
  background: #f4f8f9;
  border: 1px solid rgba(18, 48, 68, 0.08);
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}

.shop-category-bar a span {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e1edf0;
  color: #0f5665;
  font-size: 0.78rem;
  font-weight: 900;
}

.shop-category-bar a:hover,
.shop-category-bar a.active,
.admin-filter-bar a:hover,
.admin-filter-bar a.active {
  background: #0f5665;
  color: #ffffff;
  border-color: #0f5665;
  transform: translateY(-1px);
}

.shop-category-bar a.active span,
.shop-category-bar a:hover span {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.shop-category-section {
  margin-bottom: 34px;
}

.shop-category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.shop-category-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.55rem);
}

.shop-category-heading p {
  color: #54707e;
  margin: 0;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.shop-product-card {
  min-height: 350px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
  display: flex;
  flex-direction: column;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.product-card-top small {
  color: #6a8592;
  font-weight: 700;
}

.shop-product-card h3 {
  margin: 0 0 12px;
  font-size: 1.58rem;
  line-height: 1.18;
}

.shop-product-card p {
  margin: 0 0 16px;
  color: #4d6978;
  line-height: 1.68;
}

.product-unit {
  margin-top: auto;
  color: #54707e;
  font-size: 0.95rem;
  padding-top: 12px;
}

.product-unit strong {
  color: #123044;
}

.product-add-form {
  display: grid;
  grid-template-columns: minmax(0, 110px) auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.product-add-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: #23485a;
  font-size: 0.9rem;
}

.product-add-form input,
.cart-qty-field input,
.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.status-update-form select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18, 48, 68, 0.18);
  background: #ffffff;
  padding: 0 14px;
  font: inherit;
  color: #123044;
}

.checkout-form textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.product-add-form input:focus,
.cart-qty-field input:focus,
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus,
.status-update-form select:focus {
  outline: 2px solid rgba(15, 86, 101, 0.18);
  border-color: #0f5665;
}

.shop-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: #0d2b3e;
  color: #ffffff;
  border-radius: 28px;
  padding: 34px;
  margin-top: 12px;
  box-shadow: 0 22px 60px rgba(10, 33, 48, 0.12);
}

.shop-footer-cta h2 {
  color: #ffffff;
  margin: 10px 0 12px;
  font-size: clamp(1.8rem, 2.8vw, 2.7rem);
}

.shop-footer-cta p {
  color: rgba(255,255,255,0.82);
  margin: 0;
  line-height: 1.7;
  max-width: 840px;
}

.empty-state-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  padding: 34px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
}

.empty-state-card h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.empty-state-card p {
  margin: 0 0 22px;
  color: #54707e;
  line-height: 1.7;
}

.cart-layout,
.checkout-layout,
.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.cart-main-panel,
.checkout-form-panel,
.order-detail-main {
  min-width: 0;
}

.cart-page-head,
.orders-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.cart-table-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(170px, 0.7fr) minmax(150px, 0.55fr) minmax(90px, 0.25fr);
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(18, 48, 68, 0.08);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row-head {
  min-height: 60px;
  background: #f7fafb;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #54707e;
  font-size: .82rem;
  font-weight: 800;
}

.cart-row strong,
.cart-row small {
  display: block;
}

.cart-row small {
  color: #6a8592;
  margin-top: 6px;
}

.cart-qty-field {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.cart-qty-field small {
  margin: 0;
  white-space: nowrap;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.clear-cart-form {
  margin-top: 18px;
}

.cart-summary-panel,
.checkout-summary-panel,
.order-detail-sidebar {
  position: sticky;
  top: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.08);
}

.cart-summary-panel h2,
.checkout-summary-panel h2,
.order-detail-sidebar h2 {
  margin: 10px 0 14px;
  font-size: 2rem;
  line-height: 1.16;
}

.cart-summary-panel p,
.checkout-summary-panel p,
.order-detail-sidebar p {
  color: #54707e;
  line-height: 1.72;
}

.clean-check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.clean-check-list li {
  position: relative;
  padding-left: 28px;
  color: #254557;
  font-weight: 700;
}

.clean-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1f846b;
  font-weight: 900;
}

.checkout-form {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
}

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

.checkout-form .form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  margin-top: 18px;
}

.checkout-confirmation-box {
  margin-top: 22px;
  padding: 20px;
  background: #f3f8f9;
  border: 1px solid rgba(18, 48, 68, 0.1);
  border-radius: 20px;
}

.checkout-confirmation-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.checkout-confirmation-box p {
  margin: 0;
  color: #54707e;
  line-height: 1.7;
}

.checkout-submit-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.checkout-item-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.checkout-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 68, 0.1);
  background: #f7fafb;
}

.checkout-item strong,
.checkout-item span,
.checkout-item small {
  display: block;
}

.checkout-item span {
  margin-top: 7px;
  font-weight: 800;
  color: #123044;
}

.checkout-item small {
  margin-top: 7px;
  color: #54707e;
}

.checkout-edit-link {
  display: inline-block;
  margin-top: 22px;
}

.submitted-wrapper {
  max-width: 980px;
}

.submitted-card {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 24px 70px rgba(10, 33, 48, 0.09);
}

.submitted-mark {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1f846b;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 24px;
}

.submitted-card p {
  color: #476473;
  font-size: 1.06rem;
  line-height: 1.75;
  max-width: 800px;
}

.submitted-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.submitted-meta div,
.order-overview-card .order-meta-grid div {
  border-radius: 18px;
  border: 1px solid rgba(18, 48, 68, 0.1);
  background: #ffffff;
  padding: 18px;
}

.submitted-meta span,
.submitted-meta strong,
.order-meta-grid span,
.order-meta-grid strong {
  display: block;
}

.submitted-meta span,
.order-meta-grid span {
  color: #54707e;
  font-size: 0.86rem;
  margin-bottom: 7px;
}

.submitted-meta strong,
.order-meta-grid strong {
  color: #123044;
  line-height: 1.4;
}

.submitted-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.orders-page-head {
  margin-bottom: 28px;
}

.orders-list {
  display: grid;
  gap: 18px;
}

.order-list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
}

.order-list-card > div:first-child {
  flex: 1 1 auto;
}

.order-list-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.order-list-top h2 {
  margin: 0;
  font-size: 2rem;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.order-meta-grid > div {
  padding: 14px;
  border-radius: 16px;
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.08);
}

.order-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.order-overview-card,
.order-items-card,
.order-note-card,
.recent-orders-panel {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
}

.order-overview-card,
.order-items-card {
  margin-bottom: 20px;
}

.order-meta-grid-detail {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-items-card .panel-head h2 {
  margin: 0 0 20px;
  font-size: 2rem;
}

.order-items-list {
  display: grid;
  gap: 12px;
}

.order-item-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(100px, .28fr) minmax(160px, .35fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.08);
}

.order-item-row strong,
.order-item-row small {
  display: block;
}

.order-item-row small {
  color: #54707e;
  margin-top: 6px;
}

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

.order-note-card h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
}

.order-note-card p {
  margin: 0;
  color: #476473;
  line-height: 1.75;
}

.order-detail-sidebar .btn + .btn {
  margin-top: 12px;
}

.recent-orders-panel {
  margin-bottom: 24px;
}

.panel-head-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-head-split h2 {
  margin: 10px 0 0;
  font-size: 2rem;
}

.recent-orders-empty {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.08);
}

.recent-orders-empty p {
  margin: 0;
  color: #54707e;
}

.recent-orders-list {
  display: grid;
  gap: 12px;
}

.recent-order-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, .65fr) minmax(150px, .35fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.08);
}

.recent-order-row strong,
.recent-order-row small,
.recent-order-row span {
  display: block;
}

.recent-order-row small {
  margin-top: 6px;
  color: #54707e;
}

.dashboard-card-button {
  margin-top: auto;
  align-self: flex-start;
}

.dashboard-card-link {
  margin-top: auto;
}

.admin-orders-list {
  margin-top: 22px;
}

.admin-order-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-order-actions {
  flex: 0 0 auto;
}

.admin-order-detail-layout .order-detail-sidebar {
  top: 24px;
}

.admin-status-panel .status-update-form {
  margin: 20px 0 14px;
  display: grid;
  gap: 16px;
}

.metric-card-link {
  padding: 0;
}

.metric-card-link a {
  display: grid;
  gap: 8px;
  padding: 22px;
  min-height: 100%;
  text-decoration: none;
}

@media (max-width: 1160px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-layout,
  .checkout-layout,
  .order-detail-layout,
  .shop-hero {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel,
  .checkout-summary-panel,
  .order-detail-sidebar {
    position: static;
  }

  .order-meta-grid-detail,
  .submitted-meta,
  .admin-order-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .shop-category-heading,
  .cart-page-head,
  .orders-page-head,
  .shop-footer-cta,
  .order-list-card,
  .panel-head-split,
  .recent-orders-empty {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-product-grid,
  .checkout-form .form-grid,
  .order-meta-grid,
  .order-meta-grid-detail,
  .order-notes-grid,
  .submitted-meta,
  .admin-order-meta {
    grid-template-columns: 1fr;
  }

  .cart-row,
  .order-item-row,
  .recent-order-row {
    grid-template-columns: 1fr;
  }

  .cart-row-head {
    display: none;
  }

  .cart-actions,
  .checkout-submit-row {
    flex-direction: column;
  }

  .cart-actions .btn,
  .checkout-submit-row .btn,
  .submitted-actions .btn,
  .shop-footer-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .product-add-form {
    grid-template-columns: 1fr;
  }

  .shop-hero > div:first-child,
  .shop-hero-note,
  .shop-footer-cta,
  .submitted-card,
  .checkout-form,
  .cart-summary-panel,
  .checkout-summary-panel,
  .order-detail-sidebar,
  .order-overview-card,
  .order-items-card,
  .order-note-card,
  .recent-orders-panel {
    padding: 22px;
    border-radius: 22px;
  }
}

@media (max-width: 720px) {
  .account-nav-actions,
  .admin-nav-actions {
    width: 100%;
  }

  .portal-nav-link {
    width: 100%;
    justify-content: center;
  }
}


/* =========================
   Shop Gold Standard Navigation
   ========================= */

.shop-gold .shop-main {
  padding-top: 34px;
}

.shop-landing-main {
  padding-bottom: 76px;
}

.shop-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.shop-landing-copy,
.shop-landing-assurance,
.category-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 30px;
  box-shadow: 0 22px 60px rgba(10, 33, 48, 0.08);
}

.shop-landing-copy {
  padding: 38px;
}

.shop-landing-copy h1,
.category-hero h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.5rem, 4vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.shop-landing-copy p,
.category-hero p {
  max-width: 920px;
  color: #456271;
  font-size: 1.08rem;
  line-height: 1.78;
  margin: 0;
}

.shop-landing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.shop-landing-assurance {
  padding: 30px;
  background: #0d2b3e;
  color: #ffffff;
  display: grid;
  gap: 24px;
}

.shop-assurance-head {
  display: grid;
  gap: 8px;
}

.shop-assurance-head span {
  color: rgba(255,255,255,0.74);
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-assurance-head strong {
  color: #ffffff;
  font-size: 2.05rem;
  line-height: 1.12;
}

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

.shop-assurance-grid div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  display: grid;
  gap: 8px;
  align-content: start;
}

.shop-assurance-grid strong {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #3cc7b0;
  color: #082534;
  font-size: 1.15rem;
  font-weight: 900;
}

.shop-assurance-grid span {
  color: rgba(255,255,255,0.9);
  font-weight: 800;
  line-height: 1.35;
}

.shop-pricing-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(10, 33, 48, 0.06);
  margin-bottom: 34px;
}

.shop-pricing-strip > div {
  min-height: 64px;
  border: 1px solid rgba(18, 48, 68, 0.08);
  background: #f7fafb;
  border-radius: 18px;
  padding: 18px;
}

.shop-pricing-strip p {
  color: #4d6978;
  line-height: 1.6;
  margin: 12px 0 0;
  font-size: 0.95rem;
}

.shop-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 22px;
}

.shop-section-heading h2,
.category-product-heading h2,
.subcategory-sidebar-head h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.shop-section-heading p {
  max-width: 560px;
  color: #557180;
  line-height: 1.7;
  margin: 0;
}

.main-category-section {
  margin-bottom: 34px;
}

.main-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.main-category-card {
  min-height: 322px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.main-category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 86, 101, 0.34);
  box-shadow: 0 24px 68px rgba(10, 33, 48, 0.12);
}

.category-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.category-sequence {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #0d2b3e;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.category-open-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: #0f5665;
  background: rgba(15, 86, 101, 0.1);
  font-weight: 800;
  font-size: 0.9rem;
}

.main-category-card h3 {
  margin: 0 0 14px;
  color: #0d2b3e;
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.main-category-card p {
  color: #4d6978;
  line-height: 1.72;
  margin: 0 0 24px;
}

.category-card-meta {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f8f9;
  border: 1px solid rgba(18, 48, 68, 0.08);
  color: #355364;
  font-size: 0.92rem;
}

.category-card-meta strong {
  color: #0f5665;
  font-size: 1rem;
}

.shop-footer-cta-gold {
  margin-top: 30px;
}

.shop-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 18px;
  color: #577181;
  font-weight: 700;
}

.shop-breadcrumb a {
  color: #0f5665;
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  text-decoration: underline;
}

.shop-breadcrumb strong {
  color: #123044;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  margin-bottom: 26px;
}

.category-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.category-hero-meta span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(18, 48, 68, 0.1);
  background: #ffffff;
  color: #355364;
  font-size: 0.94rem;
  font-weight: 700;
}

.category-hero-meta strong {
  color: #0f5665;
}

.category-search {
  align-self: center;
  min-height: 100%;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 24px;
  background: #0d2b3e;
  color: #ffffff;
}

.category-search label {
  color: rgba(255,255,255,0.86);
  font-weight: 800;
  font-size: 0.95rem;
}

.category-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.category-search-row input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0 16px;
  color: #123044;
  font: inherit;
}

.category-search-row input:focus {
  outline: 2px solid rgba(60, 199, 176, 0.45);
}

.category-clear-search {
  color: #d8f5f0;
  justify-self: start;
}

.category-shop-layout {
  display: grid;
  grid-template-columns: minmax(286px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.subcategory-sidebar {
  position: sticky;
  top: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.07);
  padding: 24px;
}

.subcategory-sidebar-head {
  margin-bottom: 18px;
}

.subcategory-sidebar-head h2 {
  font-size: 2rem;
}

.subcategory-list {
  display: grid;
  gap: 10px;
}

.subcategory-list a {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(18, 48, 68, 0.1);
  color: #23485a;
  background: #f7fafb;
  font-weight: 800;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.subcategory-list a:hover,
.subcategory-list a.active {
  background: #0f5665;
  border-color: #0f5665;
  color: #ffffff;
  transform: translateX(2px);
}

.subcategory-list a span {
  line-height: 1.35;
}

.subcategory-list a strong {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #0f5665;
  background: rgba(15, 86, 101, 0.12);
  font-size: 0.88rem;
}

.subcategory-list a:hover strong,
.subcategory-list a.active strong {
  color: #ffffff;
  background: rgba(255,255,255,0.18);
}

.subcategory-cart-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: #f3f8f9;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.subcategory-cart-note strong {
  display: block;
  color: #0d2b3e;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.subcategory-cart-note p {
  margin: 0 0 16px;
  color: #506d7c;
  line-height: 1.62;
}

.category-product-panel {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.category-product-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 26px 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.06);
}

.category-product-heading h2 {
  font-size: clamp(1.9rem, 2.7vw, 2.65rem);
}

.category-product-heading p {
  margin: 12px 0 0;
  color: #557180;
  line-height: 1.65;
}

.category-product-group {
  display: grid;
  gap: 18px;
}

.product-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 4px;
}

.product-group-title h3 {
  margin: 0;
  color: #0d2b3e;
  font-size: 1.85rem;
  line-height: 1.16;
}

.product-group-title span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f8f9;
  color: #0f5665;
  font-weight: 800;
}

.category-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.category-product-card {
  min-height: 388px;
}

.product-card-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.product-card-meta-grid > div {
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(18, 48, 68, 0.08);
  background: #f7fafb;
  display: grid;
  gap: 4px;
  align-content: center;
}

.product-card-meta-grid span {
  color: #557180;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.product-card-meta-grid strong {
  color: #123044;
  font-size: 0.98rem;
}

.product-card-meta-grid .cooling-flag {
  background: rgba(37, 138, 176, 0.12);
  border-color: rgba(37, 138, 176, 0.2);
}

.product-card-meta-grid .cooling-flag strong {
  color: #16698d;
}

.empty-state-category {
  margin-bottom: 8px;
}

@media (max-width: 1180px) {
  .shop-landing-hero,
  .category-hero,
  .category-shop-layout {
    grid-template-columns: 1fr;
  }

  .subcategory-sidebar {
    position: static;
  }

  .subcategory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .shop-pricing-strip,
  .main-category-grid,
  .category-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-section-heading,
  .category-product-heading,
  .product-group-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .category-search-row {
    grid-template-columns: 1fr;
  }

  .category-search-row .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .shop-landing-copy,
  .shop-landing-assurance,
  .category-hero,
  .category-product-heading,
  .subcategory-sidebar {
    border-radius: 22px;
    padding: 22px;
  }

  .shop-assurance-grid,
  .subcategory-list {
    grid-template-columns: 1fr;
  }

  .shop-landing-actions,
  .category-hero-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-landing-actions .btn,
  .category-hero-meta span {
    width: 100%;
    justify-content: center;
  }

  .main-category-card {
    min-height: auto;
    padding: 22px;
    border-radius: 22px;
  }

  .category-card-meta {
    flex-direction: column;
  }

  .category-card-meta span {
    width: 100%;
    justify-content: center;
  }

  .category-product-card {
    min-height: auto;
  }
}


/* =========================
   Compact category sidebar and product cards with image placeholders
   ========================= */

.category-shop-layout {
  grid-template-columns: minmax(250px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
}

.subcategory-sidebar {
  position: sticky;
  top: 18px;
  max-height: none;
  overflow: visible;
  padding: 18px;
}

.subcategory-sidebar-head {
  margin-bottom: 12px;
}

.subcategory-sidebar-head h2 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.subcategory-list {
  gap: 6px;
}

.subcategory-list a {
  min-height: 38px;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.2;
}

.subcategory-list a span {
  line-height: 1.2;
}

.subcategory-list a strong {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.72rem;
}

.subcategory-cart-note {
  margin-top: 14px;
  padding: 13px;
  border-radius: 16px;
}

.subcategory-cart-note strong {
  font-size: 0.98rem;
  margin-bottom: 5px;
}

.subcategory-cart-note p {
  margin: 0 0 11px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.category-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.category-product-card.product-card-compact {
  min-height: 0;
  padding: 14px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}

.product-image-slot {
  position: relative;
  width: 100%;
  height: 118px;
  margin-bottom: 11px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(18, 48, 68, 0.12);
  background: linear-gradient(135deg, #f3f8f9 0%, #e9f1f3 100%);
}

.product-image-file {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  padding: 12px;
  color: #54707e;
}

.product-image-placeholder strong {
  color: #0f5665;
  font-size: 0.88rem;
}

.product-image-placeholder span {
  font-size: 0.72rem;
  line-height: 1.25;
  word-break: break-word;
}

.product-card-top-compact {
  margin-bottom: 9px;
  gap: 8px;
}

.product-card-top-compact small {
  font-size: 0.68rem;
  line-height: 1.15;
}

.category-product-card.product-card-compact h3 {
  margin: 0 0 7px;
  font-size: 1.16rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.category-product-card.product-card-compact p {
  margin: 0 0 10px;
  font-size: 0.79rem;
  line-height: 1.45;
  color: #506d7c;
  min-height: 34px;
}

.product-card-bottom {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.product-card-meta-grid-compact {
  gap: 7px;
  padding-top: 0;
}

.product-card-meta-grid-compact > div {
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 12px;
}

.product-card-meta-grid-compact span {
  font-size: 0.62rem;
}

.product-card-meta-grid-compact strong {
  font-size: 0.82rem;
}

.product-add-form-compact {
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  margin-top: 0;
}

.product-add-form-compact label {
  gap: 4px;
  font-size: 0.7rem;
}

.product-add-form-compact input {
  min-height: 38px;
  border-radius: 11px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.product-add-form-compact .btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  justify-content: center;
}

.shop-badge {
  min-height: 25px;
  padding: 3px 9px;
  font-size: 0.68rem;
}

.product-group-title h3 {
  font-size: 1.55rem;
}

.product-group-title span {
  min-height: 32px;
  font-size: 0.78rem;
}

@media (max-width: 1260px) {
  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .category-shop-layout {
    grid-template-columns: 1fr;
  }

  .subcategory-sidebar {
    position: static;
  }

  .subcategory-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .category-product-grid,
  .subcategory-list {
    grid-template-columns: 1fr;
  }

  .product-image-slot {
    height: 150px;
  }
}


/* =========================
   Invoices & Documents Module
   ========================= */

.documents-main,
.documents-admin-main {
  padding-top: 38px;
}

.documents-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.documents-hero > div:first-child,
.documents-summary-card,
.admin-upload-intro,
.document-upload-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.07);
}

.documents-hero > div:first-child {
  padding: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
}

.documents-hero h1,
.admin-upload-intro h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.25rem, 3.5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.documents-hero p,
.admin-upload-intro p {
  max-width: 820px;
  margin: 0;
  color: #496675;
  font-size: 1.06rem;
  line-height: 1.75;
}

.documents-summary-card {
  padding: 30px;
  background: #0d2b3e;
  color: #ffffff;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
}

.documents-summary-card span {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.documents-summary-card strong {
  color: #ffffff;
  font-size: clamp(3rem, 5vw, 4.7rem);
  line-height: 1;
}

.documents-summary-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

.document-filter-bar,
.admin-document-filters {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 14px 40px rgba(10, 33, 48, 0.06);
  margin-bottom: 26px;
}

.document-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-filter-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: #f4f8f9;
  border: 1px solid rgba(18, 48, 68, 0.08);
  color: #23485a;
  text-decoration: none;
  font-weight: 800;
}

.document-filter-bar a span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #e1edf0;
  color: #0f5665;
  font-size: 0.76rem;
}

.document-filter-bar a:hover,
.document-filter-bar a.active {
  background: #0f5665;
  border-color: #0f5665;
  color: #ffffff;
}

.document-filter-bar a:hover span,
.document-filter-bar a.active span {
  color: #ffffff;
  background: rgba(255,255,255,0.18);
}

.customer-document-grid {
  display: grid;
  gap: 18px;
}

.customer-document-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(10, 33, 48, 0.06);
}

.document-file-mark {
  width: 76px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, #0d2b3e 0%, #0f5665 100%);
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.document-file-mark-small {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 0.82rem;
}

.document-card-content {
  min-width: 0;
}

.document-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.document-card-top small {
  color: #647f8d;
  font-weight: 700;
}

.document-type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}

.document-type-invoice {
  background: rgba(31, 132, 107, 0.12);
  color: #1f846b;
}

.document-type-delivery {
  background: rgba(15, 86, 101, 0.12);
  color: #0f5665;
}

.document-type-summary {
  background: rgba(191, 125, 24, 0.14);
  color: #986311;
}

.document-type-other {
  background: rgba(93, 108, 120, 0.13);
  color: #4e626f;
}

.customer-document-card h2 {
  margin: 0 0 12px;
  color: #0d2b3e;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.18;
}

.document-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.document-meta-list div {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 999px;
  background: #f4f8f9;
  border: 1px solid rgba(18, 48, 68, 0.08);
}

.document-meta-list dt {
  color: #617b89;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.document-meta-list dd {
  margin: 0;
  color: #123044;
  font-weight: 800;
}

.document-note {
  margin: 13px 0 0;
  color: #4f6b79;
  line-height: 1.65;
}

.document-download-btn {
  min-width: 132px;
  justify-content: center;
}

.document-empty-state {
  margin-top: 6px;
}

.documents-admin-hero {
  margin-bottom: 24px;
}

.admin-document-filters form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-document-filters .form-field {
  min-width: 240px;
  flex: 1 1 240px;
}

.admin-document-filters select,
.document-upload-form input,
.document-upload-form select,
.document-upload-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(18, 48, 68, 0.18);
  color: #123044;
  background: #ffffff;
  font: inherit;
}

.admin-document-filters select,
.document-upload-form input,
.document-upload-form select {
  min-height: 50px;
  padding: 0 14px;
}

.document-upload-form textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
}

.admin-documents-table-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.08);
}

.admin-documents-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.admin-documents-table th,
.admin-documents-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(18, 48, 68, 0.08);
}

.admin-documents-table th {
  background: #f8fbfc;
  color: #54707e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.admin-documents-table td small {
  display: block;
  margin-top: 6px;
  color: #627d8a;
  line-height: 1.4;
}

.admin-doc-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-doc-title strong {
  display: block;
  margin-bottom: 9px;
  color: #123044;
}

.admin-document-actions {
  display: grid;
  gap: 8px;
}

.text-button-danger {
  color: #a33d3d;
}

.admin-upload-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(560px, 1.28fr);
  gap: 28px;
  align-items: start;
}

.admin-upload-intro {
  position: sticky;
  top: 24px;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
}

.admin-upload-intro .btn {
  margin-top: 22px;
}

.document-upload-card {
  padding: 30px;
}

.document-upload-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.document-upload-form .form-field {
  display: grid;
  gap: 8px;
}

.document-upload-form .form-field-full {
  grid-column: 1 / -1;
}

.document-upload-form input[type="file"] {
  padding: 12px 14px;
  min-height: 54px;
}

.document-visible-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: #f3f8f9;
  border: 1px solid rgba(18, 48, 68, 0.1);
  color: #23485a;
  font-weight: 800;
}

.document-visible-checkbox input {
  width: 20px;
  height: 20px;
  min-height: 20px;
}

.metric-grid-admin-shop {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .documents-hero,
  .admin-upload-layout {
    grid-template-columns: 1fr;
  }

  .admin-upload-intro {
    position: static;
  }

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

@media (max-width: 860px) {
  .customer-document-card {
    grid-template-columns: 1fr;
  }

  .document-download-btn {
    width: 100%;
    justify-content: center;
  }

  .document-upload-form .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .documents-hero > div:first-child,
  .documents-summary-card,
  .admin-upload-intro,
  .document-upload-card,
  .customer-document-card {
    padding: 22px;
    border-radius: 22px;
  }

  .document-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-filter-bar a {
    justify-content: space-between;
  }

  .admin-document-filters form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-document-filters .form-field {
    min-width: 0;
  }
}


/* =========================
   Customer document email link highlight
   ========================= */

.customer-document-card-highlight {
  border-color: rgba(15, 86, 101, 0.55);
  box-shadow: 0 22px 60px rgba(15, 86, 101, 0.18);
  position: relative;
}

.customer-document-card-highlight::before {
  content: "New document";
  position: absolute;
  top: -12px;
  right: 22px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #0f5665;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* =========================
   Ferry option checkout
   ========================= */

.ferry-option-checkout {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  background: #f7fafb;
}

.ferry-option-head {
  margin-bottom: 18px;
}

.ferry-option-head label {
  display: block;
  margin-bottom: 8px;
  color: #123044;
  font-weight: 900;
  font-size: 1.15rem;
}

.ferry-option-head p {
  margin: 0;
  max-width: 920px;
  color: #54707e;
  line-height: 1.68;
}

.ferry-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ferry-option-card {
  position: relative;
  min-height: 184px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(18, 48, 68, 0.14);
  background: #ffffff;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ferry-option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 86, 101, 0.42);
  box-shadow: 0 18px 40px rgba(10, 33, 48, 0.08);
}

.ferry-option-card input {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  accent-color: #0f5665;
}

.ferry-option-card:has(input:checked) {
  border-color: #0f5665;
  box-shadow: 0 20px 48px rgba(15, 86, 101, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #eff8f9 100%);
}

.ferry-option-title {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(15, 86, 101, 0.12);
  color: #0f5665;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ferry-option-card strong {
  display: block;
  padding-right: 28px;
  color: #0d2b3e;
  font-size: 1.28rem;
  line-height: 1.22;
}

.ferry-option-card small {
  display: block;
  color: #54707e;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ferry-option-card-recommend .ferry-option-title {
  background: rgba(31, 132, 107, 0.13);
  color: #1f846b;
}

.submitted-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1080px) {
  .ferry-option-grid {
    grid-template-columns: 1fr;
  }

  .ferry-option-card {
    min-height: auto;
  }

  .submitted-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ferry-option-checkout {
    padding: 18px;
    border-radius: 20px;
  }

  .submitted-meta {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Delivery & Ferry Handling Module
   ========================= */

.delivery-main,
.delivery-admin-main {
  padding-top: 38px;
}

.delivery-hero,
.delivery-management-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.delivery-hero > div:first-child,
.delivery-hero-summary,
.delivery-management-hero,
.delivery-management-overview,
.delivery-order-card,
.admin-delivery-card,
.order-delivery-panel,
.delivery-management-form-card,
.delivery-side-card {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.07);
}

.delivery-hero > div:first-child {
  padding: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
}

.delivery-hero h1,
.delivery-admin-hero h1,
.delivery-management-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.25rem, 3.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.delivery-hero p,
.delivery-admin-hero p,
.delivery-management-hero p {
  margin: 0;
  color: #496675;
  font-size: 1.05rem;
  line-height: 1.75;
}

.delivery-hero-summary {
  padding: 26px;
  background: #0d2b3e;
  color: #ffffff;
  display: grid;
  gap: 14px;
  align-content: center;
}

.delivery-hero-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.08);
}

.delivery-hero-summary span {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.delivery-hero-summary strong {
  color: #ffffff;
  font-size: 2.35rem;
  line-height: 1;
}

.delivery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  box-shadow: 0 14px 40px rgba(10, 33, 48, 0.06);
}

.delivery-filter-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  text-decoration: none;
  background: #f4f8f9;
  border: 1px solid rgba(18, 48, 68, 0.08);
  color: #23485a;
  font-weight: 800;
}

.delivery-filter-bar a span {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  color: #0f5665;
  background: #e1edf0;
  font-size: 0.76rem;
}

.delivery-filter-bar a:hover,
.delivery-filter-bar a.active {
  background: #0f5665;
  border-color: #0f5665;
  color: #ffffff;
}

.delivery-filter-bar a:hover span,
.delivery-filter-bar a.active span {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.delivery-order-list,
.admin-delivery-grid {
  display: grid;
  gap: 22px;
}

.delivery-order-card {
  padding: 28px;
}

.delivery-order-card-head,
.admin-delivery-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.delivery-order-reference,
.admin-delivery-reference {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.delivery-order-reference h2,
.admin-delivery-reference h2 {
  margin: 0;
  color: #0d2b3e;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.14;
}

.delivery-order-card-head p,
.admin-delivery-card-head p {
  margin: 0;
  color: #54707e;
  line-height: 1.65;
}

.delivery-overview-grid,
.admin-delivery-meta-grid,
.delivery-management-overview,
.order-delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.delivery-overview-grid > div,
.admin-delivery-meta-grid > div,
.delivery-management-overview > div,
.order-delivery-grid > div {
  min-height: 94px;
  padding: 16px;
  border-radius: 18px;
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.08);
}

.delivery-overview-grid span,
.admin-delivery-meta-grid span,
.delivery-management-overview span,
.order-delivery-grid span {
  display: block;
  margin-bottom: 8px;
  color: #617b89;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.delivery-overview-grid strong,
.admin-delivery-meta-grid strong,
.delivery-management-overview strong,
.order-delivery-grid strong {
  display: block;
  color: #123044;
  font-size: 1.05rem;
  line-height: 1.4;
}

.delivery-handling-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.delivery-handling-panel,
.delivery-progress-panel,
.delivery-customer-update {
  border-radius: 22px;
  border: 1px solid rgba(18, 48, 68, 0.1);
  background: #ffffff;
  padding: 22px;
}

.delivery-handling-panel h3,
.delivery-progress-panel h3,
.delivery-customer-update h3,
.order-delivery-note strong,
.delivery-side-card h2 {
  margin: 0 0 16px;
  color: #0d2b3e;
  font-size: 1.35rem;
  line-height: 1.25;
}

.delivery-handling-panel dl,
.delivery-side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.delivery-handling-panel dl div,
.delivery-side-card dl div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(18, 48, 68, 0.08);
}

.delivery-handling-panel dl div:last-child,
.delivery-side-card dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.delivery-handling-panel dt,
.delivery-side-card dt {
  color: #617b89;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.delivery-handling-panel dd,
.delivery-side-card dd {
  margin: 0;
  color: #123044;
  font-weight: 800;
  line-height: 1.5;
}

.delivery-chip-stack,
.admin-delivery-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.delivery-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.delivery-chip-positive {
  background: rgba(31, 132, 107, 0.13);
  color: #1f846b;
}

.delivery-chip-active {
  background: rgba(15, 86, 101, 0.13);
  color: #0f5665;
}

.delivery-chip-warning {
  background: rgba(191, 125, 24, 0.15);
  color: #986311;
}

.delivery-chip-muted {
  background: rgba(93, 108, 120, 0.13);
  color: #4e626f;
}

.delivery-last-update {
  margin: 18px 0 0;
  color: #54707e;
  line-height: 1.6;
}

.delivery-progress-panel {
  margin-top: 18px;
}

.delivery-progress-steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.delivery-progress-step {
  min-height: 58px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(18, 48, 68, 0.08);
  background: #f7fafb;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.delivery-progress-step span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #dfe9ed;
  border: 2px solid rgba(18, 48, 68, 0.14);
}

.delivery-progress-step strong {
  color: #567180;
  font-size: 0.74rem;
  line-height: 1.3;
}

.delivery-step-complete {
  background: rgba(31, 132, 107, 0.08);
  border-color: rgba(31, 132, 107, 0.2);
}

.delivery-step-complete span {
  background: #1f846b;
  border-color: #1f846b;
}

.delivery-step-complete strong {
  color: #1f846b;
}

.delivery-step-current {
  background: rgba(15, 86, 101, 0.1);
  border-color: rgba(15, 86, 101, 0.28);
}

.delivery-step-current span {
  background: #0f5665;
  border-color: #0f5665;
  box-shadow: 0 0 0 6px rgba(15, 86, 101, 0.12);
}

.delivery-step-current strong {
  color: #0f5665;
}

.delivery-step-cancelled {
  background: rgba(163, 61, 61, 0.08);
  border-color: rgba(163, 61, 61, 0.2);
}

.delivery-step-cancelled span {
  background: #a33d3d;
  border-color: #a33d3d;
}

.delivery-step-cancelled strong {
  color: #a33d3d;
}

.delivery-customer-update {
  margin-top: 18px;
  background: linear-gradient(135deg, #f3f8f9 0%, #ffffff 100%);
}

.delivery-customer-update p,
.order-delivery-note p {
  margin: 0;
  color: #456271;
  line-height: 1.75;
}

.delivery-empty-state {
  margin-top: 8px;
}

.delivery-admin-hero {
  margin-bottom: 24px;
}

.admin-delivery-card {
  padding: 24px;
}

.admin-delivery-card-foot {
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 48, 68, 0.08);
}

.admin-delivery-card-foot small {
  margin-left: auto;
  color: #627d8a;
  font-weight: 700;
}

.delivery-management-hero {
  align-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
}

.delivery-management-hero p {
  font-size: 1rem;
}

.delivery-management-status {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.delivery-management-overview {
  margin-bottom: 24px;
  padding: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.delivery-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(340px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.delivery-management-form-card {
  padding: 30px;
}

.delivery-management-form-card .panel-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.85rem, 2.4vw, 2.55rem);
}

.delivery-management-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.delivery-management-form .form-field {
  display: grid;
  gap: 8px;
}

.delivery-management-form .form-field-full {
  grid-column: 1 / -1;
}

.delivery-management-form input,
.delivery-management-form select,
.delivery-management-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(18, 48, 68, 0.18);
  background: #ffffff;
  color: #123044;
  font: inherit;
}

.delivery-management-form input,
.delivery-management-form select {
  min-height: 50px;
  padding: 0 14px;
}

.delivery-management-form textarea {
  min-height: 128px;
  padding: 14px;
  resize: vertical;
}

.delivery-management-side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}

.delivery-side-card {
  padding: 24px;
}

.order-delivery-panel {
  padding: 28px;
  margin-bottom: 20px;
}

.order-delivery-panel .panel-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 2.3vw, 2.4rem);
}

.order-delivery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.order-delivery-note {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f3f8f9;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.order-delivery-note strong {
  display: block;
  font-size: 1.15rem;
}

.order-delivery-note-internal {
  background: rgba(191, 125, 24, 0.09);
  border-color: rgba(191, 125, 24, 0.18);
}

.metric-grid-admin-shop {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .delivery-progress-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .delivery-overview-grid,
  .admin-delivery-meta-grid,
  .delivery-management-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid-admin-shop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .delivery-hero,
  .delivery-management-hero,
  .delivery-management-layout {
    grid-template-columns: 1fr;
  }

  .delivery-handling-grid {
    grid-template-columns: 1fr;
  }

  .delivery-management-status {
    justify-items: start;
  }

  .delivery-management-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .delivery-order-card-head,
  .admin-delivery-card-head {
    flex-direction: column;
  }

  .delivery-overview-grid,
  .admin-delivery-meta-grid,
  .delivery-management-overview,
  .order-delivery-grid,
  .delivery-management-form .form-grid {
    grid-template-columns: 1fr;
  }

  .delivery-progress-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .delivery-hero > div:first-child,
  .delivery-hero-summary,
  .delivery-order-card,
  .admin-delivery-card,
  .delivery-management-hero,
  .delivery-management-overview,
  .delivery-management-form-card,
  .delivery-side-card,
  .order-delivery-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .delivery-filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .delivery-filter-bar a {
    justify-content: space-between;
  }

  .delivery-handling-panel dl div,
  .delivery-side-card dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* =========================
   Rewards Points Earning Module
   ========================= */

.rewards-main {
  padding-top: 38px;
}

.rewards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.rewards-hero > div:first-child,
.rewards-balance-card,
.rewards-latest-invoice,
.rewards-how-it-works,
.rewards-history-panel {
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.07);
}

.rewards-hero > div:first-child {
  padding: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f8f9 100%);
}

.rewards-hero h1,
.rewards-how-it-works h2,
.rewards-history-panel h2 {
  margin: 10px 0 14px;
  font-size: clamp(2.15rem, 3.4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.rewards-hero p,
.rewards-how-it-works > div:first-child p {
  max-width: 850px;
  margin: 0;
  color: #496675;
  font-size: 1.05rem;
  line-height: 1.75;
}

.rewards-balance-card {
  padding: 30px;
  background: #0d2b3e;
  color: #ffffff;
  display: grid;
  align-content: center;
  gap: 10px;
}

.rewards-balance-card span {
  color: rgba(255,255,255,0.76);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rewards-balance-card strong {
  display: block;
  color: #ffffff;
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.rewards-balance-card p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  line-height: 1.55;
}

.rewards-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.rewards-summary-grid article {
  min-height: 128px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(10, 33, 48, 0.06);
}

.rewards-summary-grid span {
  display: block;
  margin-bottom: 12px;
  color: #617b89;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rewards-summary-grid strong {
  display: block;
  color: #123044;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1.25;
}

.rewards-latest-invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f9 100%);
}

.rewards-latest-invoice h2 {
  margin: 10px 0 10px;
  color: #0d2b3e;
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  line-height: 1.18;
}

.rewards-latest-invoice p {
  margin: 0;
  color: #496675;
  line-height: 1.7;
}

.rewards-how-it-works {
  padding: 30px;
  margin-bottom: 24px;
}

.rewards-how-it-works h2 {
  max-width: 960px;
  margin-bottom: 24px;
  font-size: clamp(1.95rem, 2.8vw, 2.95rem);
}

.rewards-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rewards-how-grid article {
  min-height: 218px;
  padding: 22px;
  border: 1px solid rgba(18, 48, 68, 0.1);
  border-radius: 22px;
  background: #f7fafb;
}

.rewards-how-grid strong {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #0f5665;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

.rewards-how-grid h3 {
  margin: 0 0 10px;
  color: #0d2b3e;
  font-size: 1.28rem;
  line-height: 1.25;
}

.rewards-how-grid p {
  margin: 0;
  color: #54707e;
  line-height: 1.68;
}

.rewards-history-panel {
  padding: 30px;
}

.rewards-history-panel .panel-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.95rem, 2.8vw, 2.85rem);
}

.rewards-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid rgba(18, 48, 68, 0.1);
  border-radius: 22px;
}

.rewards-history-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #ffffff;
}

.rewards-history-table th,
.rewards-history-table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(18, 48, 68, 0.08);
}

.rewards-history-table th {
  background: #f7fafb;
  color: #617b89;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.rewards-history-table tr:last-child td {
  border-bottom: 0;
}

.rewards-history-table td {
  color: #123044;
  line-height: 1.55;
}

.rewards-history-table td small {
  display: block;
  margin-top: 4px;
  color: #617b89;
}

.reward-transaction-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.reward-transaction-positive {
  background: rgba(31, 132, 107, 0.13);
  color: #1f846b;
}

.reward-transaction-negative {
  background: rgba(163, 61, 61, 0.12);
  color: #a33d3d;
}

.reward-transaction-neutral {
  background: rgba(93, 108, 120, 0.13);
  color: #4e626f;
}

.reward-points-plus {
  color: #1f846b;
  font-size: 1.2rem;
  font-weight: 900;
}

.reward-points-minus {
  color: #a33d3d;
  font-size: 1.2rem;
  font-weight: 900;
}

.rewards-empty-state {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background: #f7fafb;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.rewards-empty-state h3 {
  margin: 0 0 10px;
  color: #0d2b3e;
  font-size: 1.45rem;
}

.rewards-empty-state p {
  margin: 0;
  color: #54707e;
  line-height: 1.68;
}

.dashboard-rewards-card strong {
  color: #0f5665;
}

.rewards-invoice-field {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 86, 101, 0.2);
  background: #f3f8f9;
}

.reward-points-preview {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.reward-points-preview span,
.reward-points-preview small {
  color: #617b89;
  line-height: 1.5;
}

.reward-points-preview strong {
  color: #0f5665;
  font-size: 1.8rem;
  line-height: 1.12;
}

.document-reward-meta {
  border-color: rgba(31, 132, 107, 0.2) !important;
  background: rgba(31, 132, 107, 0.08) !important;
}

.document-reward-meta dd {
  color: #1f846b !important;
}

@media (max-width: 1180px) {
  .rewards-hero {
    grid-template-columns: 1fr;
  }

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

  .rewards-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .rewards-latest-invoice {
    flex-direction: column;
    align-items: flex-start;
  }

  .rewards-how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rewards-hero > div:first-child,
  .rewards-balance-card,
  .rewards-latest-invoice,
  .rewards-how-it-works,
  .rewards-history-panel {
    padding: 22px;
    border-radius: 22px;
  }
}


/* =========================
   New Documents Header Signal
   ========================= */

.documents-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.documents-new-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
  animation: documentsBadgePulse 1.7s ease-in-out infinite;
}

@keyframes documentsBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.08);
  }
}

.dashboard-documents-card {
  position: relative;
}

.dashboard-documents-card-alert {
  border-color: rgba(245, 158, 11, 0.48);
  background: linear-gradient(135deg, #ffffff 0%, #fff7e7 100%);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.15);
}

.dashboard-card-alert-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-documents-card-alert h2 {
  padding-right: 90px;
}

.dashboard-documents-card-alert p strong {
  color: #b45309;
}

.customer-document-card-unseen {
  border-color: rgba(245, 158, 11, 0.52);
  background: linear-gradient(135deg, #ffffff 0%, #fff8ea 100%);
  box-shadow: 0 22px 60px rgba(245, 158, 11, 0.14);
}

.document-new-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .documents-nav-link {
    flex-wrap: wrap;
  }

  .dashboard-card-alert-badge {
    position: static;
    margin-bottom: 14px;
  }

  .dashboard-documents-card-alert h2 {
    padding-right: 0;
  }
}


/* =========================
   Rewards Phase 2 Checkout Reservation
   ========================= */

.reward-redemption-checkout {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(18, 48, 68, 0.12);
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f9 100%);
}

.reward-redemption-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.38fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 20px;
}

.reward-redemption-head label {
  display: block;
  margin-bottom: 8px;
  color: #123044;
  font-size: 1.22rem;
  font-weight: 900;
}

.reward-redemption-head p {
  margin: 0;
  color: #54707e;
  line-height: 1.7;
}

.reward-balance-mini-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-radius: 20px;
  background: #0d2b3e;
  color: #ffffff;
}

.reward-balance-mini-card span {
  color: rgba(255,255,255,0.74);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reward-balance-mini-card strong {
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.2;
}

.reward-balance-mini-card small {
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}

.reward-use-toggle {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(15, 86, 101, 0.1);
  border: 1px solid rgba(15, 86, 101, 0.2);
  color: #0f5665;
  font-weight: 900;
  cursor: pointer;
}

.reward-use-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #0f5665;
}

.reward-redemption-input-wrap {
  display: none;
  grid-template-columns: minmax(240px, 0.48fr) minmax(0, 0.52fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.reward-redemption-input-wrap.is-active {
  display: grid;
}

.reward-redemption-input-wrap .form-field {
  align-content: start;
}

.reward-redemption-input-wrap input {
  min-height: 54px;
  border-radius: 15px;
  border: 1px solid rgba(18, 48, 68, 0.18);
  padding: 0 15px;
  background: #ffffff;
  color: #123044;
  font: inherit;
}

.reward-redemption-preview {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(31, 132, 107, 0.08);
  border: 1px solid rgba(31, 132, 107, 0.18);
}

.reward-redemption-preview span {
  color: #51707c;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reward-redemption-preview strong {
  color: #1f846b;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.12;
}

.reward-redemption-preview small {
  color: #456271;
  line-height: 1.55;
}

.reward-empty-checkout {
  padding: 20px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.reward-empty-checkout strong {
  display: block;
  margin-bottom: 7px;
  color: #123044;
  font-size: 1.1rem;
}

.reward-empty-checkout p {
  margin: 0;
  color: #54707e;
  line-height: 1.6;
}

.order-rewards-panel {
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8f9 100%);
  border: 1px solid rgba(31, 132, 107, 0.2);
  box-shadow: 0 18px 50px rgba(10, 33, 48, 0.07);
}

.order-rewards-panel .panel-head h2 {
  margin: 10px 0 0;
  color: #0d2b3e;
  font-size: clamp(1.8rem, 2.3vw, 2.45rem);
}

.order-rewards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.order-rewards-grid > div {
  min-height: 94px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.order-rewards-grid span {
  display: block;
  margin-bottom: 8px;
  color: #617b89;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-rewards-grid strong {
  display: block;
  color: #123044;
  font-size: 1.08rem;
  line-height: 1.45;
}

.order-rewards-note {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(31, 132, 107, 0.08);
  border: 1px solid rgba(31, 132, 107, 0.15);
  color: #456271;
  line-height: 1.7;
}

.reward-redemption-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.reward-redemption-reserved {
  background: rgba(191, 125, 24, 0.14);
  color: #986311;
}

.reward-redemption-applied {
  background: rgba(31, 132, 107, 0.13);
  color: #1f846b;
}

.reward-redemption-adjusted {
  background: rgba(15, 86, 101, 0.13);
  color: #0f5665;
}

.reward-redemption-cancelled {
  background: rgba(163, 61, 61, 0.12);
  color: #a33d3d;
}

.reward-redemption-none {
  background: rgba(93, 108, 120, 0.13);
  color: #4e626f;
}

.submitted-rewards-note {
  margin: 22px 0 0;
  padding: 20px;
  border-radius: 20px;
  background: rgba(31, 132, 107, 0.08);
  border: 1px solid rgba(31, 132, 107, 0.16);
  text-align: left;
}

.submitted-rewards-note strong {
  display: block;
  margin-bottom: 8px;
  color: #1f846b;
  font-size: 1.15rem;
}

.submitted-rewards-note p {
  margin: 0;
  color: #456271;
  line-height: 1.68;
}

@media (max-width: 1080px) {
  .reward-redemption-head,
  .reward-redemption-input-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .reward-redemption-checkout,
  .order-rewards-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .reward-use-toggle {
    min-height: 54px;
    width: 100%;
    justify-content: center;
    border-radius: 18px;
  }
}


/* =========================
   Rewards Phase 3 Invoice Redemption
   ========================= */

.invoice-redemption-admin-panel {
  margin-top: 4px;
  padding: 24px;
  border: 1px solid rgba(31, 132, 107, 0.22);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f8f6 100%);
}

.invoice-redemption-admin-head {
  margin-bottom: 20px;
}

.invoice-redemption-admin-head h2 {
  margin: 10px 0 10px;
  color: #0d2b3e;
  font-size: clamp(1.65rem, 2.3vw, 2.35rem);
  line-height: 1.18;
}

.invoice-redemption-admin-head p {
  margin: 0;
  max-width: 920px;
  color: #54707e;
  line-height: 1.72;
}

.invoice-redemption-admin-grid {
  margin-top: 0 !important;
}

.invoice-redemption-admin-grid .form-help {
  display: block;
  margin-top: 7px;
  color: #617b89;
  font-size: 0.86rem;
  line-height: 1.5;
}

.invoice-redemption-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.invoice-redemption-preview > div {
  min-height: 102px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 68, 0.1);
}

.invoice-redemption-preview span {
  display: block;
  margin-bottom: 9px;
  color: #617b89;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invoice-redemption-preview strong {
  display: block;
  color: #123044;
  font-size: 1.08rem;
  line-height: 1.45;
}

.invoice-redemption-preview > div:last-child strong {
  color: #1f846b;
  font-size: 1.45rem;
}

.invoice-redemption-empty {
  margin-top: 8px;
}

.document-loyalty-credit-meta {
  border-color: rgba(15, 86, 101, 0.24) !important;
  background: rgba(15, 86, 101, 0.08) !important;
}

.document-loyalty-credit-meta dd {
  color: #0f5665 !important;
}

.order-rewards-grid-phase3 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1280px) {
  .order-rewards-grid-phase3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .invoice-redemption-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .invoice-redemption-admin-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .order-rewards-grid-phase3 {
    grid-template-columns: 1fr;
  }
}


/* =========================
   Delivery Phase 2 Notifications
   ========================= */

.delivery-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.delivery-new-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
  animation: deliveryBadgePulse 1.7s ease-in-out infinite;
}

@keyframes deliveryBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 7px rgba(15, 118, 110, 0.08);
  }
}

.dashboard-delivery-card {
  position: relative;
}

.dashboard-delivery-card-alert {
  border-color: rgba(15, 118, 110, 0.48);
  background: linear-gradient(135deg, #ffffff 0%, #ebf8f6 100%);
  box-shadow: 0 24px 60px rgba(15, 118, 110, 0.15);
}

.dashboard-card-delivery-alert-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.76rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-delivery-card-alert h2 {
  padding-right: 90px;
}

.dashboard-delivery-card-alert p strong {
  color: #0f766e;
}

.delivery-order-card {
  scroll-margin-top: 28px;
}

.delivery-order-card-unseen {
  border-color: rgba(15, 118, 110, 0.52);
  background: linear-gradient(135deg, #ffffff 0%, #edf9f7 100%);
  box-shadow: 0 22px 60px rgba(15, 118, 110, 0.14);
}

.delivery-order-card-focus {
  border-color: rgba(15, 86, 101, 0.68);
  box-shadow: 0 24px 64px rgba(15, 86, 101, 0.2);
}

.delivery-update-new-chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 820px) {
  .delivery-nav-link {
    flex-wrap: wrap;
  }

  .dashboard-card-delivery-alert-badge {
    position: static;
    margin-bottom: 14px;
  }

  .dashboard-delivery-card-alert h2 {
    padding-right: 0;
  }
}


/* Admin order detail without duplicate status sidebar */
.admin-order-detail-single-layout {
  grid-template-columns: 1fr;
}

.admin-order-detail-single-layout .order-detail-main {
  width: 100%;
  max-width: none;
}


/* =========================
   Mentawai Supply Logo Integration
   ========================= */

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-logo-image {
  display: block;
  width: auto;
  height: 104px;
  max-width: 340px;
  object-fit: contain;
}

.site-header .navbar {
  min-height: 132px;
}

.site-header .brand-logo-image {
  height: 112px;
  max-width: 360px;
}

.account-header .account-nav,
.shop-header .account-nav {
  min-height: 138px;
}

.account-header .brand-logo-image,
.shop-header .brand-logo-image {
  height: 118px;
  max-width: 380px;
}

.portal-logo-image {
  display: block;
  width: min(330px, 100%);
  height: auto;
  margin: 0 auto 24px;
}

@media (max-width: 1180px) {
  .brand-logo-image {
    height: 88px;
    max-width: 290px;
  }

  .site-header .navbar {
    min-height: 116px;
  }

  .site-header .brand-logo-image {
    height: 94px;
    max-width: 315px;
  }

  .account-header .account-nav,
  .shop-header .account-nav {
    min-height: 122px;
  }

  .account-header .brand-logo-image,
  .shop-header .brand-logo-image {
    height: 98px;
    max-width: 325px;
  }
}

@media (max-width: 860px) {
  .site-header .navbar {
    min-height: 102px;
  }

  .site-header .brand-logo-image {
    height: 80px;
    max-width: 260px;
  }

  .account-header .account-nav,
  .shop-header .account-nav {
    min-height: 108px;
  }

  .account-header .brand-logo-image,
  .shop-header .brand-logo-image {
    height: 84px;
    max-width: 270px;
  }
}

@media (max-width: 720px) {
  .brand-logo-image {
    height: 70px;
    max-width: 230px;
  }

  .site-header .brand-logo-image {
    height: 72px;
    max-width: 235px;
  }

  .account-header .brand-logo-image,
  .shop-header .brand-logo-image {
    height: 74px;
    max-width: 240px;
  }

  .portal-logo-image {
    width: min(260px, 100%);
    margin-bottom: 20px;
  }
}


/* =========================
   Compact Main Shop Categories
   ========================= */

.main-category-section {
  margin-bottom: 24px !important;
}

.main-category-grid {
  gap: 12px !important;
}

.main-category-card {
  min-height: 164px !important;
  padding: 16px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(10, 33, 48, 0.06) !important;
}

.category-card-top {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.category-sequence {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  font-size: 0.82rem !important;
}

.category-open-label {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.78rem !important;
}

.main-category-card h3 {
  margin: 0 0 6px !important;
  font-size: clamp(1.18rem, 1.55vw, 1.48rem) !important;
  line-height: 1.15 !important;
}

.main-category-card p {
  margin: 0 0 10px !important;
  font-size: 0.88rem !important;
  line-height: 1.38 !important;
}

.category-card-meta {
  gap: 8px !important;
}

.category-card-meta span {
  min-height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.78rem !important;
}

.category-card-meta strong {
  font-size: 0.88rem !important;
}

@media (min-width: 1120px) {
  .main-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1119px) {
  .main-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .main-category-grid {
    grid-template-columns: 1fr !important;
  }

  .main-category-card {
    min-height: 0 !important;
    padding: 15px 16px !important;
  }
}


/* =========================
   Dashboard Rewards Card Alignment Fix
   ========================= */

.dashboard-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.dashboard-action-card h2 {
  margin-top: 0;
}

.dashboard-action-card p {
  margin-top: 0;
}

.dashboard-action-card .dashboard-card-link,
.dashboard-action-card .text-button {
  margin-top: auto;
}


/* Rewards card alignment correction:
   Hide the unused 'Active' tag so the content starts at the same height
   as the neighbouring dashboard cards. */
.dashboard-rewards-card .dashboard-card-tag {
  display: none !important;
}

/* =========================
   Homepage image cards
   ========================= */

.image-card-photo {
  padding: 0;
  overflow: hidden;
}

.image-card-photo img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .image-card-photo img {
    min-height: 220px;
  }
}

