

    /* ========== Vazir Webfont ========== */
    @font-face {
      font-family: 'Vazir';
      src: url('/fonts/Vazir.woff2') format('woff2'),
           url('/fonts/Vazir.ttf') format('truetype'); 
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Vazir';
      src: url('/fonts/Vazir-Medium.woff2') format('woff2');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: 'Vazir';
      src: url('/fonts/Vazir-Bold.woff2') format('woff2');
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }
    /* ========== /Vazir Webfont ========== */


    :root {
      --bg-primary: #0a0e1a;
      --bg-secondary: #151a2e;
      --glass-bg: rgba(21, 26, 46, 0.7);
      --accent-primary: #6366f1;
      --accent-secondary: #06b6d4;
      --accent-glow: rgba(99, 102, 241, 0.3);
      --success: #10b981;
      --danger: #ef4444;

      --text-primary: #ffffff;
      --text-secondary: #f1f5f9;

      /* --text-primary: #f8fafc;
      --text-secondary: #e6edf7; */
      --border: rgba(148, 163, 184, 0.18);

      /* theme tokens � ?????? ???? */
      --page-bg: linear-gradient(135deg, #0a0e1a 0%, #151a2e 50%, #1e1b4b 100%);
      --card-bg: var(--glass-bg);
      --card-text: var(--text-primary);
      --card-border: var(--border);

      /* === Cyrus shared header tokens (dark) === */
      --cyrus-header-bg: var(--bg-primary); /* #0a0e1a */
      --cyrus-header-border: rgba(215, 224, 238, 0.16);
      --cyrus-header-text: var(--text-primary);
      --cyrus-header-chip-bg: rgba(255, 255, 255, 0.08);

      /* ? ??? ?? ?? ?? ?????? ????? ?? */
      --cyrus-header-container-max: 840px;  /* match billing page shell */
      --cyrus-header-container-pad-x: 16px; /* ??????? ?? padding ???? */

    }
      
    [data-theme="light"] {
      --page-bg: #F3E7E1;      
      --card-bg: #FFFBF8;      
      --card-text: #0f172a;  

      --text-primary: #020617;
      --text-secondary: #111827;

      /* --text-primary: #0f172a;
      --text-secondary: #334155; */

      --border: rgba(148, 163, 184, 0.35);
      --glass-bg: rgba(255, 255, 255, 0.7);

      /* === Cyrus shared header tokens (light) === */
      --cyrus-header-bg: var(--page-bg);   /* #F3E7E1 */
      --cyrus-header-border: rgba(148, 163, 184, 0.28);
      --cyrus-header-text: var(--text-primary);
      --cyrus-header-chip-bg: rgba(0, 0, 0, 0.06);

    }


    /* ============ Light theme component overrides ============ */
    /* textarea ???? ???? � ???? ? ?????? */


    [data-theme="light"] .choice-select {
      background: #ffffff;
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.55);
      color-scheme: light;
    }

    [data-theme="light"] .choice-select option {
      background: #ffffff;
      color: #0f172a;
    }

    [data-theme="light"] .language-combobox-button {
      background: #ffffff;
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.55);
    }

    [data-theme="light"] .language-combobox-panel {
      background: #ffffff;
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.5);
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    }

    [data-theme="light"] .language-combobox-search {
      background: #f8fafc;
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.5);
    }

    [data-theme="light"] .language-combobox-option {
      color: #0f172a;
    }

    [data-theme="light"] .language-combobox-option:hover,
    [data-theme="light"] .language-combobox-option.is-selected {
      background: rgba(99, 102, 241, 0.12);
    }

    [data-theme="light"] .translation-choice-note {
      background: #F3FAF8;
      color: #334155;
      border-color: rgba(20, 184, 166, 0.28);
    }

    /* ===== پررنگ‌تر کردن متن‌های توضیحی و status ===== */
    /* ==== متن‌های توضیحی و status / placeholder پررنگ‌تر ==== */
    [data-theme="light"] .header-subtitle,
    [data-theme="light"] .section-hint,
    [data-theme="light"] .rank-legend,
    [data-theme="light"] .rank-legend p,
    [data-theme="light"] .model-desc,
    [data-theme="light"] .model-vendor,
    [data-theme="light"] .file-meta,
    [data-theme="light"] .models-count,
    [data-theme="light"] .payment-summary-label,
    [data-theme="light"] .payment-summary-note,
    [data-theme="light"] .pay-method-subtitle,
    [data-theme="light"] .pay-method-body,
    [data-theme="light"] .payment-status-text,
    [data-theme="light"] .status-text,
    [data-theme="light"] .translation-choice-note,
    [data-theme="light"] .choice-field label,
    [data-theme="light"] .c2c-note-input::placeholder,
    [data-theme="light"] .usdt-txid-input::placeholder {
        /* color: #1f2937; */
        color: #111827;
        font-weight: 500;
    }

    [data-theme="dark"] .header-subtitle,
    [data-theme="dark"] .section-hint,
    [data-theme="dark"] .rank-legend,
    [data-theme="dark"] .rank-legend p,
    [data-theme="dark"] .model-desc,
    [data-theme="dark"] .model-vendor,
    [data-theme="dark"] .file-meta,
    [data-theme="dark"] .models-count,
    [data-theme="dark"] .payment-summary-label,
    [data-theme="dark"] .payment-summary-note,
    [data-theme="dark"] .pay-method-subtitle,
    [data-theme="dark"] .pay-method-body,
    [data-theme="dark"] .payment-status-text,
    [data-theme="dark"] .status-text,
    [data-theme="dark"] .translation-choice-note,
    [data-theme="dark"] .choice-field label,
    [data-theme="dark"] .web-login-text,
    [data-theme="dark"] .web-job-text,
    [data-theme="dark"] .login-modal-text,
    [data-theme="dark"] .c2c-note-input::placeholder,
    [data-theme="dark"] .usdt-txid-input::placeholder {
        /* color: #e6edf7; */
        color: #f1f5f9;
        font-weight: 500;
    }

    [data-theme="light"] textarea {
      background: #F1EBE5;      /* ?? ??????? ??? ???? */
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.5);
    }

    /* ??????? ??????? ????? ??????? ?? ???? */

    /* ??? example?? ?????? ???? ????? ??? ???? */

    /* ????? ?????? � ???? */
    [data-theme="light"] .payment-summary {
      background: #FFFFFF;
      border-color: rgba(148, 163, 184, 0.45);
    }

    /* ???????? ??? ?????? � ???? ? ????? ?? ???? ???? */
    [data-theme="light"] .pay-method-card {
      background: #FFFDF9;
      border-color: rgba(148, 163, 184, 0.45);
    }

    /* ??????? ???? ???????? ?????? */
    [data-theme="light"] .pay-method-title {
      color: #0f172a;
    }

    [data-theme="light"] .pay-method-subtitle,
    [data-theme="light"] .pay-method-body,
    [data-theme="light"] .payment-status-text {
      color: #334155;
    }

    /* ??? web-job-box ?? ?? ???? ????? ???? ???? ??? ??? ?????? */
    [data-theme="light"] .web-job-status {
      background: #FFFDF9;
      border-color: rgba(148, 163, 184, 0.45);
    }

    /* ???? ???????????? ?? ???? ?? ???? ???? ?????? */
    [data-theme="light"] .c2c-note-input {
      background: #FFFFFF;
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.45);
    }

    /* ?????? ??? ?? ???? ???? ???? ?????? */
    [data-theme="light"] .model-card {
      background: #F6EFE7;
      border-color: rgba(148, 163, 184, 0.4);
    }

    [data-theme="light"] .model-card.selected {
      background: #F3EDFF;
      border-color: #6366f1;
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.35), 0 10px 26px rgba(15, 23, 42, 0.18);
    }

    /* ???? ????? Rank ?? ???? ??????? ??? */
    [data-theme="light"] .rank-legend {
      background: #FFF7F0;
      border-color: rgba(148, 163, 184, 0.45);
      color: #334155;
    }

    /* ????? RANK 2 ???? ??????? ?? ???? ??????? ??? */
    [data-theme="light"] .badge-rank2 {
    background: #E2E8F0;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.7);
    }

    /* ??? Rank 2 ?? ???? ????? ?????? (???) ?? ???? ??????? ??? */
    [data-theme="light"] .rank-pill-2 {
    background: #E2E8F0;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.7);
    }

    /* ?? ????: ???? Start translation ??? ???? ???? ???? ???? ?? ??? ???? */
    [data-theme="light"] .web-job-start-btn {
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      color: #ffffff;
      border-color: transparent;
      box-shadow: 0 6px 18px var(--accent-glow);
    }

    [data-theme="light"] .web-job-start-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 9px 24px var(--accent-glow);
    }

    /* ?? ????: ???? ?? ????? ???? ????? */
    [data-theme="light"] .footer {
      background: linear-gradient(
        to top,
        rgba(243, 231, 225, 0.98) 70%,
        transparent
      );
    }

    /* ?? ????: ??????? ??? ????? ???????? ??????? ??? */
    [data-theme="light"] .confirm-btn {
      color: #0f172a;      /* ???? ? ???? */
      text-shadow: none;   /* ??? ???? ???? ????? ??????? */
    }

    /* ?? ????: ??? ??? ???? ??? ??????? ? ?????? */
    [data-theme="light"] .status-text {
      color: #334155;
      font-weight: 500;
    }

    /* override ???? ???? */
    [data-theme="light"] .usdt-txid-input {
      background: #ffffff;
      color: #0f172a;
      border-color: rgba(148, 163, 184, 0.45);
    }

    /* ========================================================================= */
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }
    
    @keyframes shimmer {
      0% { background-position: -1000px 0; }
      100% { background-position: 1000px 0; }
    }
    
    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
    }
    
    * { 
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    /* ========================================================================= */

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
      background: var(--page-bg);  /* ??????? */
      color: var(--text-primary);
      min-height: 100vh;
      padding: 16px;
      position: relative;
      overflow-x: hidden;
    }


    /* === When Cyrus header is injected === */
    body.has-site-header {
      padding: 0; /* ??? ?? ??? ????? */
    }

    /* ????? ???? ??????? ???? ?? ??? ???? */
    body.has-site-header .app {
      padding: 16px;
    }

    /* ???? ???? ???? fa ??? (dir=rtl)? ?? Vazir ??????? ?? */
    html[dir="rtl"] body,
    html[data-lang="fa"] body {
      font-family: 'Vazir', -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    }


    body::before {
      content: '';
      position: fixed;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
      animation: float 20s ease-in-out infinite;
      pointer-events: none;
    }

    .app {
      max-width: 840px;
      margin: 0 auto;
      position: relative;
      z-index: 1;
    }

    /* ====== Theme toggle pill (sun ? moon) ====== */

    .top-bar {
      position: absolute;
      top: 16px;
      left: 16px;
      right: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 9999;           /* ?? ??? ?? ???? */
      pointer-events: none;     /* ?? ??? ?? ???? */
    }

    .top-bar-left,
    .top-bar-right {
      display: flex;
      align-items: center;
      gap: 8px;
      pointer-events: auto;     /* ?? ??? ?? ???? */
    }

    .theme-toggle-btn {
      position: relative;
      width: 64px;
      height: 30px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.92);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.65);
      transition: all 0.25s ease;
    }

    /* ?? ???? ????: ?????? ??? ??? ???? */
    .theme-toggle-btn::before,
    .theme-toggle-btn::after {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
      pointer-events: none;
      filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
      transition: opacity 0.25s ease;
    }

    .theme-toggle-btn::before {
      content: "??";
      left: 9px;
      opacity: 0.4; /* ?? ???? ???? ?????? ????????? */
    }

    .theme-toggle-btn::after {
      content: "??";
      right: 9px;
      opacity: 1;   /* ?? ???? ???? ??? ???????? */
    }

    /* ??? ??? ?? ??? ?? ?? ???????? ?? span.theme-toggle-icon ??????? ??????? */
    .theme-toggle-icon {
      position: absolute;
      top: 50%;
      left: 0;
      width: 22px;
      height: 22px;
      border-radius: 999px;
      background: #e5e7eb;
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.7);
      transform: translate(36px, -50%); /* ???????: ???? ??? (????) */
      transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        background-color 0.25s ease;
      font-size: 0; /* ?????? ???? span ???? ??? */
    }

    /* ??? DARK/LIGHT ???? ???? ?????? ??? ???? JS ???? ???????? */
    .theme-toggle-text {
      display: none;
    }

    .theme-toggle-btn:hover {
      box-shadow: 0 9px 24px rgba(15, 23, 42, 0.85);
      transform: translateY(-1px);
    }

    /* ========= ???? ???? ========= */

    [data-theme="light"] .theme-toggle-btn {
      background: rgba(255, 255, 255, 0.96);
      border-color: rgba(148, 163, 184, 0.9);
      box-shadow: 0 6px 18px rgba(148, 163, 184, 0.8);
    }

    [data-theme="light"] .theme-toggle-btn::before {
      opacity: 1;   /* ?????? ????? ????? */
    }

    [data-theme="light"] .theme-toggle-btn::after {
      opacity: 0.4; /* ??? ?????? ????? */
    }

    [data-theme="light"] .theme-toggle-btn .theme-toggle-icon {
      transform: translate(4px, -50%); /* ??? ???? ??? ?????? */
      background: #0f172a;             /* ??? ????? ??? ???????? ???? ??? ???? ????? */
    }

    .header {
      text-align: center;
      padding: 32px 20px;
      margin-bottom: 24px;
      position: relative;
      animation: fadeIn 0.6s ease-out;
    }
    
    .header-icon {
      font-size: 64px;
      margin-bottom: 16px;
      display: inline-block;
      animation: float 3s ease-in-out infinite;
      filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.4));
    }
    
    .header-title {
      font-size: 32px;
      font-weight: 800;
      background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 12px;
      letter-spacing: -0.5px;
    }
    
    .header-subtitle {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.6;
      max-width: 760px;
      margin: 0 auto;
    }
    
    /* ???? ??????? � ???? ???? 100% ??? .app ? ?? ???? ???? ???? ????? */
    .progress-indicator {
      display: flex;                  /* ???? inline-flex ???? */
      justify-content: center;
      flex-wrap: wrap;                /* ??? ?? ?? ???? ??????? ??? ?? ??? */
      gap: 8px;                       /* ??? ???? ?? 12 */
      margin-bottom: 24px;            /* ??? ?????? */
      animation: fadeIn 0.6s ease-out 0.2s backwards;
    }

    /* ??? ?????? � ???????? ? ?????? */
    .progress-step {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;              /* ????? 8px 16px ??? */
      border-radius: 999px;
      background: var(--glass-bg);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border);
      font-size: 12px;                /* ?? 13 ?? 12 */
      color: var(--text-secondary);
      transition: all 0.3s ease;
    }


    .progress-step.active {
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
      border-color: var(--accent-primary);
      color: var(--text-primary);
      box-shadow: 0 4px 20px var(--accent-glow);
    }
    
    .progress-step.completed {
      background: rgba(16, 185, 129, 0.2);
      border-color: var(--success);
      color: var(--success);
    }

    /* ????? ????? ??? ???????? */
    .progress-number {
      width: 20px;                    /* ????? 24 ??? */
      height: 20px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;                /* ?? ??? ???????? */
      font-weight: 700;
    }

    .progress-step.active .progress-number {
      background: var(--accent-primary);
    }
    
    .progress-step.completed .progress-number {
      background: var(--success);
    }

    .section {
      margin-bottom: 24px;
      animation: fadeIn 0.6s ease-out backwards;
    }

    .section:nth-child(2) { animation-delay: 0.1s; }
    .section:nth-child(3) { animation-delay: 0.2s; }
    .section:nth-child(4) { animation-delay: 0.3s; }
    
    /* ========================================================================= */

    .section-card {
      padding: 24px;
      border-radius: 24px;
      background: var(--card-bg);      /* ?? ?? ?????? */
      border: 1px solid var(--card-border);
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
      transition: all 0.3s ease;
      color: var(--card-text);         /* ??? ???? ?? ???? ?? */
    }

    .section-card:hover {
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
      transform: translateY(-2px);
    }

    .section-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 16px;
    }
    
    .section-icon {
      font-size: 24px;
    }

    .section-title {
      font-size: 18px;
      font-weight: 700;
      color: var(--card-text);
    }
 
    .section-hint {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 16px;
      line-height: 1.5;
    }

    .file-upload-area {
      position: relative;
      border: 2px dashed var(--border);
      border-radius: 16px;
      padding: 32px 24px;
      text-align: center;
      transition: all 0.3s ease;
      cursor: pointer;
      background: rgba(99, 102, 241, 0.02);
    }
    
    .file-upload-area:hover {
      border-color: var(--accent-primary);
      background: rgba(99, 102, 241, 0.05);
    }
    
    .file-upload-area.dragover {
      border-color: var(--accent-primary);
      background: rgba(99, 102, 241, 0.1);
      transform: scale(1.02);
    }
    
    .file-reset-btn {
      margin-top: 10px;
      padding: 6px 12px;
      border-radius: 999px;
      border: 1px solid rgba(248, 113, 113, 0.8);
      background: transparent;
      color: #fecaca;
      font-size: 12px;
      cursor: pointer;
    }

    .file-reset-btn:hover {
      background: rgba(248, 113, 113, 0.1);
      color: #fee2e2;
    }


    .upload-icon {
      font-size: 48px;
      margin-bottom: 12px;
      opacity: 0.5;
    }
    
    .upload-text {
      font-size: 14px;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }
    
    .upload-text strong {
      color: var(--accent-primary);
    }
    
    .supported-formats {
      font-size: 11px;
      color: var(--text-secondary);
      opacity: 0.9;
    }
    
    input[type="file"] {
      position: absolute;
      opacity: 0;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      cursor: pointer;
    }
    
    .file-info {
      margin-top: 16px;
      padding: 16px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      gap: 12px;
      animation: fadeIn 0.4s ease-out;
    }
    
    .file-info-success {
      background: rgba(16, 185, 129, 0.1);
      border: 1px solid rgba(16, 185, 129, 0.3);
    }
    
    .file-info-error {
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.3);
    }
    
    .file-info-loading {
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.3);
    }
    
    .file-icon {
      font-size: 32px;
      flex-shrink: 0;
    }
    
    .file-details {
      flex: 1;
    }
 
    .file-name {
      font-size: 14px;
      font-weight: 600;
      color: var(--card-text);
      margin-bottom: 4px;
    }

    .file-meta {
      font-size: 12px;
      color: var(--text-secondary);
    }
    
    .loading-spinner {
      animation: pulse 1.5s ease-in-out infinite;
    }

    .models-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
      margin-top: 16px;
    }
    
    .model-card {
      position: relative;
      padding: 20px;
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      overflow: hidden;
    }
    
    .model-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .model-card:hover {
      border-color: var(--accent-primary);
      transform: translateY(-4px);
      box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
    }
    
    .model-card:hover::before {
      opacity: 1;
    }
    
    .model-card.selected {
      border-color: var(--accent-primary);
      background: rgba(99, 102, 241, 0.1);
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3), 0 12px 32px rgba(99, 102, 241, 0.3);
    }
    
    .model-card.selected::after {
      content: '?';
      position: absolute;
      top: 10px;
      right: 10px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--accent-primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
    }
    
    .model-header {
      display: flex;
      justify-content: space-between;
      align-items: start;
      margin-bottom: 12px;
      position: relative;
      z-index: 1;
    }
    
    .model-name {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 4px;
    }

    .model-title-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .model-logo {
      width: 20px;
      height: 20px;
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      font-weight: 700;
    }

    .model-logo-openai {
      background: rgba(99, 102, 241, 0.25);
      color: var(--accent-primary);
    }

    .model-logo-google {
      background: rgba(34, 197, 94, 0.25);
      color: #22c55e;
    }

    .model-logo-xai {
      background: rgba(248, 250, 252, 0.07);
      color: #e5e7eb;
    }

    .model-logo-meta {
      background: rgba(59, 130, 246, 0.25);
      color: #3b82f6;
    }

    .model-logo-oss {
      background: rgba(148, 163, 184, 0.25);
      color: #e5e7eb;
    }

    .model-vendor {
      font-size: 11px;
      color: var(--text-secondary);
    }

    .model-logo-img {
      width: 28px;                 /* ??? ??????? ?? ???? ???? */
      height: 28px;
      border-radius: 999px;
      object-fit: contain;         /* ????? cover ??? ? ????? ?? ????????? */
      flex-shrink: 0;
      background: #ffffff;         /* ???????? ???? ?? ??????? ???? ?? ??? */
      padding: 3px;                /* ??? ????? ?? ???? ??? ???? */
      box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);  /* ?????? ??? ???? ??? ? ???? */
    }

    .model-badge {
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    
    .badge-best {
      background: rgba(16, 185, 129, 0.2);
      color: var(--success);
      border: 1px solid rgba(16, 185, 129, 0.4);
    }
    
    .badge-premium {
      background: rgba(251, 191, 36, 0.2);
      color: #fbbf24;
      border: 1px solid rgba(251, 191, 36, 0.4);
    }

    .badge-rank1 {
      background: rgba(99, 102, 241, 0.18);
      color: var(--accent-primary);
      border: 1px solid rgba(99, 102, 241, 0.5);
    }

    .badge-rank2 {
      background: rgba(15, 23, 42, 0.85);
      color: var(--text-secondary);
      border: 1px solid rgba(148, 163, 184, 0.5);
    }
    
    .model-price {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-primary);
      margin-bottom: 8px;
      position: relative;
      z-index: 1;
    }
    
    .model-price-irt {
      color: var(--accent-primary);
    }
    
    .model-price-usd {
      font-size: 12px;
      color: var(--text-secondary);
      font-weight: 500;
      margin-left: 8px;
    }
    
    .model-desc {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
      position: relative;
      z-index: 1;
    }

    textarea {
      width: 100%;
      min-height: 120px;
      padding: 16px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      resize: vertical;
      transition: all 0.3s ease;
    }
    
    textarea:focus {
      outline: none;
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    }
    
    textarea::placeholder {
      color: var(--text-secondary);
      opacity: 0.6;
    }
    

    .translation-choice-panel {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px;
    }

    .choice-field {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .choice-field label {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .choice-select {
      width: 100%;
      min-height: 46px;
      padding: 0 14px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      color: var(--text-primary);
      font: inherit;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .choice-select:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    }

    .choice-select-native-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .language-combobox {
      position: relative;
      width: 100%;
      z-index: 4;
    }

    .language-combobox.is-open {
      z-index: 40;
    }

    .language-combobox-button {
      width: 100%;
      min-height: 46px;
      padding: 0 12px 0 14px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      color: var(--text-primary);
      font: inherit;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      cursor: pointer;
      text-align: start;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .language-combobox-button:focus-visible,
    .language-combobox.is-open .language-combobox-button {
      outline: none;
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    }

    .language-combobox-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .language-combobox-label.is-placeholder {
      color: var(--text-secondary);
    }

    .language-combobox-chevron {
      flex: 0 0 auto;
      color: var(--text-secondary);
      font-size: 16px;
      line-height: 1;
      transition: transform 0.2s ease;
    }

    .language-combobox.is-open .language-combobox-chevron {
      transform: none;
    }

    .language-combobox-panel {
      position: absolute;
      top: auto;
      bottom: calc(100% + 6px);
      left: 0;
      right: 0;
      display: none;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.98);
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.42);
      max-height: 280px;
      overflow: hidden;
    }

    .language-combobox.is-open .language-combobox-panel {
      display: block;
    }

    .language-combobox-search {
      width: 100%;
      min-height: 38px;
      padding: 0 12px;
      border-radius: 9px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background: rgba(2, 6, 23, 0.72);
      color: var(--text-primary);
      font: inherit;
      font-size: 13px;
      outline: none;
      margin-bottom: 8px;
    }

    .language-combobox-search:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    }

    .language-combobox-options {
      max-height: 210px;
      overflow-y: auto;
      padding-inline-end: 2px;
    }

    .language-combobox-option {
      width: 100%;
      min-height: 38px;
      padding: 8px 10px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--text-primary);
      font: inherit;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      cursor: pointer;
      text-align: start;
    }

    .language-combobox-option.is-filtered-out,
    .language-combobox-option[hidden] {
      display: none !important;
    }

    .language-combobox-option:hover,
    .language-combobox-option.is-selected {
      background: rgba(99, 102, 241, 0.18);
    }

    .language-combobox-option-label {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .language-combobox-option-code {
      flex: 0 0 auto;
      color: var(--text-secondary);
      font-size: 11px;
      text-transform: uppercase;
    }

    .language-combobox-empty {
      display: none;
      padding: 14px 10px 10px;
      color: var(--text-secondary);
      font-size: 12px;
      text-align: center;
    }

    html[dir="rtl"] .language-combobox-button,
    html[data-lang="fa"] .language-combobox-button,
    html[dir="rtl"] .language-combobox-option,
    html[data-lang="fa"] .language-combobox-option {
      direction: rtl;
      text-align: right;
    }

    html[dir="ltr"] .language-combobox-button,
    html:not([dir="rtl"]):not([data-lang="fa"]) .language-combobox-button,
    html[dir="ltr"] .language-combobox-option,
    html:not([dir="rtl"]):not([data-lang="fa"]) .language-combobox-option {
      direction: ltr;
      text-align: left;
    }

    @media (max-width: 600px) {
      .translation-choice-panel {
        grid-template-columns: 1fr;
      }

      .language-combobox-panel {
        max-height: 260px;
      }

      .language-combobox-options {
        max-height: 190px;
      }
    }

    .translation-choice-note {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid rgba(20, 184, 166, 0.18);
      background: rgba(20, 184, 166, 0.07);
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.6;
    }

    .prompt-hidden {
      display: none !important;
    }
    .prompt-examples {
      margin-top: 12px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(99, 102, 241, 0.05);
      border: 1px solid rgba(99, 102, 241, 0.1);
    }
    
    .examples-title {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-secondary);
      margin-bottom: 8px;
      font-weight: 600;
    }
    
    .example-item {
      padding: 8px 12px;
      margin-bottom: 6px;
      border-radius: 8px;
      background: rgba(15, 23, 42, 0.6);
      border-left: 3px solid var(--accent-primary);
      font-size: 12px;
      color: var(--text-secondary);
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .example-item:hover {
      background: rgba(15, 23, 42, 0.8);
      color: var(--text-primary);
      transform: translateX(4px);
    }
    
    .example-item:last-child {
      margin-bottom: 0;
    }

    .footer {
      position: sticky;
      bottom: 0;
      padding: 20px 0;
      background: linear-gradient(to top, var(--bg-primary) 70%, transparent);
      z-index: 10;
    }
    
    .confirm-btn {
      width: 100%;
      padding: 18px 24px;
      border-radius: 16px;
      border: none;
      font-size: 16px;
      font-weight: 700;
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 8px 24px var(--accent-glow);
      position: relative;
      overflow: hidden;
      min-height: 57px;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1.2;
    }
    
    .confirm-btn.confirm-btn-empty {
      color: transparent;
      text-shadow: none;
    }
    .confirm-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s ease;
    }
    
    .confirm-btn:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px var(--accent-glow);
    }
    
    .confirm-btn:hover:not(:disabled)::before {
      left: 100%;
    }
    
    .confirm-btn:active:not(:disabled) {
      transform: translateY(0);
    }
    
    .confirm-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      box-shadow: none;
    }
    
    .status-text {
      text-align: center;
      margin-top: 12px;
      font-size: 13px;
      color: var(--text-secondary);
      min-height: 20px;
    }
    
    .models-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    
    .models-count {
      font-size: 12px;
      color: var(--text-secondary);
      padding: 6px 12px;
      border-radius: 12px;
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.2);
    }

    #modelsSection .section-icon {
      font-size: 18px;
      opacity: 0.8;
    }

    .rank-legend {
      margin-top: 8px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(15, 23, 42, 0.7);
      border: 1px dashed rgba(148, 163, 184, 0.4);
      font-size: 11px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .rank-legend strong {
      color: var(--text-primary);
    }

    .rank-legend-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 8px;
    }

    .rank-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.6px;
      margin: 0;
      cursor: pointer;
      transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    }

    .rank-pill-1 {
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.6);
      color: var(--accent-primary);
    }

    .rank-pill-2 {
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.4);
      color: var(--text-secondary);
    }

    .rank-pill:not(.active) {
      opacity: 0.68;
    }

    .rank-pill.active {
      opacity: 1;
      box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
    }

    .rank-pill-2.active {
      border-color: rgba(148, 163, 184, 0.75);
      color: var(--text-primary);
    }

    .rank-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: currentColor;
    }

    .rank-desc {
      display: none;
      margin: 0;
    }

    .rank-desc.active {
      display: block;
    }

    /* ================== Payment section (NEW) ================== */
    .payment-summary {
      margin-bottom: 16px;
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(15, 23, 42, 0.8);
      border: 1px solid rgba(148, 163, 184, 0.25);
      font-size: 13px;
    }

    .payment-summary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }

    .payment-summary-row:last-child {
      margin-bottom: 0;
    }

    .payment-summary-label {
      color: var(--text-secondary);
    }

    .payment-summary-value {
      font-weight: 600;
      color: var(--text-primary);
    }

    .payment-summary-value-irt {
      color: var(--accent-primary);
    }

    .payment-summary-note {
      margin-top: 8px;
      font-size: 11px;
      color: var(--text-secondary);
      opacity: 0.8;
    }

    .payment-grid {
      display: grid;
      /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
      grid-template-columns: repeat(2, 1fr); /* دو کارت در هر ردیف */
      gap: 12px;
      margin-top: 12px;
    }

    .pay-method-card {
      padding: 16px 14px;
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.75);
      border: 1px solid rgba(148, 163, 184, 0.25);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .pay-method-header {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pay-method-icon {
      font-size: 20px;
      flex-shrink: 0;
    }

    .pay-method-logo-img {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      object-fit: contain;          /* ????? ????? ??? */
      flex-shrink: 0;
      background: #ffffff;          /* ???????? ???? ???? ??????? ???? */
      padding: 3px;
      box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
    }

    .pay-method-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .pay-method-subtitle {
      font-size: 11px;
      color: var(--text-secondary);
    }

    .pay-method-body {
      font-size: 12px;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .pay-method-btn,
    .pay-method-secondary-btn {
      width: 100%;
      border-radius: 999px;
      border: none;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .pay-method-btn {
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      color: white;
      box-shadow: 0 4px 14px var(--accent-glow);
    }

    .pay-method-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      box-shadow: none;
    }

    .pay-method-btn:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 7px 20px var(--accent-glow);
    }

    .pay-method-secondary-btn {
      margin-top: 6px;
      background: rgba(15, 23, 42, 0.9);
      color: var(--text-secondary);
      border: 1px solid rgba(148, 163, 184, 0.4);
    }

    .pay-method-secondary-btn:hover:not(:disabled) {
      background: rgba(15, 23, 42, 1);
      color: var(--text-primary);
    }

    .pay-c2c-row,
    .usdt-line {
      display: flex;
      justify-content: space-between;
      font-size: 11px;
      margin-bottom: 4px;
      gap: 8px;
    }

    .pay-c2c-row span:first-child,
    .usdt-line span:first-child {
      color: var(--text-secondary);
    }

    .pay-c2c-row span:last-child,
    .usdt-line code {
      font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      font-size: 11px;
      color: var(--text-primary);
      word-break: break-all;
    }

    /* ==== USDT TxID input ==== */
    .usdt-txid-input {
      margin-top: 8px;
      width: 100%;
      border-radius: 10px;
      border: 1px solid var(--border);
      padding: 8px 10px;
      font-size: 12px;
      color: var(--text-primary);
      background: rgba(15, 23, 42, 0.7); /* ???? ???? (???? ????) */
    }    

    .c2c-upload-label {
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 8px 12px;
      font-size: 12px;
      border-radius: 999px;
      border: 1px dashed rgba(148, 163, 184, 0.6);
      color: var(--text-secondary);
      cursor: pointer;
    }

    .c2c-upload-label:hover {
      background: rgba(15, 23, 42, 0.9);
      color: var(--text-primary);
    }

    .c2c-upload-label input[type="file"] {
      display: none;
    }

    .c2c-preview {
      margin-top: 10px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, 0.4);
    }

    .c2c-preview img {
      width: 100%;
      display: block;
      max-height: 260px;
      object-fit: contain;
    }

    .c2c-remove-btn {
      margin-top: 6px;
      padding: 6px 10px;
      font-size: 11px;
      border-radius: 999px;
      border: 1px solid rgba(248, 113, 113, 0.6);
      background: transparent;
      color: #fca5a5;
      cursor: pointer;
    }

    .c2c-remove-btn:hover {
      background: rgba(248, 113, 113, 0.08);
    }

    .c2c-note-input {
      margin-top: 8px;
      width: 100%;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: rgba(15, 23, 42, 0.9);
      padding: 8px 10px;
      font-size: 12px;
      color: var(--text-primary);
    }

    .c2c-note-input::placeholder {
      color: var(--text-secondary);
      opacity: 0.8;
    }

    .payment-status-text {
      margin-top: 14px;
      font-size: 12px;
      color: var(--text-secondary);
      min-height: 16px;
    }


    #webLoginBar {
    max-width: 840px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-secondary);
    font-size: 13px;
    }

    /* ?? ????: ???? ????? ?????? ???? ? ????? */
    [data-theme="light"] #webLoginBar {
      background: #FFFDF9;                               /* ??? ???? ???????? ???? */
      border-color: rgba(148, 163, 184, 0.45);
      color: #334155;                                     /* ??? ??????? ???? */
    }

    /* ??? ????? ???? ????? ??? ?? var(--text-secondary) */
    [data-theme="light"] .web-login-text {
      color: #334155;
    }

    .web-login-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    }

    .web-login-text {
    line-height: 1.5;
    }

    .web-job-status {
      margin-top: 12px;
      padding: 14px 16px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      gap: 12px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: rgba(15, 23, 42, 0.85);
      font-size: 13px;
    }

    .web-job-text {
      color: var(--text-secondary);
    }

    .web-job-status-processing {
      border-color: rgba(99, 102, 241, 0.6);
      box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
    }

    .web-job-status-waiting {
      border-style: dashed;
      border-color: rgba(148, 163, 184, 0.7);
    }

    .web-job-status-done {
      border-color: rgba(16, 185, 129, 0.7);
      background: rgba(6, 95, 70, 0.4);
    }

    .web-job-status-error {
      border-color: rgba(248, 113, 113, 0.7);
      background: rgba(127, 29, 29, 0.4);
    }

    .web-job-download {
      margin-top: 14px;
    }

    .web-job-download-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 999px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      color: #ffffff;
      box-shadow: 0 6px 18px var(--accent-glow);
      transition: all 0.2s ease;
    }

    .web-job-download-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 10px 26px var(--accent-glow);
    }

    .web-job-download-meta {
      margin-top: 8px;
      font-size: 12px;
      color: var(--text-secondary);
    }

    .web-job-start-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.6);
      background: rgba(15, 23, 42, 0.95);
      color: var(--text-primary);
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .web-job-start-btn:hover:not(:disabled) {
      background: rgba(15, 23, 42, 1);
      box-shadow: 0 0 0 1px var(--accent-primary);
      transform: translateY(-1px);
    }

    .web-job-start-btn:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      box-shadow: none;
    }

    /* ============ Translation progress bar ============ */

    #progressSection {
      margin-top: 16px;
      text-align: center;
    }

    .progress-bar {
      width: 80%;                     /* ??? ???????? ?? ???? */
      max-width: 340px;
      margin: 0 auto;
      height: 12px;                   /* ??????? */
      background-color: rgba(148, 163, 184, 0.35);
      border-radius: 999px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    }

    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      width: 0%;                      /* ?? JS ?? ????? */
      transition: width 0.4s ease-out;
    }

    #progressText {
      display: block;
      margin-top: 8px;
      font-size: 13px;
      font-weight: 600;               /* ?????? */
      color: var(--card-text);        /* ???? ? ????? ?? ?? ????? ?? ???? */
    }


    /* ============ Upload progress bar (NEW) ============ */

    .file-upload-progress {
      margin-top: 12px;
      text-align: center;
    }

    .file-upload-progress-bar {
      width: 100%;
      height: 12px;
      background-color: rgba(148, 163, 184, 0.35);
      border-radius: 999px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    }

    .file-upload-progress-fill {
      height: 100%;
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      width: 0%;
      transition: width 0.2s ease-out;
    }

    .file-upload-progress-text {
      display: block;
      margin-top: 6px;
      font-size: 12px;
      font-weight: 600;
      color: var(--card-text);
    }

    /* ?? ???? ??? ???? ?? ??? ?????? ??? */
    [data-theme="light"] .file-upload-progress-bar {
      background-color: rgba(148, 163, 184, 0.45);
    }

    /* ================= Login required modal (web only) ================= */

    .login-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.78);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;

      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    /* ???? ???? ??? body ?? ??? ? ????? ???? ?????? */
    body.login-modal-open .login-modal-backdrop {
      opacity: 1;
      pointer-events: auto;
    }

    /* ???? ??? ?? ???? (????? ??? ?????) */
    body.login-modal-open .app,
    body.login-modal-open .top-bar {
      filter: blur(4px);
      pointer-events: none;
    }

    .login-modal {
      max-width: 420px;
      width: calc(100% - 40px);
      border-radius: 24px;
      background: var(--card-bg);
      color: var(--card-text);
      border: 1px solid var(--card-border);
      padding: 20px 20px 18px;
      box-shadow: 0 18px 46px rgba(15, 23, 42, 0.75);
      position: relative;
      animation: fadeIn 0.25s ease-out;
    }

    /* ???? ???? ???? ??? ???? */
    .login-modal-close {
      position: absolute;
      top: 10px;
      inset-inline-end: 10px;
      width: 28px;
      height: 28px;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      background: rgba(15, 23, 42, 0.85);
      color: var(--text-secondary);
      font-size: 14px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    [data-theme="light"] .login-modal-close {
      background: #ffffff;
    }

    .login-modal-close:hover {
      border-color: var(--accent-primary);
      color: var(--accent-primary);
      transform: translateY(-1px);
    }

    .login-modal-icon {
      font-size: 32px;
      margin-bottom: 10px;
      text-align: center;
    }

    .login-modal-title {
      font-size: 18px;
      font-weight: 700;
      text-align: center;
      margin-bottom: 8px;
    }

    .login-modal-text {
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-secondary);
      text-align: center;
      margin-bottom: 16px;
    }

    .login-modal-btn {
      width: 100%;
      border-radius: 999px;
      border: none;
      padding: 12px 16px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
      color: #ffffff;
      box-shadow: 0 8px 22px var(--accent-glow);
      transition: all 0.22s ease;
    }

    .login-modal-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 30px var(--accent-glow);
    }

    .login-modal-small-hint {
      margin-top: 10px;
      font-size: 11px;
      text-align: center;
      color: var(--text-secondary);
    }

    /* ?? ???? ??? ?????? */
    [data-theme="light"] .login-modal {
      box-shadow: 0 18px 42px rgba(148, 163, 184, 0.55);
    }


    /* =============== Mobile layout tweaks (<= 600px) =============== */

    @media (max-width: 600px) {

      /* ??? ????? ???? ???? ??????? ???? */
      body {
        padding: 10px;
      }

      body.has-site-header .app {
        padding: 12px;
      }

      /* ??? top-bar absolute ???? ?? ?? ?? ???? ?? ??? */
      .app {
        padding-top: 60px; /* ?????? ?????? top-bar + margin */
      }

      /* ??? ??? ?????? ?????????? */
      .header {
        padding: 20px 12px 14px;
        margin-bottom: 16px;
      }

      .header-icon {
        font-size: 48px;
        margin-bottom: 10px;
      }

      .header-title {
        font-size: 24px;
        margin-bottom: 8px;
      }

      .header-subtitle {
        font-size: 13px;
        max-width: 100%;
      }

      /* ???????? Progress ??? ?? ???? ???? ????? */
      
      .progress-indicator {
        /* ???? flex + wrap ?????? ??? ???????? ??? ???? */
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 6px;
        margin-bottom: 20px;
      }

      .progress-step {
        padding: 5px 10px;
        font-size: 11px;
      }

      .progress-number {
        width: 18px;
        height: 18px;
        font-size: 9px;
      }

      /* ??????? ??? ?????? ??? ???????? ??? */
      .section-card {
        padding: 18px 14px;
        border-radius: 18px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
      }

      .section-hint {
        font-size: 12px;
        margin-bottom: 12px;
      }

      /* ????? ????? ??? ?????? */
      .file-upload-area {
        padding: 24px 16px;
      }

      .upload-icon {
        font-size: 40px;
      }

      .upload-text {
        font-size: 13px;
      }

      .supported-formats {
        font-size: 10px;
      }

      /* textarea ???????? ? ???? ???????? */
      textarea {
        min-height: 100px;
        padding: 12px;
        font-size: 13px;
      }

  
    .translation-choice-panel {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-top: 16px;
    }

    .choice-field {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .choice-field label {
      font-size: 12px;
      font-weight: 700;
      color: var(--text-primary);
    }

    .choice-select {
      width: 100%;
      min-height: 46px;
      padding: 0 14px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      color: var(--text-primary);
      font: inherit;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .choice-select:focus {
      border-color: var(--accent-primary);
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    }

    .translation-choice-note {
      margin-top: 12px;
      padding: 12px 14px;
      border-radius: 10px;
      border: 1px solid rgba(20, 184, 166, 0.18);
      background: rgba(20, 184, 166, 0.07);
      color: var(--text-secondary);
      font-size: 12px;
      line-height: 1.6;
    }

    .prompt-hidden {
      display: none !important;
    }
    .prompt-examples {
        padding: 10px;
      }

      .example-item {
        font-size: 11px;
        padding: 7px 10px;
      }

      /* ?????? ?????? ??? ?????? ????? ???? ????? ???? */
      .models-grid {
        gap: 8px;
        margin-top: 12px;
      }

      .model-card {
        padding: 14px;
      }

      .model-name {
        font-size: 14px;
      }

      .model-price {
        font-size: 14px;
      }

      .model-price-usd {
        font-size: 11px;
      }

      .model-desc {
        font-size: 11px;
      }

      /* Payment summary ? ??????? ??? ?????? */
      .payment-summary {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 12px;
      }

      .payment-grid {
        grid-template-columns: 1fr; /* ???? ?? ???? ??? */
        gap: 10px;
      }

      .pay-method-card {
        padding: 14px 12px;
        border-radius: 14px;
      }

      .pay-method-title {
        font-size: 13px;
      }

      .pay-method-subtitle,
      .pay-method-body {
        font-size: 11px;
      }

      .pay-method-btn,
      .pay-method-secondary-btn {
        padding: 9px 12px;
        font-size: 12px;
      }

      /* ???? ????? ?????? ??? ?????? (??? ????? ???? ?????) */
      #webLoginBar {
        margin: 0 auto 12px;
        padding: 10px 12px;
      }

      .web-login-inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .web-login-text {
        font-size: 12px;
      }

      /* ???? ????? ????? ??? ?????? */
      .web-job-status {
        padding: 12px 12px;
        font-size: 12px;
      }

      .web-job-download-btn {
        width: 100%;
        justify-content: center;
      }

      .web-job-start-btn {
        width: 100%;
        justify-content: center;
      }

      /* ???? ??? ?????? ???? ?????? ? ?? safe-area */
      .footer {
        padding: 14px 0 10px;
      }


    .confirm-btn {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 14px;
      }

      .status-text {
        font-size: 12px;
      }
    }

    /* ???????? safe-area (???? ????? ?? ???) */
    @supports (padding-bottom: env(safe-area-inset-bottom)) {
      @media (max-width: 600px) {
        .footer {
          padding-bottom: calc(10px + env(safe-area-inset-bottom));
        }
      }
    }


    /* ======= Extra small screens (<= 400px) ======= */

    @media (max-width: 400px) {

      .header {
        padding: 18px 10px 12px;
      }

      .header-icon {
        font-size: 40px;
      }

      .header-title {
        font-size: 22px;
      }

      .header-subtitle {
        font-size: 12px;
      }

      .progress-step {
        padding: 5px 8px;
        font-size: 11px;
      }

      .section-card {
        padding: 14px 10px;
        border-radius: 14px;
      }

      .file-upload-area {
        padding: 20px 12px;
      }

      .model-card {
        padding: 12px;
      }

      .payment-summary {
        padding: 8px 10px;
      }

      .pay-method-card {
        padding: 12px 10px;
      }

      .pay-c2c-row,
      .usdt-line {
        font-size: 10px;
      }

      .usdt-txid-input,
      .c2c-note-input {
        font-size: 11px;
        padding: 7px 9px;
      }

      .login-modal {
        width: calc(100% - 24px);
        padding: 16px 14px 14px;
      }

      .login-modal-title {
        font-size: 16px;
      }

      .login-modal-text {
        font-size: 12px;
      }

      .login-modal-btn {
        padding: 10px 14px;
        font-size: 13px;
      }
    }

    /* ===============================================================  */
    /* Modal for C2C receipt submission info (web only) */
    .c2c-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);
    }

    .c2c-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: c2cModalFadeIn 0.2s ease-out;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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