/* ============================================================================
   3PAY.SHOP — Некастодіальні зворотні заявки тейкерів та UI прямих угод (?v=211_a_2)
   Стерильний ізольований модуль: 0 дублів селекторів, Темна + Світла теми, 360px+, Opera Mini
   ============================================================================ */

/* ----------------- 1. ВІТРИНА «🔥 ТОП ЗАЯВОК ТЕЙКЕРІВ» ----------------- */
.trq-showcase-section {
    margin: 16px 0 22px;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(14, 24, 46, 0.94), rgba(9, 15, 30, 0.96));
    border: 1px solid rgba(56, 189, 248, 0.26);
    box-shadow: 0 12px 32px rgba(2, 8, 23, 0.42);
    color: var(--text-primary, #f1f5f9);
    min-width: 0;
}

.trq-top-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.trq-top-title-wrap {
    flex: 1 1 300px;
    min-width: 0;
}

.trq-top-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.trq-top-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #f8fafc;
}

.trq-live-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}

.trq-top-sub {
    margin: 5px 0 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #94a3b8;
}

.trq-top-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.trq-dir-filters {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    gap: 3px;
}

.trq-dir-btn {
    min-height: 38px;
    padding: 6px 12px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.trq-dir-btn:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.12);
}

.trq-dir-btn.is-active {
    background: #0052ff;
    color: #ffffff;
}

.trq-refresh-btn {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.trq-refresh-btn:hover {
    border-color: rgba(56, 189, 248, 0.65);
    background: rgba(30, 41, 59, 0.88);
}

.trq-create-btn {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 11px;
    border: none;
    background: linear-gradient(135deg, #0052ff, #0ea5e9);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 82, 255, 0.34);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trq-create-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.42);
}

/* ----------------- 2. МОЯ АКТИВНА ЗАЯВКА ----------------- */
.trq-my-active-box {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.42);
}

.trq-my-active-box.is-paused {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.55);
}

.trq-my-active-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.trq-my-active-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.trq-my-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.48);
}

.trq-my-status-pill.is-paused {
    background: rgba(245, 158, 11, 0.24);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.56);
}

.trq-my-active-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.trq-my-active-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.trq-btn-resume {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    background: #f59e0b;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}

.trq-btn-cancel-req {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.52);
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.trq-btn-cancel-req:hover {
    background: rgba(239, 68, 68, 0.24);
}

/* ----------------- 3. КАРТКИ ЗАЯВОК НА ВІТРИНІ ----------------- */
.trq-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 14px;
}

.trq-empty-card {
    grid-column: 1 / -1;
    padding: 26px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.54);
    text-align: center;
}

.trq-empty-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.trq-empty-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.trq-empty-sub {
    margin: 0 auto 14px;
    max-width: 560px;
    font-size: 0.86rem;
    color: #94a3b8;
}

.trq-card {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 15px 16px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.24);
    min-width: 0;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.trq-card:hover {
    border-color: rgba(56, 189, 248, 0.55);
}

.trq-card.is-rehab {
    border-color: rgba(245, 158, 11, 0.56);
    background: linear-gradient(160deg, rgba(35, 28, 14, 0.82), rgba(15, 23, 42, 0.92));
}

.trq-card.is-own {
    border-color: rgba(16, 185, 129, 0.52);
}

.trq-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.trq-card-author-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.trq-card-alias-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.trq-alias-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f8fafc;
}

.trq-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.36);
}

.trq-deals-meta {
    font-size: 0.78rem;
    color: #94a3b8;
}

.trq-card-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.trq-dir-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.trq-dir-badge.is-buy {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.44);
}

.trq-dir-badge.is-sell {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.44);
}

.trq-ttl-badge {
    font-size: 0.78rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 999px;
}

.trq-ttl-badge.is-low {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.46);
}

.trq-zone-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.trq-zone-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.trq-zone-pill.is-green {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.38);
}

.trq-zone-pill.is-yellow {
    background: rgba(245, 158, 11, 0.24);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.62);
}

.trq-rate-box {
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(7, 13, 25, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.trq-rate-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trq-rate-val {
    font-size: 1.2rem;
    font-weight: 900;
    color: #f8fafc;
}

.trq-rate-sub {
    font-size: 0.76rem;
    color: #fbbf24;
    font-weight: 700;
}

.trq-amount-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.trq-amount-usdt {
    font-size: 1rem;
    font-weight: 800;
    color: #38bdf8;
}

.trq-amount-fiat {
    font-size: 0.8rem;
    color: #cbd5e1;
}

.trq-route-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.trq-route-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e2e8f0;
    font-weight: 700;
    word-break: break-word;
}

.trq-route-pill.is-platform {
    border-color: rgba(56, 189, 248, 0.42);
    color: #bae6fd;
}

.trq-fee-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.34);
}

.trq-fee-pill.is-taker {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.42);
}

.trq-fee-pill.is-split {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.36);
}

.trq-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.trq-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(51, 65, 85, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #e2e8f0;
}

.trq-card-footer {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trq-accept-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 11px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.trq-accept-btn:hover {
    transform: translateY(-1px);
}

.trq-accept-btn:disabled,
.trq-accept-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.trq-own-badge-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trq-own-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.44);
    color: #34d399;
}

/* ----------------- 4. МОДАЛКА КОНСТРУКТОРА ЗВОРОТНОЇ ЗАЯВКИ ----------------- */
.trq-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(2, 6, 23, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.trq-modal-sheet {
    width: 100%;
    max-width: 760px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 18px;
    background: #0b1324;
    border: 1px solid rgba(56, 189, 248, 0.34);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.62);
    color: #f1f5f9;
}

.trq-modal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.trq-modal-top-copy {
    min-width: 0;
}

.trq-modal-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #38bdf8;
    margin-bottom: 4px;
}

.trq-modal-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: #f8fafc;
}

.trq-modal-close {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.trq-modal-body {
    padding: 18px 20px 22px;
}

.trq-gate-panel {
    text-align: center;
    padding: 16px 12px;
}

.trq-gate-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.trq-gate-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #f8fafc;
}

.trq-gate-desc {
    margin: 0 auto 14px;
    max-width: 560px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.trq-tier-table {
    max-width: 460px;
    margin: 0 auto 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.trq-tier-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.88rem;
}

.trq-blocked-meta {
    margin: 0 auto 14px;
    max-width: 520px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
    font-size: 0.88rem;
    font-weight: 700;
}

.trq-quarantine-scale {
    max-width: 560px;
    margin: 0 auto 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    text-align: left;
}

.trq-qscale-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}

.trq-qscale-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trq-qscale-pill {
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.36);
}

.trq-qscale-pill.is-amnesty {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.trq-gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.trq-builder-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.trq-me-status-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.trq-me-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}

.trq-me-badge.is-role {
    border-color: rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
}

.trq-me-badge.is-rep.is-green {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.48);
    color: #34d399;
}

.trq-me-badge.is-rep.is-yellow {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.58);
    color: #fde68a;
}

.trq-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.trq-field-block {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.trq-field-lbl {
    font-size: 0.82rem;
    font-weight: 800;
    color: #cbd5e1;
}

.trq-field-hint {
    font-size: 0.76rem;
    color: #94a3b8;
}

.trq-dir-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.trq-dir-opt {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.8);
    color: #cbd5e1;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
}

.trq-dir-opt.is-buy.is-active {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
    color: #34d399;
}

.trq-dir-opt.is-sell.is-active {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.trq-input-wrap {
    display: flex;
    align-items: center;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(7, 13, 25, 0.9);
    overflow: hidden;
}

.trq-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 700;
    outline: none;
}

.trq-input.trq-search-mini {
    min-height: 40px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 10px;
    background: rgba(7, 13, 25, 0.88);
    font-size: 0.84rem;
    font-weight: 600;
}

.trq-input-unit {
    padding: 0 12px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    flex-shrink: 0;
}

.trq-select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(7, 13, 25, 0.92);
    color: #f8fafc;
    font-size: 0.88rem;
    font-weight: 700;
}

.trq-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trq-qamt-btn {
    min-height: 36px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(30, 41, 59, 0.72);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.trq-qamt-btn:hover {
    border-color: #38bdf8;
    color: #ffffff;
}

.trq-rate-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
}

.trq-ref-rate-btn {
    padding: 4px 9px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.trq-fiat-preview {
    font-weight: 800;
    color: #34d399;
}

.trq-form-alert {
    padding: 11px 14px;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.45;
}

.trq-form-alert.is-danger {
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.54);
    color: #fecaca;
}

.trq-form-alert.is-warn {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.52);
    color: #fde68a;
}

.trq-rehab-preview {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.62);
    color: #fef08a;
    font-size: 0.85rem;
    line-height: 1.48;
}

.trq-ttl-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.trq-ttl-btn {
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.trq-ttl-btn.is-active {
    background: #0052ff;
    border-color: #38bdf8;
    color: #ffffff;
}

.trq-fee-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trq-fee-opt {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.82);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.trq-fee-opt.is-active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #a7f3d0;
}

.trq-chips-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trq-chips-counter {
    font-size: 0.8rem;
    font-weight: 800;
    color: #38bdf8;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.34);
}

.trq-chips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.trq-chip-opt {
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.84);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.trq-chip-opt.is-selected {
    background: rgba(0, 82, 255, 0.24);
    border-color: #38bdf8;
    color: #ffffff;
}

.trq-chip-opt.is-max-locked,
.trq-chip-opt:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.trq-form-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.trq-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0052ff, #0ea5e9);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.trq-btn-primary:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.trq-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.82);
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* ----------------- 5. ГЛОБАЛЬНИЙ РАДАР ЯВКИ 3 ХВИЛИНИ ----------------- */
.trq-radar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 13500;
    background: rgba(2, 6, 23, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.trq-radar-card {
    width: 100%;
    max-width: 520px;
    border-radius: 18px;
    padding: 20px 22px;
    background: linear-gradient(160deg, #1b1208, #0f172a);
    border: 2px solid #f59e0b;
    box-shadow: 0 24px 64px rgba(245, 158, 11, 0.28);
    color: #f8fafc;
}

.trq-radar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.trq-radar-kicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    background: rgba(245, 158, 11, 0.24);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.56);
}

.trq-radar-close {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(15, 23, 42, 0.84);
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
}

.trq-radar-title {
    margin: 0 0 6px;
    font-size: 1.18rem;
    font-weight: 900;
    color: #ffffff;
}

.trq-radar-sub {
    margin: 0 0 14px;
    font-size: 0.86rem;
    line-height: 1.48;
    color: #cbd5e1;
}

.trq-radar-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.54);
    margin-bottom: 12px;
}

.trq-radar-timer-lbl {
    font-size: 0.84rem;
    font-weight: 700;
    color: #fde68a;
}

.trq-radar-timer-val {
    font-size: 1.55rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fbbf24;
}

.trq-radar-timer-val.is-urgent {
    color: #f87171;
}

.trq-radar-summary {
    padding: 11px 13px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 0.86rem;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.trq-radar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trq-radar-confirm-btn {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.38);
}

.trq-radar-confirm-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.trq-radar-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: #bae6fd;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.trq-mini-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 13200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: calc(100vw - 24px);
    padding: 10px 14px;
    border-radius: 14px;
    background: #1e1406;
    border: 2px solid #f59e0b;
    color: #fef3c7;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}

.trq-mini-bar-text {
    font-size: 0.84rem;
    font-weight: 700;
}

.trq-mini-bar-timer {
    font-size: 1rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fbbf24;
}

.trq-mini-bar-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    border: none;
    background: #10b981;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
}

/* ----------------- 6. ПРЯМІ ОРДЕРИ (КІМНАТА ОРДЕРА, ЦЕНТР ОРДЕРІВ, КАБІНЕТ) ----------------- */
.trq-ord-checkin-box {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.92));
    border: 2px solid #f59e0b;
    color: #fef3c7;
}

.trq-ord-checkin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.trq-ord-checkin-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #fde68a;
}

.trq-ord-checkin-timer {
    font-size: 1.2rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(245, 158, 11, 0.62);
    color: #fbbf24;
}

.trq-ord-checkin-timer.is-urgent {
    color: #f87171;
    border-color: #ef4444;
}

.trq-ord-checkin-sub {
    margin: 0 0 10px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #f1f5f9;
}

.trq-ord-checkin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trq-ord-checkin-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 11px;
    border: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 900;
    cursor: pointer;
}

.trq-ord-source-bar {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.36);
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.trq-ord-source-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.trq-ord-source-route {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.trq-ord-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
    border: 1px solid rgba(249, 115, 22, 0.48);
}

.trq-ord-pill.is-rehab {
    background: rgba(245, 158, 11, 0.22);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.58);
}

.trq-ord-fee-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.38);
}

.trq-ord-chips-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.trq-ord-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 600;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: #e2e8f0;
}

.trq-ord-req-hint {
    margin: 8px 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.42);
    color: #e0f2fe;
}

.trq-ord-hint-text {
    margin: 0 0 9px;
    font-size: 0.84rem;
    line-height: 1.48;
}

.trq-ord-hint-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trq-ord-hint-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 13px;
    border-radius: 9px;
    background: #0052ff;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.trq-ord-hint-chat-btn {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 9px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 0.76);
    color: #bae6fd;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.trq-ord-inline-checkin {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.56);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trq-ord-inline-checkin-copy {
    font-size: 0.84rem;
    color: #fde68a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trq-ord-inline-timer {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    color: #fbbf24;
}

.trq-btn-checkin-sm {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    border: none;
    background: #10b981;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

/* ----------------- 7. СВІТЛА ТЕМА (html[data-theme="light"]) ----------------- */
html[data-theme="light"] .trq-showcase-section {
    background: linear-gradient(155deg, #ffffff, #f8fafc);
    border-color: #cbd5e1;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .trq-top-title {
    color: #0f172a;
}

html[data-theme="light"] .trq-live-count-pill {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

html[data-theme="light"] .trq-top-sub {
    color: #475569;
}

html[data-theme="light"] .trq-dir-filters {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

html[data-theme="light"] .trq-dir-btn {
    color: #334155;
}

html[data-theme="light"] .trq-dir-btn:hover {
    color: #0f172a;
    background: #e2e8f0;
}

html[data-theme="light"] .trq-dir-btn.is-active {
    background: #0052ff;
    color: #ffffff;
}

html[data-theme="light"] .trq-refresh-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-my-active-box {
    background: #ecfdf5;
    border-color: #34d399;
}

html[data-theme="light"] .trq-my-active-box.is-paused {
    background: #fffbeb;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-my-status-pill {
    background: #dcfce7;
    color: #166534;
    border-color: #4ade80;
}

html[data-theme="light"] .trq-my-status-pill.is-paused {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-my-active-meta {
    color: #1e293b;
}

html[data-theme="light"] .trq-btn-cancel-req {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
}

html[data-theme="light"] .trq-empty-card {
    background: #f8fafc;
    border-color: #cbd5e1;
}

html[data-theme="light"] .trq-empty-title {
    color: #0f172a;
}

html[data-theme="light"] .trq-empty-sub {
    color: #475569;
}

html[data-theme="light"] .trq-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .trq-card.is-rehab {
    background: #fffbeb;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-alias-name {
    color: #0f172a;
}

html[data-theme="light"] .trq-role-pill {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

html[data-theme="light"] .trq-deals-meta {
    color: #475569;
}

html[data-theme="light"] .trq-dir-badge.is-buy {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

html[data-theme="light"] .trq-dir-badge.is-sell {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

html[data-theme="light"] .trq-ttl-badge {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

html[data-theme="light"] .trq-ttl-badge.is-low {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fca5a5;
}

html[data-theme="light"] .trq-zone-pill.is-green {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

html[data-theme="light"] .trq-zone-pill.is-yellow {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-rate-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html[data-theme="light"] .trq-rate-val {
    color: #0f172a;
}

html[data-theme="light"] .trq-rate-sub {
    color: #b45309;
}

html[data-theme="light"] .trq-amount-usdt {
    color: #0052ff;
}

html[data-theme="light"] .trq-amount-fiat {
    color: #334155;
}

html[data-theme="light"] .trq-route-pill {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-route-pill.is-platform {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

html[data-theme="light"] .trq-fee-pill {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

html[data-theme="light"] .trq-fee-pill.is-taker {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-fee-pill.is-split {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

html[data-theme="light"] .trq-chip {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

html[data-theme="light"] .trq-own-pill {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

html[data-theme="light"] .trq-modal-sheet {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

html[data-theme="light"] .trq-modal-top {
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .trq-modal-kicker {
    color: #0052ff;
}

html[data-theme="light"] .trq-modal-title {
    color: #0f172a;
}

html[data-theme="light"] .trq-modal-close {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-gate-title {
    color: #0f172a;
}

html[data-theme="light"] .trq-gate-desc {
    color: #334155;
}

html[data-theme="light"] .trq-tier-row {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-blocked-meta {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

html[data-theme="light"] .trq-quarantine-scale {
    background: #f8fafc;
    border-color: #cbd5e1;
}

html[data-theme="light"] .trq-qscale-title {
    color: #334155;
}

html[data-theme="light"] .trq-qscale-pill {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-qscale-pill.is-amnesty {
    background: #dcfce7;
    color: #166534;
    border-color: #4ade80;
}

html[data-theme="light"] .trq-me-badge {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-me-badge.is-role {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

html[data-theme="light"] .trq-me-badge.is-rep.is-green {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

html[data-theme="light"] .trq-me-badge.is-rep.is-yellow {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

html[data-theme="light"] .trq-field-lbl {
    color: #1e293b;
}

html[data-theme="light"] .trq-field-hint {
    color: #475569;
}

html[data-theme="light"] .trq-dir-opt {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

html[data-theme="light"] .trq-dir-opt.is-buy.is-active {
    background: #dcfce7;
    border-color: #10b981;
    color: #166534;
}

html[data-theme="light"] .trq-dir-opt.is-sell.is-active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #b91c1c;
}

html[data-theme="light"] .trq-input-wrap {
    background: #ffffff;
    border-color: #cbd5e1;
}

html[data-theme="light"] .trq-input {
    color: #0f172a;
}

html[data-theme="light"] .trq-input.trq-search-mini {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-select {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-qamt-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-ref-rate-btn {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

html[data-theme="light"] .trq-fiat-preview {
    color: #047857;
}

html[data-theme="light"] .trq-form-alert.is-danger {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}

html[data-theme="light"] .trq-form-alert.is-warn {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

html[data-theme="light"] .trq-rehab-preview {
    background: #fef3c7;
    border-color: #d97706;
    color: #78350f;
}

html[data-theme="light"] .trq-ttl-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

html[data-theme="light"] .trq-ttl-btn.is-active {
    background: #0052ff;
    border-color: #0052ff;
    color: #ffffff;
}

html[data-theme="light"] .trq-fee-opt {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

html[data-theme="light"] .trq-fee-opt.is-active {
    background: #dcfce7;
    border-color: #10b981;
    color: #166534;
}

html[data-theme="light"] .trq-chips-counter {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0369a1;
}

html[data-theme="light"] .trq-chip-opt {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-chip-opt.is-selected {
    background: #dbeafe;
    border-color: #0052ff;
    color: #1e3a8a;
}

html[data-theme="light"] .trq-btn-secondary {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-radar-card {
    background: #ffffff;
    border-color: #d97706;
    color: #0f172a;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

html[data-theme="light"] .trq-radar-kicker {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-radar-close {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-radar-title {
    color: #0f172a;
}

html[data-theme="light"] .trq-radar-sub {
    color: #334155;
}

html[data-theme="light"] .trq-radar-timer-row {
    background: #fef3c7;
    border-color: #d97706;
}

html[data-theme="light"] .trq-radar-timer-lbl {
    color: #78350f;
}

html[data-theme="light"] .trq-radar-timer-val {
    color: #b45309;
}

html[data-theme="light"] .trq-radar-summary {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .trq-radar-order-link {
    border-color: #cbd5e1;
    color: #0052ff;
}

html[data-theme="light"] .trq-mini-bar {
    background: #fffbeb;
    border-color: #d97706;
    color: #78350f;
}

html[data-theme="light"] .trq-mini-bar-timer {
    color: #b45309;
}

html[data-theme="light"] .trq-ord-checkin-box {
    background: #fffbeb;
    border-color: #d97706;
    color: #78350f;
}

html[data-theme="light"] .trq-ord-checkin-title {
    color: #92400e;
}

html[data-theme="light"] .trq-ord-checkin-timer {
    background: #ffffff;
    border-color: #d97706;
    color: #b45309;
}

html[data-theme="light"] .trq-ord-checkin-sub {
    color: #1e293b;
}

html[data-theme="light"] .trq-ord-source-bar {
    background: #f0f9ff;
    border-color: #7dd3fc;
}

html[data-theme="light"] .trq-ord-source-route {
    color: #0f172a;
}

html[data-theme="light"] .trq-ord-pill {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fb923c;
}

html[data-theme="light"] .trq-ord-pill.is-rehab {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html[data-theme="light"] .trq-ord-fee-pill {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

html[data-theme="light"] .trq-ord-chip {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

html[data-theme="light"] .trq-ord-req-hint {
    background: #f0f9ff;
    border-color: #38bdf8;
    color: #0c4a6e;
}

html[data-theme="light"] .trq-ord-hint-chat-btn {
    background: #ffffff;
    border-color: #0284c7;
    color: #0369a1;
}

html[data-theme="light"] .trq-ord-inline-checkin {
    background: #fef3c7;
    border-color: #d97706;
}

html[data-theme="light"] .trq-ord-inline-checkin-copy {
    color: #92400e;
}

html[data-theme="light"] .trq-ord-inline-timer {
    color: #b45309;
}

/* ----------------- 8. МОБІЛЬНИЙ АДАПТИВ (768px / 600px / 360px+) ----------------- */
@media (max-width: 768px) {
    .trq-showcase-section {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .trq-two-col {
        grid-template-columns: 1fr;
    }

    .trq-chips-grid {
        grid-template-columns: 1fr;
    }

    .trq-top-grid {
        grid-template-columns: 1fr;
    }

    .trq-top-controls {
        width: 100%;
        justify-content: space-between;
    }

    .trq-create-btn {
        flex: 1 1 180px;
    }
}

@media (max-width: 480px) {
    .trq-modal-backdrop {
        padding: 8px;
        align-items: flex-end;
    }

    .trq-modal-sheet {
        max-height: 94vh;
        border-radius: 16px 16px 12px 12px;
    }

    .trq-modal-top {
        padding: 14px 14px 12px;
    }

    .trq-modal-body {
        padding: 14px 14px 18px;
    }

    .trq-dir-switch {
        grid-template-columns: 1fr;
    }

    .trq-form-footer {
        flex-direction: column-reverse;
    }

    .trq-btn-primary,
    .trq-btn-secondary {
        width: 100%;
    }

    .trq-radar-card {
        padding: 16px 14px;
    }
}

@media (max-width: 380px) {
    .trq-showcase-section {
        padding: 12px 10px;
    }

    .trq-top-title {
        font-size: 1.08rem;
    }

    .trq-dir-filters {
        width: 100%;
        justify-content: space-between;
    }

    .trq-dir-btn {
        flex: 1 1 0;
        padding: 6px 6px;
        font-size: 0.78rem;
    }

    .trq-refresh-btn {
        flex: 0 0 auto;
        padding: 0 10px;
    }

    .trq-rate-val {
        font-size: 1.06rem;
    }

    .trq-radar-timer-val {
        font-size: 1.32rem;
    }
}
