*, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Lato', 'Segoe UI', Arial, sans-serif;
    background: rgb(245, 245, 247);
    color: rgb(11, 5, 29);
    -webkit-font-smoothing: antialiased;
  }

  .panel {
    position: relative;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    padding: 0 24px 40px;
    display: flex;
    flex-direction: column;
  }

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    height: 44px;
  }
  .close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    color: rgb(11, 5, 29);
    transition: background .15s;
    margin-right: -8px;
  }
  .close:hover { background: rgb(245, 245, 247); }
  .close svg { width: 18px; height: 18px; display: block; }
  .header-logo { height: 24px; }
  .back-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    margin-left: -8px;
    color: rgb(11, 5, 29);
    display: flex;
    align-items: center;
  }
  .view { display: flex; flex-direction: column; flex: 1; }
  .view.active {  }

  .success-banner {
    background: rgb(215, 247, 222);
    color: rgb(11, 5, 29);
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: opacity 1s ease-out;
  }
  .success-banner.fade-out { opacity: 0; pointer-events: none; }
  .success-banner svg { color: rgb(0, 112, 48); width: 20px; height: 20px; }

  .centered-view {
    justify-content: center;
    text-align: center;
    padding-top: 60px;
  }
  .spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(11, 5, 29, 0.1);
    border-top-color: rgb(11, 5, 29);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 24px;
  }
  .done-icon {
    width: 64px;
    height: 64px;
    background: rgb(0, 112, 48);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  @keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

  .done-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
  .done-text { margin: 0 auto;color: rgb(97, 95, 109); line-height: 1.5; }
  .redirect-text { margin-top: 40px; font-size: 14px; color: rgb(97, 95, 109); }

  h1 {
    margin: 30px 0 0;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: rgb(11, 5, 29);
  }

  .subtitle {
    margin: 5px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: rgb(58, 55, 71);
  }
  .subtitle a,
  .note a {
    color: rgb(96, 52, 196);
    font-weight: 700;
    text-decoration: none;
  }
  .subtitle a:hover,
  .note a:hover { text-decoration: underline; }

  form {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 22px;
  }

  /* Floating label field */
  .field {
    position: relative;
    height: 60px;
  }
  .field input {
    width: 100%;
    height: 100%;
    border: 1px solid rgb(112, 110, 123);
    border-radius: 11px;
    background: #fff;
    padding: 24px 15px 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: rgb(11, 5, 29);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  .field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: rgb(97, 95, 109);
    pointer-events: none;
    white-space: nowrap;
    transition: top .15s ease, transform .15s ease, font-size .15s ease;
  }
  .field input:not(:placeholder-shown) {
    border-color: rgb(112, 110, 123);
  }
  .field input:focus {
    border-color: rgb(11, 5, 29);
    box-shadow: inset 0 0 0 1px rgb(11, 5, 29);
  }
  .field input:focus + label,
  .field input:not(:placeholder-shown) + label {
    top: 9px;
    transform: translateY(0);
    font-size: 14px;
    line-height: 18px;
  }

  .actions {
    margin-top: auto;
    padding-top: 40px;
  }

  .btn {
    position: relative;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 999px;
    background: rgb(11, 5, 29);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, opacity .2s ease;
  }
  .btn:hover:not(:disabled) { background: rgb(36, 30, 56); }
  .btn:focus-visible { outline: 2px solid rgb(96, 52, 196); outline-offset: 2px; }
  .btn:disabled {
    background: rgb(112, 110, 123);
    cursor: not-allowed;
  }
  .btn .spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
  }
  .btn.loading .label { display: none; }
  .btn.loading .spinner { display: block; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .note {
    margin: 31px 0 0;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    color: rgb(97, 95, 109);
  }

  .legal {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 12.5px;
    line-height: 18px;
  }
  .legal a {
    color: rgb(58, 55, 71);
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .legal a:hover { color: rgb(11, 5, 29); }

  @media (max-width: 600px) {
    .panel { padding: 0 20px 32px; }
    h1 { margin-top: 64px; }
  }