
    /* ===============================================================  */
    body.translation-reset-modal-open {
      overflow: hidden;
    }

    .translation-reset-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 12000;
      display: grid;
      place-items: center;
      padding: 20px;
      background: rgba(4, 8, 24, 0.78);
      backdrop-filter: blur(8px);
      animation: translationResetBackdropIn 160ms ease-out;
    }

    .translation-reset-modal {
      width: min(100%, 510px);
      overflow: hidden;
      color: var(--text-primary, #f8fafc);
      background:
        radial-gradient(circle at 10% 0%, rgba(99, 102, 241, 0.16), transparent 38%),
        #121a31;
      border: 1px solid rgba(148, 163, 184, 0.24);
      border-radius: 20px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
      animation: translationResetDialogIn 180ms ease-out;
    }

    .translation-reset-modal-header {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 12px;
      padding: 20px 22px 16px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    }

    .translation-reset-modal-icon {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      color: #fecaca;
      background: rgba(239, 68, 68, 0.14);
      border: 1px solid rgba(248, 113, 113, 0.32);
      border-radius: 12px;
      font-size: 21px;
      font-weight: 800;
    }

    .translation-reset-modal-eyebrow {
      margin-bottom: 3px;
      color: #93c5fd;
      font-size: 11px;
      font-weight: 700;
    }

    .translation-reset-modal h2 {
      margin: 0;
      color: inherit;
      font-size: 20px;
      line-height: 1.35;
    }

    .translation-reset-modal-close {
      width: 34px;
      height: 34px;
      padding: 0;
      color: #94a3b8;
      background: transparent;
      border: 0;
      border-radius: 9px;
      cursor: pointer;
      font-size: 25px;
      line-height: 1;
    }

    .translation-reset-modal-close:hover,
    .translation-reset-modal-close:focus-visible {
      color: #fff;
      background: rgba(148, 163, 184, 0.12);
      outline: none;
    }

    .translation-reset-modal-body {
      padding: 20px 22px 8px;
      color: #cbd5e1;
      font-size: 14px;
      line-height: 1.85;
    }

    .translation-reset-modal-body > p {
      margin: 0;
    }

    .translation-reset-modal-notice {
      margin-top: 14px;
      padding: 10px 12px;
      color: #fde68a;
      background: rgba(245, 158, 11, 0.1);
      border: 1px solid rgba(245, 158, 11, 0.24);
      border-radius: 10px;
      font-size: 12px;
    }

    .translation-reset-modal-list {
      display: grid;
      gap: 9px;
      margin: 16px 0 0;
      padding-inline-start: 20px;
    }

    .translation-reset-modal-list li::marker {
      color: #818cf8;
    }

    .translation-reset-modal-list .translation-reset-modal-refund {
      color: #a7f3d0;
      font-weight: 700;
    }

    .translation-reset-modal-list .translation-reset-modal-refund::marker {
      color: #34d399;
    }

    .translation-reset-modal-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 18px 22px 22px;
    }

    .translation-reset-modal-button {
      min-height: 42px;
      padding: 9px 18px;
      border-radius: 11px;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
    }

    .translation-reset-modal-button:hover {
      transform: translateY(-1px);
    }

    .translation-reset-modal-cancel {
      color: #e2e8f0;
      background: rgba(148, 163, 184, 0.08);
      border: 1px solid rgba(148, 163, 184, 0.28);
    }

    .translation-reset-modal-confirm {
      color: #fff;
      background: linear-gradient(135deg, #ef4444, #dc2626);
      border: 1px solid rgba(248, 113, 113, 0.75);
      box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
    }

    [data-theme="light"] .translation-reset-modal {
      color: #172033;
      background: #fff;
      border-color: rgba(15, 23, 42, 0.14);
      box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    }

    [data-theme="light"] .translation-reset-modal-body {
      color: #475569;
    }

    [data-theme="light"] .translation-reset-modal-cancel {
      color: #334155;
      background: #f8fafc;
    }

    @keyframes translationResetBackdropIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes translationResetDialogIn {
      from { opacity: 0; transform: translateY(8px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    @media (max-width: 600px) {
      .translation-reset-modal-overlay {
        align-items: end;
        padding: 12px;
      }

      .translation-reset-modal {
        border-radius: 18px;
      }

      .translation-reset-modal-header,
      .translation-reset-modal-body {
        padding-inline: 16px;
      }

      .translation-reset-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
        padding: 16px;
      }

      .translation-reset-modal-confirm {
        grid-row: 1;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .translation-reset-modal-overlay,
      .translation-reset-modal {
        animation: none;
      }
    }

    /* ===============================================================  */
    /* Shared information modal */
    .info-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      backdrop-filter: blur(3px);
    }

    .info-modal-container {
      background-color: #fff;
      border-radius: 16px;
      width: 90%;
      max-width: 450px;
      box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
      font-family: inherit;
      animation: infoModalFadeIn 0.2s ease-out;
    }

    @media (prefers-color-scheme: dark) {
      .info-modal-container {
        background-color: #1e1e2f;
        color: #e0e0e0;
        border: 1px solid #333;
      }
      .info-modal-header {
        border-bottom-color: #333;
      }
      .info-modal-footer {
        border-top-color: #333;
      }
      .info-modal-btn-close {
        background-color: #2c2c3a;
        color: #ddd;
      }
      .info-modal-btn-close:hover {
        background-color: #3a3a4a;
      }
    }

    @keyframes infoModalFadeIn {
      from {
        opacity: 0;
        transform: scale(0.95);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .info-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid #eee;
      font-weight: 600;
    }

    .info-modal-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: #2c3e66;
    }

    .info-modal-close {
      cursor: pointer;
      font-size: 1.8rem;
      line-height: 1;
      color: #888;
      transition: color 0.2s;
    }

    .info-modal-close:hover {
      color: #c00;
    }

    .info-modal-body {
      padding: 1.5rem;
      font-size: 1rem;
      line-height: 1.5;
      color: #333;
    }

    @media (prefers-color-scheme: dark) {
      .info-modal-body {
        color: #ccc;
      }
    }

    .info-modal-footer {
      padding: 1rem 1.5rem;
      border-top: 1px solid #eee;
      display: flex;
      justify-content: flex-end;
      gap: 12px;
    }

    .info-modal-btn {
      padding: 8px 18px;
      border-radius: 30px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }

    .info-modal-btn-dashboard {
      background-color: #2c3e66;
      color: white;
    }

    .info-modal-btn-dashboard:hover {
      background-color: #1f2c4a;
      transform: translateY(-1px);
    }

    .info-modal-btn-close {
      background-color: #f0f0f0;
      color: #333;
    }

    .info-modal-btn-close:hover {
      background-color: #e0e0e0;
    }

    @media (max-width: 600px) {
      html,
      body {
        max-width: 100%;
        overflow-x: hidden;
      }

      .app,
      #webLoginBar,
      .section,
      .section-card,
      .translation-choice-panel,
      .models-grid,
      .payment-grid,
      .payment-summary,
      .pay-method-card,
      .web-job-status,
      .login-modal,
      .info-modal-container {
        min-width: 0;
        max-width: 100%;
      }

      .models-grid,
      .payment-grid {
        grid-template-columns: 1fr !important;
      }

      .section-header,
      .web-login-inner,
      .web-job-status,
      .usdt-line,
      .info-modal-footer {
        align-items: stretch;
        flex-wrap: wrap;
      }

      .confirm-btn,
      .pay-method-btn,
      .pay-method-secondary-btn,
      .web-job-start-btn,
      .web-job-download-btn,
      .login-modal-btn,
      .info-modal-btn {
        width: 100%;
        white-space: normal;
        line-height: 1.3;
      }

      .header-title,
      .header-subtitle,
      .section-title,
      .section-hint,
      .model-name,
      .model-desc,
      .payment-summary,
      .pay-method-body,
      .status-text,
      .web-job-text,
      .usdt-line {
        overflow-wrap: anywhere;
      }

      .language-combobox-panel {
        max-width: 100%;
      }

      .footer {
        left: 10px;
        right: 10px;
      }
    }

    /* ===== FIX: isolate target language combobox from page layers ===== */

    #promptSection,
    #promptSection .section-card,
    #promptSection .translation-choice-panel,
    #promptSection .choice-field {
      overflow: visible;
    }

    #promptSection {
      position: relative;
    }

    #promptSection:has(.language-combobox.is-open) {
      z-index: 1000;
    }

    /* make language button exactly match the output format select */
    #promptSection .choice-select,
    #promptSection .language-combobox-button {
      width: 100%;
      height: 46px;
      min-height: 46px;
      box-sizing: border-box;
      border-radius: 10px;
      font: inherit;
      font-size: 14px;
    }

    #promptSection .language-combobox-button {
      padding: 0 14px;
      line-height: 1;
    }

    /* keep the custom dropdown above the field, without mixing with upper UI */
    #promptSection .language-combobox {
      position: relative;
      width: 100%;
      z-index: 1;
      isolation: isolate;
    }

    #promptSection .language-combobox.is-open {
      z-index: 10000;
    }

    #promptSection .language-combobox-panel {
      position: absolute;
      top: auto !important;
      bottom: calc(100% + 8px) !important;
      left: 0;
      right: 0;
      width: 100%;
      min-width: 100%;
      max-height: 360px;
      box-sizing: border-box;
      z-index: 10001;
    }

    #promptSection .language-combobox-options {
      max-height: 292px;
    }

    /* mobile: don't make it tiny, just keep it inside screen */
    @media (max-width: 600px) {
      #promptSection .language-combobox-panel {
        max-height: 300px;
      }

      #promptSection .language-combobox-options {
        max-height: 232px;
      }
    }
