/* ================================
   SUPPORT SYSTEM STYLES
   Pixel-perfect animated support interface
   ================================ */

/* Support Tabs Container */
.support-tabs-container {
    display: flex;
    gap: var(--pixel-2);
    margin-bottom: var(--pixel-4);
    justify-content: center;
    flex-wrap: wrap;
}

.support-tab-btn {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.9), rgba(0, 34, 68, 0.9));
    border: 2px solid var(--pixel-cyan);
    padding: var(--pixel-2) var(--pixel-4);
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--pixel-transition);
    display: flex;
    align-items: center;
    gap: var(--pixel-unit);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.support-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.support-tab-btn:hover::before {
    left: 100%;
}

.support-tab-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 200, 200, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.support-tab-btn.active {
    background: linear-gradient(135deg, var(--pixel-cyan), var(--pixel-cyan-dark));
    color: var(--pixel-black);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.support-tab-btn .tab-pixel-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.support-tab-btn .tab-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity var(--pixel-transition);
}

.support-tab-btn.active .tab-glow {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Ticket Type Selector */
.ticket-type-selector {
    margin: var(--pixel-4) 0;
}

.type-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--pixel-3);
    margin-top: var(--pixel-3);
}

.ticket-type-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.95), rgba(0, 34, 68, 0.95));
    border: 3px solid var(--pixel-cyan);
    padding: var(--pixel-4);
    cursor: pointer;
    overflow: hidden;
    transition: all var(--pixel-transition);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.ticket-type-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--pixel-cyan-light);
    box-shadow: 
        0 20px 60px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 0 40px rgba(0, 255, 255, 0.1);
}

.ticket-type-card:active {
    transform: translateY(-4px) scale(0.98);
}

.type-card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--pixel-2);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    animation: float-icon 3s ease-in-out infinite;
}

.type-card-icon i {
    display: inline-block;
    transform: scale(1);
    transition: transform var(--pixel-transition);
}

.ticket-type-card:hover .type-card-icon i {
    transform: scale(1.1);
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.type-card-title {
    font-family: var(--pixel-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pixel-cyan);
    text-align: center;
    margin-bottom: var(--pixel-unit);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.type-card-desc {
    font-family: var(--pixel-font);
    font-size: 0.75rem;
    color: var(--pixel-cyan-light);
    text-align: center;
    opacity: 0.8;
    line-height: 1.5;
}

.type-card-pixels {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 255, 255, 0.03) 2px, rgba(0, 255, 255, 0.03) 4px);
    pointer-events: none;
}

.type-card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ticket-type-card:hover .type-card-glow {
    opacity: 1;
    animation: rotate-glow 4s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ticket Form Container */
.ticket-form-container {
    animation: slide-in-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-types-btn {
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid var(--pixel-cyan);
    color: var(--pixel-cyan);
    padding: var(--pixel-unit) var(--pixel-2);
    font-family: var(--pixel-font);
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--pixel-3);
    transition: all var(--pixel-transition);
}

.back-to-types-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(-4px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.back-to-types-btn .btn-icon {
    font-size: 1.2rem;
}

.form-header-terminal {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.95), rgba(0, 34, 68, 0.95));
    border: 2px solid var(--pixel-cyan);
    padding: var(--pixel-3);
    margin-bottom: var(--pixel-4);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.2),
        inset 0 0 40px rgba(0, 255, 255, 0.05);
}

.form-header-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--pixel-cyan), transparent);
    animation: scan-line 3s linear infinite;
}

@keyframes scan-line {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

.terminal-title {
    font-family: var(--pixel-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pixel-cyan);
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    margin-bottom: 8px;
}

.terminal-subtitle {
    font-family: var(--pixel-font);
    font-size: 0.75rem;
    color: var(--pixel-cyan-light);
    opacity: 0.8;
}

/* Pixel Form */
.pixel-form {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.6), rgba(0, 34, 68, 0.6));
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: var(--pixel-4);
    position: relative;
}

.pixel-form::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 4px, rgba(0, 255, 255, 0.02) 4px, rgba(0, 255, 255, 0.02) 8px),
        repeating-linear-gradient(90deg, transparent, transparent 4px, rgba(0, 255, 255, 0.02) 4px, rgba(0, 255, 255, 0.02) 8px);
    pointer-events: none;
}

.form-group {
    margin-bottom: var(--pixel-3);
}

.pixel-label {
    display: block;
    font-family: var(--pixel-font);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pixel-cyan);
    margin-bottom: var(--pixel-unit);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.pixel-label.required::after {
    content: ' *';
    color: var(--pixel-red);
    filter: drop-shadow(0 0 5px var(--pixel-red));
}

.pixel-input,
.pixel-select,
.pixel-textarea {
    width: 100%;
    background: rgba(0, 17, 34, 0.8);
    border: 2px solid var(--pixel-cyan);
    color: var(--pixel-cyan-light);
    font-family: var(--pixel-font);
    font-size: 0.85rem;
    padding: var(--pixel-unit) var(--pixel-2);
    transition: all var(--pixel-transition);
    box-shadow: 
        0 0 10px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.pixel-input:focus,
.pixel-select:focus,
.pixel-textarea:focus {
    outline: none;
    border-color: var(--pixel-cyan-light);
    background: rgba(0, 17, 34, 0.95);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
}

.pixel-textarea {
    resize: vertical;
    min-height: 100px;
}

.pixel-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300FFFF' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--pixel-2) center;
    background-size: 12px;
    padding-right: var(--pixel-4);
}

.form-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--pixel-2);
}

/* Multi File Upload */
.multi-file-upload {
    position: relative;
}

.upload-area {
    background: linear-gradient(135deg, rgba(0, 17, 34, 0.9), rgba(0, 34, 68, 0.9));
    border: 3px dashed var(--pixel-cyan);
    padding: var(--pixel-6);
    text-align: center;
    cursor: pointer;
    transition: all var(--pixel-transition);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--pixel-cyan-light);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(0, 200, 200, 0.1));
    transform: scale(1.02);
    box-shadow: 
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 0 40px rgba(0, 255, 255, 0.1);
}

.upload-area.drag-over {
    border-color: var(--pixel-green);
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1), rgba(0, 200, 0, 0.1));
    box-shadow: 
        0 0 50px rgba(0, 255, 0, 0.3),
        inset 0 0 50px rgba(0, 255, 0, 0.1);
}

.upload-icon-animated {
    font-size: 3rem;
    margin-bottom: var(--pixel-2);
    filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    animation: bounce-icon 2s ease-in-out infinite;
}

.upload-icon-animated i {
    display: inline-block;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

.upload-text {
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pixel-cyan);
    margin-bottom: 8px;
    display: block;
}

.upload-hint {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--pixel-cyan-light);
    opacity: 0.7;
}

/* Files Preview Grid */
.files-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--pixel-2);
    margin-top: var(--pixel-2);
}

.file-preview-item {
    position: relative;
    background: rgba(0, 17, 34, 0.9);
    border: 2px solid var(--pixel-cyan);
    padding: var(--pixel-unit);
    aspect-ratio: 1;
    overflow: hidden;
    transition: all var(--pixel-transition);
    animation: fade-in-scale 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fade-in-scale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.file-preview-item:hover {
    border-color: var(--pixel-cyan-light);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    z-index: 10;
}

.file-preview-img,
.file-preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.file-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.file-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--pixel-red);
    color: var(--pixel-white);
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--pixel-transition);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.file-remove-btn:hover {
    background: var(--pixel-red-dark);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
}

.file-name-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
    font-size: 0.6rem;
    padding: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--pixel-cyan);
}

/* Form Info Box */
.form-info-box {
    background: rgba(0, 17, 34, 0.9);
    border-left: 4px solid var(--pixel-cyan);
    padding: var(--pixel-2) var(--pixel-3);
    margin: var(--pixel-3) 0;
    position: relative;
    overflow: hidden;
}

.form-info-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 10px currentColor; }
    50% { box-shadow: 0 0 20px currentColor; }
}

.form-info-box.warning {
    border-left-color: var(--pixel-yellow);
}

.form-info-box.warning::before {
    background: var(--pixel-yellow);
}

.form-info-box.success {
    border-left-color: var(--pixel-green);
}

.form-info-box.success::before {
    background: var(--pixel-green);
}

.info-box-title {
    font-family: var(--pixel-font);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: var(--pixel-unit);
    color: var(--pixel-cyan);
}

.form-info-box.warning .info-box-title {
    color: var(--pixel-yellow);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.form-info-box.success .info-box-title {
    color: var(--pixel-green);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-family: var(--pixel-font);
    font-size: 0.7rem;
    color: var(--pixel-cyan-light);
    margin: 6px 0;
    padding-left: 4px;
    line-height: 1.5;
}

.info-text {
    font-family: var(--pixel-font);
    font-size: 0.75rem;
    color: var(--pixel-cyan-light);
    line-height: 1.5;
}

/* Button Enhancements */
.pixel-btn.full {
    width: 100%;
    justify-content: center;
    padding: var(--pixel-2) var(--pixel-4);
    font-size: 0.95rem;
}

.pixel-btn .btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity var(--pixel-transition);
    pointer-events: none;
}

.pixel-btn:hover .btn-glow {
    opacity: 1;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Loading States */
.pixel-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 255, 255, 0.2);
    border-top-color: var(--pixel-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state {
    text-align: center;
    padding: var(--pixel-6);
    color: var(--pixel-cyan);
    font-family: var(--pixel-font);
}

.loading-state p {
    margin-top: var(--pixel-2);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .type-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row-grid {
        grid-template-columns: 1fr;
    }
    
    .files-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .support-tabs-container {
        width: 100%;
    }
    
    .support-tab-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.8rem;
        padding: var(--pixel-unit) var(--pixel-2);
    }
    
    .terminal-title {
        font-size: 1rem;
    }
    
    .upload-area {
        padding: var(--pixel-4);
    }
    
    .upload-icon-animated {
        font-size: 2rem;
    }
}

/* ================================
   MODERN SUPPORT SYSTEM STYLES
   Minimal, clean and professional design
   ================================ */

/* Modern Tickets Grid */
.modern-tickets-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.modern-ticket-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.modern-ticket-card:hover {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ticket-type-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-type-badge.replacement {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ticket-type-badge.discovery {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.ticket-type-badge.general {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ticket-status-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ticket-status-modern.status-open .status-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.ticket-status-modern.status-progress .status-dot {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.ticket-status-modern.status-closed .status-dot {
    background: #64748b;
}

.ticket-status-modern.status-rejected .status-dot {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.ticket-card-content {
    margin-bottom: 20px;
}

.ticket-card-title {
    font-family: var(--pixel-font);
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.ticket-card-description {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

.ticket-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-meta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-id {
    font-family: var(--pixel-font);
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.ticket-date, 
.last-activity {
    font-size: 11px;
    color: #64748b;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-indicator {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.arrow-icon {
    color: #64748b;
    transition: all 0.2s ease;
}

.modern-ticket-card:hover .arrow-icon {
    color: #00ffff;
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 16px;
}

.empty-title {
    font-family: var(--pixel-font);
    font-size: 18px;
    color: #f1f5f9;
    margin: 0 0 8px 0;
}

.empty-text {
    color: #94a3b8;
    margin: 0 0 24px 0;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 16px;
}

.error-text {
    color: #ef4444;
    margin: 0 0 24px 0;
}

/* Collage Styles */
.collage-container {
    position: relative;
    margin-bottom: 16px;
}

.collage-grid {
    display: grid;
    gap: 4px;
    border-radius: 12px;
    overflow: hidden;
    max-height: 300px;
}

.collage-grid.grid-1 {
    grid-template-columns: 1fr;
}

.collage-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.collage-grid.grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.collage-grid.grid-3 .collage-item:first-child {
    grid-row: 1 / 3;
}

.collage-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.collage-grid.grid-5,
.collage-grid.grid-6 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.collage-grid.grid-5 .collage-item:first-child,
.collage-grid.grid-6 .collage-item:first-child {
    grid-row: 1 / 3;
}

.collage-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.collage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.collage-item:hover .collage-image {
    transform: scale(1.05);
}

.collage-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.6);
}

.collage-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.collage-item:hover .collage-remove-btn {
    opacity: 1;
}

.collage-remove-btn:hover {
    background: #ef4444;
}

.collage-more-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Files List Compact */
.files-list-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.file-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 6px;
    font-size: 12px;
}

.file-name {
    color: #94a3b8;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-remove-btn-compact {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-remove-btn-compact:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* File Counter */
.file-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #3b82f6;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Enhanced Upload Area */
.upload-area {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6));
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: rgba(0, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05), rgba(0, 200, 200, 0.05));
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-ticket-card {
        padding: 16px;
    }
    
    .ticket-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .collage-grid.grid-3,
    .collage-grid.grid-5,
    .collage-grid.grid-6 {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .collage-grid.grid-3 .collage-item:first-child,
    .collage-grid.grid-5 .collage-item:first-child,
    .collage-grid.grid-6 .collage-item:first-child {
        grid-row: auto;
    }
}

/* Chat Interface Styles */
.modern-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    margin-bottom: 20px;
}

.ticket-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticket-type-badge-modal {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-type-badge-modal.replacement {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.ticket-type-badge-modal.discovery {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.ticket-type-badge-modal.general {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.ticket-status-badge-modal {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.ticket-date-info {
    text-align: right;
    font-size: 12px;
    color: #64748b;
}

.date-label {
    display: block;
    margin-bottom: 2px;
}

.date-value {
    font-weight: 600;
    color: #94a3b8;
}

.ticket-title-modal h3 {
    font-family: var(--pixel-font);
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 16px 0;
}

.ticket-description-modal p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.admin-note-modal {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.note-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #f59e0b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.note-content {
    font-size: 14px;
    color: #fbbf24;
    line-height: 1.5;
}

.reward-modal {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.reward-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
}

/* Chat Container */
.chat-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.3s ease;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    flex-shrink: 0;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #64748b, #475569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.message-bubble {
    max-width: 70%;
    min-width: 120px;
}

.admin-message .message-bubble {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px 16px 16px 4px;
    padding: 12px 16px;
}

.user-message .message-bubble {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px 16px 4px 16px;
    padding: 12px 16px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sender-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-message .sender-name {
    color: #3b82f6;
}

.user-message .sender-name {
    color: #94a3b8;
}

.message-timestamp {
    font-size: 10px;
    color: #64748b;
}

.message-text {
    font-size: 14px;
    line-height: 1.5;
    color: #f1f5f9;
    word-wrap: break-word;
}

.message-attachment {
    margin-top: 12px;
}

.image-attachment {
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.image-attachment:hover {
    box-shadow: 0 8px 24px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.image-attachment img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: block;
}

.image-attachment img:hover {
    transform: scale(1.02);
}

.video-attachment {
    border-radius: 12px;
    overflow: hidden;
    max-width: 300px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-attachment video {
    width: 100%;
    height: auto;
    display: block;
}

/* Chat Empty State */
.chat-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-chat-icon {
    font-size: 48px;
    color: #64748b;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-chat-text {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Modern Message Form */
.modern-message-form {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 20px;
    margin-top: 20px;
}

.modern-message-form .pixel-textarea {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    transition: all 0.2s ease;
}

.modern-message-form .pixel-textarea:focus {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modern-message-form .pixel-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modern-message-form .pixel-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

/* Image Modal */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.image-modal-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-modal-content {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Empty State Enhancement */
.loading-state {
    padding: var(--pixel-8);
}

.loading-state .pixel-spinner {
    margin: 0 auto var(--pixel-2);
}

/* Product Selector */
.product-selector-container {
    position: relative;
}

.no-orders-message {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.05), rgba(200, 0, 0, 0.05));
    border: 2px solid rgba(255, 0, 0, 0.3);
    padding: var(--pixel-4);
    text-align: center;
    margin-top: var(--pixel-2);
    animation: slide-in-up 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.1),
        inset 0 0 30px rgba(255, 0, 0, 0.05);
}

.no-orders-icon {
    font-size: 3rem;
    color: var(--pixel-red);
    margin-bottom: var(--pixel-2);
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.5));
    animation: float-icon 3s ease-in-out infinite;
}

.no-orders-icon i {
    display: inline-block;
}

.no-orders-text {
    font-family: var(--pixel-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pixel-red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    line-height: 1.6;
}

/* Replacement Form Fields */
#replacementFormFields {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Support Content */
.support-content {
    display: none;
}

.support-content.active {
    display: block;
    animation: fade-in 0.4s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Pixel Icon Styles */
.support-tab-btn i,
.back-to-types-btn i,
.pixel-btn i,
.form-info-box i {
    filter: drop-shadow(0 0 5px currentColor);
}

.support-tab-btn.active i {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.pixel-btn:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px currentColor);
}

.tab-pixel-icon i {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform var(--pixel-transition);
}

.support-tab-btn:hover .tab-pixel-icon i {
    transform: scale(1.15) rotate(10deg);
}

.support-tab-btn.active .tab-pixel-icon i {
    animation: pulse-rotate 2s ease-in-out infinite;
}

@keyframes pulse-rotate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Icon Colors */
.type-card-icon i,
.upload-icon-animated i,
.ticket-type-icon i {
    color: var(--pixel-cyan);
}

.ticket-type-card[data-type="replacement"] .type-card-icon i {
    color: var(--pixel-cyan);
}

.ticket-type-card[data-type="discovery"] .type-card-icon i {
    color: var(--pixel-magenta);
}

.ticket-type-card[data-type="general"] .type-card-icon i {
    color: var(--pixel-cyan-light);
}

.form-info-box.success i {
    color: var(--pixel-green);
}

.form-info-box.warning i {
    color: var(--pixel-yellow);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

