/* ===== STYLES POUR LES PAGES DE COMPTE ===== */

.account-main {
    min-height: calc(100vh - 200px);
    padding: 6rem 0 4rem;
    background: #f9fafb;
}

.account-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== CARTE PRINCIPALE - DESIGN SOBRE ===== */
.account-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto 2rem;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

/* Pour les pages de tickets, on veut plus d'espace */
.account-card.ticket-detail-card {
    max-width: 100%;
    padding: 3rem;
}

.account-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.account-card-header {
    padding: 2rem 2.5rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

.account-card-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    letter-spacing: -0.02em;
    color: #111827;
}

.account-card-header h1 i {
    color: #3b82f6;
    font-size: 1.375rem;
}

.account-card-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.account-card-header p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
}

.account-card-content {
    padding: 2rem 2.5rem;
}

.account-card-footer {
    padding: 1.5rem 2.5rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.account-card-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

.account-card-footer a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.account-card-footer a:hover {
    color: #1e3a8a;
    text-decoration: underline;
}

/* ===== EN-TÊTE DE PAGE ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    letter-spacing: -0.02em;
}

.dashboard-header {
    margin-bottom: 3.5rem;
}

.welcome-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ===== FORMULAIRES ===== */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    letter-spacing: 0.01em;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
    color: #111827;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    transform: translateY(-1px);
}

.form-group input.disabled-input {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-hint {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-top: 0.25rem;
    line-height: 1.5;
}

.forgot-link {
    font-size: 0.8125rem;
    color: #1e40af;
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    text-decoration: underline;
    color: #1e3a8a;
}

/* ===== CHECKBOX "SE SOUVENIR DE MOI" ===== */
.remember-me-group {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
    user-select: none;
    transition: color 0.2s ease;
}

.remember-me-label:hover {
    color: #1e40af;
}

.remember-me-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1e40af;
    flex-shrink: 0;
    margin: 0;
}

.remember-me-label span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me-label span i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #1e40af !important;
    color: white !important;
    border-color: #1e40af !important;
}

.btn-primary:hover {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.btn-primary *,
.btn-primary i {
    color: white !important;
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border-color: #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
}

/* ===== ALERTES ===== */
/* Modernisation des alertes */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.6;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.alert i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1.05rem;
}

/* Succès: vert doux, contraste renforcé */
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
    position: relative;
}
.alert-success i {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(16,185,129,0.25);
}

/* Info: bleu doux harmonisé */
.alert-info {
    background: #eff6ff;
    color: #1e3a8a;
    border-color: #bfdbfe;
}
.alert-info i {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(59,130,246,0.25);
}

/* Erreur: rouge doux harmonisé */
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}
.alert-error i {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(239,68,68,0.25);
}

/* ===== DASHBOARD ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
    padding: 2rem 2.5rem;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.dashboard-card-header h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    letter-spacing: -0.01em;
}

.dashboard-card-content {
    padding: 2.5rem;
}

/* ===== INFORMATIONS ===== */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.95rem;
}

.info-value {
    color: #111827;
    font-weight: 500;
    text-align: right;
    font-size: 0.95rem;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* ===== STATISTIQUES ===== */
.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.375rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

/* ===== LIENS D'ACTION ===== */
.action-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.action-link:hover {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #1e40af;
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.action-link i:first-child {
    width: 24px;
    color: #1e40af;
    font-size: 1.125rem;
}

.action-link i:last-child {
    margin-left: auto;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .account-container {
        padding: 0 3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    .account-main {
        padding: 6rem 0 4rem;
    }

    .account-container {
        padding: 0 2rem;
    }

    .account-card {
        border-radius: 20px;
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .account-card-header {
        padding: 2.5rem 2.5rem 2rem;
    }

    .account-card-header h1 {
        font-size: 1.625rem;
        flex-wrap: wrap;
    }

    .account-card-content {
        padding: 2.5rem 2.5rem;
    }

    .account-card-footer {
        padding: 2rem 2.5rem;
    }

    .account-form {
        gap: 2rem;
        padding: 50px;
    }

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

    .form-group {
        gap: 0.75rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 1rem 1.5rem;
        font-size: 16px; /* Évite le zoom sur iOS */
        border-radius: 10px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .dashboard-card {
        border-radius: 20px;
    }

    .dashboard-card-header {
        padding: 1.75rem 2rem;
    }

    .dashboard-card-header h2 {
        font-size: 1.25rem;
    }

    .dashboard-card-content {
        padding: 2rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2.5rem;
        gap: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.875rem;
        flex-wrap: wrap;
    }

    .dashboard-header {
        margin-bottom: 2.5rem;
    }

    .welcome-section h1 {
        font-size: 2.25rem;
    }

    .welcome-subtitle {
        font-size: 1.125rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .alert {
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 0.875rem;
    }

    .info-row {
        padding: 1.25rem 0;
        flex-wrap: wrap;
    }

    .stat-item {
        padding: 1.25rem 0;
        gap: 1.25rem;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .action-link {
        padding: 1.125rem 1rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .account-main {
        padding: 4rem 0 2rem;
    }

    .account-container {
        padding: 0 1rem;
    }
    
    .dashboard-header {
        margin-bottom: 2rem;
    }
    
    .welcome-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9375rem;
    }
    
    .dashboard-card-header {
        padding: 1.25rem 1.5rem;
    }
    
    .dashboard-card-header h2 {
        font-size: 1.0625rem;
    }
    
    .dashboard-card-content {
        padding: 1.5rem;
    }
    
    .admin-section-header {
        padding: 1.25rem 1.5rem;
    }
    
    .admin-section-header h2 {
        font-size: 1.125rem;
    }
    
    .admin-filter-container,
    .user-filter-container {
        padding: 0.875rem 1.25rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .user-row-summary {
        padding: 0.875rem 1rem;
    }
    
    .user-name {
        font-size: 0.875rem;
        min-width: 100px;
    }
    
    .user-row-details {
        padding: 1rem;
        background: white;
    }
    
    .user-info-section {
        padding: 1.25rem 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .user-info-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .user-info-summary-mobile {
        background: transparent;
        border: none;
        padding: 0.5rem 0;
        margin-bottom: 0.75rem;
    }
    
    .user-info-header h4 {
        font-size: 0.9375rem;
    }
    
    /* Retirer toutes les cartes imbriquées sur mobile - approche globale */
    .user-info-section *[style*="background"],
    .user-info-section *[style*="border"] {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Assurer un affichage plat pour tous les éléments dans les sections */
    .user-info-section .user-offer-list,
    .user-info-section .user-offer-list > div,
    .user-info-section .user-offer-list > div > div {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .user-info-summary-mobile {
        padding: 0.75rem 0;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .action-link {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Carte d'offre très petit écran */
    .offer-card-header {
        padding: 1rem;
    }
    
    .offer-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
    
    .offer-card-title {
        font-size: 1rem;
    }
    
    .offer-price-value {
        font-size: 1.25rem;
    }
    
    .offer-detail-card {
        padding: 0.75rem;
    }

    .account-card {
        border-radius: 16px;
        margin: 0 auto 1.5rem;
    }

    .account-card-header {
        padding: 2rem 2rem 1.75rem;
    }

    .account-card-header h1 {
        font-size: 1.375rem;
        gap: 0.625rem;
    }

    .account-card-header p {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .account-card-content {
        padding: 2rem 1.75rem;
    }

    .account-card-footer {
        padding: 1.75rem 2rem;
        font-size: 0.875rem;
    }

    .account-form {
        gap: 1.75rem;
    }

    .form-row {
        gap: 1.75rem;
    }

    .form-group {
        gap: 0.625rem;
    }

    .form-group label {
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem 1.5rem;
        font-size: 16px; /* Évite le zoom automatique sur mobile */
        border-radius: 10px;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        transform: none; /* Évite les problèmes de zoom */
    }

    .page-header {
        margin-bottom: 2rem;
        gap: 1.25rem;
    }

    .page-header h1 {
        font-size: 1.625rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
        margin-bottom: 0.625rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .dashboard-grid {
        gap: 1.75rem;
        margin-top: 2rem;
    }

    .dashboard-card-header {
        padding: 1.5rem 1.75rem;
    }

    .dashboard-card-header h2 {
        font-size: 1.125rem;
    }

    .dashboard-card-content {
        padding: 1.75rem;
    }

    .stat-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
        padding: 1.125rem 0;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.125rem;
        border-radius: 12px;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    .stat-value {
        font-size: 1.125rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.625rem;
        padding: 1.125rem 0;
    }

    .info-label {
        font-size: 0.875rem;
    }

    .info-value {
        text-align: left;
        font-size: 0.9rem;
    }

    .action-link {
        padding: 1rem 0.875rem;
        font-size: 0.9rem;
    }

    .action-link i:first-child {
        width: 20px;
        font-size: 1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }

    .btn-block {
        padding: 1rem 1.75rem;
    }

    .alert {
        padding: 1.125rem 1.25rem;
        font-size: 0.875rem;
        gap: 0.75rem;
        border-radius: 12px;
    }
}

/* ===== DASHBOARD ADMIN ===== */
.admin-section {
    background: white;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.admin-section-header {
    padding: 2rem 2.5rem;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.admin-count {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Tableau utilisateurs */
.admin-table-container {
    overflow-x: auto;
    padding: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f8fafc;
}

.admin-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.admin-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #111827;
    font-size: 0.95rem;
}

.admin-table tbody tr:hover {
    background: #f8fafc;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Masquer les cartes mobiles sur desktop */
.admin-table-mobile {
    display: none;
}

/* Grid pour sites et offres */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
}

.admin-card {
    background: var(--bg-gray);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.admin-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.admin-card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #111827;
}

.admin-card-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Offres */
.admin-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
}

.admin-offer-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.admin-offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

.offer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.offer-description {
    color: #6b7280;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.offer-status {
    display: flex;
    align-items: center;
}

/* Paiements */
.admin-payments-container {
    padding: 2.5rem;
}

.admin-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

/* Tableau utilisateurs compact */
.admin-users-table {
    padding: 0;
}

.user-row {
    border-bottom: 1px solid #e5e7eb;
}

.user-row:last-child {
    border-bottom: none;
}

.user-row-summary {
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-row-summary:hover {
    background: #f8fafc;
}

.user-row-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    flex-wrap: wrap;
}

.user-name {
    font-weight: 600;
    color: #111827;
    font-size: 1rem;
    min-width: 150px;
}

.user-sites-count i {
    color: var(--primary-color);
}

.user-chevron {
    color: #9ca3af;
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.user-row-details {
    background: #f8fafc;
    border-top: 2px solid #e5e7eb;
    padding: 2rem 2rem 2rem 4rem;
}

.user-detail-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Bouton toggle admin */
.btn-toggle-admin {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add-admin {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-add-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-remove-admin {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.btn-remove-admin:hover {
    background: #fecaca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.user-info-section {
    background: white;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
}

/* Sur mobile, retirer les cartes imbriquées - affichage plat */
@media (max-width: 768px) {
    .user-row-details {
        background: white;
        border-top: 2px solid #e5e7eb;
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    }
    
    .user-info-section {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 1.5rem 0;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: none !important;
    }
    
    .user-info-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .user-info-summary-mobile {
        background: transparent !important;
        border: none !important;
        padding: 0.75rem 0;
        margin-bottom: 1rem;
    }
    
    .user-info-header {
        margin-bottom: 1rem;
    }
    
    /* Retirer les styles de carte dans les offres utilisateur */
    .user-offer-list > div[style*="background"] {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-bottom: 1rem;
    }
    
    /* Retirer les styles de carte dans les paiements */
    .user-offer-list div[style*="background: white"] {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0.5rem 0 !important;
        margin-bottom: 0.75rem;
    }
    
    /* Styles pour les éléments de paiement - affichage plat */
    .user-offer-list > div > div[style*="display: flex"] {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    /* Retirer les styles de placeholder */
    .user-offer-placeholder {
        background: transparent !important;
        border: none !important;
        padding: 0.5rem 0 !important;
    }
    
    /* Ajuster les grilles de dates */
    .offer-dates-grid {
        background: transparent !important;
        padding: 0 !important;
        margin-top: 0.75rem;
    }
    
    .offer-dates-grid > div {
        background: transparent !important;
        border: none !important;
        padding: 0.5rem 0 !important;
        margin-bottom: 0.5rem;
    }
}

.user-info-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.user-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-info-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.user-info-value {
    font-size: 0.95rem;
    color: #111827;
    font-weight: 500;
}

.user-sites-list,
.user-offer-list,
.user-payments-placeholder {
    padding: 1.5rem;
}

.user-site-placeholder,
.user-offer-placeholder,
.user-payments-placeholder {
    text-align: center;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
    color: #6b7280;
}

.user-site-placeholder i,
.user-offer-placeholder i,
.user-payments-placeholder i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    display: block;
}

.user-site-placeholder p,
.user-offer-placeholder p,
.user-payments-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

/* Nouveaux styles pour responsive */
.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info-summary-mobile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.user-info-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.admin-filter-container,
.user-filter-container {
    padding: 1.25rem 2.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.admin-filter-form,
.user-filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-filter-label,
.user-filter-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.admin-filter-select,
.user-filter-select {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.admin-filter-select:focus,
.user-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.offer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.offer-dates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
}

/* Styles pour la carte d'offre */
.offer-card-header {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.offer-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.offer-card-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.offer-card-icon {
    background: #1e40af;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.offer-card-title {
    margin: 0;
    color: #1e40af;
    font-size: 1.25rem;
    font-weight: 700;
}

.offer-card-subtitle {
    margin: 0.25rem 0 0 0;
    color: #64748b;
    font-size: 0.875rem;
}

.offer-card-price {
    text-align: right;
}

.offer-price-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.offer-price-value {
    color: #1e40af;
    font-size: 1.75rem;
    font-weight: 700;
}

.offer-detail-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #cfe0ff;
}

.offer-detail-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.offer-detail-value {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 700;
}

.offer-detail-remaining {
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .admin-section-header h2 {
        font-size: 1.25rem;
    }
    
    .admin-count {
        font-size: 0.8125rem;
        padding: 0.375rem 0.875rem;
    }
    
    .admin-filter-container,
    .user-filter-container {
        padding: 1rem 1.5rem;
    }
    
    .admin-filter-form,
    .user-filter-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }
    
    .admin-filter-label,
    .user-filter-label {
        font-size: 0.875rem;
    }
    
    .admin-filter-select,
    .user-filter-select {
        width: 100%;
        min-width: 100%;
        font-size: 16px; /* Évite le zoom sur iOS */
    }
    
    .admin-table-wrapper {
        overflow-x: visible;
        padding: 0;
    }
    
    /* Masquer la table sur mobile, afficher les cartes */
    .admin-table {
        display: none !important;
    }
    
    .admin-table-mobile {
        display: block !important;
    }
    
    /* Nouveau design mobile pour les cartes de projets */
    .devis-card-mobile {
        background: white;
        border-radius: 16px;
        padding: 0;
        margin-bottom: 1.25rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        border: 1px solid #e5e7eb;
    }
    
    .devis-card-mobile:active {
        transform: scale(0.98);
    }
    
    .devis-card-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.25rem;
        background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
        border-bottom: 1px solid #e5e7eb;
    }
    
    .devis-card-mobile-id {
        font-size: 0.875rem;
        font-weight: 700;
        color: #6b7280;
        letter-spacing: 0.05em;
    }
    
    .devis-card-mobile-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.375rem 0.875rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .devis-card-mobile-content {
        padding: 1.25rem;
    }
    
    .devis-card-mobile-title {
        font-size: 1.125rem;
        font-weight: 700;
        color: #111827;
        margin: 0 0 1rem 0;
        line-height: 1.4;
        word-break: break-word;
    }
    
    .devis-card-mobile-date {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #6b7280;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .devis-card-mobile-date i {
        color: #9ca3af;
        font-size: 0.8125rem;
    }
    
    .devis-card-mobile-info {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }
    
    .devis-card-mobile-info i {
        font-size: 0.875rem;
    }
    
    .devis-card-mobile-info.info-blue {
        background: #eff6ff;
        color: #1e40af;
    }
    
    .devis-card-mobile-info.info-purple {
        background: #f5f3ff;
        color: #7c3aed;
    }
    
    .devis-card-mobile-info.info-purple a {
        color: #7c3aed;
        text-decoration: none;
    }
    
    .devis-card-mobile-info.info-green {
        background: #ecfdf5;
        color: #059669;
    }
    
    .devis-card-mobile-info.info-yellow {
        background: #fffbeb;
        color: #d97706;
    }
    
    .devis-card-mobile-actions {
        display: flex;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .btn-mobile-action {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    
    .btn-mobile-action.btn-accept {
        background: #10b981;
        color: white;
    }
    
    .btn-mobile-action.btn-accept:active {
        background: #059669;
        transform: scale(0.98);
    }
    
    .btn-mobile-action.btn-refuse {
        background: #ef4444;
        color: white;
    }
    
    .btn-mobile-action.btn-refuse:active {
        background: #dc2626;
        transform: scale(0.98);
    }
    
    .devis-card-mobile-footer {
        padding: 1rem 1.25rem;
        background: #f9fafb;
        border-top: 1px solid #e5e7eb;
    }
    
    .btn-mobile-detail {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.875rem 1.25rem;
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
        color: white;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9375rem;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(30, 64, 175, 0.2);
    }
    
    .btn-mobile-detail:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(30, 64, 175, 0.3);
    }
    
    .btn-mobile-detail i {
        font-size: 0.875rem;
        transition: transform 0.2s ease;
    }
    
    .btn-mobile-detail:active i {
        transform: translateX(2px);
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.875rem;
        font-size: 0.8125rem;
    }
    
    .admin-grid,
    .admin-offer-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .admin-payments-container {
        padding: 1.5rem;
    }
    
    .admin-users-table {
        overflow-x: visible;
    }
    
    .user-row-summary {
        padding: 1rem 1.25rem;
        flex-wrap: wrap;
    }
    
    .user-row-main {
        gap: 1rem;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .user-name {
        min-width: auto;
        font-size: 0.9375rem;
        flex: 1;
        min-width: 120px;
    }
    
    .user-row-details {
        padding: 1.25rem 1.25rem 1.25rem 1.5rem;
        background: white;
    }
    
    .user-info-section {
        padding: 1.5rem 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .user-info-section:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .user-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .user-info-header h4 {
        font-size: 1rem;
    }
    
    .user-info-summary-mobile {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.875rem;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .offer-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .offer-dates-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .btn-toggle-admin {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Carte d'offre responsive */
    .offer-card-header {
        padding: 1.25rem;
    }
    
    .offer-card-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .offer-card-price {
        text-align: left;
        width: 100%;
    }
    
    .offer-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .offer-card-title {
        font-size: 1.125rem;
    }
    
    .offer-price-value {
        font-size: 1.5rem;
    }
    
    .offer-detail-card {
        padding: 0.875rem;
    }
    
    .offer-detail-label {
        font-size: 0.8125rem;
    }
    
    .offer-detail-value {
        font-size: 1rem;
    }
}

/* Dashboard : les deux premiers cards côte à côte, ensuite full width */
.dashboard-grid > * {
    min-width: 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 1000px) {
    /* En desktop : forcer 2 col au début, puis tout le reste en largeur max */
    .dashboard-grid > *:nth-child(n+3) {
        grid-column: 1 / -1;
        width: 100% !important;
    }
    .admin-section,
    .dashboard-card-admin,
    .dashboard-card-devis-user {
        width: 100% !important;
        max-width: 100% !important;
    }
    .admin-section {
        margin-bottom: 2.8rem;
    }
}

@media (max-width:1000px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid > * { width: 100% !important; }
}

/* Styles pour la section "pas de site" */
.no-site-container {
    text-align: center;
    padding: 3rem 2rem;
}

.no-site-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #1e40af;
    font-size: 2rem;
}

.no-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.no-site-description {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-create-site {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Styles mobiles pour les iframes du dashboard */
@media (max-width: 768px) {
    .iframe-wrapper {
        overflow: hidden !important;
        position: relative;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        height: 350px !important;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .iframe-wrapper iframe {
        transform: scale(0.45);
        transform-origin: top left;
        width: 222.22% !important;
        height: 222.22% !important;
        pointer-events: none;
        overflow: hidden !important;
        -webkit-overflow-scrolling: none;
        overscroll-behavior: none;
        border-radius: 12px;
    }
    
    /* Boutons sous l'iframe */
    .dashboard-card-content > div:last-child {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .dashboard-card-content > div:last-child .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .iframe-wrapper {
        height: 300px !important;
    }
    
    .iframe-wrapper iframe {
        transform: scale(0.40);
        width: 250% !important;
        height: 250% !important;
    }
    
    /* Section "pas de site" sur mobile */
    .no-site-container {
        padding: 2rem 1.5rem;
    }
    
    .no-site-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .no-site-title {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }
    
    .no-site-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-create-site {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ===== STYLES TICKETS / DEMANDES ===== */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Layout côte à côte pour les détails de ticket sur desktop */
.ticket-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.ticket-info-card,
.ticket-conversation-card {
    max-width: 100%;
    padding: 3rem;
    margin-bottom: 0;
}

.ticket-conversation-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.ticket-conversation-scroll::-webkit-scrollbar {
    width: 8px;
}

.ticket-conversation-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ticket-conversation-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ticket-conversation-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ticket-response-form-whatsapp {
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.ticket-response-form-whatsapp textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

@media (min-width: 1024px) {
    .ticket-detail-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }
    
    .ticket-info-card {
        flex: 0 0 400px;
        max-width: 400px;
    }
    
    .ticket-conversation-card {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 800px;
    }
    
    .ticket-conversation-scroll {
        flex: 1;
        min-height: 400px;
    }
}

.account-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticket-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem;
}

.ticket-form .form-group {
    margin-bottom: 0;
}

.ticket-form .form-group label {
    margin-bottom: 0.75rem;
}

.ticket-form .form-group small {
    display: block;
    margin-top: 0.625rem;
    color: #6b7280;
    font-size: 0.8125rem;
    font-weight: 500;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ticket-card {
    padding: 2.5rem;
    margin-bottom: 0;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ticket-title-section {
    flex: 1;
    min-width: 0;
}

.ticket-title-section h3 {
    margin: 0 0 1.25rem 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.ticket-title-section h3 a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticket-title-section h3 a:hover {
    color: #3b82f6;
}

.ticket-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.ticket-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ticket-type {
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.ticket-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.ticket-info-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.ticket-info-item i {
    color: #9ca3af;
    font-size: 0.875rem;
}

.ticket-detail-header {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.ticket-detail-header h2 {
    margin: 0 0 2rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.ticket-badges {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.ticket-info-grid > div {
    padding: 1rem 0;
}

.ticket-info-grid strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #6b7280;
    font-size: 0.9375rem;
    font-weight: 600;
}

.ticket-conversation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: #f9fafb;
    border-radius: 12px;
}

.ticket-message {
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ticket-message.admin-message {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    margin-left: 2rem;
}

.ticket-message.client-message {
    background: white;
    border-left: 4px solid #6b7280;
    margin-right: 2rem;
    border: 1px solid #e5e7eb;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.message-header strong {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-date {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.message-content {
    color: #374151;
    line-height: 1.75;
    font-size: 1rem;
    padding-top: 1.25rem;
}

.ticket-response-form {
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    margin-top: 3rem;
}

.ticket-response-form h3,
.ticket-response-form h4 {
    margin: 0 0 2rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.ticket-response-form .form-group {
    margin-bottom: 2rem;
}

.ticket-response-form textarea {
    min-height: 150px;
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.tickets-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ticket-preview-item {
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.ticket-preview-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.empty-state-small {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-state-small i {
    display: block;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.empty-state-small p {
    margin: 0.5rem 0 1.5rem 0;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .account-header h1 {
        font-size: 1.5rem;
    }
    
    .ticket-form {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .ticket-card {
        padding: 1.5rem;
    }
    
    .ticket-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ticket-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ticket-info-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
    
    .ticket-conversation {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .ticket-message {
        padding: 1.5rem;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .ticket-response-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .ticket-detail-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .ticket-detail-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ticket-info-grid {
        padding: 1.5rem;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .ticket-card {
        padding: 1.5rem;
    }
    
    .ticket-form {
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .ticket-badges {
        gap: 0.75rem;
    }
    
    .ticket-badge {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .ticket-info {
        gap: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .account-header {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
}