/* ==========================================================================
   Victor Trader — پشتیبانی و تیکت (حساب کاربری)
   رنگ‌ها از توکن‌های تنظیمات قالب می‌آیند؛ مقدارهای روبه‌رو فقط پشتیبانند.
   ========================================================================== */

.vt-tk {
    --vt-surface: #ffffff;
    --vt-green: #00b894;
    --vt-green-dark: #027a62;
    --vt-on-green: #ffffff;
    --vt-mint: #e2f5ee;
    --vt-mint-soft: #eff9f1;
    --vt-ink: #162320;
    --vt-body: #2f3e3a;
    --vt-faint: #6b7b77;
    --vt-line: #dceae3;
    --vt-line-soft: #edf3f0;
    --vt-down: #c2373b;
    --vt-down-bg: #fdf2f2;
    --vt-warm: #b7791f;
    --vt-warm-bg: #fdf6e7;
    --vt-tk-radius: 14px;

    box-sizing: border-box;
    color: var(--vt-body);
}

.vt-tk *,
.vt-tk *::before,
.vt-tk *::after { box-sizing: border-box; }

/* نوار بالا ------------------------------------------------------------- */

.vt-tk__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.vt-tk__tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vt-tk .vt-tk__tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--vt-line);
    border-radius: 999px;
    background: var(--vt-surface);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    color: var(--vt-faint);
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.vt-tk .vt-tk__tab:hover {
    border-color: var(--vt-green);
    color: var(--vt-green-dark);
}
.vt-tk .vt-tk__tab.is-active {
    border-color: var(--vt-green);
    background: var(--vt-green);
    color: var(--vt-on-green);
}

/* دکمه‌ها ---------------------------------------------------------------- */

.vt-tk .vt-tk__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--vt-tk-radius);
    background: var(--vt-green);
    color: var(--vt-on-green);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}
.vt-tk .vt-tk__btn:hover { background: var(--vt-green-dark); color: var(--vt-on-green); }
.vt-tk .vt-tk__btn:disabled { opacity: .65; cursor: default; }

.vt-tk .vt-tk__btn--ghost {
    border: 1px solid var(--vt-line);
    background: var(--vt-surface);
    color: var(--vt-body);
}
.vt-tk .vt-tk__btn--ghost:hover {
    border-color: var(--vt-green);
    background: var(--vt-mint-soft);
    color: var(--vt-green-dark);
}

.vt-tk .vt-tk__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vt-faint);
    text-decoration: none;
}
.vt-tk .vt-tk__back:hover { color: var(--vt-green-dark); }

/* فهرست تیکت‌ها ---------------------------------------------------------- */

.vt-tk__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vt-tk .vt-tk__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-tk-radius);
    background: var(--vt-surface);
    text-decoration: none;
    color: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.vt-tk .vt-tk__row:hover {
    border-color: var(--vt-green);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.vt-tk__row-main { min-width: 0; flex: 1 1 260px; }

.vt-tk__row-title {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    color: var(--vt-ink);
}

.vt-tk__row-meta,
.vt-tk__meta {
    display: flex;
    align-items: center;
    gap: 6px 14px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--vt-faint);
}

/* برچسب وضعیت ------------------------------------------------------------ */

.vt-tk__tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    background: var(--vt-line-soft);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    color: var(--vt-faint);
    white-space: nowrap;
}
.vt-tk__tag--open { background: var(--vt-warm-bg); color: var(--vt-warm); }
.vt-tk__tag--answered { background: var(--vt-mint); color: var(--vt-green-dark); }
.vt-tk__tag--closed { background: var(--vt-down-bg); color: var(--vt-down); }

/* حالت خالی -------------------------------------------------------------- */

.vt-tk__empty {
    padding: 46px 20px;
    border: 1px dashed var(--vt-line);
    border-radius: var(--vt-tk-radius);
    background: var(--vt-mint-soft);
    text-align: center;
    font-size: 14.5px;
    color: var(--vt-faint);
}

/* سربرگ تیکت ------------------------------------------------------------- */

.vt-tk__head {
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--vt-line);
}

.vt-tk .vt-tk__title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.6;
    color: var(--vt-ink);
}

.vt-tk__intro { margin: 0 0 18px; font-size: 14px; line-height: 1.9; color: var(--vt-faint); }

/* گفت‌وگو ----------------------------------------------------------------- */

.vt-tk__thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.vt-tk__msg {
    padding: 16px 18px;
    border: 1px solid var(--vt-line);
    border-inline-start: 3px solid var(--vt-line);
    border-radius: var(--vt-tk-radius);
    background: var(--vt-surface);
}
.vt-tk__msg.is-staff {
    border-inline-start-color: var(--vt-green);
    background: var(--vt-mint-soft);
}

.vt-tk__msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--vt-faint);
}

.vt-tk__msg-body {
    font-size: 14.5px;
    line-height: 2;
    color: var(--vt-body);
    word-wrap: break-word;
}
.vt-tk__msg-body p { margin: 0 0 10px; }
.vt-tk__msg-body p:last-child { margin-bottom: 0; }

.vt-tk__files {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.vt-tk .vt-tk__files a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--vt-line);
    border-radius: 999px;
    background: var(--vt-surface);
    font-size: 12.5px;
    color: var(--vt-body);
    text-decoration: none;
}
.vt-tk .vt-tk__files a:hover { border-color: var(--vt-green); color: var(--vt-green-dark); }

/* فرم -------------------------------------------------------------------- */

.vt-tk__form { position: relative; }

.vt-tk__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.vt-tk__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.vt-tk__field--wide { grid-column: 1 / -1; }

.vt-tk .vt-tk__field label {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--vt-faint);
}
.vt-tk .vt-tk__field label i {
    font-style: normal;
    color: var(--vt-down);
    margin-inline-start: 3px;
}

.vt-tk .vt-tk__field input,
.vt-tk .vt-tk__field select,
.vt-tk .vt-tk__field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-tk-radius);
    background: var(--vt-surface);
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--vt-ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.vt-tk .vt-tk__field input[type="file"] { padding: 11px 14px; }
.vt-tk .vt-tk__field textarea { min-height: 140px; resize: vertical; }

.vt-tk .vt-tk__field input:focus,
.vt-tk .vt-tk__field select:focus,
.vt-tk .vt-tk__field textarea:focus {
    outline: 0;
    border-color: var(--vt-green);
    box-shadow: 0 0 0 3px var(--vt-mint);
}

.vt-tk__hint { font-size: 12px; color: var(--vt-faint); }

.vt-tk__form-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* پیام‌ها ----------------------------------------------------------------- */

.vt-tk .vt-tk__note {
    margin: 0 0 18px;
    padding: 13px 16px;
    border: 1px solid var(--vt-line);
    border-inline-start: 3px solid var(--vt-green);
    border-radius: 12px;
    background: var(--vt-mint-soft);
    font-size: 14px;
    color: var(--vt-body);
}
.vt-tk .vt-tk__note.is-bad {
    border-inline-start-color: var(--vt-down);
    background: var(--vt-down-bg);
    color: var(--vt-down);
}

/* موبایل ----------------------------------------------------------------- */

@media (max-width: 767px) {
    .vt-tk__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .vt-tk__field--wide { grid-column: 1 / -1; }
    .vt-tk__bar { align-items: stretch; }
    .vt-tk .vt-tk__btn { width: 100%; }
    .vt-tk .vt-tk__tab { height: 36px; padding: 0 13px; font-size: 12.5px; }
    .vt-tk .vt-tk__title { font-size: 18px; }
    .vt-tk .vt-tk__row { padding: 14px; }
}
