/* Import Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* Variables */
:root {
    --dark: #141414;
    --blue: #211d2b;
    --light: #ebf2fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Font */
* {
    font-family: "Montserrat", sans-serif;
}

/* Dashboard */
.woo-dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Banner */
.dashboard-banner {
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    min-height: 300px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.banner-overlay {
    background: linear-gradient(135deg, rgba(0,117,255,0.95) 0%, rgba(20,20,20,0.85) 100%);
    padding: 3rem 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 600px;
    color: white;
}

.banner-content h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.banner-content p {
    font-size: 1.125rem;
    margin: 0 0 1.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
}

.banner-btn {
    display: inline-block;
    background: white;
    color: var(--blue);
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Header */
.dashboard-header {
    background: #4a12cd;
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.dashboard-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-header p {
    margin: 0;
    opacity: 0.85;
    line-height: 1.5;
    font-weight: 400;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    border: 1px solid var(--light);
    box-shadow: var(--shadow-sm);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-content {
    flex: 1;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

/* Actions */
.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

button.btn.btn-secondary {
    background-color: #211d2b;
}

button.btn.btn-secondary:hover {
    background-color: #4a12cd;
    border-radius: 10px !important;
}

.btn2 {
    background: var(--blue);
    color: white;
    border: none;
    padding: 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    display: inline-table;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.5rem;
}

.btn-primary {
    background: var(--blue) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4a12cd 0%, #4a12cd 100%) !important;
    border-radius: 10px !important;
}

.btn-primary2 {
    background: var(--blue);
}

.btn-secondary {
    background: var(--blue);
}

.btn-secondary:hover {
    background: #4a12cd;
}

.btn-accent {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 100%);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #4a12cd 0%, #4a12cd 100%);
    border-radius: 10px !important;
}

/* Quick Info Cards */
.quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    border: 2px solid var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    color: var(--dark);
    font-weight: 700;
}

.info-card p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    max-width: 100%;
    align-content: center;
    border-radius: 0;
}

.modal-content {
    background: white;
    max-width: 1000px;
    margin: 0 auto;
    max-height: calc(100vh - 4rem);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: var(--blue);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem 2rem 2rem 2rem;
    overflow-y: auto;
    max-height: 85vh;
}

/* Orders */
.order-row {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    align-items: center;
    transition: var(--transition);
}

.order-row:hover {
    background: var(--light);
}

.order-row span {
    font-size: 0.9rem;
    font-weight: 600;
}

.order-row .btn-detail {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.order-row .btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.status-completed { 
    color: #10b981; 
    font-weight: 600; 
}

.status-pending { 
    color: #f59e0b; 
    font-weight: 600; 
}

.status-processing { 
    color: var(--blue); 
    font-weight: 600; 
}

/* Order Detail */
.order-info p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.order-items h4 {
    margin: 1.5rem 0 1rem;
    font-weight: 700;
    color: var(--dark);
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light);
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.download-item {
    padding: 0.75rem;
    background: #e3f2fd;
    border-left: 3px solid var(--blue);
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: var(--transition);
}

.download-item:hover {
    background: #bbdefb;
    transform: translateX(4px);
}

.download-item a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.download-item a:hover {
    text-decoration: underline;
}

/* Order Tickets Table from Tickera */
.order-details.widefat.shadow-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--light);
    margin-top: -10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.order-details.widefat.shadow-table thead tr,
.order-details.widefat.shadow-table tbody tr:first-child {
    background: var(--dark);
}

.order-details.widefat.shadow-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: white;
    background: var(--dark);
}

.order-details.widefat.shadow-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light);
    font-weight: 500;
}

.order-details.widefat.shadow-table tr:last-child td {
    border-bottom: none;
}

.order-details.widefat.shadow-table tr.alternate {
    background: var(--light);
}

.order-details.widefat.shadow-table tr:hover {
    background: #f8fafc;
}

.order-details.widefat.shadow-table td a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.order-details.widefat.shadow-table td a:hover {
    text-decoration: underline;
}

.order-details.widefat.shadow-table td[data-column="Ticket"] a {
    background: var(--blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    transition: var(--transition);
}

.order-details.widefat.shadow-table td[data-column="Ticket"] a:hover {
    background: var(--dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.order-shipping {
    margin-top: 10px;
    padding: 1rem;
    background: var(--light);
    border-radius: 12px;
}

.order-shipping h4 {
    margin: 0 0 0.75rem;
    color: var(--blue);
    font-weight: 700;
}

/* Addresses */
.address-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.address-box:hover {
    box-shadow: var(--shadow-md);
}

.address-box h4 {
    margin: 0 0 1rem;
    color: var(--blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.address-box p {
    margin: 0.5rem 0;
    font-weight: 500;
}

.btn-edit {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Form */
#account-form,
#address-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#account-form label,
#address-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

#account-form input,
#account-form select,
#address-form input {
    padding: 0.75rem;
    border: 1px solid var(--light);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

#account-form input:focus,
#account-form select:focus,
#address-form input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

#account-form button,
#address-form button {
    background: var(--blue) !important;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

#account-form button:hover,
#address-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back-orders {
    background: var(--blue) !important;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px !important;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
    width: 100%;
}

.btn-back-orders:hover {
    background: var(--blue) !important;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px !important;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.btn-back {
    background: #666 !important;
}

.btn-back:hover {
    background: #555 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header h2 {
        font-size: 20px;
    }
    .dashboard-header p {
        font-size: 13px;
    }
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1rem;
    }
    
    .order-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .actions {
        grid-template-columns: 1fr;
    }
    
    .quick-info {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 8px;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .item-row {
        grid-template-columns: 1fr;
    }
}

/* Recent Orders Section */
.recent-orders-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.section-header h3 i {
    margin-right: 0.5rem;
    color: var(--blue);
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

.orders-list {
    display: grid;
    gap: 1rem;
}

/* New Order Card Design */
.order-card-new {
    display: flex;
    gap: 15px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    align-items: stretch;
}

.order-card-new:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #211d2b;
}

/* Image Section */
.order-card-image-wrapper {
    width: 170px;
    min-width: 140px;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 50px;
}

/* Info Section */
.order-card-info {
    flex: 1;
    padding: 14px 20px 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 15px;
}

.order-event-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    line-height: 1.3;
}

.order-id-small {
    font-size: 14px;
    color: #000;
    display: block;
    margin-top: 4px;
}

.order-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status-badge.status-completed,
.order-status-badge.status-processing {
    background: #d4edda;
    color: #155724;
}

.order-status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.order-status-badge.status-cancelled,
.order-status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.order-card-middle {
    margin-bottom: 12px;
}

i.fa.fa-qrcode {
    font-size: 25px;
}

.order-date-info {
    font-size: 14px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.order-stat {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    color: #211d2b;
    font-size: 14px;
}

.stat-text {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.order-total {
    display: flex;
    align-items: center;
    gap: 6px;
}

.total-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.total-amount {
    font-size: 16px;
    font-weight: 700;
    color: #211d2b;
}

.btn-detail {
    background: #211d2b;
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
}

.btn-detail:hover {
    background: #0056cc;
    box-shadow: 0 3px 8px rgba(0, 117, 255, 0.3);
    transform: translateY(-1px);
}

.btn-detail:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .order-card-new {
        flex-direction: column;
        gap: 0;
    }
    
    .order-card-image-wrapper {
        display: none;
    }
    
    .order-card-info {
        padding: 16px;
    }
    
    .order-card-bottom {
        flex-wrap: wrap;
    }
    
    .btn-detail {
        margin-left: 0;
        flex: 1;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .order-card-new {
        margin-bottom: 12px;
    }
    
    .order-card-info {
        padding: 12px;
    }
    
    .order-event-name {
        font-size: 14px;
    }
    
    .order-card-top {
        margin-bottom: 10px;
    }
    
    .order-card-middle {
        margin-bottom: 10px;
    }
    
    .order-card-bottom {
        padding-top: 10px;
        gap: 10px;
    }
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.status-pending,
.status-on-hold {
    background: #fef3c7;
    color: #92400e;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.status-cancelled,
.status-failed {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700 !important;
}

.order-card-body {
    margin-bottom: 1rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.info-label i {
    margin-right: 0.25rem;
    color: var(--blue);
}

.info-value {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
}

.order-card-footer {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.btn-link {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-link:hover {
    color: var(--dark);
}

.btn-link i {
    font-size: 0.875rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--light);
    margin-bottom: 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--blue);
    opacity: 0.5;
}

.empty-icon i {
    font-size: 4rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: #666;
    margin: 0 0 1.5rem;
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1.5rem;
}

.quick-actions-section h3 i {
    margin-right: 0.5rem;
    color: var(--blue);
}

.btn-icon i {
    font-size: 1.25rem;
}

/* Info Cards Icons */
.info-card h3 i {
    margin-right: 0.5rem;
    color: #4a12cd;
}

.dashboard-header i {
    margin-right: 0.5rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: #4a12cd;
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        gap: 0rem;
        align-items: center;
    }

    .section-header h3 {
        font-size: 18px;
    }
    
    .order-card-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-card-footer {
        flex-direction: column;
    }
}

/* Order Card Detail Buttons */
.order-card-footer .btn-detail {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.order-card-footer .btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-download {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-download:hover {
    color: var(--dark);
}

.btn-link-info {
    background: none;
    border: none;
    color: var(--blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 10px !important;
}

.btn-link-info:hover {
    color: var(--dark);
}

.btn-link-info i {
    font-size: 0.875rem;
}

/* ===== MODAL DE CAMBIO DE CONTRASEÑA ===== */

.password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.password-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.password-modal-content .modal-header {
    background: linear-gradient(135deg, #4a12cd 0%, #4a12cd 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.password-modal-content .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#password-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#password-modal-close:hover {
    transform: scale(1.2);
}

.password-modal-content .modal-body {
    padding: 30px;
}

.warning-box {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.warning-box h3 {
    margin-top: 0;
    color: #856404;
    font-size: 16px;
}

.warning-box p {
    margin: 10px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

.modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #141414;
    margin: 20px 0 10px;
}

.modal-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.validity-time {
    background: #ebf2fa;
    color: #211d2b;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
}

.pin-input-group {
    display: grid;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

#password-pin-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 20px;
    letter-spacing: 8px;
    border: 2px solid #ebf2fa;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: border-color 0.3s;
    font-family: "Montserrat", sans-serif;
}

#password-pin-input:focus {
    outline: none;
    border-color: #211d2b;
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

.timer {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.timer-warning {
    color: #dc3545;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pin-instructions {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.password-input-wrapper {
    margin-bottom: 20px;
}

.password-input-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #141414;
    margin-bottom: 8px;
}

.input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-toggle input {
    flex: 1;
    padding: 12px 40px 12px 14px;
    border: 2px solid #ebf2fa;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: "Montserrat", sans-serif;
}

.input-with-toggle input:focus {
    outline: none;
    border-color: #211d2b;
    box-shadow: 0 0 0 3px rgba(0, 117, 255, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
    background-color: #ffffff00 !important;
}

.toggle-password:hover {
    transform: scale(1.1);
}

#password-step-1 .btn-primary,
#password-step-2 .btn-primary,
#password-step-3 .btn-primary {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    background-color: #211d2b;
    color: white;
    font-family: "Montserrat", sans-serif;
}

#password-step-1 .btn-primary:hover:not(:disabled),
#password-step-2 .btn-primary:hover:not(:disabled),
#password-step-3 .btn-primary:hover:not(:disabled) {
    background-color: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.4);
}

#password-step-1 .btn-primary:disabled,
#password-step-2 .btn-primary:disabled,
#password-step-3 .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#password-step-2 .btn-secondary,
#password-step-3 .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #211d2b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    background-color: transparent;
    color: #211d2b;
    font-family: "Montserrat", sans-serif;
}

#password-step-2 .btn-secondary:hover:not(:disabled),
#password-step-3 .btn-secondary:hover:not(:disabled) {
    background-color: #ebf2fa;
}

#password-step-2 .btn-secondary:disabled,
#password-step-3 .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message p {
    margin: 0;
}

#woo-dash-preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preloader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #211d2b, #0056cc);
    animation: pulse 1.5s ease-in-out infinite;
    margin: 0 auto 15px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

#preloader-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 600px) {
    .password-modal-content {
        width: 95%;
        max-width: 100%;
    }

    .password-modal-content .modal-body {
        padding: 20px;
    }

    .modal-subtitle {
        font-size: 15px;
    }

    .modal-info {
        font-size: 13px;
    }

    #password-pin-input {
        font-size: 18px;
        letter-spacing: 6px;
        padding: 12px 14px;
    }

    #password-step-1 .btn-primary,
    #password-step-2 .btn-primary,
    #password-step-3 .btn-primary,
    #password-step-2 .btn-secondary,
    #password-step-3 .btn-secondary {
        padding: 11px 18px;
        font-size: 13px;
    }
}

/* Support Tickets Section */
.support-tickets-section {
    margin-bottom: 2rem;
}

.support-tickets-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.support-tickets-section .section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.support-tickets-section .section-header h3 i {
    margin-right: 0.5rem;
    color: var(--blue);
}

/* Tickets List Style */
.tickets-list {
    display: grid;
    gap: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--light);
    box-shadow: var(--shadow-sm);
}

.ticket-card {
    background: white;
    border: none;
    border-bottom: 1px solid var(--light);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.ticket-card:last-child {
    border-bottom: none;
}

.ticket-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    border: none;
    margin: 0;
    padding: 0;
}

.ticket-card-header::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 50px;
    background: linear-gradient(135deg, var(--blue) 0%, #0052cc 100%);
    border-radius: 2px;
    flex-shrink: 0;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.ticket-info strong {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ticket-subject {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ticket-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.ticket-date i {
    color: var(--blue);
    font-size: 0.85rem;
}

.ticket-status-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ticket-status-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 2px 8px rgba(0, 117, 255, 0.3);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 117, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 117, 255, 0.5);
        transform: scale(1.1);
    }
}

.ticket-status-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
}

.ticket-card-footer {
    display: flex;
    gap: 0;
    padding: 0;
    border: none;
    flex-shrink: 0;
}

.btn-detail-ayuda {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(0, 117, 255, 0.2);
}

.btn-detail-ayuda:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 117, 255, 0.3);
    background: #0056cc;
}

.btn-detail:active {
    transform: translateY(0);
}

.btn-detail i {
    font-size: 0.75rem;
}

/* Empty State Tickets */
.empty-state-tickets {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--light);
    margin-bottom: 2rem;
}

.empty-state-tickets .empty-icon {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    color: var(--blue);
    opacity: 0.3;
}

.empty-state-tickets .empty-icon i {
    font-size: 3.5rem;
}

.empty-state-tickets h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.empty-state-tickets p {
    color: #999;
    margin: 0 0 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.empty-state-tickets .btn {
    display: inline-flex;
}

/* Section Footer */
.support-tickets-section .section-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.support-tickets-section .section-footer .btn {
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .ticket-card {
        flex-wrap: wrap;
    }

    .ticket-subject {
        max-width: 250px;
    }

    .ticket-info {
        flex: 1 1 auto;
    }
}

@media (max-width: 768px) {
    .ticket-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .ticket-card-header {
        width: 100%;
    }

    .ticket-card-header::before {
        height: 30px;
    }

    .ticket-meta {
        width: 100%;
        justify-content: space-between;
    }

    .ticket-status-wrapper {
        width: 100%;
    }

    .ticket-subject {
        max-width: 100%;
        white-space: normal;
    }

    .ticket-card-footer {
        width: 100%;
    }

    .btn-detail {
        width: 100%;
        justify-content: center;
    }

    .support-tickets-section .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .support-tickets-section .section-header h3 {
        font-size: 1.25rem;
    }

    .empty-state-tickets {
        padding: 1.5rem;
    }

    .empty-state-tickets .empty-icon {
        font-size: 3.5rem;
    }

    .empty-state-tickets h3 {
        font-size: 1.25rem;
    }

    .empty-state-tickets p {
        font-size: 0.9rem;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .ticket-card {
        padding: 1rem;
    }

    .ticket-info strong {
        font-size: 0.95rem;
    }

    .ticket-subject {
        font-size: 0.85rem;
    }

    .ticket-date {
        font-size: 0.8rem;
    }

    .ticket-status-text {
        font-size: 0.75rem;
    }

    .btn-detail {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
}

/* Estado Cerrado */
.ticket-status-wrapper.closed .ticket-status-dot {
    background: #9a0000;
    box-shadow: 0 2px 8px rgba(173, 0, 0, 0.3);
    animation: pulse-dot-closed 2s ease-in-out infinite;
}

@keyframes pulse-dot-closed {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(173, 0, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(173, 0, 0, 0.3);
        transform: scale(1.1);
    }
}

.ticket-status-wrapper.closed .ticket-status-text {
    color: #9a0000;
    font-weight: 700;
}