/* [TFH-999:TFH_COMMON:CSS-START] */
:root {
  --tfh-navy-975: #04101f;
  --tfh-navy-950: #071426;
  --tfh-navy-900: #0b1f38;
  --tfh-navy-850: #102b4d;
  --tfh-navy-800: #12345c;
  --tfh-blue-650: #19558f;
  --tfh-blue-600: #1d5f9f;
  --tfh-blue-500: #2f7fc4;
  --tfh-blue-100: #e9f2fa;
  --tfh-gold-600: #9e6c20;
  --tfh-gold-500: #b98732;
  --tfh-gold-300: #d8b56e;
  --tfh-silver-100: #f7f8fa;
  --tfh-silver-200: #e3e7eb;
  --tfh-silver-400: #aab3bd;
  --tfh-silver-600: #6e7883;
  --tfh-ink-950: #0c1726;
  --tfh-ink-900: #132236;
  --tfh-ink-600: #5e6b7b;
  --tfh-line: rgba(17, 49, 84, 0.14);
  --tfh-surface: rgba(255, 255, 255, 0.96);
  --tfh-danger: #b42318;
  --tfh-success: #18794e;
  --tfh-shadow: 0 26px 70px rgba(8, 27, 49, 0.22);
  --tfh-radius-xl: 28px;
  --tfh-radius-lg: 18px;
  --tfh-radius-md: 13px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--tfh-ink-900);
  background:
    radial-gradient(circle at 12% 10%, rgba(47, 127, 196, 0.18), transparent 32%),
    radial-gradient(circle at 90% 86%, rgba(185, 135, 50, 0.15), transparent 30%),
    linear-gradient(135deg, #eef4f9 0%, #f8fafc 48%, #e8f0f7 100%);
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.is-hidden {
  display: none !important;
}

.tfh-toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.tfh-toast {
  min-width: min(360px, calc(100vw - 40px));
  max-width: 430px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(7, 20, 38, 0.95);
  box-shadow: 0 16px 36px rgba(4, 16, 31, 0.28);
  animation: tfh-toast-in 180ms ease-out;
}

.tfh-toast.is-error {
  background: rgba(180, 35, 24, 0.96);
}

@keyframes tfh-toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tfh-app-dialog-layer,
.tfh-app-waiting-layer {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 14, 28, 0.66);
  backdrop-filter: blur(7px);
}

.tfh-app-dialog-card {
  width: min(470px, 100%);
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 28px 28px 24px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(150deg,rgba(255,255,255,.99),rgba(237,244,250,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 30px 85px rgba(0,0,0,.34);
}

.tfh-app-dialog-emblem {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(145deg,#2f7fc4,#12345c);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 12px 28px rgba(18,52,92,.27);
}

.tfh-app-dialog-card.is-success .tfh-app-dialog-emblem {
  background: linear-gradient(145deg,#2c9a68,#12613f);
}

.tfh-app-dialog-card.is-warning .tfh-app-dialog-emblem,
.tfh-app-dialog-card.is-confirm .tfh-app-dialog-emblem {
  background: linear-gradient(145deg,#d39b38,#8f5e0d);
}

.tfh-app-dialog-card.is-error .tfh-app-dialog-emblem {
  background: linear-gradient(145deg,#d64739,#8d1710);
}

.tfh-app-dialog-kicker {
  color: var(--tfh-blue-600);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.tfh-app-dialog-card h2 {
  margin: 1px 0 0;
  color: var(--tfh-navy-850);
  font-size: 1.45rem;
}

.tfh-app-dialog-card p {
  max-width: 390px;
  margin: 3px 0 6px;
  color: var(--tfh-ink-600);
  font-size: .93rem;
  line-height: 1.55;
  white-space: pre-line;
}

.tfh-app-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 7px;
}

.tfh-app-waiting-layer {
  z-index: 31000;
  cursor: wait;
}

.tfh-app-waiting-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 17px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%,rgba(216,181,110,.18),transparent 34%),
    linear-gradient(145deg,rgba(5,22,43,.98),rgba(18,52,92,.98));
  box-shadow: 0 32px 95px rgba(0,0,0,.42);
}

.tfh-app-waiting-mark {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

.tfh-app-waiting-mark span {
  width: 6px;
  height: 28px;
  border-radius: 99px;
  background: linear-gradient(#fff,#d8b56e);
  animation: tfh-waiting-bars 900ms ease-in-out infinite;
}

.tfh-app-waiting-mark span:nth-child(2) { animation-delay: 120ms; }
.tfh-app-waiting-mark span:nth-child(3) { animation-delay: 240ms; }

.tfh-app-waiting-copy span {
  color: var(--tfh-gold-300);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.tfh-app-waiting-copy h2 {
  margin: 5px 0 4px;
  font-size: 1.35rem;
}

.tfh-app-waiting-copy p {
  margin: 0;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
}

.tfh-app-waiting-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.11);
}

.tfh-app-waiting-track span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,transparent,#d8b56e,#fff,#d8b56e,transparent);
  animation: tfh-waiting-track 1.45s ease-in-out infinite;
}

@keyframes tfh-waiting-bars {
  0%, 100% { height: 20px; opacity: .55; }
  50% { height: 42px; opacity: 1; }
}

@keyframes tfh-waiting-track {
  from { transform: translateX(-120%); }
  to { transform: translateX(330%); }
}

@media (max-width: 560px) {
  .tfh-app-waiting-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tfh-app-waiting-mark {
    margin: auto;
  }
}

/* [TFH-999:TFH_COMMON:CSS-END] */
