/* =====================================================================
   Bank of Maldives (BML) — Main Stylesheet
   Brand red: #e21b23  |  Dark red: #8b0000  |  Light bg: #fefefe
   ===================================================================== */

/* ---- CSS Variables ---- */
:root {
  --color-brand:          #e21b23;
  --color-brand-dark:     #8b0000;
  --color-brand-hover:    #c41820;
  --color-bg:             #fefefe;
  --color-surface:        #ffffff;
  --color-border:         #d6d6d6;
  --color-border-focus:   #e21b23;
  --color-cancel-bg:      #f0f0f0;
  --color-cancel-text:    #666666;
  --color-text:           #1a1a1a;
  --color-text-secondary: #555555;
  --color-text-muted:     #888888;
  --color-error:          #d0021b;
  --color-error-bg:       #fff0f0;
  --color-link:           #e21b23;
  --radius-sm:            8px;
  --radius-md:            12px;
  --radius-lg:            16px;
  --radius-pill:          100px;
  --shadow-card:          0 4px 24px rgba(0,0,0,0.10);
  --shadow-btn:           0 2px 8px rgba(226,27,35,0.30);
  --max-width:            430px;
  --transition:           0.2s ease;
  --font-primary:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, a, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---- App shell ---- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-brand);
}

@media (min-width: 431px) {
  .app-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 60px rgba(0,0,0,0.28);
  }
}

/* =====================================================================
   SPINNER OVERLAY
   ===================================================================== */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.spinner-overlay.active {
  display: flex;
}
.spinner-ring {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(226, 27, 35, 0.15);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   SCREENS — shared flex container
   ===================================================================== */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  min-height: 100vh;
}

.light-body {
  background-color: var(--color-bg);
}

/* =====================================================================
   SPLASH SCREEN
   ===================================================================== */
.splash-body {
  background-color: var(--color-brand);
}

.splash-body .app-shell {
  box-shadow: none;
  max-width: 100%;
  background: var(--color-brand);
}

.splash-screen {
  background-color: var(--color-brand);
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  user-select: none;
  animation: splashFadeIn 0.6s ease forwards;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.80); }
  to   { opacity: 1; transform: scale(1); }
}

/* =====================================================================
   LOGIN SCREEN — Browser chrome layout
   ===================================================================== */
.login-screen {
  background: #ffffff;
  overflow: hidden;
  min-height: 100vh;
}

/* Top address-bar chrome */
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: #f2f2f7;
  border-bottom: 1px solid #d1d1d6;
  flex-shrink: 0;
  z-index: 10;
}
.browser-bar__url {
  font-size: 15px;
  font-weight: 500;
  color: #1c1c1e;
  user-select: none;
}

/* Scene: blurred bg + card overlay */
.login-scene {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: calc(100vh - 44px);
}

/* Blurred background photo */
.login-scene__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.login-scene__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(3px) brightness(0.88);
  transform: scale(1.05);
}

/* White card popup */
.login-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px 24px;
  margin: 80px 12px 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.08);
  overflow-y: auto;
}

/* Logo inside the card */
.login-logo-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.login-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

/* Title */
.login-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.login-subtitle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

/* Error banner */
.login-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fde8e8;
  border: 1px solid rgba(208, 2, 27, 0.25);
  border-left: 4px solid #d0021b;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  color: #d0021b;
  font-size: 13px;
  font-weight: 600;
}

/* Form inputs inside the login card */
.login-card .form-group {
  margin-bottom: 12px;
}
.login-card .form-label {
  font-size: 12px;
  color: #6b6b6b;
  margin-bottom: 4px;
}
.login-card .form-input {
  height: 40px;
  font-size: 15px;
  border-color: #c8c8cc;
  border-radius: 4px;
}
.login-card .form-input:focus {
  border-color: #d8362b;
  box-shadow: 0 0 0 3px rgba(216, 54, 43, 0.12);
}

/* Forgot password */
.forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 5px;
}
.forgot-link {
  font-size: 13px;
  color: #0071e3;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.forgot-link:hover { text-decoration: underline; }

/* Login button */
.btn-login {
  width: 100%;
  height: 40px;
  background: #d8362b;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  box-shadow: 0 2px 10px rgba(216, 54, 43, 0.35);
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-primary);
}
.btn-login:hover  { background: #be2e24; }
.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; }

/* OR divider */
.login-or-row {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  gap: 10px;
}
.login-or-row::before,
.login-or-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.login-or-text {
  font-size: 11.5px;
  color: #9a9a9a;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Footer links */
.login-footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.login-footer-link {
  font-size: 13px;
  color: #0071e3;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.login-footer-link:hover { text-decoration: underline; }

/* =====================================================================
   OTP INSIDE LOGIN CARD
   ===================================================================== */
.otp-2fa-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
}

.otp-hint {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2px;
}
.otp-hint strong {
  color: var(--color-text);
  font-weight: 600;
}
.otp-hint-link {
  color: #0071e3;
  text-decoration: underline;
  cursor: pointer;
}

/* Resend button inline */
.otp-resend-inline {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-primary);
  color: #0071e3;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
}
.otp-resend-inline:disabled {
  color: var(--color-text-muted);
  cursor: default;
  opacity: 0.5;
}

/* OTP form */
.otp-form {
  margin: 0;
}
.otp-code-group {
  margin-top: 4px;
  margin-bottom: 8px;
}
.otp-code-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.otp-code-input {
  width: 100%;
  height: 44px;
}

/* Go back button */
.otp-go-back {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0 2px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-primary);
  color: var(--color-text);
  cursor: pointer;
  text-align: center;
  transition: opacity 0.15s;
}
.otp-go-back:hover { opacity: 0.7; }

/* =====================================================================
   FORM ELEMENTS (card, balance screens)
   ===================================================================== */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}
.required {
  color: var(--color-error);
  margin-left: 2px;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.label-row .form-label {
  margin-bottom: 0;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-primary);
}
.form-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(226, 27, 35, 0.12);
}
.form-input.input-error {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}
.form-input::placeholder { color: #bbb; }

input[type="password"].form-input {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
}
input[type="password"].form-input::placeholder {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  color: #bbb;
}

.field-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 5px;
}

/* Two-column row */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Info button */
.info-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.info-btn:hover { background: rgba(226, 27, 35, 0.08); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  width: 100%;
  height: 46px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font-primary);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--color-brand-hover); }

/* =====================================================================
   SHARED SCREEN HEADER (card, balance)
   ===================================================================== */
.screen-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.header-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.screen-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}
.screen-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* =====================================================================
   HELP POPUP — card screen
   ===================================================================== */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 8000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup-overlay.active {
  display: flex;
}
.popup-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 28px 20px 22px;
  width: 100%;
  max-width: 360px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
  animation: popupFadeIn 0.22s ease;
}
@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}
.popup-close:hover { background: rgba(0,0,0,0.12); }
.popup-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 16px;
  padding-right: 20px;
}
.popup-card-diagram {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.popup-card-diagram svg {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 14px rgba(226,27,35,0.35));
  display: block;
  margin: 0 auto;
}
.popup-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  text-align: center;
  line-height: 1.55;
  min-height: 36px;
  margin-bottom: 18px;
}
.popup-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.popup-tab {
  flex: 1;
  height: 36px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-primary);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.popup-tab:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.popup-tab--active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
}

/* =====================================================================
   CARD SCREEN
   ===================================================================== */
.card-screen {
  padding: 28px 24px 40px;
  background: var(--color-bg);
}
.card-screen .screen-header {
  margin-bottom: 16px;
}

/* Card number input + network icon */
.card-input-wrap {
  position: relative;
}
.card-input-wrap .card-number-input {
  padding-right: 76px;
}
.card-network-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  height: 24px;
}
.net-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
#iconVisa {
  width: 36px;
  height: 14px;
  color: #1a1f71;
}
#iconMC {
  width: 36px;
  height: 22px;
}
#iconValid,
#iconInvalid {
  width: 20px;
  height: 20px;
}
/* Green / red borders */
.card-input-wrap.card-valid .card-number-input {
  border-color: #00846a;
  box-shadow: 0 0 0 3px rgba(0, 132, 106, 0.12);
  background-color: #f0fdf8;
}
.card-input-wrap.card-invalid .card-number-input {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(208, 2, 27, 0.1);
  background-color: var(--color-error-bg);
}

/* =====================================================================
   OTP NAV (balance / success screens)
   ===================================================================== */
.otp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.otp-nav-back {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.otp-nav-back:hover { background: rgba(0,0,0,0.05); }
.otp-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  text-align: center;
}
.otp-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

/* =====================================================================
   BALANCE SCREEN
   ===================================================================== */
.balance-screen {
  padding: 0 0 48px;
  background: #f4f5f7;
}

/* Nav bar */
.balance-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.balance-nav-back {
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.balance-nav-back:hover { background: rgba(0,0,0,0.05); }
.balance-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
  text-align: center;
}
.balance-nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

/* Cards carousel */
.cards-carousel-wrap {
  padding: 20px 20px 0;
  overflow: hidden;
}
.cards-carousel {
  display: flex;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
}
.cards-carousel:active { cursor: grabbing; }
.card-slide {
  min-width: 100%;
  padding: 0 4px;
}

/* Virtual card */
.virtual-card {
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 1.586 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.virtual-card--primary { background: linear-gradient(135deg, #8b0000 0%, #e21b23 100%); }
.virtual-card--savings { background: linear-gradient(135deg, #5a0000 0%, #a01010 100%); }
.virtual-card--credit  { background: linear-gradient(135deg, #2c0000 0%, #6b0000 100%); }
.virtual-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
}
.virtual-card::after {
  content: '';
  position: absolute; bottom: -60px; left: -20px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.vc-top {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.vc-brand { font-size: 18px; font-weight: 700; color: white; letter-spacing: 1.5px; }
.vc-chip { width: 44px; height: 34px; position: relative; z-index: 1; }
.vc-chip svg { width: 100%; height: 100%; }
.vc-number {
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px; color: white; letter-spacing: 2.5px;
  position: relative; z-index: 1;
}
.vc-bottom {
  display: flex; align-items: flex-end; justify-content: space-between;
  position: relative; z-index: 1;
}
.vc-expiry { display: flex; flex-direction: column; gap: 2px; }
.vc-expiry-label {
  font-size: 8px; color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.vc-expiry-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px; color: white; letter-spacing: 1px;
}
.vc-type { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.8); letter-spacing: 1.5px; }

/* Carousel dots */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 14px; padding-bottom: 4px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(226, 27, 35, 0.2);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer; border: none; padding: 0;
}
.dot--active { background: var(--color-brand); transform: scale(1.25); }

/* Balance form */
.balance-form-wrap {
  margin: 24px 20px 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.balance-hint {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.account-number-display {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f7f7f7;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.acct-dot {
  font-size: 10px;
  color: var(--color-text-muted);
  line-height: 1;
  flex-shrink: 0;
}
.balance-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.balance-currency {
  position: absolute;
  left: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  pointer-events: none;
  z-index: 1;
}
.balance-amount-input { padding-left: 50px; }

/* =====================================================================
   SUCCESS SCREEN
   ===================================================================== */
.success-screen {
  background: var(--color-bg);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.success-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 28px 48px;
  text-align: center;
}
.success-check-wrap {
  margin-bottom: 24px;
  animation: checkPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes checkPop {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.success-check-svg {
  width: 72px;
  height: 72px;
  display: block;
}
.success-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}
.success-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 300px;
}
.success-desc strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Circular countdown */
.success-timer-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.success-timer-ring {
  width: 128px;
  height: 128px;
  display: block;
}
.success-timer-digits {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.success-timer-hm {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.success-timer-s {
  font-size: 14px;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.success-timer-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}
.success-home-btn {
  width: 100%;
  max-width: 320px;
}
.success-btn-locked {
  background: #b0b0b0 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}
.success-locked-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.55;
}

/* =====================================================================
   UTILITY
   ===================================================================== */
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-primary); }
:focus-visible { outline: none; }
