/* Global Styles */
        :root {
            --primary-color: #3498db;
            --primary-dark: #2980b9;
            --secondary-color: #2ecc71;
            --danger-color: #e74c3c;
            --dark-color: #34495e;
            --light-color: #ecf0f1;
            --gray-color: #95a5a6;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #f5f7fa;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            line-height: 1.6;
        }

        .container {
            max-width: 1000px;
            width: 100%;
            padding: 0;
            background-color: #fff;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        /* Button Styles */
        .btn {
            padding: 10px 18px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
        }

        .btn-danger {
            background-color: var(--danger-color);
            color: white;
        }

        .btn-success {
            background-color: var(--secondary-color);
            color: white;
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
        }

        .btn-outline:hover {
            background-color: var(--primary-color);
            color: white;
        }

        /* Input Styles */
        .form-group {
            margin-bottom: 20px;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
            transition: border 0.3s ease;
        }

        .form-input:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
        }

        .form-select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2395a5a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 16px;
        }

        /* Auth Styles */
        .auth-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px;
            max-width: 480px;
            margin: 0 auto;
        }

        .auth-logo {
            margin-bottom: 30px;
            text-align: center;
        }

        .auth-logo h1 {
            font-size: 28px;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .auth-logo p {
            color: var(--gray-color);
            font-size: 16px;
        }

        .auth-form {
            width: 100%;
        }

        .auth-form h2 {
            text-align: center;
            margin-bottom: 30px;
            color: var(--dark-color);
        }

        .auth-footer {
            margin-top: 30px;
            text-align: center;
            color: var(--gray-color);
        }

        /* Support Dashboard Styles */
        .support-dashboard {
            display: none;
        }

        .dashboard-header {
            background-color: var(--primary-color);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dashboard-header h2 {
            font-size: 24px;
            font-weight: 600;
        }

        .dashboard-header-actions {
            display: flex;
            gap: 10px;
        }

        .dashboard-content {
            padding: 30px;
        }

        .section-title {
            font-size: 20px;
            color: var(--dark-color);
            margin-bottom: 20px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title i {
            color: var(--primary-color);
        }

        /* Support Request Form */
        .support-form {
            background-color: #fff;
            padding: 25px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .form-col {
            display: flex;
            flex-direction: column;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark-color);
        }

        /* Ticket List */
        .ticket-list {
            background-color: #fff;
            padding: 25px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
        }

        .ticket-card {
            padding: 20px;
            border: 1px solid #eaeaea;
            border-radius: var(--border-radius);
            margin-bottom: 15px;
            transition: box-shadow 0.3s ease;
        }

        .ticket-card:hover {
            box-shadow: var(--shadow);
        }

        .ticket-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .ticket-id {
            font-size: 14px;
            color: var(--gray-color);
        }

        .ticket-status {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .status-pending {
            background-color: rgba(243, 156, 18, 0.1);
            color: #f39c12;
        }

        .status-resolved {
            background-color: rgba(46, 204, 113, 0.1);
            color: var(--secondary-color);
        }

        .ticket-title {
            font-weight: 600;
            font-size: 16px;
            margin-bottom: 10px;
        }

        .ticket-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }

        .ticket-detail {
            font-size: 14px;
        }

        .ticket-detail span {
            font-weight: 600;
            color: var(--dark-color);
        }

        .ticket-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background-color: #fff;
            border-radius: var(--border-radius);
            padding: 30px;
            width: 500px;
            max-width: 90%;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            position: relative;
        }

        .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 24px;
            color: var(--gray-color);
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-button:hover {
            color: var(--danger-color);
        }

        .modal-title {
            font-size: 22px;
            margin-bottom: 25px;
            color: var(--dark-color);
            text-align: center;
        }

        /* Loader and Error Styles */
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(52, 152, 219, 0.1);
            border-radius: 50%;
            border-left-color: var(--primary-color);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .error-message {
            color: white;
            padding: 15px;
            background-color: var(--danger-color);
            border-radius: var(--border-radius);
            text-align: center;
            margin-bottom: 20px;
            display: none;
            font-weight: 500;
        }

        .success-message {
            color: white;
            padding: 15px;
            background-color: var(--secondary-color);
            border-radius: var(--border-radius);
            text-align: center;
            margin-bottom: 20px;
            display: none;
            font-weight: 500;
        }

        /* No Tickets State */
        .no-tickets {
            text-align: center;
            padding: 40px 0;
            color: var(--gray-color);
        }

        .no-tickets i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #ddd;
        }

        .no-tickets p {
            font-size: 18px;
            margin-bottom: 20px;
        }

        /* Responsive Styles */
        @media (max-width: 768px) {
            .container {
                border-radius: 0;
                box-shadow: none;
            }

            .dashboard-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            .dashboard-content {
                padding: 20px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .ticket-details {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 576px) {
            .auth-container {
                padding: 30px 20px;
            }

            .dashboard-header-actions {
                width: 100%;
                flex-direction: column;
                gap: 10px;
            }

            .dashboard-header-actions button {
                width: 100%;
            }
        }
        /* Improved Ticket Card Styles */
.ticket-card {
    padding: 0;
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    background-color: white;
    overflow: hidden;
}

.ticket-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9fafc;
    border-bottom: 1px solid #eaeaea;
}

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

.ticket-id {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.ticket-date {
    font-size: 13px;
    color: var(--gray-color);
}

.ticket-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-pending {
    background-color: rgba(243, 156, 18, 0.15);
    color: #e67e22;
}

.status-resolved {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.ticket-content {
    padding: 20px;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: rgba(52, 152, 219, 0.08);
    border-radius: 8px;
}

.transaction-icon {
    font-size: 18px;
    color: var(--primary-color);
}

.transaction-id {
    font-family: 'Consolas', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
    letter-spacing: 0.5px;
}

.changes-section, .notes-section {
    margin-bottom: 20px;
}

.changes-title, .notes-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eaeaea;
}

.changes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.change-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.change-label {
    width: 100px;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-color);
}

.change-values {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.current-value {
    font-size: 14px;
    color: #e74c3c;
    text-decoration: line-through;
    font-weight: 500;
}

.new-value {
    font-size: 14px;
    color: #2ecc71;
    font-weight: 500;
}

.change-arrow {
    color: var(--gray-color);
    font-size: 12px;
}

.notes-content {
    padding: 12px 15px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 6px;
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.5;
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    background-color: #f9fafc;
    border-top: 1px solid #eaeaea;
}

@media (max-width: 768px) {
    .change-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .change-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .ticket-actions {
        flex-direction: column;
    }
    
    .ticket-actions button {
        width: 100%;
    }
}
.delete-transaction-section {
            margin-top: 20px;
            padding: 20px;
            background-color: rgba(231, 76, 60, 0.08);
            border-radius: var(--border-radius);
            border-left: 4px solid var(--danger-color);
        }

        .delete-transaction-section h4 {
            color: var(--danger-color);
            font-size: 16px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .action-toggle {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
        }

        .action-toggle button {
            flex: 1;
            padding: 12px;
            border: 1px solid #ddd;
            background-color: #f5f5f5;
            border-radius: var(--border-radius);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .action-toggle button.active {
            border-color: var(--primary-color);
            background-color: rgba(52, 152, 219, 0.08);
            color: var(--primary-color);
        }

        .action-toggle button.delete-toggle.active {
            border-color: var(--danger-color);
            background-color: rgba(231, 76, 60, 0.08);
            color: var(--danger-color);
        }
        
        .ticket-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            margin-left: 8px;
        }
        
        .badge-update {
            background-color: rgba(52, 152, 219, 0.15);
            color: var(--primary-color);
        }
        
        .badge-delete {
            background-color: rgba(231, 76, 60, 0.15);
            color: var(--danger-color);
        }