/* FDIC-CSS-BUILD:20260726clone34 */
@font-face {
  font-family: "Montserrat";
  src: url("./fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060b1f;
  --bg-deep: #020611;
  --site-page-bg: linear-gradient(135deg, var(--bg-deep), var(--bg) 35%, #081a46 80%);
  --card: rgba(12, 23, 58, 0.62);
  --stroke: rgba(255, 255, 255, 0.15);
  --text: #eaf1ff;
  --muted: #9eb0d8;
  --gold: #cfa24f;
  --blue: #2f75ff;
  --success: #46d6a9;
  --pending: #f6b65a;
  /* Same paint as .hero-partners — each logo wrap uses this so lighten never blends against sibling logos */
  --partner-strip-canvas: linear-gradient(135deg, #040818 0%, var(--bg) 42%, #071a3d 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--site-page-bg);
}

.background-glow {
  position: fixed;
  inset: -20% 20% auto -20%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(41, 112, 255, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  isolation: isolate;
}

.top-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.top-badge {
  font-size: 0.8rem;
  color: #d6e5ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  flex-wrap: wrap;
  row-gap: 0.35rem;
}

.logo-image {
  height: 2.55rem;
  width: auto;
  max-width: min(7.5rem, 42vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
  min-width: 0;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 10px rgba(207, 162, 79, 0.35));
}

.logo-image--wordmark {
  height: 3.1rem;
  max-width: min(14.5rem, 62vw);
  filter: drop-shadow(0 2px 10px rgba(207, 162, 79, 0.3));
}

.customer-top .logo-image--wordmark {
  height: 3.35rem;
  max-width: min(15.5rem, 66vw);
}

.sg-top .logo-image--wordmark {
  height: 3.25rem;
  max-width: min(15rem, 64vw);
}

.logo-lockup {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: min(15.5rem, 64vw);
  height: 3.35rem;
  text-decoration: none;
  color: inherit;
}

.logo-ribbons {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(207, 162, 79, 0.32));
  pointer-events: none;
}

.logo-wordmark {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 0.35rem;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(0.72rem, 2.4vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.customer-top .logo-lockup,
.sg-top .logo-lockup {
  width: min(16.5rem, 68vw);
  height: 3.55rem;
}

.customer-top .logo-wordmark,
.sg-top .logo-wordmark {
  font-size: clamp(0.78rem, 2.5vw, 0.98rem);
  letter-spacing: 0.16em;
}

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

.logo-text {
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.15;
  color: var(--text);
}

.customer-top .logo {
  min-height: 3.1rem;
  gap: 0.9rem;
}

.customer-top .logo-image {
  height: 3.45rem;
  max-width: min(16.5rem, 56vw);
  mix-blend-mode: normal;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.38));
}

.customer-top .logo-text {
  color: var(--text);
  font-size: 1.125rem;
}

.customer-top .top-badge {
  border-color: var(--stroke);
  color: #dbe6ff;
  background: rgba(255, 255, 255, 0.04);
}

.top-nav {
  display: flex;
  gap: 0.7rem;
}

.nav-btn {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-btn.active {
  border-color: rgba(207, 162, 79, 0.8);
  color: #ffe7b8;
}

main {
  padding: 2rem 3rem 3rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: stretch;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c8d8ff;
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.subtitle {
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.65;
}

.hero-heritage {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(210, 222, 248, 0.82);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.25rem;
  margin-top: 1.65rem;
  margin-bottom: 0.25rem;
  max-width: 26rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-stat-value {
  font-size: clamp(1.9rem, 3.5vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f4f7ff;
}

.hero-stat-value--gold {
  color: #f2e6c5;
  text-shadow: 0 0 42px rgba(207, 162, 79, 0.22);
}

.hero-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 216, 255, 0.52);
}

.hero-partners {
  margin-top: 1.65rem;
  max-width: 38rem;
  padding: 0.9rem 1rem 0.95rem;
  border-radius: 0.65rem;
  background: var(--partner-strip-canvas);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-partners-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 216, 255, 0.52);
  margin: 0 0 0.75rem;
}

.hero-partners-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.2rem 0.15rem;
  box-sizing: border-box;
}

.partner-logo {
  display: block;
  height: 1.2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  mix-blend-mode: normal;
  filter: none;
}

.partner-logo--schwab {
  height: 1.55rem;
}

.partner-logo--knockout {
  mix-blend-mode: normal;
  opacity: 0.92;
}

.hero-partners-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(180, 198, 235, 0.52);
  max-width: 36rem;
}

@media (max-width: 720px) {
  .hero-partners-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem 0.55rem;
  }
}

.feature-pill-row {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.feature-pill {
  background: rgba(47, 117, 255, 0.18);
  border: 1px solid rgba(47, 117, 255, 0.4);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.84rem;
}

.perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.perks article,
.glass-card,
.auth-card {
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  background: var(--card);
  backdrop-filter: blur(15px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.perks article {
  padding: 1rem;
}

.perks p {
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.auth-card {
  padding: 1.4rem;
  align-self: start;
  position: relative;
  overflow: hidden;
}

.auth-card h2 {
  margin-top: 0.2rem;
}

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

.turnstile-wrap {
  margin: 0.85rem 0 0.35rem;
  min-height: 4px;
}

.auth-message {
  margin: 0.7rem 0 0;
  color: #ffb8b8;
  min-height: 1.1rem;
}

.login-success-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.35rem 1.1rem;
  background: rgba(4, 9, 26, 0.92);
  backdrop-filter: blur(12px);
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.login-success-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.login-success-inner {
  text-align: center;
  max-width: 15rem;
}

.login-success-icon {
  width: 3.85rem;
  height: 3.85rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(155deg, #4ade80, #059669);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 32px rgba(5, 150, 105, 0.5);
  transform: scale(0.55);
  opacity: 0;
}

.login-success-overlay.is-visible .login-success-icon {
  animation: loginVerifyPop 0.58s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    loginVerifyGlow 0.95s ease-in-out 0.48s 2;
}

.login-success-check-path {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
}

.login-success-overlay.is-visible .login-success-check-path {
  animation: loginVerifyStroke 0.42s ease-out 0.1s forwards;
}

.login-success-title {
  margin: 0 0 0.3rem;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  color: #ecfdf5;
  opacity: 0;
  transform: translateY(0.45rem);
}

.login-success-overlay.is-visible .login-success-title {
  animation: loginVerifyFadeUp 0.42s ease 0.32s forwards;
}

.login-success-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #a7f3d0;
  opacity: 0;
  transform: translateY(0.35rem);
}

.login-success-overlay.is-visible .login-success-sub {
  animation: loginVerifyFadeUp 0.42s ease 0.46s forwards;
}

@keyframes loginVerifyPop {
  70% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes loginVerifyGlow {
  0%,
  100% {
    box-shadow: 0 10px 32px rgba(5, 150, 105, 0.45);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(74, 222, 128, 0.2), 0 14px 42px rgba(5, 150, 105, 0.72);
  }
}

@keyframes loginVerifyStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes loginVerifyFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-success-overlay {
    transition-duration: 0.15s;
  }

  .login-success-overlay.is-visible .login-success-icon {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }

  .login-success-check-path {
    stroke-dashoffset: 0;
  }

  .login-success-overlay.is-visible .login-success-check-path {
    animation: none;
  }

  .login-success-overlay.is-visible .login-success-title,
  .login-success-overlay.is-visible .login-success-sub {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

form {
  display: grid;
  gap: 0.65rem;
}

input,
select {
  width: 100%;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(3, 10, 28, 0.7);
  color: var(--text);
  padding: 0.75rem 0.8rem;
}

button {
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.primary {
  background: linear-gradient(170deg, var(--gold), #f3cf88);
  color: #161d2d;
}

.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--stroke);
}

.small {
  width: fit-content;
  padding: 0.58rem 0.82rem;
  font-size: 0.84rem;
}

.trust-block {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.panel-header h2 {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.glass-card {
  padding: 1.1rem;
}

.balance {
  font-size: 2rem;
  color: #ffe7b8;
  margin: 0.5rem 0 0.35rem;
}

.muted {
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.55rem;
}

.table-card {
  margin-top: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  font-weight: 600;
  color: #d7e4ff;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
}

.tag.success {
  background: rgba(70, 214, 169, 0.2);
  color: var(--success);
}

.tag.pending {
  background: rgba(246, 182, 90, 0.2);
  color: var(--pending);
}

.admin-docs-scroll {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.admin-docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-docs-table th,
.admin-docs-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-docs-table th {
  color: #d7e4ff;
  font-weight: 600;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.edit-account-message {
  margin: 0.55rem 0 0;
  min-height: 1.25em;
  font-size: 0.84rem;
}

.admin-tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.admin-tx-row {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) 1fr minmax(6rem, 8rem) auto;
  gap: 0.5rem;
  align-items: end;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 24, 56, 0.25);
}

.admin-tx-row .tx-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.3;
  align-self: center;
}

.admin-tx-add {
  display: grid;
  grid-template-columns: 1fr minmax(6rem, 8rem) auto;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 720px) {
  .admin-tx-row {
    grid-template-columns: 1fr;
  }

  .admin-tx-add {
    grid-template-columns: 1fr;
  }
}

.art-module h3 {
  margin-top: 0;
}

.art-module h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.art-module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.art-module-lead {
  margin: 0.35rem 0 0;
  max-width: 40rem;
  line-height: 1.45;
}

.art-reference-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.art-ref-card {
  margin: 0;
  background: rgba(8, 24, 56, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.65rem;
  overflow: hidden;
}

.art-ref-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 9.5rem;
  object-fit: cover;
  object-position: center top;
}

.art-ref-card figcaption {
  padding: 0.4rem 0.55rem 0.55rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.35;
}

.art-toolbar {
  padding: 0.85rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.art-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.65rem;
  align-items: end;
}

.art-form-span2 {
  grid-column: span 2;
}

.art-form-actions {
  grid-column: span 2;
  display: flex;
  justify-content: flex-end;
}

.art-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}

.art-cases-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.art-case-card {
  text-align: left;
  width: 100%;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 24, 56, 0.28);
  padding: 0.75rem 0.85rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.art-case-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.art-case-card--active {
  border-color: rgba(100, 168, 255, 0.65);
  background: rgba(12, 40, 88, 0.45);
}

.art-case-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.art-case-id {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.art-case-asset {
  margin: 0.45rem 0 0.25rem;
  font-size: 0.86rem;
  line-height: 1.35;
}

.art-case-meta {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}

.art-empty {
  margin: 0.25rem 0;
}

.art-detail {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 18, 44, 0.45);
  padding: 1rem 1rem 1.1rem;
}

.art-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.art-status-tag {
  flex-shrink: 0;
  white-space: nowrap;
}

.art-status-tag--neutral {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.art-map-panel {
  margin-bottom: 1rem;
}

.art-map-caption {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
}

.art-map-host {
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.art-schematic-svg {
  display: block;
  width: 100%;
  height: auto;
}

.art-timeline {
  margin-bottom: 1rem;
}

.art-timeline-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.art-timeline-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
}

.art-timeline-step--done {
  border-color: rgba(70, 214, 169, 0.35);
  color: rgba(190, 255, 220, 0.95);
  background: rgba(70, 214, 169, 0.12);
}

.art-timeline-step--current {
  border-color: rgba(246, 182, 90, 0.55);
  color: #ffe8c8;
  background: rgba(246, 182, 90, 0.15);
}

.art-timeline-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.art-timeline-label {
  max-width: 11rem;
  line-height: 1.25;
}

.art-timeline-caption {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
}

.art-stage-form label {
  display: block;
  margin-top: 0.55rem;
}

.art-stage-form label:first-child {
  margin-top: 0;
}

.art-stage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}

.art-stage-row select {
  flex: 1;
  min-width: 12rem;
}

.art-detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 960px) {
  .art-module-header {
    grid-template-columns: 1fr;
  }

  .art-reference-strip {
    grid-template-columns: 1fr 1fr;
  }

  .art-split {
    grid-template-columns: 1fr;
  }

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

  .art-form-span2,
  .art-form-actions {
    grid-column: span 1;
  }

  .art-detail-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .art-reference-strip {
    grid-template-columns: 1fr;
  }
}

.single-card {
  grid-template-columns: 1fr;
  justify-items: center;
}

.single-card .auth-card {
  width: min(100%, 32rem);
}

.customer-view {
  color: #0c1f4a;
}

.customer-view .panel-header h2,
.customer-view h3,
.customer-view p,
.customer-view li,
.customer-view span,
.customer-view strong {
  color: #1f2c4c;
}

.customer-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.customer-main {
  background: #f4f7fc;
  border-radius: 0.8rem;
  padding: 1rem;
  border: 1px solid #d7deeb;
}

.rewards-panel {
  position: sticky;
  top: 1rem;
  height: fit-content;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.customer-heading {
  margin-bottom: 0.75rem;
}

.customer-heading h2 {
  font-size: 2rem;
  font-weight: 700;
}

.customer-top {
  color: var(--text);
  background: linear-gradient(
    135deg,
    rgba(2, 6, 17, 0.78) 0%,
    rgba(6, 11, 31, 0.68) 38%,
    rgba(8, 26, 70, 0.74) 100%
  );
  background-color: rgba(6, 11, 31, 0.35);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.banking-panel,
.transactions-panel,
.wire-panel {
  background: #ffffff;
  border-radius: 0.7rem;
  border: 1px solid #d9e0ee;
  margin-bottom: 0.85rem;
}

.deposit-check-panel label {
  display: block;
  margin-top: 0.65rem;
  margin-bottom: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2c4c;
}

.deposit-check-panel input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 0.8rem;
}

.deposit-intro {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #617291;
}

.deposit-file-name {
  margin: 0.35rem 0 0;
  min-height: 1.1em;
  font-size: 0.82rem;
  color: #4a6088;
  word-break: break-word;
}

.deposit-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.deposit-status {
  margin: 0.65rem 0 0.35rem;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f8f63;
}

.customer-view .deposit-status {
  color: #1f8f63;
}

.deposit-check-panel button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ===== Deposit check tab (light high-contrast remaster) ===== */
.sg-deposit {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 1.05rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
}

.sg-deposit-header {
  margin-bottom: 1.05rem;
}

.sg-deposit-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-deposit-sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #4d5f80;
}

.sg-deposit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.85fr);
  gap: 1.1rem;
  align-items: start;
}

.sg-deposit-form {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-deposit-field {
  display: grid;
  gap: 0.35rem;
}

.sg-deposit-field label,
.sg-deposit-upload-title {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6d8f;
}

.sg-deposit-amount {
  position: relative;
  display: flex;
  align-items: center;
}

.sg-deposit-currency {
  position: absolute;
  left: 0.95rem;
  z-index: 1;
  font-weight: 750;
  color: #5a6d8f;
  pointer-events: none;
}

.sg-deposit-amount input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9d5e8;
  border-radius: 0.75rem;
  padding: 0.82rem 0.95rem 0.82rem 1.85rem;
  background: #f8fafd;
  color: #102447;
  font-size: 1rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.sg-deposit-amount input:focus {
  border-color: rgba(47, 117, 255, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.14);
}

.sg-deposit-uploads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sg-deposit-upload {
  padding: 0.9rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px dashed #b7c6de;
  background: #f8fafd;
}

.sg-deposit-upload-label {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
}

.sg-deposit-upload-hint {
  font-size: 0.8rem;
  color: #4d5f80;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.sg-deposit-upload input[type="file"] {
  width: 100%;
  max-width: 100%;
  font-size: 0.84rem;
  color: #102447;
}

.sg-deposit-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5a6d8f;
}

.sg-deposit-submit {
  width: 100%;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 999px !important;
  padding: 0.88rem 1rem !important;
  font-size: 0.98rem;
  font-weight: 750;
  background: linear-gradient(180deg, #4f8cff, #2f75ff 55%, #245fe0) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(47, 117, 255, 0.28);
}

.sg-deposit-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.sg-deposit-submit:disabled,
.sg-deposit #deposit-check-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.sg-deposit-aside {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-deposit-aside-title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #102447;
}

.sg-deposit-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.sg-deposit-notes li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3d4f70;
}

.sg-deposit-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: #2f75ff;
}

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

@media (max-width: 640px) {
  .sg-deposit {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .sg-deposit-uploads {
    grid-template-columns: 1fr;
  }

  .sg-deposit-form,
  .sg-deposit-aside {
    padding: 1rem 0.95rem;
  }

  .sg-deposit-amount input {
    font-size: 1rem;
  }
}

/* ===== Documents tab (light high-contrast remaster) ===== */
.sg-documents {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 1.05rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
}

.sg-documents-header {
  margin-bottom: 0.95rem;
}

.sg-documents-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-documents-sub {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4d5f80;
  max-width: 42rem;
}

.sg-documents-body {
  padding: 1.05rem 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-documents-wizard {
  min-height: 8rem;
}

.sg-documents .doc-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.95rem;
  padding: 0;
}

.sg-documents .doc-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a7c9c;
  padding: 0.4rem 0.65rem 0.4rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #d7e0ef;
  background: #ffffff;
}

.sg-documents .doc-step-index {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #e8eef8;
  color: #4d5f80;
  font-size: 0.68rem;
  font-weight: 800;
}

.sg-documents .doc-step.is-active {
  color: #102447;
  border-color: #2f75ff;
  background: rgba(47, 117, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.12);
}

.sg-documents .doc-step.is-active .doc-step-index {
  background: #2f75ff;
  color: #fff;
}

.sg-documents .doc-step.is-done {
  color: #166534;
  border-color: rgba(22, 101, 52, 0.28);
  background: rgba(22, 101, 52, 0.06);
}

.sg-documents .doc-step.is-done .doc-step-index {
  background: #166534;
  color: #fff;
}

.sg-documents .doc-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.sg-documents .doc-category-card {
  text-align: left;
  padding: 1rem 1.05rem;
  border-radius: 0.85rem;
  border: 1px solid #d7e0ef;
  background: #fbfcff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font: inherit;
  color: inherit;
}

.sg-documents .doc-category-card:hover {
  border-color: #2f75ff;
  box-shadow: 0 8px 22px rgba(15, 35, 95, 0.08);
  transform: translateY(-1px);
}

.sg-documents .doc-category-card:focus-visible {
  outline: 2px solid #2f75ff;
  outline-offset: 2px;
}

.sg-documents .doc-category-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.15rem;
  border-radius: 0.65rem;
  background: linear-gradient(145deg, #edf3ff 0%, #e2ebfa 100%);
  color: #2f75ff;
  border: 1px solid #d0dcf5;
}

.sg-documents .doc-category-svg {
  display: block;
}

.sg-documents .doc-category-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #102447;
  letter-spacing: -0.01em;
}

.sg-documents .doc-category-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5a6d8c;
}

.sg-documents .doc-flow-toolbar {
  margin-bottom: 0.85rem;
}

.sg-documents .doc-flow-toolbar .secondary {
  border-color: #d0dae9;
  background: #f4f7fc;
  color: #1f2c4c;
}

.sg-documents .doc-flow-toolbar .secondary:hover {
  border-color: #2f75ff;
  color: #102447;
}

.sg-documents .doc-type-heading {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #102447;
}

.sg-documents .doc-type-sub {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5a6d8c;
}

.sg-documents .doc-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.sg-documents .doc-type-card {
  text-align: left;
  padding: 0.9rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid #d7e0ef;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
}

.sg-documents .doc-type-card:hover {
  border-color: #2f75ff;
  box-shadow: 0 6px 16px rgba(15, 35, 95, 0.07);
}

.sg-documents .doc-type-card:focus-visible {
  outline: 2px solid #2f75ff;
  outline-offset: 2px;
}

.sg-documents .doc-type-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #102447;
}

.sg-documents .doc-type-desc {
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5a6d8c;
}

.sg-documents .doc-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 1.15rem;
  align-items: start;
}

.sg-documents .doc-upload-instructions {
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  background: #f7f9fd;
  border: 1px solid #e1e8f3;
}

.sg-documents .doc-upload-title {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #102447;
}

.sg-documents .doc-upload-lead {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5a6d8c;
}

.sg-documents .doc-formats-label {
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
  color: #3d4f73;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  background: rgba(47, 117, 255, 0.06);
  border: 1px solid rgba(47, 117, 255, 0.14);
}

.sg-documents .doc-instruction-steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.sg-documents .doc-instruction-steps li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #3d4f73;
}

.sg-documents .doc-step-num {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: rgba(47, 117, 255, 0.14);
  color: #1a3a8a;
  font-weight: 800;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
}

.sg-documents .doc-visual-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7c9c;
  margin: 0 0 0.45rem;
}

.sg-documents .doc-visual-card {
  border: 1px solid #d7e0ef;
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
  background: #f7f9fd;
}

.sg-documents .doc-guide-svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 0.5rem;
}

.sg-documents .doc-visual-caption {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #5a6d8c;
  text-align: center;
}

.sg-documents .document-dropzone {
  border: 2px dashed #9eb0d8;
  border-radius: 0.85rem;
  padding: 1.35rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #fbfcff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.sg-documents .document-dropzone:hover,
.sg-documents .document-dropzone:focus-visible {
  border-color: #2f75ff;
  background: rgba(47, 117, 255, 0.04);
  outline: none;
}

.sg-documents .document-dropzone.is-dragover {
  border-color: #2f75ff;
  background: rgba(47, 117, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(47, 117, 255, 0.12);
}

.sg-documents .doc-drop-primary {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #102447;
}

.sg-documents .doc-drop-link {
  color: #2f75ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sg-documents .doc-drop-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #6a7c9c;
}

.sg-documents .document-preview {
  margin-top: 0.75rem;
}

.sg-documents .doc-preview-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 0.55rem;
  border: 1px solid #d7e0ef;
  display: block;
}

.sg-documents .doc-preview-pdf {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.55rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  font-size: 0.84rem;
  color: #102447;
  word-break: break-word;
}

.sg-documents .doc-pdf-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7c2d12;
  background: #ffedd5;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.sg-documents .doc-notes-label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1f2c4c;
}

.sg-documents .doc-notes {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  border: 1px solid #d0dae9;
  background: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  color: #102447;
  resize: vertical;
}

.sg-documents .doc-notes:focus {
  outline: none;
  border-color: #2f75ff;
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.15);
}

.sg-documents .doc-upload-actions {
  margin-top: 0.95rem;
}

.sg-documents .doc-upload-actions .primary {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
}

.sg-documents .doc-upload-actions .primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sg-documents .doc-upload-status {
  min-height: 1.2em;
  font-size: 0.86rem;
  font-weight: 700;
  color: #b45309;
  margin: 0.65rem 0 0;
}

.sg-documents .doc-recent-wrap {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid #e4ebf5;
}

.sg-documents .doc-recent-title {
  margin: 0 0 0.55rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: #102447;
}

.sg-documents .doc-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.sg-documents .doc-recent-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #3d4f73;
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  background: #f7f9fd;
  border: 1px solid #e8eef6;
}

.sg-documents .doc-recent-date {
  color: #6a7c9c;
  flex-shrink: 0;
  font-size: 0.74rem;
}

.sg-documents .doc-success-card {
  text-align: center;
  padding: 1.5rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(22, 101, 52, 0.22);
  background: linear-gradient(180deg, rgba(22, 101, 52, 0.07) 0%, #fff 55%);
}

.sg-documents .doc-success-icon {
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 auto 0.7rem;
  border-radius: 999px;
  background: #166534;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sg-documents .doc-success-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #102447;
}

.sg-documents .doc-success-meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #5a6d8c;
  word-break: break-word;
}

.sg-documents .doc-success-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (max-width: 900px) {
  .sg-documents .doc-upload-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sg-documents {
    padding: 0.85rem 0.8rem 1rem;
    border-radius: 0.9rem;
  }

  .sg-documents-heading {
    font-size: 1.12rem;
  }

  .sg-documents-body {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .sg-documents .doc-category-grid,
  .sg-documents .doc-type-grid {
    grid-template-columns: 1fr;
  }

  .sg-documents .doc-step {
    font-size: 0.65rem;
    padding: 0.32rem 0.5rem 0.32rem 0.32rem;
  }

  .sg-documents .doc-success-actions {
    flex-direction: column;
  }

  .sg-documents .doc-success-actions .primary,
  .sg-documents .doc-success-actions .secondary {
    width: 100%;
  }
}

/* ===== Assets Recovery tab (logistics dashboard remaster) ===== */
.sg-car {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 1.05rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
}

.sg-car-header {
  margin-bottom: 0.85rem;
}

.sg-car-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-car-sub {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4d5f80;
  max-width: 44rem;
}

.sg-car-message {
  margin: 0 0 0.65rem;
  min-height: 1.15em;
  font-size: 0.86rem;
  font-weight: 600;
  color: #b45309;
}

.sg-car-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sg-car-empty {
  padding: 1.35rem 1.2rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-car-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #102447;
}

.sg-car-empty-copy {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #5a6d8c;
}

.sg-car-case {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 1.05rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 10px 26px rgba(15, 35, 75, 0.06);
}

.sg-car-case-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.sg-car-case-id {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7c9c;
}

.sg-car-case-asset {
  margin: 0.25rem 0 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
  line-height: 1.3;
}

.sg-car-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  max-width: 12rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
}

.sg-car-badge--pending {
  color: #5b4b16;
  background: #f7efd2;
  border: 1px solid rgba(184, 137, 42, 0.35);
}

.sg-car-badge--transit {
  color: #163a8a;
  background: rgba(47, 117, 255, 0.12);
  border: 1px solid rgba(47, 117, 255, 0.28);
}

.sg-car-badge--done {
  color: #166534;
  background: rgba(22, 101, 52, 0.1);
  border: 1px solid rgba(22, 101, 52, 0.28);
}

.sg-car-rail {
  margin: 0 0 1.05rem;
}

.sg-car-rail-line {
  position: relative;
  height: 0.35rem;
  margin: 0 0.55rem 0.55rem;
  border-radius: 999px;
  background: #e4ebf5;
  overflow: visible;
}

.sg-car-rail-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7aa4ff 0%, #2f75ff 100%);
  box-shadow: 0 0 12px rgba(47, 117, 255, 0.35);
  transition: width 0.55s ease;
}

.sg-car-rail-truck {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(16, 36, 71, 0.28));
  transition: left 0.55s ease;
  animation: sg-car-truck-bob 2.4s ease-in-out infinite;
}

.sg-car-rail-truck-svg {
  display: block;
  width: 2.35rem;
  height: auto;
}

.sg-car-rail-nodes {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0 0.15rem;
  list-style: none;
}

.sg-car-rail-node span {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d0dae9;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0dae9;
}

.sg-car-rail-node.is-done span {
  background: #2f75ff;
  box-shadow: 0 0 0 1px #2f75ff;
}

.sg-car-rail-node.is-current span {
  background: #102447;
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.22);
}

.sg-car-route {
  margin: 0 0 1rem;
}

.sg-car-route-canvas {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #d3dceb;
  background: #eef3fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.sg-car-route-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sg-car-route-progress {
  transition: stroke-dashoffset 0.7s ease;
}

.sg-car-mover-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: sg-car-pulse 2.2s ease-out infinite;
}

.sg-car-glass {
  position: absolute;
  z-index: 2;
  max-width: min(11.5rem, 42%);
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px rgba(15, 35, 75, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.sg-car-glass--pickup {
  left: 0.75rem;
  bottom: 0.75rem;
}

.sg-car-glass--drop {
  right: 0.75rem;
  bottom: 0.75rem;
}

.sg-car-glass--live {
  left: 50%;
  top: 0.7rem;
  transform: translateX(-50%);
  max-width: min(16rem, 70%);
  background: rgba(16, 36, 71, 0.78);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sg-car-glass-kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7c9c;
  margin-bottom: 0.15rem;
}

.sg-car-glass--live .sg-car-glass-kicker {
  color: rgba(219, 231, 255, 0.75);
}

.sg-car-glass-body {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  color: #102447;
}

.sg-car-glass--live .sg-car-glass-body {
  color: #fff;
}

.sg-car-route-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #7a8aa8;
}

.sg-car-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.sg-car-meta-card {
  padding: 0.8rem 0.85rem;
  border-radius: 0.85rem;
  background: #f7f9fd;
  border: 1px solid #e1e8f3;
}

.sg-car-meta-card--courier {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.sg-car-meta-card--wide {
  grid-column: span 2;
}

.sg-car-courier-avatar {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #2f75ff;
  background: linear-gradient(145deg, #edf3ff 0%, #dbe7ff 100%);
  border: 1px solid #c9d8f5;
}

.sg-car-meta-label {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6a7c9c;
}

.sg-car-meta-value {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #102447;
  line-height: 1.35;
  word-break: break-word;
}

.sg-car-meta-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #5a6d8c;
}

.sg-car-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.sg-car-stage {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.65rem 0.7rem;
  border-radius: 0.75rem;
  background: #f7f9fd;
  border: 1px solid #e1e8f3;
  min-height: 3.4rem;
}

.sg-car-stage-mark {
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #6a7c9c;
  background: #e8eef8;
}

.sg-car-stage-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  color: #5a6d8c;
}

.sg-car-stage.is-done {
  background: rgba(22, 101, 52, 0.06);
  border-color: rgba(22, 101, 52, 0.18);
}

.sg-car-stage.is-done .sg-car-stage-mark {
  background: #166534;
  color: #fff;
}

.sg-car-stage.is-done .sg-car-stage-label {
  color: #1f3d2c;
}

.sg-car-stage.is-current {
  background: rgba(47, 117, 255, 0.08);
  border-color: rgba(47, 117, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.08);
}

.sg-car-stage.is-current .sg-car-stage-mark {
  background: #2f75ff;
  color: #fff;
}

.sg-car-stage.is-current .sg-car-stage-label {
  color: #102447;
}

@keyframes sg-car-truck-bob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -54%) translateY(-1px); }
}

@keyframes sg-car-pulse {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.85); }
}

@media (max-width: 900px) {
  .sg-car-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sg-car {
    padding: 0.85rem 0.8rem 1rem;
    border-radius: 0.9rem;
  }

  .sg-car-case {
    padding: 0.9rem 0.85rem 1rem;
  }

  .sg-car-heading {
    font-size: 1.12rem;
  }

  .sg-car-case-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-car-badge {
    max-width: none;
    align-self: flex-start;
  }

  .sg-car-glass {
    max-width: min(10.5rem, 46%);
    padding: 0.45rem 0.55rem;
  }

  .sg-car-glass--live {
    max-width: min(14rem, 78%);
    top: 0.5rem;
  }

  .sg-car-glass-body {
    font-size: 0.7rem;
  }

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

  .sg-car-meta-card--wide {
    grid-column: span 1;
  }

  .sg-car-stages {
    grid-template-columns: 1fr;
  }

  .sg-car-rail-truck-svg {
    width: 2rem;
  }
}

.banking-header {
  background: #0c1f3d;
  color: #fff;
  border-radius: 0.7rem 0.7rem 0 0;
  padding: 0.85rem 0.65rem 0.95rem;
  display: block;
}

.banking-header h3 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.banking-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.2rem;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  padding: 0.1rem 0 0.15rem;
}

.banking-actions::-webkit-scrollbar {
  height: 4px;
}

.banking-actions::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.bank-tab {
  flex: 1 1 0;
  min-width: 3.35rem;
  max-width: 6.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0.2rem 0.45rem;
  border: none;
  border-radius: 0.55rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.bank-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.bank-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.bank-tab-label {
  display: block;
  max-width: 5.75rem;
  text-align: center;
  text-wrap: balance;
}

.bank-tab-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bank-tab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.customer-view .banking-header h3 {
  color: #fff;
}

.customer-view .bank-tab {
  color: rgba(255, 255, 255, 0.88);
}

.customer-view .bank-tab.active {
  color: #fff;
}

.customer-view .bank-tab .bank-tab-label {
  color: inherit;
}

.bank-content-panel {
  display: none;
}

.bank-content-panel.active {
  display: block;
}

/* ===== Accounts tab (light high-contrast remaster) ===== */
.sg-accounts {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 1.05rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
}

.sg-accounts-header {
  margin-bottom: 1rem;
}

.sg-accounts-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-accounts-sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #4d5f80;
}

.sg-accounts-section-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6d8f;
}

.sg-accounts-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  padding: 1.2rem 1.25rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-accounts-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f75ff;
}

.sg-accounts .account-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-accounts .account-meta {
  margin: 0.35rem 0 0;
  color: #4d5f80;
  font-size: 0.9rem;
}

.sg-accounts-hero-balance {
  text-align: right;
  flex-shrink: 0;
}

.sg-accounts-balance-label {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a6d8f;
}

.sg-accounts .account-balance {
  margin: 0;
  background: transparent;
  color: #102447 !important;
  padding: 0;
  border-radius: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.sg-accounts-linked {
  margin-bottom: 1rem;
}

.sg-accounts .linked-accounts {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.sg-accounts .linked-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  border-radius: 0.85rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(15, 35, 75, 0.04);
}

.sg-accounts .linked-account-row .linked-label {
  margin: 0;
  font-weight: 750;
  color: #102447;
  font-size: 0.95rem;
}

.sg-accounts .linked-account-row .linked-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #4d5f80;
}

.sg-accounts .linked-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.sg-accounts .linked-balance {
  font-weight: 800;
  font-size: 1rem;
  color: #102447;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sg-accounts .linked-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f8f63;
  background: rgba(31, 143, 99, 0.12);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.sg-accounts-linked-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px dashed #c9d5e8;
  background: #ffffff;
  color: #5a6d8f;
  font-size: 0.9rem;
}

.sg-accounts-tx {
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-accounts .transaction-list {
  display: grid;
  gap: 0.65rem;
}

.sg-accounts .transaction-item {
  border: 1px solid #e1e8f4;
  border-radius: 0.75rem;
  background: #f8fafd;
  padding: 0.85rem 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.sg-accounts .tx-title {
  margin: 0;
  font-weight: 700;
  color: #102447;
  font-size: 0.95rem;
}

.sg-accounts .tx-date {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #5a6d8f !important;
}

.sg-accounts .tx-right {
  text-align: right;
  flex-shrink: 0;
}

.sg-accounts .tx-amount {
  margin: 0.3rem 0 0;
  font-weight: 800;
  color: #102447;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.sg-accounts .empty-transactions {
  text-align: center;
  color: #5a6d8f !important;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.92rem;
}

.sg-accounts .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
}

.sg-accounts .tag.success {
  color: #1f8f63;
  background: rgba(31, 143, 99, 0.12);
}

.sg-accounts .tag.pending {
  color: #9a6b12;
  background: rgba(246, 182, 90, 0.2);
}

@media (max-width: 640px) {
  .sg-accounts {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .sg-accounts-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1rem;
  }

  .sg-accounts-hero-balance {
    text-align: left;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid #e6edf8;
  }

  .sg-accounts .account-balance {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .sg-accounts .linked-account-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sg-accounts .linked-right {
    width: 100%;
    justify-content: space-between;
  }

  .sg-accounts .transaction-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sg-accounts .tx-right {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sg-accounts .tx-amount {
    margin: 0;
  }
}

.bank-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.account-name {
  margin: 0;
  font-weight: 700;
}

.account-meta {
  margin: 0.2rem 0 0;
  color: #617291;
  font-size: 0.86rem;
}

.account-balance {
  margin: 0;
  background: #1f4e93;
  color: #fff !important;
  padding: 0.36rem 0.65rem;
  border-radius: 0.3rem;
  font-weight: 700;
}

.linked-accounts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.35rem 0 0.25rem;
}

.linked-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #dce4f0;
  border-radius: 0.5rem;
  font-size: 0.84rem;
}

.linked-account-row .linked-label {
  margin: 0;
  font-weight: 600;
  color: #1f2c4c;
}

.linked-account-row .linked-meta {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  color: #617291;
}

.linked-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.linked-balance {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1f4e93;
  white-space: nowrap;
}

.linked-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #166534;
  background: rgba(34, 197, 94, 0.15);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.transactions-panel,
.wire-panel {
  padding: 1rem;
}

.transactions-panel h3,
.wire-panel h3 {
  margin-top: 0;
}

/* ===== Transfer tab (light high-contrast remaster) ===== */
.sg-transfer {
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 1.05rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
}

.sg-transfer-header {
  margin-bottom: 1.05rem;
}

.sg-transfer-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-transfer-sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #4d5f80;
}

.sg-transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(15rem, 0.85fr);
  gap: 1.1rem;
  align-items: start;
}

.sg-transfer-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-transfer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.sg-transfer-field {
  display: grid;
  gap: 0.35rem;
}

.sg-transfer-field label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6d8f;
}

.sg-transfer-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9d5e8;
  border-radius: 0.75rem;
  padding: 0.82rem 0.95rem;
  background: #f8fafd;
  color: #102447;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sg-transfer-form input::placeholder {
  color: #8a9ab8;
}

.sg-transfer-form input:focus {
  border-color: rgba(47, 117, 255, 0.65);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.14);
}

.sg-transfer-amount {
  position: relative;
  display: flex;
  align-items: center;
}

.sg-transfer-currency {
  position: absolute;
  left: 0.95rem;
  z-index: 1;
  font-weight: 750;
  color: #5a6d8f;
  pointer-events: none;
}

.sg-transfer-amount input {
  padding-left: 1.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.sg-transfer-submit {
  width: 100%;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 999px !important;
  padding: 0.88rem 1rem !important;
  font-size: 0.98rem;
  font-weight: 750;
  background: linear-gradient(180deg, #4f8cff, #2f75ff 55%, #245fe0) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(47, 117, 255, 0.28);
}

.sg-transfer-submit:hover {
  filter: brightness(1.05);
}

.sg-transfer-aside {
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-transfer-aside-title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: #102447;
}

.sg-transfer-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.sg-transfer-notes li {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #3d4f70;
}

.sg-transfer-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: #2f75ff;
}

.sg-transfer-note {
  margin: 0.95rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #e6edf8;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #5a6d8f;
}

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

@media (max-width: 640px) {
  .sg-transfer {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .sg-transfer-grid {
    grid-template-columns: 1fr;
  }

  .sg-transfer-form,
  .sg-transfer-aside {
    padding: 1rem 0.95rem;
  }

  .sg-transfer-form input {
    font-size: 1rem;
  }
}

.transaction-list {
  display: grid;
  gap: 0.6rem;
}

.transaction-item {
  border: 1px solid #dbe3ef;
  border-radius: 0.55rem;
  background: #f8fbff;
  padding: 0.65rem 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.tx-title {
  margin: 0;
  font-weight: 600;
}

.tx-date {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #64779b !important;
}

.tx-right {
  text-align: right;
}

.tx-amount {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.empty-transactions {
  text-align: center;
  color: #6f7f9d !important;
  margin: 1.2rem 0;
}

.rewards-panel-shell {
  background: #fff;
  border: 1px solid #d9e0ee;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 35, 95, 0.06);
}

.rewards-panel-head {
  background: #0a2d63;
  padding: 0.78rem 1rem;
}

.rewards-panel-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.rewards-panel-body {
  position: relative;
  padding: 1rem 1rem 1.15rem;
  background: #fff;
}

.reward-toast {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  animation: reward-toast-in 0.22s ease;
}

.reward-toast[hidden] {
  display: none !important;
}

@keyframes reward-toast-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  color: #1f2c4c;
}

.reward-points-balance {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f234f;
}

.reward-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.dark-btn,
.light-btn {
  border-radius: 0.45rem;
  padding: 0.58rem 0.5rem;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid #d6e0f0;
  cursor: pointer;
}

.dark-btn {
  background: #0b2d62;
  color: #fff;
  border-color: #0b2d62;
}

.dark-btn:hover {
  background: #09254f;
}

.light-btn {
  background: #eef2f8;
  color: #1f3d70;
  border-color: #d6dde8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.light-btn:hover {
  background: #e4eaf4;
}

.reward-more-btn .reward-chev {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 400;
  opacity: 0.85;
}

.reward-section-title {
  margin: 0 0 0.55rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0f234f;
}

.reward-section-title--alerts {
  margin-top: 1.05rem;
}

.redemption-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.redemption-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.72rem 0.78rem;
  border-radius: 0.45rem;
  border: 1px solid #d9e2ef;
  background: #fafbfd;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.redemption-card:hover {
  border-color: #c5d2e8;
}

.redemption-card:focus-visible {
  outline: 2px solid #2f75ff;
  outline-offset: 2px;
}

.redemption-card--selected {
  border-color: #7eb8ff;
  background: #f5f9ff;
  box-shadow: 0 0 0 1px rgba(47, 117, 255, 0.12);
}

.redemption-card-inner {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.redemption-card-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f234f;
}

.redemption-card-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: #5c6b88;
}

.redemption-redeem-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f75ff;
  cursor: pointer;
  border-radius: 0.35rem;
}

.redemption-redeem-btn:hover {
  text-decoration: underline;
  background: rgba(47, 117, 255, 0.06);
}

.featured-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.featured-deals-title {
  margin-bottom: 0;
}

.featured-deals-arrows {
  display: flex;
  gap: 0.25rem;
}

.deal-arrow {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border-radius: 0.35rem;
  border: 1px solid #d9e2ef;
  background: #f5f8fc;
  color: #3d4d6f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-arrow:hover {
  background: #e8eef8;
  border-color: #c5d2e8;
}

.featured-deals-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  scroll-behavior: smooth;
}

.deal-card--featured {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #d9e2ef;
  border-radius: 0.5rem;
  background: #fff;
  min-width: 0;
}

.deal-card-media--tall {
  position: relative;
  width: 100%;
  height: 4.25rem;
  background: #dbe4f2;
}

.deal-card-media--tall img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.deal-card-copy {
  padding: 0.55rem 0.6rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.deal-card-headline {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f234f;
}

.deal-card-meta {
  margin: 0;
  font-size: 0.65rem;
  color: #6b7a96;
  line-height: 1.3;
}

.deal-card-cta {
  margin-top: 0.4rem;
  align-self: flex-start;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 0.35rem;
  border: 1px solid #c5d2e8;
  background: #f5f8fc;
  color: #0a2d63;
  cursor: pointer;
}

.deal-card-cta:hover {
  background: #e8eef8;
}

@media (max-width: 380px) {
  .featured-deals-track {
    grid-template-columns: 1fr;
  }
}

.alerts-list {
  padding-left: 1rem;
  margin: 0;
}

.alerts-list li.alert-item {
  transition: opacity 0.3s ease;
}

.alerts-list li.alert-item--dismissing {
  opacity: 0;
}

.card-status-row {
  border: 1px solid #d9e3f0;
  background: #f8fbff;
  border-radius: 0.55rem;
  padding: 0.8rem;
}

.card-status-label {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  color: #617291 !important;
}

.card-status-pill {
  margin: 0;
  display: inline-block;
  background: #e8f1ff;
  color: #194b8f !important;
  border: 1px solid #bdd2f3;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
}

/* ===== Cards tab (light high-contrast remaster) ===== */
.sg-cards {
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 1.05rem;
  background: #f4f7fc;
  border: 1px solid #d7e0ef;
  box-shadow: 0 12px 28px rgba(15, 35, 75, 0.08);
}

.sg-cards-header {
  margin-bottom: 1.1rem;
}

.sg-cards-heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #102447;
}

.sg-cards-sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #4d5f80;
}

.sg-cards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.9fr);
  gap: 1.1rem;
  align-items: start;
}

.sg-cards-main {
  display: grid;
  gap: 1rem;
}

.sg-cards-hero {
  margin: 0;
}

.physical-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  padding: 1.25rem 1.3rem 1.15rem;
  min-height: 12.5rem;
  background:
    radial-gradient(ellipse 80% 70% at 12% 0%, rgba(79, 140, 255, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(47, 117, 255, 0.28), transparent 50%),
    linear-gradient(145deg, #0a1636 0%, #07102a 45%, #040916 100%);
  border: 1px solid rgba(91, 148, 255, 0.35);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(47, 117, 255, 0.1),
    0 18px 36px rgba(12, 31, 74, 0.22);
}

.physical-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, transparent 42%, transparent 58%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.physical-card-stripe {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.55rem;
  height: 2.15rem;
  background: rgba(0, 0, 0, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.physical-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.35rem;
}

.physical-chip {
  width: 2.55rem;
  height: 1.85rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(145deg, #f7e2a4 0%, #d4af55 48%, #a87828 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.25);
}

.physical-contactless {
  color: rgba(255, 255, 255, 0.82);
  line-height: 0;
}

.physical-card-number {
  position: relative;
  z-index: 1;
  margin: 0 0 1.15rem;
  letter-spacing: 0.2em;
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 650;
  color: #f5f8ff;
  font-variant-numeric: tabular-nums;
}

.physical-card-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
}

.physical-card-label {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(210, 222, 255, 0.55);
}

#physical-card-name {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #f5f8ff;
}

.mc-logo {
  position: relative;
  width: 3rem;
  height: 1.9rem;
  flex-shrink: 0;
}

.mc-logo-physical {
  width: 3.15rem;
  height: 2rem;
}

.mc-circle {
  position: absolute;
  top: 0.15rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  opacity: 0.95;
}

.mc-red {
  left: 0;
  background: #eb001b;
}

.mc-orange {
  right: 0;
  background: #f79e1b;
  mix-blend-mode: screen;
}

.sg-cards-status {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid #d7e0ef;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.status-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a6d8f;
  font-weight: 700;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #2f75ff;
  box-shadow: 0 0 0 4px rgba(47, 117, 255, 0.16);
}

.status-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #102447;
}

#status-title-left {
  color: #102447;
}

#status-title-right {
  color: #1f5fd6;
  margin-left: 0.35rem;
}

.phase-track {
  margin-bottom: 0.95rem;
}

.phase-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  text-transform: uppercase;
  color: #7a8ba8;
  margin-bottom: 0.4rem;
}

.phase-labels span {
  text-align: center;
}

.phase-labels span.active {
  color: #1f5fd6;
}

.phase-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e6edf8;
  overflow: hidden;
}

.phase-fill {
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, #245fe0, #4f8cff 55%, #7eb0ff);
  box-shadow: 0 0 10px rgba(47, 117, 255, 0.28);
  transition: width 0.28s ease;
}

.status-copy {
  margin: 0;
  color: #3d4f70;
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 40rem;
}

.status-copy strong {
  color: #102447;
  font-weight: 750;
}

.sg-cards-rail {
  display: grid;
  gap: 0.9rem;
}

.sg-cards-panel {
  padding: 1.05rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid #d7e0ef;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 35, 75, 0.05);
}

.sg-cards-panel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.sg-cards-panel-head--split {
  justify-content: space-between;
  align-items: baseline;
}

.sg-cards-panel-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
  color: #102447;
}

.sg-cards-panel-icon {
  flex-shrink: 0;
  color: #2f75ff;
}

.sg-cards-field {
  margin-bottom: 0.8rem;
}

.sg-cards-label {
  margin: 0 0 0.28rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6d8f;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sg-cards-label svg {
  color: #2f75ff;
}

.sg-cards-value {
  margin: 0;
  color: #142847;
  font-weight: 650;
  line-height: 1.45;
  font-size: 0.95rem;
  word-break: break-word;
}

.sg-cards-verified {
  margin: 0.25rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 750;
  color: #1f8f63;
}

.sg-cards-support {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
  color: #1f5fd6;
  text-decoration: none;
}

.sg-cards-support:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sg-cards-faq {
  border-top: 1px solid #e6edf8;
  padding: 0.7rem 0;
}

.sg-cards-faq:last-child {
  padding-bottom: 0.15rem;
}

.sg-cards-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: #142847;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 1.7rem;
  font-size: 0.92rem;
}

.sg-cards-faq summary::-webkit-details-marker {
  display: none;
}

.sg-cards-faq summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #2f75ff;
  border-bottom: 2px solid #2f75ff;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.sg-cards-faq[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.sg-cards-faq p {
  margin: 0.5rem 0 0;
  color: #4d5f80;
  line-height: 1.55;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .sg-cards-layout {
    grid-template-columns: 1fr;
  }

  .physical-card {
    max-width: 28rem;
  }
}

@media (max-width: 640px) {
  .sg-cards {
    padding: 0.85rem 0.8rem 0.95rem;
  }

  .sg-cards-heading {
    font-size: 1.12rem;
  }

  .sg-cards-status,
  .sg-cards-panel {
    padding: 0.95rem 0.9rem;
  }

  .phase-labels {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    gap: 0.2rem;
  }

  .status-title {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .sg-cards-faq summary {
    min-height: 2.2rem;
    padding: 0.15rem 0;
  }

  .physical-card {
    max-width: none;
    min-height: 11.5rem;
    padding: 1.1rem 1.05rem 1rem;
  }

  .physical-card-number {
    letter-spacing: 0.14em;
  }
}

@media (max-width: 1050px) {
  .hero-grid,
  .card-grid,
  .perks,
  .admin-layout,
  .customer-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    max-width: none;
  }

  .top-bar,
  main {
    padding-inline: 1rem;
  }

  .logo-image {
    height: 2.1rem;
    max-width: min(10.5rem, 56vw);
  }

  .customer-top .logo-image {
    height: 2.9rem;
    max-width: min(14rem, 64vw);
  }

  .customer-top .logo-text {
    font-size: 1.05rem;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: end;
  }
}

.extra-checking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.extra-checking-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  padding: 0.75rem;
  border: 1px solid #dce4f0;
  border-radius: 0.5rem;
  background: #f8fafc;
}

.extra-checking-fields {
  display: grid;
  gap: 0.35rem;
  flex: 1;
}

.extra-checking-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* Mobile compatibility — classic theme */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

@media (max-width: 900px) {
  .top-bar {
    flex-wrap: wrap;
    gap: 0.65rem;
    row-gap: 0.55rem;
    padding: 0.85rem 1rem;
    align-items: flex-start;
  }

  .top-bar-right {
    width: 100%;
    justify-content: space-between;
  }

  .top-badge {
    font-size: 0.7rem;
    padding: 0.32rem 0.55rem;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  main {
    padding: 1rem 1rem 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    max-width: none;
  }

  .hero-partners {
    max-width: none;
  }

  .feature-pill {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }

  .auth-card {
    width: 100%;
  }

  .customer-heading {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .customer-heading h2 {
    font-size: 1.45rem;
  }

  .rewards-panel {
    position: static;
  }

  .banking-actions {
    justify-content: flex-start;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .bank-tab {
    flex: 0 0 auto;
    min-width: 4.25rem;
    max-width: none;
  }

  .bank-tab-label {
    max-width: none;
    font-size: 0.68rem;
  }

  .extra-checking-row {
    flex-direction: column;
    align-items: stretch;
  }

  .extra-checking-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-layout {
    gap: 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  .hero-partners-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .customer-top .logo-text {
    font-size: 0.95rem;
  }

  .top-badge {
    display: none;
  }

  .hero-heritage {
    font-size: 0.88rem;
  }

  .feature-pill-row {
    gap: 0.45rem;
  }

  .customer-main {
    padding: 0.75rem;
  }

  .banking-header {
    padding: 0.75rem 0.55rem 0.85rem;
  }

  .bank-content-panel,
  .wire-panel,
  .transactions-panel {
    padding-inline: 0.75rem;
  }
}

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

  .hero-partners-logos {
    grid-template-columns: 1fr 1fr;
  }
}


/* ===== Home remaster (classic navy/gold, elevated) ===== */
.home-remaster {
  --home-gold: #e4c57a;
  --home-gold-deep: #cfa24f;
  --home-ink: #07111f;
}

.home-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  animation: homeOrbFloat 14s ease-in-out infinite;
}

.home-orb--a {
  width: min(42rem, 90vw);
  height: min(42rem, 90vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(47, 117, 255, 0.28) 0%, rgba(47, 117, 255, 0) 68%);
}

.home-orb--b {
  width: min(34rem, 80vw);
  height: min(34rem, 80vw);
  right: -10%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(207, 162, 79, 0.16) 0%, rgba(207, 162, 79, 0) 70%);
  animation-delay: -5s;
}

.home-grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 60% at 40% 25%, #000 20%, transparent 75%);
  opacity: 0.45;
}

@keyframes homeOrbFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.04);
  }
}

.home-remaster .home-top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(2, 6, 17, 0.72) 0%,
    rgba(6, 11, 31, 0.42) 100%
  );
}

.home-remaster .home-top .logo-text {
  letter-spacing: 0.02em;
  font-weight: 750;
}

.home-remaster .home-top .top-badge {
  border-color: rgba(228, 197, 122, 0.28);
  color: #f3e6c3;
  background: rgba(228, 197, 122, 0.08);
}

.home-landing {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: center;
}

.home-hero {
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

.home-copy {
  animation: homeRise 0.7s ease both;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #d5e2ff;
  letter-spacing: 0.14em;
}

.home-kicker::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--home-gold);
  box-shadow: 0 0 12px rgba(228, 197, 122, 0.7);
}

.home-title {
  font-family: "Source Serif 4", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 4.4vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #f7f9ff;
  text-wrap: balance;
}

.home-subtitle {
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(190, 206, 240, 0.88);
  margin: 0;
}

.home-stats {
  margin-top: 1.75rem;
  max-width: 28rem;
  gap: 1rem 1.5rem;
}

.home-stat {
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-stat .hero-stat-value {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

.home-pills {
  margin-top: 1.2rem;
}

.home-remaster .home-pills .feature-pill {
  background: rgba(47, 117, 255, 0.14);
  border-color: rgba(120, 164, 255, 0.32);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-remaster .home-pills .feature-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(228, 197, 122, 0.45);
  background: rgba(228, 197, 122, 0.1);
}

.home-partners {
  margin-top: 1.5rem;
  max-width: 38rem;
  padding: 1rem 1.05rem 1.05rem;
  border-radius: 1rem;
  background:
    linear-gradient(155deg, rgba(10, 18, 42, 0.92), rgba(5, 12, 30, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.home-auth {
  position: relative;
  padding: 1.55rem 1.45rem 1.4rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(16, 28, 64, 0.88), rgba(8, 16, 40, 0.82));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: homeRise 0.75s ease 0.08s both;
}

.home-auth-shine {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228, 197, 122, 0.65), transparent);
  opacity: 0.9;
}

.home-auth-head {
  margin-bottom: 0.85rem;
}

.card-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 600;
  color: #d8c08a;
}

.home-auth h2 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.home-auth-lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.home-auth-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c9d7f5;
}

.home-auth-form input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 8, 22, 0.55);
  color: var(--text);
  padding: 0.78rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-auth-form input:focus {
  border-color: rgba(228, 197, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(228, 197, 122, 0.14);
  background: rgba(2, 8, 22, 0.72);
}

.home-auth-submit {
  width: 100%;
  margin-top: 1rem;
  padding: 0.88rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(207, 162, 79, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.home-auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(207, 162, 79, 0.34);
}

.home-case-toggle {
  width: 100%;
  margin-top: 0.75rem;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.home-case-panel {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-case-panel label {
  display: block;
  margin: 0.45rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-case-panel input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 8, 22, 0.55);
  color: var(--text);
  padding: 0.78rem 0.9rem;
}

.home-case-panel .primary {
  width: 100%;
  margin-top: 0.75rem;
}

.home-case-meta {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.88rem;
}

.home-trust {
  margin-top: 1.05rem;
  padding-top: 0.85rem;
  border-top-color: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: rgba(176, 196, 232, 0.78);
}

.home-trust strong {
  color: #e8eefc;
  font-weight: 650;
  margin-right: 0.35rem;
}

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-orb,
  .home-copy,
  .home-auth {
    animation: none !important;
  }
}

body:has(#customer.view.active) .home-atmosphere {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 900px) {
  .home-landing {
    min-height: auto;
    align-items: stretch;
    padding-bottom: 1.5rem;
  }

  .home-hero {
    align-items: stretch;
  }

  .home-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .home-auth {
    margin-top: 0.25rem;
  }
}

/* ===== SG clone home (classic navy/blue theme + gold logo) ===== */
.sg-home {
  --sg-blue: var(--blue);
  --sg-blue-2: #5b94ff;
  --sg-gold: var(--gold);
  --sg-gold-2: #e4c57a;
  position: relative;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

.sg-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sg-page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: blur(3px) saturate(0.85) brightness(0.42);
  transform: scale(1.05);
}

.sg-page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(2, 6, 17, 0.92) 0%, rgba(2, 6, 17, 0.78) 38%, rgba(6, 11, 31, 0.55) 62%, rgba(2, 6, 17, 0.72) 100%),
    radial-gradient(ellipse 55% 50% at 12% 30%, rgba(47, 117, 255, 0.16), transparent 60%);
}

.sg-home > .sg-top,
.sg-home > main {
  position: relative;
  z-index: 1;
}

.sg-home .background-glow,
.sg-home .home-atmosphere {
  display: none !important;
}

body:has(#customer.view.active) .sg-page-bg {
  display: none;
}

.sg-home.sg-home main {
  padding-top: 0.5rem;
}

.sg-top.customer-top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(2, 6, 17, 0.55) 0%, rgba(6, 11, 31, 0.2) 100%);
  backdrop-filter: blur(10px);
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

body:has(#customer.view.active) .sg-top.customer-top {
  background: rgba(2, 6, 17, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

/* Logo: mastered lockup — slightly larger, crisp, subtle gold presence */
.sg-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  line-height: 0;
  flex-shrink: 0;
}

.sg-brand-lockup {
  display: block;
  height: 4.15rem;
  width: auto;
  max-width: min(17.75rem, 68vw);
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
  -webkit-user-drag: none;
  user-select: none;
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45))
    drop-shadow(0 2px 10px rgba(212, 175, 85, 0.32))
    drop-shadow(0 0 18px rgba(232, 200, 106, 0.12));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.sg-brand:hover .sg-brand-lockup {
  filter:
    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45))
    drop-shadow(0 3px 12px rgba(212, 175, 85, 0.42))
    drop-shadow(0 0 22px rgba(232, 200, 106, 0.18));
}

.customer-top .sg-brand-lockup,
.sg-top .sg-brand-lockup {
  height: 4.35rem;
  max-width: min(18.5rem, 70vw);
}

@media (max-width: 640px) {
  .sg-brand-lockup,
  .customer-top .sg-brand-lockup,
  .sg-top .sg-brand-lockup {
    height: 3.55rem;
    max-width: min(15.25rem, 72vw);
  }
}

.sg-top-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.sg-top-nav .nav-btn {
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
}

.sg-top-nav .nav-btn[hidden] {
  display: none !important;
}

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

.sg-landing {
  padding: 0.35rem 0 1.5rem;
}

.sg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18.5rem, 22.5rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 6.5rem);
}

.sg-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0 1.5rem;
  max-width: 40rem;
}

.sg-headline {
  margin: 0;
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}

.sg-headline-accent {
  color: var(--sg-blue);
}

.sg-sub {
  margin: 1.15rem 0 0;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(220, 230, 255, 0.78);
}

.sg-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0;
  margin-top: 1.75rem;
  align-items: start;
}

.sg-stat {
  padding-right: 1.75rem;
}

.sg-stat + .sg-stat {
  padding-left: 1.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.sg-stat strong {
  display: block;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.sg-stat--gold strong {
  color: transparent;
  background: linear-gradient(100deg, #c79a3d, #f3df9a 55%, #d8b45c);
  -webkit-background-clip: text;
  background-clip: text;
}

.sg-stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.sg-partners {
  margin-top: 2.35rem;
}

.sg-partners-label {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-blue-2);
}

.sg-partners-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  background: rgba(8, 14, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.sg-partner {
  height: 1.05rem;
  width: auto;
  max-width: 5.8rem;
  object-fit: contain;
  opacity: 0.88;
  filter: brightness(1.06);
  transform: translateZ(0);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .sg-partner:hover {
    opacity: 1;
    filter: brightness(1.28) drop-shadow(0 0 10px rgba(91, 148, 255, 0.35));
    transform: translateY(-2px) scale(1.06);
  }
}

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

  .sg-partner:hover {
    transform: none;
  }
}

.sg-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0;
}

.sg-signin.auth-card {
  position: relative;
  width: 100%;
  max-width: 22.5rem;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(47, 117, 255, 0.55);
  background: rgba(8, 16, 40, 0.82);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 0 0 1px rgba(47, 117, 255, 0.12),
    0 0 28px rgba(47, 117, 255, 0.18),
    0 22px 50px rgba(0, 0, 0, 0.45);
  align-self: center;
  animation: sgSignInIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

@keyframes sgSignInIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-signin.auth-card {
    animation: none;
  }
}

.sg-signin-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.sg-signin-sub {
  margin: 0.3rem 0 0.85rem;
  font-size: 0.8rem;
  color: rgba(180, 196, 230, 0.72);
}

.sg-notice {
  margin: 0 0 0.95rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(47, 117, 255, 0.45);
  background: rgba(47, 117, 255, 0.08);
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(210, 222, 255, 0.86);
}

.sg-notice strong,
.sg-notice-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
  color: #fff;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.sg-notice-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--sg-blue-2);
  filter: drop-shadow(0 0 6px rgba(47, 117, 255, 0.45));
}

.sg-home .sg-signin .antibot-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sg-home .sg-signin .turnstile-wrap:empty {
  display: none;
}

.sg-form > input[type="text"],
.sg-form > .sg-pass-wrap,
.sg-case-panel input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
}

.sg-form > input[type="text"]:first-of-type {
  margin-top: 0;
}

.sg-form input[type="text"],
.sg-form input[type="password"],
.sg-case-panel input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 0.78rem 0.95rem;
  background: rgba(4, 10, 26, 0.88);
  color: #eaf1ff;
  font-size: 0.92rem;
  outline: none;
}

.sg-form input::placeholder {
  color: rgba(158, 176, 216, 0.65);
}

.sg-form input:focus {
  border-color: rgba(47, 117, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(47, 117, 255, 0.15);
}

.sg-pass-wrap {
  position: relative;
}

.sg-pass-wrap input {
  padding-right: 2.65rem;
}

.sg-pass-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(180, 196, 230, 0.75);
  padding: 0.35rem;
  border-radius: 999px;
  cursor: pointer;
}

.sg-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.8rem 0 0.25rem;
  font-size: 0.8rem;
}

.sg-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(220, 230, 255, 0.82);
  cursor: pointer;
  user-select: none;
}

.sg-linkish {
  border: 0;
  background: none;
  color: rgba(200, 214, 245, 0.82);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sg-signin-btn {
  width: 100%;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 999px !important;
  padding: 0.82rem 1rem !important;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(180deg, #4f8cff, var(--blue) 55%, #245fe0) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(47, 117, 255, 0.32);
}

.sg-signin-btn:hover {
  filter: brightness(1.06);
}

.sg-case-link {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  text-align: center;
  text-decoration: none;
  color: var(--sg-blue-2);
  font-size: 0.84rem;
}

.sg-case-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-case-panel label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  color: rgba(220, 230, 255, 0.8);
}

.sg-assist {
  margin: 0.9rem 0 0;
  text-align: left;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(170, 188, 225, 0.7);
}

.sg-assist a {
  color: var(--sg-blue-2);
  text-decoration: none;
  font-weight: 600;
}

body:has(#customer.view.active).sg-home {
  background: var(--site-page-bg);
}

@media (max-width: 980px) {
  .sg-landing {
    padding: 0.15rem 0 1.25rem;
  }

  .sg-shell {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.65rem;
  }

  .sg-left {
    padding: 0.25rem 0 0.5rem;
    max-width: none;
  }

  .sg-right {
    justify-content: stretch;
    order: -1;
    padding: 0;
  }

  .sg-signin.auth-card {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: 1rem;
  }

  .sg-headline {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .sg-partners {
    margin-top: 1.75rem;
  }

  .sg-partners-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.25rem;
    padding: 1rem 1.05rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 0.9rem, #000 calc(100% - 0.9rem), transparent 100%);
  }

  .sg-partners-row::-webkit-scrollbar {
    display: none;
  }

  .sg-partner {
    height: 1.2rem;
    max-width: none;
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 0.15rem 0;
  }
}

@media (max-width: 640px) {
  .sg-home.sg-home main {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  }

  .sg-top.customer-top {
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }

  .sg-top.customer-top .top-badge {
    display: none;
  }

  .sg-shell {
    gap: 1.25rem;
  }

  .sg-signin.auth-card {
    padding: 1.1rem 0.95rem 0.95rem;
  }

  .sg-signin-title {
    font-size: 1.35rem;
  }

  .sg-signin-sub {
    font-size: 0.76rem;
    margin-bottom: 0.75rem;
  }

  .sg-notice {
    padding: 0.65rem 0.7rem;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .sg-form input[type="text"],
  .sg-form input[type="password"],
  .sg-case-panel input[type="text"] {
    padding: 0.85rem 0.9rem;
    font-size: 1rem; /* avoids iOS zoom */
  }

  .sg-form-row {
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
  }

  .sg-assist {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .sg-partners-label {
    margin-bottom: 0.55rem;
  }

  .sg-partners-row {
    gap: 1.4rem;
    padding: 0.95rem 1rem;
  }

  .sg-partner {
    height: 1.12rem;
  }

  .sg-sub {
    font-size: 0.92rem;
    margin-top: 0.95rem;
  }

  .sg-stats {
    margin-top: 1.35rem;
  }

  .sg-info {
    margin-top: 1.15rem;
    gap: 0.85rem;
    padding-bottom: 0.75rem;
  }

  .sg-info-block {
    padding: 1rem 0 0.35rem;
    gap: 0.95rem;
  }

  .sg-info-title {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }

  .sg-info-body,
  .sg-info-list li {
    font-size: 0.88rem;
  }

  .sg-info-alert {
    font-size: 0.78rem;
    padding: 0.75rem 0.8rem;
  }

  .sg-info-visual {
    min-height: 11rem;
    border-radius: 0.95rem;
  }

  .sg-info-visual img {
    min-height: 11rem;
    max-height: 13.5rem;
  }

  .sg-info-visual figcaption {
    font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  }

  .sg-footer {
    padding: 1rem 0 0.35rem;
  }
}

@media (max-width: 520px) {
  .sg-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .sg-stat,
  .sg-stat + .sg-stat {
    padding: 0;
    border: 0;
  }
}

/* Below-fold program info — alternating story bands */
.sg-info {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin: clamp(1.5rem, 4vw, 3rem) 0 0.5rem;
  padding-bottom: 1.5rem;
}

.sg-info-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.15rem, 2.5vw, 1.75rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sg-info-block--flip .sg-info-copy {
  order: 2;
}

.sg-info-block--flip .sg-info-visual {
  order: 1;
}

.sg-info-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sg-blue-2);
}

.sg-info-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}

.sg-info-body {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(210, 222, 255, 0.78);
}

.sg-info-list {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  max-width: 36rem;
}

.sg-info-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(225, 234, 255, 0.88);
}

.sg-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 1px;
  background: linear-gradient(135deg, #5b94ff, #2f75ff);
  box-shadow: 0 0 10px rgba(47, 117, 255, 0.45);
}

.sg-info-alert {
  margin-top: 1.15rem;
  max-width: 36rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(47, 117, 255, 0.4);
  border-left: 3px solid var(--sg-blue);
  background: rgba(47, 117, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(210, 222, 255, 0.9);
}

.sg-info-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  min-height: 15rem;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(47, 117, 255, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.4);
}

.sg-info-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 15rem;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-info-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 17, 0.15) 0%, rgba(2, 6, 17, 0.55) 55%, rgba(2, 6, 17, 0.82) 100%),
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(47, 117, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.sg-info-visual figcaption {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  margin: 0;
  width: max-content;
  max-width: 90%;
  text-align: center;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.sg-info-visual:hover img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .sg-info-visual img,
  .sg-info-visual:hover img {
    transition: none;
    transform: none;
  }
}

@media (max-width: 900px) {
  .sg-info-block,
  .sg-info-block--flip {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .sg-info-block--flip .sg-info-copy,
  .sg-info-block--flip .sg-info-visual {
    order: initial;
  }

  .sg-info-visual {
    min-height: 12.5rem;
  }

  .sg-info-visual img {
    min-height: 12.5rem;
    max-height: 16rem;
  }
}

/* Landing footer */
.sg-footer {
  margin-top: 0.35rem;
  padding: 1.25rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.sg-footer-line {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(160, 178, 215, 0.62);
}
