/* ============================================================
   PriceONN Support Ticket System Styles
   Layout pattern matches community.php (sidebar + widget structure)
   Dark theme: #0a0f1a bg, #00d4aa accent, rgba cards
   ============================================================ */

/* ========== Layout (Sidebar + Main) ========== */
.support-layout {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: flex-start;
}

.support-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 116px);
    margin-top: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.support-sidebar::-webkit-scrollbar { width: 4px; }
.support-sidebar::-webkit-scrollbar-track { background: transparent; }
.support-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.support-sidebar.collapsed {
    width: 60px;
}

.support-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* ========== Sidebar ========== */
.sidebar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 14px 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
    width: 100%;
}

.sidebar-toggle:hover {
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.support-sidebar.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}

.sidebar-menu {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 2px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.sidebar-menu-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-menu-link.active {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

.sidebar-menu-link.active svg {
    color: #00d4aa;
}

.sidebar-menu-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.sidebar-menu-link span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 12px;
}

.sidebar-section-title {
    padding: 12px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.category-count {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
    flex-shrink: 0;
}

.sidebar-menu-link.active .category-count {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
}

/* Collapsed sidebar state */
.support-sidebar.collapsed .sidebar-menu-link span,
.support-sidebar.collapsed .category-count,
.support-sidebar.collapsed .sidebar-section-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.support-sidebar.collapsed .sidebar-menu-link {
    justify-content: center;
    padding: 12px;
    gap: 0;
}

.support-sidebar.collapsed .sidebar-divider {
    margin: 6px 8px;
}

/* ========== Widget Base ========== */
.support-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

/* ========== Header Widget ========== */
.support-header-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.support-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.support-header-left svg {
    width: 28px;
    height: 28px;
    color: #00d4aa;
    flex-shrink: 0;
}

.support-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: auto;
    white-space: nowrap;
}

/* ========== Tab Navigation ========== */
.support-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.support-tabs::-webkit-scrollbar { display: none; }

.support-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

.support-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
}

.support-tab.active {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
    font-weight: 600;
}

.support-tab-count {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.support-tab.active .support-tab-count {
    background: #00d4aa;
    color: #0a0f1a;
}

/* ========== Search ========== */
.support-search-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
}

.support-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 14px;
    transition: border-color 0.2s ease;
}

.support-search:focus-within {
    border-color: rgba(0, 212, 170, 0.4);
}

.support-search svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.support-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
}

.support-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* ========== FAQ Section ========== */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item.active {
    border-color: rgba(0, 212, 170, 0.25);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-toggle {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
    color: #00d4aa;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 18px 16px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 13.5px;
    line-height: 1.7;
}

.faq-answer-content a {
    color: #00d4aa;
    text-decoration: none;
}

.faq-answer-content a:hover {
    text-decoration: underline;
}

.faq-category-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.faq-category-badge.genel {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
}

.faq-category-badge.hesap {
    background: rgba(41, 98, 255, 0.12);
    color: #5b8aff;
}

.faq-category-badge.odeme {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.faq-category-badge.teknik {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

/* ========== Ticket List ========== */
.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ticket-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.ticket-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.ticket-card-header .ticket-id {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    font-family: 'SF Mono', 'Consolas', monospace;
}

.ticket-card-subject {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ticket-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.ticket-card-footer .message-count {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ticket-card-footer .message-count svg {
    width: 14px;
    height: 14px;
}

.ticket-card-footer .last-activity {
    color: rgba(255, 255, 255, 0.35);
}

.ticket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.ticket-empty svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.ticket-empty p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 0 0 4px;
}

.ticket-empty p:first-of-type {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    font-size: 15px;
}

/* ========== Empty State (JS-generated) ========== */
.support-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    min-height: 320px;
}

.support-empty .support-empty-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 212, 170, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.support-empty .support-empty-icon svg {
    width: 40px;
    height: 40px;
    color: rgba(0, 212, 170, 0.5);
}

.support-empty p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: 360px;
}

.support-empty .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.support-empty .btn-primary {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0a0f1a;
}

.support-empty .btn-primary:hover {
    background: linear-gradient(135deg, #00e6b8, #00d4aa);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.25);
}

/* ========== Widget Min-Height (Ticket & Detail extend to bottom) ========== */
#myTicketsContent,
#ticketDetailContent {
    min-height: calc(100vh - 340px);
    display: flex;
    flex-direction: column;
}

#myTicketsContent .ticket-list {
    flex: 1;
}

#myTicketsContent .ticket-filters {
    margin-bottom: 16px;
}

/* ========== Infinite Scroll Loading ========== */
.tickets-load-more {
    padding: 16px 0;
}

.ticket-scroll-sentinel {
    height: 1px;
    width: 100%;
}

/* ========== Status Badges ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: capitalize;
}

.status-open {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
}

.status-in_progress {
    background: rgba(41, 98, 255, 0.12);
    color: #5b8aff;
}

.status-resolved {
    background: rgba(255, 193, 7, 0.12);
    color: #ffc107;
}

.status-closed {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
}

/* ========== Priority Badges ========== */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-transform: capitalize;
}

.priority-low {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.priority-medium {
    background: rgba(41, 98, 255, 0.12);
    color: #5b8aff;
}

.priority-high {
    background: rgba(255, 152, 0, 0.12);
    color: #ff9800;
}

.priority-critical {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* ========== Category Badge ========== */
.category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
}

/* ========== New Ticket Form ========== */
.ticket-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
}

.form-intro {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-intro h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.form-intro p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
}

.form-select option {
    background: #1a1f2e;
    color: #fff;
}

/* ========== Custom Select Dropdown ========== */
.custom-select-wrap {
    position: relative;
}

.custom-select-wrap select {
    display: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 11px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    min-height: 42px;
    box-sizing: border-box;
    width: 100%;
}

.custom-select-trigger:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.custom-select-trigger.open,
.custom-select-trigger:focus {
    border-color: rgba(0, 212, 170, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.08);
    outline: none;
}

.custom-select-trigger .cs-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-trigger .cs-label.placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.custom-select-trigger .cs-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.custom-select-trigger.open .cs-arrow {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1000;
    background: #161b28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.custom-select-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-dropdown::-webkit-scrollbar {
    width: 5px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.custom-select-option {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-option:hover,
.custom-select-option.focused {
    background: rgba(0, 212, 170, 0.08);
    color: #fff;
}

.custom-select-option.selected {
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
    font-weight: 500;
}

.custom-select-option.selected::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: auto;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300d4aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.custom-select-option.disabled {
    color: rgba(255, 255, 255, 0.25);
    cursor: default;
    pointer-events: none;
}

/* Filter selects — compact variant */
.custom-select-wrap.cs-compact .custom-select-trigger {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.7);
    min-height: 36px;
}

.custom-select-wrap.cs-compact .custom-select-dropdown {
    padding: 4px;
    border-radius: 8px;
}

.custom-select-wrap.cs-compact .custom-select-option {
    padding: 7px 10px;
    font-size: 13px;
    border-radius: 5px;
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0a0f1a;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #00e6b8, #00d4aa);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 212, 170, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.char-counter {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #ef4444;
}

.form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ========== File Upload ========== */
.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.upload-zone.dragover {
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.06);
}

.upload-zone svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

.upload-zone p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0 0 4px;
}

.upload-zone .upload-hint {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.upload-files {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.upload-file-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 36px 10px 12px;
}

.upload-file-item.uploaded {
    border-color: rgba(0, 212, 170, 0.2);
}

.upload-file-item.upload-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.04);
}

.upload-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-file-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.upload-file-size {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.upload-error-msg {
    font-size: 12px;
    color: #ef4444;
    margin-left: 4px;
}

.upload-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.upload-remove-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* Description input — full width row */
.upload-desc-input {
    flex-basis: 100%;
    width: 100%;
    margin: 0;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.upload-desc-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}
.upload-desc-input:focus {
    border-color: #00d4aa;
}

/* Progress bar */
.upload-progress {
    flex-basis: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00e6b8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ========== Ticket Detail View ========== */
.ticket-detail-header {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 22px 24px;
}

.ticket-detail-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.2s ease;
}

.ticket-detail-header .back-link:hover {
    color: #00d4aa;
}

.ticket-detail-header .back-link svg {
    width: 16px;
    height: 16px;
}

.ticket-detail-header .ticket-subject {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.ticket-detail-header .ticket-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-detail-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 16px;
}

.ticket-detail-info .info-item.info-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.ticket-detail-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-detail-info .info-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.35);
}

.ticket-detail-info .info-value {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.ticket-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ========== Close Ticket Confirm Modal ========== */
.support-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.support-confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.support-confirm-modal {
    background: linear-gradient(145deg, #1a1f2e 0%, #0f1219 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.support-confirm-overlay.active .support-confirm-modal {
    transform: scale(1) translateY(0);
}

.support-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-confirm-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.support-confirm-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.support-confirm-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.support-confirm-close svg {
    width: 14px;
    height: 14px;
}

.support-confirm-body {
    padding: 20px;
}

.support-confirm-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

.support-confirm-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.support-confirm-btn {
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.support-confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.support-confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.support-confirm-btn-confirm {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

.support-confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ========== Message Thread ========== */
.message-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 16px;
}

.message-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-item.user {
    background: rgba(0, 212, 170, 0.04);
    border-color: rgba(0, 212, 170, 0.1);
    margin-left: 24px;
}

.message-item.admin {
    background: rgba(41, 98, 255, 0.04);
    border-color: rgba(41, 98, 255, 0.1);
    margin-right: 24px;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #0a0f1a;
    overflow: hidden;
}
.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-item.user .message-avatar {
    background: linear-gradient(135deg, #00d4aa, #00b894);
}

.message-item.admin .message-avatar {
    background: linear-gradient(135deg, #5b8aff, #2962ff);
}

.message-body {
    flex: 1;
    min-width: 0;
}

.message-sender {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.message-sender .sender-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.message-sender .role-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.message-item.user .role-badge {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

.message-item.admin .role-badge {
    background: rgba(41, 98, 255, 0.15);
    color: #5b8aff;
}

.message-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

/* Thumbnail image */
.attachment-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px;
}
.attachment-thumb img {
    display: block;
    max-width: 200px;
    max-height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.2s;
}
.attachment-thumb:hover img {
    opacity: 0.8;
}

/* File link */
.attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
}
.attachment-file:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #00d4aa;
}
.attachment-file svg {
    width: 14px;
    height: 14px;
}

/* Description badge */
.attachment-desc-badge {
    display: block;
    margin-top: 4px;
    padding: 2px 8px;
    background: rgba(0, 212, 170, 0.12);
    color: #00d4aa;
    border-radius: 4px;
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.attachment-file .attachment-desc-badge {
    display: inline;
    margin-left: 6px;
    margin-top: 0;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: lightboxFadeIn 0.2s ease;
}
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.lightbox-close:hover {
    opacity: 1;
}
.lightbox-caption {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    max-width: 600px;
    text-align: center;
    padding: 4px 12px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 4px;
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
}

.load-more-messages {
    text-align: center;
    padding: 12px 0;
}

.load-more-messages .btn {
    font-size: 13px;
}

.message-reply-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
}

.message-reply-form .reply-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.message-reply-form textarea {
    width: 100%;
    min-height: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.message-reply-form textarea:focus {
    border-color: rgba(0, 212, 170, 0.4);
}

.message-reply-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.message-reply-form .reply-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.message-closed-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

.message-closed-notice svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.3);
}

/* ========== Rating ========== */
.rating-widget {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.rating-widget h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}

.rating-widget p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 18px;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.rating-star {
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.rating-star:hover {
    color: rgba(255, 193, 7, 0.5);
    transform: scale(1.15);
}

.rating-star.active {
    color: #ffc107;
}

.rating-comment {
    width: 100%;
    min-height: 80px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 14px;
    transition: border-color 0.2s ease;
}

.rating-comment:focus {
    border-color: rgba(0, 212, 170, 0.4);
}

.rating-comment::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.rating-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0a0f1a;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-submit:hover {
    background: linear-gradient(135deg, #00e6b8, #00d4aa);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
}

/* ========== Contact Info ========== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s ease;
}

.contact-info-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 10px;
}

.contact-info-icon svg {
    width: 22px;
    height: 22px;
    color: #00d4aa;
}

.contact-info-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.contact-info-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.contact-info-text a {
    color: #00d4aa;
    text-decoration: none;
}

.contact-info-text a:hover {
    text-decoration: underline;
}

/* ========== Loading / Skeleton ========== */
.skeleton-ticket {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%
    );
    background-size: 200% 100%;
    border-radius: 6px;
    animation: shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 70%;
}

.skeleton-line.long {
    width: 90%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== Buttons ========== */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0a0f1a;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e6b8, #00d4aa);
    box-shadow: 0 2px 10px rgba(0, 212, 170, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* ========== Filter Bar ========== */
.ticket-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-select {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    padding: 8px 30px 8px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    border-color: rgba(0, 212, 170, 0.4);
}

.filter-select option {
    background: #161b28;
    color: #fff;
}

.filter-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 12px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: #00d4aa;
    white-space: nowrap;
}

.filter-active button {
    background: none;
    border: none;
    color: rgba(0, 212, 170, 0.6);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 16px;
    transition: color 0.2s ease;
}

.filter-active button:hover {
    color: #00d4aa;
}

/* ========== Toast / Notification ========== */
.support-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #1e2538;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    animation: toastIn 0.3s ease;
    max-width: 380px;
}

.support-toast.success {
    border-color: rgba(0, 212, 170, 0.3);
}

.support-toast.success svg {
    color: #00d4aa;
}

.support-toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.support-toast.error svg {
    color: #ef4444;
}

.support-toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.support-toast .toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 2px;
    margin-left: 8px;
    flex-shrink: 0;
}

.support-toast .toast-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Responsive: max-width 1200px ========== */
@media (max-width: 1200px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .ticket-detail-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== Responsive: max-width 768px ========== */
@media (max-width: 768px) {
    .support-layout {
        flex-direction: column;
    }

    .support-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        margin-top: 0;
        overflow-y: visible;
    }

    .support-sidebar .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 6px;
        gap: 4px;
        scrollbar-width: none;
    }

    .support-sidebar .sidebar-menu::-webkit-scrollbar { display: none; }

    .support-sidebar .sidebar-menu-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .support-sidebar .sidebar-menu-link {
        padding: 10px 14px;
        white-space: nowrap;
        font-size: 13px;
    }

    .support-sidebar .sidebar-divider,
    .support-sidebar .sidebar-section-title {
        display: none;
    }

    .support-sidebar.collapsed {
        width: 100%;
    }

    .support-sidebar.collapsed .sidebar-menu-link span,
    .support-sidebar.collapsed .category-count {
        opacity: 1;
        width: auto;
        overflow: visible;
    }

    .support-sidebar.collapsed .sidebar-menu-link {
        justify-content: flex-start;
        gap: 8px;
    }

    .sidebar-toggle {
        display: none;
    }

    .support-main {
        margin-top: 0;
    }

    .support-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .support-tab {
        padding: 9px 14px;
        font-size: 13px;
    }

    .message-item.user {
        margin-left: 0;
    }

    .message-item.admin {
        margin-right: 0;
    }

    .ticket-detail-info {
        grid-template-columns: 1fr 1fr;
    }

    .ticket-detail-actions {
        flex-wrap: wrap;
    }

    .support-header-left {
        flex-wrap: wrap;
    }

    .support-badge {
        margin-left: 0;
    }
}

/* ========== Responsive: max-width 480px ========== */
@media (max-width: 480px) {
    .support-widget {
        padding: 14px;
    }

    .support-header-widget {
        padding: 16px;
        gap: 10px;
    }

    .support-page-title {
        font-size: 18px;
    }

    .ticket-card {
        padding: 14px;
    }

    .ticket-card-subject {
        font-size: 14px;
    }

    .ticket-card-meta {
        gap: 6px;
    }

    .ticket-form-container {
        padding: 16px;
    }

    .form-intro h3 {
        font-size: 15px;
    }

    .ticket-detail-header {
        padding: 16px;
    }

    .ticket-detail-header .ticket-subject {
        font-size: 17px;
    }

    .ticket-detail-info {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .message-thread {
        padding: 12px;
        gap: 10px;
    }

    .message-item {
        padding: 12px;
        gap: 8px;
    }

    .message-avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .rating-stars {
        gap: 6px;
    }

    .rating-star {
        width: 30px;
        height: 30px;
    }

    .support-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

    .ticket-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .contact-info-card {
        padding: 16px;
    }

    .upload-zone {
        padding: 20px 14px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .form-submit {
        flex-direction: column-reverse;
        gap: 10px;
        align-items: stretch;
    }

    .char-counter {
        text-align: center;
    }
}
