  :root {
    --page-bg: #FBF6EC;
    --card-bg: rgba(255, 255, 255, 0.62);
    --card-border: rgba(255, 255, 255, 0.85);
    --ink: #1B2140;
    --ink-soft: #4A4F6E;
    --coral: #F17B7B;
    --coral-deep: #EC6767;
    --lav: #E7E5FA;
    --lav-text: #5B5A8C;
    --input-bg: rgba(255, 255, 255, 0.85);
    --input-border: rgba(27, 27, 47, 0.08);
    --combo-bg: #ffffff;
    --avatar-ring: #ffffff;
    --line: rgba(27, 27, 47, 0.10);
    --danger: #E4483A;
    --glow-blue: 79, 140, 255;
    --glow-pink: 255, 120, 150;
    --teal: #0D9488;
    --bg-card: #FFFFFF;
    --bg-body: #F4F1EA;
    --border: rgba(27, 27, 47, 0.12);
    --text: #1B2140;
    --text-dim: #6B7280;
    color-scheme: light;
  }

  body.dark {
    --page-bg: radial-gradient(circle at 20% 15%, rgba(124, 111, 224, 0.25), transparent 45%), radial-gradient(circle at 85% 80%, rgba(79, 140, 255, 0.18), transparent 50%), #15132A;
    --card-bg: rgba(32, 29, 56, 0.6);
    --card-border: rgba(255, 255, 255, 0.14);
    --ink: #F1EFFB;
    --ink-soft: #B9B6DA;
    --coral: #FF9393;
    --coral-deep: #F16E6E;
    --lav: rgba(255, 255, 255, 0.08);
    --lav-text: #C9C6E8;
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.14);
    --combo-bg: #242138;
    --avatar-ring: #242138;
    --line: rgba(255, 255, 255, 0.14);
    --teal: #6FA98A;
    --bg-card: #201D38;
    --bg-body: #161426;
    --border: rgba(255, 255, 255, 0.14);
    --text: #F1EFFB;
    --text-dim: #8FA39A;
    color-scheme: dark;
  }

  body,
  .card,
  input,
  .chip,
  button.submit {
    transition: background .3s ease, color .3s ease, border-color .3s ease;
  }

  * {
    box-sizing: border-box;
  }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
  }

  html,
  body {
    height: 100%;
    overflow-x: hidden;
  }

  body {
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--page-bg);
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding:
      max(24px, env(safe-area-inset-top, 0)) max(24px, env(safe-area-inset-right, 0)) max(24px, env(safe-area-inset-bottom, 0)) max(24px, env(safe-area-inset-left, 0));
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ---- decorative background art ---- */
  .bg-globe {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    opacity: 0.9;
    pointer-events: none;
  }

  .bg-network {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 380px;
    height: 380px;
    opacity: 0.55;
    pointer-events: none;
  }

  .stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min-content;
    padding: 8px 0 16px;
    margin: auto;
  }

  .avatar {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }

  .avatar svg {
    width: 60%;
    height: 60%;
  }

  .avatar-glow-blue {
    box-shadow: 0 0 0 4px var(--avatar-ring), 0 0 26px 6px rgba(var(--glow-blue), 0.55);
  }

  .avatar-glow-pink {
    box-shadow: 0 0 0 4px var(--avatar-ring), 0 0 26px 6px rgba(var(--glow-pink), 0.55);
  }

  .avatar-faded {
    opacity: 0.45;
    box-shadow: 0 0 0 3px var(--avatar-ring), 0 0 14px 2px rgba(27, 33, 64, 0.15);
  }

  .a1 {
    top: 2%;
    left: 66%;
    width: 96px;
    height: 96px;
    background: linear-gradient(135deg, #F6B8C2, #F0888E);
  }

  .a2 {
    top: -2%;
    left: 82%;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #FFD9A0, #F7A96B);
  }

  .a3 {
    top: 32%;
    left: 86%;
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #F3A6B4, #E77088);
  }

  .a4 {
    top: 52%;
    left: 1%;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #C9CBE8, #9EA2D6);
  }

  .a5 {
    top: 70%;
    left: 12%;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #8FB8E0, #5E8FCB);
  }

  .a6 {
    top: 56%;
    left: 80%;
    width: 98px;
    height: 98px;
    background: linear-gradient(135deg, #A9C6E8, #6F9BCB);
  }

  @media (max-width: 980px) {

    .avatar,
    .bg-globe,
    .bg-network {
      display: none;
    }
  }

  body.dark .bg-globe,
  body.dark .bg-network {
    opacity: 0.28;
  }

  .card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid var(--card-border);
    border-radius: 26px;
    padding: 34px 38px 30px;
    box-shadow: 0 30px 70px -25px rgba(120, 60, 110, 0.35);
    position: relative;
    z-index: 2;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .theme-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
  }

  .theme-toggle svg {
    width: 15px;
    height: 15px;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 18px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C6FE0, #4F8CFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
  }

  .brand-name {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
    letter-spacing: -0.01em;
  }

  h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 27px;
    line-height: 1.15;
    margin: 0 0 6px;
    color: var(--ink);
    text-align: center;
  }

  .sub {
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  form {
    display: block;
  }

  .fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 16px;
  }

  .fields .span2,
  .fields .row {
    grid-column: 1 / -1;
  }

  label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
  }

  .field {
    position: relative;
  }

  .input-wrap {
    position: relative;
  }

  .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--ink-soft);
    opacity: 0.55;
    pointer-events: none;
  }

  .has-icon input {
    padding-left: 34px !important;
  }

  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  select,
  textarea {
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--input-border);
    background: var(--input-bg);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
  }

  .bio-textarea {
    min-height: 72px;
    resize: vertical;
    line-height: 1.4;
  }

  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 4px rgba(241, 123, 123, 0.16);
  }

  /* Real-Time Username Status Indicator */
  .username-status {
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
  }

  .username-status.show {
    display: flex;
  }

  .username-status.available {
    color: #10b981;
  }

  .username-status.taken {
    color: #ef4444;
  }

  .username-status.checking {
    color: var(--text-dim);
  }

  /* Autofill Notice Banner */
  .autofill-notice {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text);
    animation: fadeInAutofill 0.3s ease;
  }

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

  .autofill-notice-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
  }

  .btn-clear-autofill {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .btn-clear-autofill:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
  }

  .btn-clear-form {
    background: transparent;
    border: 1.5px solid var(--input-border);
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 0 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    min-height: 48px;
    white-space: nowrap;
  }

  .btn-clear-form:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
  }

  .btn-clear-form svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
  }

  .btn-clear-form:hover svg {
    opacity: 1;
  }

  .combo {
    position: relative;
  }

  .combo-list {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--combo-bg);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    max-height: 160px;
    overflow-y: auto;
    z-index: 30;
    box-shadow: 0 16px 30px -12px rgba(120, 40, 90, 0.35);
  }

  .combo-list.show {
    display: block;
  }

  .combo-list.up {
    top: auto;
    bottom: calc(100% + 6px);
  }

  .combo-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .combo-item:hover,
  .combo-item.highlight {
    background: rgba(241, 123, 123, 0.12);
    color: var(--ink);
  }

  .combo-empty {
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--ink-soft);
    opacity: 0.6;
  }

  .row {
    display: flex;
    gap: 14px;
  }

  .row .field {
    flex: 1;
  }

  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    background: var(--lav);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lav-text);
    cursor: pointer;
    user-select: none;
    transition: all .15s ease;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .chip:hover {
    filter: brightness(0.97);
  }

  .chip.active {
    background: var(--coral);
    color: #fff;
  }

  .chip-other-wrap {
    margin-top: 8px;
    display: none;
    grid-column: 1/-1;
  }

  .chip-other-wrap.show {
    display: block;
  }

  .error {
    color: var(--danger);
    font-size: 11.5px;
    margin-top: 5px;
    display: none;
  }

  .error.show {
    display: block;
  }

  .bottom {
    margin-top: 20px;
  }

  button.submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--coral), var(--coral-deep));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 14px 28px -12px rgba(236, 103, 103, 0.65);
    transition: transform .12s ease, box-shadow .12s ease;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  button.submit:hover {
    transform: translateY(-1px);
  }

  button.submit:active {
    transform: translateY(0);
  }

  .footnote {
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 14px;
  }

  .footnote a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--coral);
  }

  .success {
    display: none;
    text-align: center;
    padding: 10px 0 4px;
  }

  .success.show {
    display: block;
  }

  .success h2 {
    font-family: 'Fraunces', serif;
    font-size: 23px;
    margin: 6px 0;
  }

  .success p {
    color: var(--ink-soft);
    font-size: 13.5px;
    margin: 0;
  }

  .success .tick {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--coral);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
  }

  form.hide {
    display: none;
  }

  .continue-btn {
    margin-top: 18px;
    display: none;
  }

  .success.show .continue-btn {
    display: block;
  }

  /* ========== RESPONSIVE: tablet ========== */
  @media (max-width: 768px) {
    body {
      align-items: flex-start;
      padding:
        max(16px, env(safe-area-inset-top, 0)) max(16px, env(safe-area-inset-right, 0)) max(16px, env(safe-area-inset-bottom, 0)) max(16px, env(safe-area-inset-left, 0));
    }

    .stage {
      padding-top: 12px;
    }

    .card {
      padding: 28px 24px 24px;
      border-radius: 22px;
      max-height: none;
    }

    h1 {
      font-size: 25px;
    }

    .sub {
      font-size: 13px;
      margin-bottom: 18px;
    }

    .global-footer {
      display: none !important;
    }
  }

  /* ========== RESPONSIVE: phones ========== */
  @media (max-width: 600px) {
    body {
      padding-top: max(12px, env(safe-area-inset-top, 0));
    }

    .card {
      padding: 26px 20px 22px;
      border-radius: 20px;
    }

    h1 {
      font-size: 24px;
    }

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

    .fields .span2,
    .fields .row {
      grid-column: 1;
    }

    .row {
      flex-direction: column;
      gap: 16px;
    }

    .chip {
      font-size: 12px;
      padding: 9px 12px;
    }

    .theme-toggle {
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
    }
  }

  @media (max-width: 480px) {
    .card {
      padding: 24px 18px 20px;
    }

    h1 {
      font-size: 22px;
      line-height: 1.2;
    }

    .sub {
      font-size: 12.5px;
      line-height: 1.45;
    }

    .brand-name {
      font-size: 17px;
    }

    label {
      font-size: 11.5px;
    }

    .footnote {
      font-size: 11.5px;
    }

    .chips {
      gap: 6px;
    }

    .chip {
      font-size: 11.5px;
      padding: 8px 11px;
      min-height: 38px;
    }
  }

  @media (max-width: 360px) {
    body {
      padding: max(8px, env(safe-area-inset-top, 0)) 10px max(12px, env(safe-area-inset-bottom, 0));
    }

    .card {
      padding: 22px 16px 18px;
      border-radius: 18px;
    }

    h1 {
      font-size: 20px;
    }

    .chip {
      font-size: 11px;
      padding: 8px 10px;
    }
  }

  /* ========== RESPONSIVE: landscape / short screens ========== */
  @media (max-height: 700px) and (orientation: landscape) {
    body {
      align-items: flex-start;
    }

    .stage {
      padding: 4px 0 12px;
    }

    .card {
      padding: 20px 24px 18px;
      max-height: calc(100dvh - 16px);
    }

    h1 {
      font-size: 22px;
      margin-bottom: 4px;
    }

    .sub {
      margin-bottom: 14px;
      font-size: 12px;
    }

    .brand {
      margin-bottom: 12px;
    }

    .fields {
      row-gap: 12px;
    }

    .bottom {
      margin-top: 14px;
    }

    button.submit {
      padding: 11px;
      min-height: 44px;
    }
  }

  @media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .fields {
      grid-template-columns: 1fr 1fr;
    }

    .fields .span2 {
      grid-column: 1 / -1;
    }

    .row {
      flex-direction: row;
    }

    .chip {
      min-height: 36px;
      padding: 7px 10px;
      font-size: 11px;
    }
  }

  /* ========== RESPONSIVE: touch devices ========== */
  @media (hover: none) and (pointer: coarse) {
    .chip:hover {
      filter: none;
    }

    .chip:active {
      filter: brightness(0.95);
    }

    button.submit:hover {
      transform: none;
    }

    button.submit:active {
      transform: scale(0.99);
    }
  }

  @media (max-width: 768px) {
    .chip {
      min-height: 44px;
    }
  }

  @media (max-width: 480px) {
    .chip {
      min-height: 44px;
    }

    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    select {
      min-height: 44px;
    }

    button.submit {
      min-height: 48px;
    }
  }

  @media (max-width: 360px) {
    .chip {
      min-height: 44px;
    }
  }

  /* ========== GOOGLE AUTH STYLING ========== */
  .google-auth-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    background: #ffffff;
    color: #1f1f1f;
    border: 1px solid #dadce0;
    border-radius: 24px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
  }

  body.dark .google-btn {
    background: #131314;
    color: #e3e3e3;
    border-color: #444746;
  }

  .google-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  body.dark .google-btn:hover {
    background-color: #1f1f21;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  }

  .auth-divider {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 0 8px;
  }

  .auth-divider::before,
  .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
  }

  .auth-divider span {
    padding: 0 12px;
  }

  /* ========== GOOGLE PROFILE MODAL ========== */
  .auth-dialog-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .auth-dialog-inner {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    animation: modalPop 0.25s ease-out;
  }

  @keyframes modalPop {
    from {
      opacity: 0;
      transform: scale(0.94);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .g-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }

  .g-header h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
  }

  .g-sub {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 18px;
    line-height: 1.4;
  }

  .g-profile-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .g-avatar-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .g-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .g-avatar-initials {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
  }

  .g-avatar-toggle {
    display: flex;
    gap: 8px;
  }

  .g-note {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 4px;
  }

  .g-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
  }

  .google-modal-cancel {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }

  .google-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  /* Modal Close Button */
  .modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    z-index: 10;
  }

  .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    transform: scale(1.05);
  }

  /* Modal Step Indicator */
  .modal-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
  }

  .modal-step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    transition: color 0.2s;
  }

  .modal-step-item.active {
    color: var(--teal);
    font-weight: 600;
  }

  .modal-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }

  .modal-step-item.active .modal-step-num {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
  }

  .modal-step-arrow {
    font-size: 10px;
    opacity: 0.4;
  }

  /* Inline Success Notice */
  .modal-success-notice {
    display: none;
    padding: 10px 14px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid var(--teal);
    border-radius: 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.4;
  }

  /* Mobile Touch Targets & Social Buttons */
  .social-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    padding: 10px 6px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    transition: opacity 0.2s, transform 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .social-auth-btn:active {
    transform: scale(0.98);
  }

  @media (max-width: 480px) {
    .social-auth-grid {
      grid-template-columns: 1fr 1fr;
      gap: 6px;
    }

    .social-auth-btn {
      font-size: 12.5px;
      padding: 10px 4px;
    }

    .chips {
      gap: 8px;
    }

    .chip {
      min-height: 38px;
      padding: 8px 14px;
      font-size: 13.5px;
    }

    .auth-dialog-inner {
      padding: 22px 18px;
      border-radius: 16px;
    }
  }

  @keyframes shake-glow {
    0%, 100% { transform: translateX(0); box-shadow: 0 0 0 transparent; }
    25% { transform: translateX(-4px); box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
    50% { transform: translateX(4px); box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
    75% { transform: translateX(-4px); box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
  }

  .highlight-error {
    animation: shake-glow 0.4s ease-in-out;
    border-radius: 8px;
  }
