:root {
      --brand-dark: #1A2530;
      --brand-cyan: #00B4D8;
      --brand-blue: #0077B6;
      --muted: #60738a;
      --line: #d8e7ee;
      --soft: #f4fbfd;
      --success: #078a4e;
      --warning: #a76200;
      --danger: #bd2130;
    }

    * { box-sizing: border-box; }

    html,
    body {
      min-height: 100%;
      margin: 0;
      font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--brand-dark);
      background:
        radial-gradient(circle at 15% 10%, rgba(0, 180, 216, .20), transparent 34%),
        radial-gradient(circle at 85% 15%, rgba(0, 119, 182, .13), transparent 30%),
        linear-gradient(135deg, #f7fbfd 0%, #edf8fb 45%, #ffffff 100%);
    }

    body {
      display: grid;
      place-items: center;
      padding: 28px;
    }

    .shell {
      width: min(980px, 100%);
    }

    .top-link {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 18px;
      color: #38516a;
      font-size: 13px;
      font-weight: 800;
      text-decoration: none;
    }

    .top-link:hover { color: var(--brand-blue); }

    .card {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
      gap: 0;
      min-height: 560px;
      border: 1px solid rgba(0, 180, 216, .20);
      border-radius: 34px;
      background: rgba(255, 255, 255, .88);
      box-shadow: 0 28px 70px rgba(26, 37, 48, .15);
      backdrop-filter: blur(18px);
    }

    .intro {
      position: relative;
      padding: 54px;
      background:
        linear-gradient(145deg, rgba(26, 37, 48, .94), rgba(0, 119, 182, .86)),
        radial-gradient(circle at top right, rgba(0, 180, 216, .5), transparent 40%);
      color: #fff;
    }

    .intro::after {
      content: "";
      position: absolute;
      inset: auto -90px -90px auto;
      width: 260px;
      height: 260px;
      border-radius: 999px;
      background: rgba(255,255,255,.12);
    }

    .panel-brand {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-bottom: 54px;
    }

    .panel-brand img {
      width: 220px;
      max-width: 100%;
      height: auto;
      filter: drop-shadow(0 14px 28px rgba(14,25,40,.08));
    }

    h1 {
      margin: 0 0 16px;
      max-width: 520px;
      font-family: Montserrat, Inter, sans-serif;
      font-size: clamp(34px, 5vw, 58px);
      line-height: .98;
      letter-spacing: -.055em;
    }

    .intro p {
      max-width: 510px;
      margin: 0;
      color: rgba(255,255,255,.82);
      font-size: 16px;
      line-height: 1.72;
      font-weight: 600;
    }

    .steps {
      display: grid;
      gap: 12px;
      margin-top: 42px;
      max-width: 470px;
    }

    .step {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 13px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 18px;
      background: rgba(255,255,255,.10);
    }

    .step i {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 13px;
      background: rgba(255,255,255,.15);
      color: #fff;
    }

    .step strong {
      display: block;
      font-size: 13px;
      font-weight: 900;
    }

    .step span {
      display: block;
      margin-top: 2px;
      color: rgba(255,255,255,.70);
      font-size: 12px;
      line-height: 1.4;
      font-weight: 600;
    }

    .panel {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 46px;
      background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,253,255,.96));
    }

    .panel-badge {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      gap: 8px;
      margin-bottom: 18px;
      padding: 8px 12px;
      border: 1px solid #c9eef7;
      border-radius: 999px;
      background: #edfbff;
      color: #007d97;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .panel h2 {
      margin: 0 0 9px;
      font-family: Montserrat, Inter, sans-serif;
      font-size: 30px;
      line-height: 1.05;
      letter-spacing: -.04em;
    }

    .panel-copy {
      margin: 0 0 24px;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
      font-weight: 650;
    }

    .field {
      display: grid;
      gap: 8px;
      margin-bottom: 14px;
    }

    label {
      color: #38516a;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .input-wrap {
      position: relative;
    }

    .input-wrap i {
      position: absolute;
      top: 50%;
      left: 16px;
      transform: translateY(-50%);
      color: #00a4c5;
    }

    input {
      width: 100%;
      height: 58px;
      padding: 0 16px 0 46px;
      border: 1px solid var(--line);
      border-radius: 17px;
      background: #fff;
      color: var(--brand-dark);
      font: 900 18px/1 Inter, sans-serif;
      letter-spacing: .01em;
      outline: none;
      transition: border-color .18s ease, box-shadow .18s ease;
    }

    input:focus {
      border-color: var(--brand-cyan);
      box-shadow: 0 0 0 4px rgba(0,180,216,.14);
    }

    input[aria-invalid="true"] {
      border-color: #f2a8ad;
      box-shadow: 0 0 0 4px rgba(189,33,48,.10);
    }

    .button-row {
      display: flex;
      gap: 10px;
      align-items: center;
      flex-wrap: wrap;
    }

    .btn {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 54px;
      padding: 0 22px;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
      color: #fff;
      font: 900 13px/1 Inter, sans-serif;
      letter-spacing: .05em;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
      box-shadow: 0 15px 28px rgba(0,119,182,.24);
    }

    .btn.secondary {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--brand-dark);
      box-shadow: none;
    }

    .btn:disabled {
      opacity: .68;
      cursor: wait;
    }

    .message {
      display: none;
      margin-top: 20px;
      padding: 15px;
      border-radius: 18px;
      border: 1px solid var(--line);
      background: var(--soft);
    }

    .message.is-visible { display: block; }
    .message.success { border-color: #bfead3; background: #effbf5; color: var(--success); }
    .message.warning { border-color: #f4d6a9; background: #fff8ec; color: var(--warning); }
    .message.error { border-color: #f3b7bd; background: #fff3f4; color: var(--danger); }
    .message.loading { border-color: #bfeef7; background: #eefcff; color: #007d97; }

    .message strong {
      display: block;
      margin-bottom: 4px;
      font-size: 13px;
      font-weight: 900;
    }

    .message span {
      display: block;
      color: inherit;
      font-size: 12px;
      line-height: 1.55;
      font-weight: 700;
      opacity: .86;
    }

    .manual-actions {
      display: none;
      gap: 9px;
      margin-top: 14px;
      flex-wrap: wrap;
    }

    .manual-actions.is-visible {
      display: flex;
    }

    .decision-overlay {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background:
        radial-gradient(circle at 50% 30%, rgba(0, 180, 216, .20), transparent 34%),
        rgba(15, 23, 36, .54);
      backdrop-filter: blur(10px);
    }

    .decision-overlay.is-open {
      display: flex;
    }

    .decision-panel {
      width: min(430px, 100%);
      padding: 28px;
      border: 1px solid rgba(0, 180, 216, .20);
      border-radius: 28px;
      background: rgba(255, 255, 255, .96);
      box-shadow: 0 30px 70px rgba(15, 23, 36, .28);
      text-align: center;
    }

    .decision-icon {
      display: grid;
      place-items: center;
      width: 64px;
      height: 64px;
      margin: 0 auto 16px;
      border-radius: 22px;
      background: #eefcff;
      color: #009fc0;
      font-size: 24px;
    }

    .decision-overlay.success .decision-icon {
      background: #effbf5;
      color: var(--success);
    }

    .decision-overlay.warning .decision-icon {
      background: #fff8ec;
      color: var(--warning);
    }

    .decision-title {
      margin: 0;
      color: var(--brand-dark);
      font-family: Montserrat, Inter, sans-serif;
      font-size: 24px;
      line-height: 1.08;
      letter-spacing: -.04em;
    }

    .decision-copy {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.62;
      font-weight: 700;
    }

    .decision-loader {
      display: none;
      width: 100%;
      height: 6px;
      margin-top: 18px;
      overflow: hidden;
      border-radius: 999px;
      background: #dff6fb;
    }

    .decision-loader::before {
      content: "";
      display: block;
      width: 42%;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
      animation: decisionLoad 1s ease-in-out infinite alternate;
    }

    .decision-overlay.loading .decision-loader,
    .decision-overlay.success .decision-loader {
      display: block;
    }

    .decision-actions {
      display: none;
      gap: 10px;
      justify-content: center;
      margin-top: 20px;
      flex-wrap: wrap;
    }

    .decision-overlay.has-actions .decision-actions {
      display: flex;
    }

    .decision-action {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 46px;
      padding: 0 18px;
      border: 0;
      border-radius: 999px;
      background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
      color: #fff;
      font: 900 12px/1 Inter, sans-serif;
      letter-spacing: .04em;
      text-transform: uppercase;
      text-decoration: none;
      cursor: pointer;
    }

    .decision-action.secondary {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--brand-dark);
    }

    @keyframes decisionLoad {
      from { transform: translateX(-10%); }
      to { transform: translateX(150%); }
    }

    @media (max-width: 860px) {
      body { padding: 14px; place-items: start center; }
      .card { grid-template-columns: 1fr; border-radius: 26px; }
      .intro { padding: 34px 28px; }
      .panel-brand { justify-content: center; margin-bottom: 30px; }
      .panel-brand img { width: 190px; }
      .steps { margin-top: 26px; }
      .panel { padding: 32px 24px 28px; }
    }

    @media (max-width: 520px) {
      .intro { padding: 30px 22px; }
      .panel { padding: 28px 18px 22px; }
      .button-row .btn { width: 100%; }
      .manual-actions .btn { width: 100%; }
      .decision-actions .decision-action { width: 100%; }
      input { font-size: 16px; }
    }
