/* ══════════════════════════════════════════════════
   ECEL DISPUTE CENTER
   ══════════════════════════════════════════════════ */

.disputes-page {
    min-height: 100vh;
    padding-top: 7.8rem;
    background:
        radial-gradient(circle at 10% 8%, rgba(245,158,11,0.15), transparent 32%),
        radial-gradient(circle at 90% 85%, rgba(239,68,68,0.08), transparent 34%),
        radial-gradient(circle at 50% 50%, rgba(249,115,22,0.06), transparent 50%),
        linear-gradient(180deg, #0a0e18 0%, #0e1422 100%);
}

/* ── Hero ── */
.disputes-hero {
    padding: 2.5rem 0 1.5rem;
    text-align: center;
}

.disputes-hero__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(249,115,22,0.15));
    border: 2px solid rgba(245,158,11,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #0f172a;
}

.disputes-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
}

.text-accent {
    color: #fbbf24;
}

.disputes-hero__sub {
    margin: 0.5rem 0 0;
    color: #9ca3af;
    font-size: 1rem;
}

/* ── Content ── */
.disputes-content {
    padding-bottom: 3rem;
}

/* ── Login Prompt ── */
.disputes-login-prompt {
    border: 1px dashed rgba(245,158,11,0.25);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    color: #9ca3af;
    margin-top: 1rem;
}

.disputes-login-prompt i {
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 0.6rem;
}

.disputes-login-prompt h3 {
    color: #e5e7eb;
    margin: 0.5rem 0 0.3rem;
}

/* ── Actions bar ── */
.disputes-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-file-dispute {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #08111d;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}

.btn-file-dispute:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

.btn-file-dispute i {
    margin-right: 0.3rem;
}

.disputes-stats {
    display: flex;
    gap: 1rem;
}

.dispute-stat {
    color: #6b7280;
    font-size: 0.82rem;
}

.dispute-stat strong {
    color: #e5e7eb;
    margin-right: 0.2rem;
}

/* ── Form ── */
.dispute-form-wrap {
    margin-bottom: 1.2rem;
}

.dispute-form-card {
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(18,24,38,0.98), rgba(11,16,29,0.98));
    padding: 1.2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.dispute-form__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dispute-form__header h3 {
    margin: 0;
    color: #e5e7eb;
    font-size: 1.05rem;
}

.dispute-form__header h3 i {
    color: #fbbf24;
    margin-right: 0.4rem;
}

.dispute-form__close {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.2s;
}

.dispute-form__close:hover {
    color: #ef4444;
}

.dispute-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.dispute-form__field {
    margin-bottom: 0.6rem;
}

.dispute-form__field label {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dispute-form__field label small {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    color: #4b5563;
}

.dispute-form__field select,
.dispute-form__field input,
.dispute-form__field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.3);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.88rem;
    transition: border-color 0.2s;
    font-family: inherit;
    resize: vertical;
}

.dispute-form__field select:focus,
.dispute-form__field input:focus,
.dispute-form__field textarea:focus {
    outline: none;
    border-color: rgba(245,158,11,0.5);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #4b5563;
    margin-top: 0.2rem;
}

.evidence-input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: rgba(0,0,0,0.3);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.btn-add-evidence {
    background: none;
    border: 1px dashed rgba(255,255,255,0.15);
    color: #6b7280;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-evidence:hover {
    border-color: rgba(245,158,11,0.4);
    color: #fbbf24;
}
.dispute-dropzone {
    width: 100%;
    border: 1px dashed rgba(245,158,11,0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(245,158,11,0.08), rgba(0,0,0,0.16));
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
    appearance: none;
}

.dispute-dropzone:hover,
.dispute-dropzone.is-dragover {
    border-color: rgba(251,191,36,0.75);
    background: linear-gradient(180deg, rgba(245,158,11,0.16), rgba(0,0,0,0.24));
    transform: translateY(-1px);
}

.dispute-dropzone:focus-visible {
    outline: 2px solid rgba(251,191,36,0.8);
    outline-offset: 2px;
}

.dispute-dropzone__icon {
    font-size: 1.6rem;
    color: #fbbf24;
    margin-bottom: 0.4rem;
}

.dispute-dropzone__text {
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 700;
}

.dispute-dropzone__text span {
    color: #fbbf24;
}

.dispute-dropzone__hint {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.76rem;
}

.dispute-file-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.dispute-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.dispute-file-item__meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.dispute-file-item__meta i {
    color: #fbbf24;
}

.dispute-file-item__name {
    color: #e5e7eb;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispute-file-item__meta small {
    color: #6b7280;
    white-space: nowrap;
}

.dispute-file-item__remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(127,29,29,0.82);
    color: #ffffff;
    cursor: pointer;
}

.dispute-file-item__remove:hover {
    background: rgba(239,68,68,0.22);
}

.dispute-form__footer {
    margin-top: 0.6rem;
    text-align: right;
}

.btn-submit-dispute {
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    color: #08111d;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
}

.btn-submit-dispute:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

.btn-submit-dispute:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Disputes Empty ── */
.disputes-empty {
    border: 1px dashed rgba(245,158,11,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.disputes-empty i {
    font-size: 2rem;
    color: #22c55e;
    margin-bottom: 0.6rem;
}

.disputes-empty h3 {
    color: #e5e7eb;
    margin: 0.5rem 0 0.3rem;
}

/* ── Disputes List ── */
.disputes-list {
    display: grid;
    gap: 0.6rem;
}

.dispute-row {
    display: grid;
    grid-template-columns: 48px 1fr 30px;
    gap: 0.7rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(18,24,38,0.96), rgba(11,16,29,0.96));
    padding: 0.8rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.dispute-row:hover {
    border-color: rgba(245,158,11,0.3);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.dispute-row__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.dispute-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dispute-row__title {
    color: #e5e7eb;
    font-size: 0.92rem;
}

.dispute-row__case {
    color: #4b5563;
    font-size: 0.75rem;
    font-family: monospace;
    white-space: nowrap;
}

.dispute-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.dispute-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dispute-tag-plain {
    color: #6b7280;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.dispute-tag-plain i {
    font-size: 0.65rem;
}

.dispute-row__arrow {
    color: #374151;
    font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════
   DISPUTE DETAIL PAGE
   ══════════════════════════════════════════════════ */

.dispute-detail {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.dispute-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s;
    margin-bottom: 1rem;
}

.dispute-back:hover {
    color: #fbbf24;
}

/* ── Case header ── */
.dispute-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.dispute-header__case {
    color: #4b5563;
    font-family: monospace;
    font-size: 0.82rem;
}

.dispute-header__title {
    margin: 0.2rem 0 0.5rem;
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.dispute-header__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dispute-header__resolved {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #22c55e;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ── Detail card ── */
.dispute-detail-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(18,24,38,0.96), rgba(11,16,29,0.96));
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.dispute-detail-card h3 {
    margin: 0 0 0.7rem;
    color: #e5e7eb;
    font-size: 1rem;
}

.dispute-detail-card h3 i {
    color: #fbbf24;
    margin-right: 0.35rem;
}

.dispute-description {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre-line;
    margin: 0;
}

.dispute-against {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dispute-against__label {
    color: #6b7280;
    font-size: 0.8rem;
}

.dispute-against__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}

.dispute-against__avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}

.dispute-evidence {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.dispute-evidence h4 {
    margin: 0 0 0.4rem;
    color: #9ca3af;
    font-size: 0.82rem;
}

.dispute-evidence h4 i {
    margin-right: 0.3rem;
}

.evidence-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.82rem;
    margin-right: 0.8rem;
    transition: color 0.2s;
}

.evidence-link:hover {
    color: #93c5fd;
}
.dispute-evidence__list {
    display: grid;
    gap: 0.55rem;
}

.evidence-link--file {
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.6rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.evidence-link__preview {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0,0,0,0.28);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evidence-link__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-link__icon {
    color: #fbbf24;
    font-size: 1.2rem;
}

.evidence-link__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.evidence-link__body strong {
    color: #e5e7eb;
    font-size: 0.82rem;
}

.evidence-link__body small {
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispute-resolution {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.2);
}

.dispute-resolution h4 {
    margin: 0 0 0.4rem;
    color: #22c55e;
    font-size: 0.85rem;
}

.dispute-resolution h4 i {
    margin-right: 0.3rem;
}

.dispute-resolution p {
    margin: 0;
    color: #d1d5db;
    font-size: 0.88rem;
    line-height: 1.6;
}

.dispute-resolution small {
    display: block;
    margin-top: 0.4rem;
    color: #6b7280;
    font-size: 0.75rem;
}

/* ── Thread ── */
.dispute-thread {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(18,24,38,0.96), rgba(11,16,29,0.96));
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.dispute-thread h3 {
    margin: 0 0 0.8rem;
    color: #e5e7eb;
    font-size: 1rem;
}

.dispute-thread h3 i {
    color: #f97316;
    margin-right: 0.35rem;
}

.dispute-thread__empty {
    color: #4b5563;
    font-size: 0.85rem;
    font-style: italic;
}

.dispute-messages {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dispute-msg {
    padding: 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
}

.dispute-msg.admin {
    border-color: rgba(245,158,11,0.2);
    background: rgba(245,158,11,0.06);
}

.dispute-msg__header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}

.dispute-msg__header strong {
    color: #e5e7eb;
    font-size: 0.85rem;
}

.admin-badge {
    font-size: 0.6rem;
    font-weight: 800;
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 999px;
    padding: 0.1rem 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dispute-msg__date {
    color: #4b5563;
    font-size: 0.72rem;
    margin-left: auto;
}

.dispute-msg__text {
    margin: 0;
    color: #d1d5db;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-line;
}

/* ── Reply form ── */
.dispute-reply-form {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}

.dispute-reply-form textarea {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: rgba(0,0,0,0.3);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.2s;
}

.dispute-reply-form textarea:focus {
    outline: none;
    border-color: rgba(249,115,22,0.4);
}

.btn-send-reply {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #140824;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-send-reply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(249,115,22,0.3);
}

.btn-send-reply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ── Admin panel ── */
.dispute-admin-panel {
    border: 1px solid rgba(239,68,68,0.15);
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(239,68,68,0.04), rgba(11,16,29,0.96));
    padding: 1.1rem;
}

.dispute-admin-panel h3 {
    margin: 0 0 0.8rem;
    color: #ef4444;
    font-size: 1rem;
}

.dispute-admin-panel h3 i {
    margin-right: 0.35rem;
}

.admin-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.admin-control-field label {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-control-field select,
.admin-control-field textarea {
    width: 100%;
    padding: 0.5rem 0.7rem;
    background: rgba(0,0,0,0.3);
    color: #e5e7eb;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
}

.admin-control-field select:focus,
.admin-control-field textarea:focus {
    outline: none;
    border-color: rgba(239,68,68,0.4);
}

.btn-admin-update {
    margin-top: 0.8rem;
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #220909;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}

.btn-admin-update:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
}

.btn-admin-update:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.admin-notes-history {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.admin-notes-history h4 {
    margin: 0 0 0.5rem;
    color: #9ca3af;
    font-size: 0.82rem;
}

.admin-note-item {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.15);
    margin-bottom: 0.4rem;
}

.admin-note-item small {
    color: #6b7280;
    font-size: 0.72rem;
}

.admin-note-item p {
    margin: 0.2rem 0 0;
    color: #d1d5db;
    font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .disputes-page {
        padding-top: 7rem;
    }

    .dispute-form__grid {
        grid-template-columns: 1fr;
    }

    .dispute-row {
        grid-template-columns: 42px 1fr;
    }

    .dispute-row__arrow {
        display: none;
    }

    .dispute-header {
        flex-direction: column;
    }

    .admin-controls-grid {
        grid-template-columns: 1fr;
    }

    .dispute-reply-form {
        flex-direction: column;
    }

    .disputes-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
