/* Account Pages Styles - Solo elementos específicos de Account */

/* Account Layout */
.account-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    margin: 50px 0 80px;
}

/* Account Sidebar - Mejorado */
.account-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d3a 100%);
    color: var(--light-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    height: fit-content;
    position: sticky;
    top: 30px;
    position: relative;
    overflow: hidden;
}

.account-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.account-sidebar > * {
    position: relative;
    z-index: 2;
}

.account-sidebar h2 {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(176, 136, 64, 0.3);
    letter-spacing: -0.4px;
    text-align: center;
}

/* Account Navigation - Mejorado */
.account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.account-nav ul li {
    margin-bottom: 8px;
    width: 100%;
}

.account-nav ul li:last-child {
    margin-bottom: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(176, 136, 64, 0.3);
}

.account-nav ul li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    color: rgba(245, 243, 235, 0.9);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.account-nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c19d4a 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.account-nav ul li a:hover::before {
    left: 0;
}

.account-nav ul li a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(176, 136, 64, 0.3);
}

.account-nav ul li a.active {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c19d4a 100%);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(176, 136, 64, 0.4);
    font-weight: 600;
}

.account-nav ul li a.active::before {
    display: none;
}

/* Logout link especial */
.account-nav ul li:last-child a {
    color: rgba(220, 53, 69, 0.9);
    border-color: rgba(220, 53, 69, 0.3);
}

.account-nav ul li:last-child a::before {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.account-nav ul li:last-child a:hover {
    color: white;
    border-color: #dc3545;
}

/* Account Content */
.account-content {
    background-color: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.page-title {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Profile Container */
.profile-container {
    max-width: 800px;
}

/* Form Sections */
.form-section {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 40px;
    border: 1px solid rgba(13, 51, 39, 0.08);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.form-section h3 {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(13, 51, 39, 0.1);
    letter-spacing: -0.3px;
    position: relative;
    padding-top: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(176, 136, 64, 0.1);
}

.form-control:hover {
    border-color: var(--secondary-color);
}

.form-control[readonly] {
    background-color: #f8f8f8;
    color: #666;
    cursor: not-allowed;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-footer {
    margin-top: 35px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Orders List */
.orders-list {
    margin-bottom: 40px;
}

.order-card {
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
}

.order-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
    padding: 20px 25px;
    border-bottom: 1px solid #e8e8e8;
    flex-wrap: wrap;
    gap: 15px;
}

.order-header h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.2px;
    flex-shrink: 0;
}

.order-date {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.order-info {
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.order-info-item h4 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-info-item p {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
    word-break: break-word;
}

/* Order Status */
.order-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-processing {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-shipped {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #99d1ff;
}

.status-delivered {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.order-actions {
    padding: 0 25px 25px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

/* Order Breadcrumbs */
.order-breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.order-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-breadcrumbs a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Order Detail */
.order-detail-container {
    margin-bottom: 40px;
}

.order-detail-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.order-summary {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.order-summary h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(13, 51, 39, 0.1);
    letter-spacing: -0.2px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 16px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary-color);
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--primary-color);
}

/* Order Addresses */
.order-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.address-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.address-box h3 {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: -0.2px;
}

/* Order Items */
.order-items {
    margin-bottom: 40px;
}

.order-items h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.order-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.order-item:hover {
    background-color: var(--light-bg);
    margin: 0 -20px;
    padding: 20px;
    border-radius: 10px;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    margin-right: 20px;
}

.order-item-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.order-item-price {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.order-item-total {
    font-weight: 600;
    text-align: right;
    min-width: 100px;
    color: var(--accent-color);
    font-size: 18px;
}

/* Order Timeline */
.order-timeline {
    margin-bottom: 40px;
}

.order-timeline h3 {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -0.2px;
}

.timeline {
    position: relative;
    padding-left: 40px;
    margin-left: 15px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 20px;
    margin-left: -20px;
    border: 1px solid #eee;
}

.timeline-item:last-child {
    padding-bottom: 20px;
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -35px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #e8e8e8;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #e8e8e8;
}

.timeline-item.active::before,
.timeline-item.completed::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-status {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 16px;
}

.timeline-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Addresses Page */
.addresses-actions {
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-end;
}

.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.address-card {
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    background-color: white;
    transition: all 0.3s ease;
}

.address-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.address-card.default {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(13, 51, 39, 0.02) 0%, rgba(176, 136, 64, 0.02) 100%);
}

.default-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d3a 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-card h3 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    font-family: var(--heading-font);
    letter-spacing: -0.2px;
}

.address-card p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #666;
}

.address-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.no-addresses {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
    border-radius: 16px;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.no-addresses p {
    margin-bottom: 30px;
    color: #666;
    font-size: 18px;
    font-weight: 300;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(13, 51, 39, 0.08);
    max-height: 90vh;
    overflow-y: auto;
}

.large-modal {
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background-color: var(--accent-color);
    color: white;
}

.modal h2 {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: -0.3px;
    padding-right: 40px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 30px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 500;
    border: 2px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 15px 0;
    margin-bottom: 15px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container label {
    cursor: pointer;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: #666;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--secondary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* No Orders */
.no-orders {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--light-bg) 0%, #f0f0f0 100%);
    border-radius: 16px;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.no-orders p {
    margin-bottom: 30px;
    color: #666;
    font-size: 18px;
    font-weight: 300;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 280px 1fr;
        gap: 30px;
    }
    
    .account-sidebar {
        padding: 35px;
    }
    
    .account-content {
        padding: 35px;
    }
    
    /* Orders responsive improvements */
    .order-info {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .order-header {
        padding: 18px 22px;
    }
    
    .order-actions {
        padding: 0 22px 22px;
    }
}

@media (max-width: 768px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 30px 0 50px;
    }
    
    .account-sidebar {
        margin-bottom: 0;
        position: static;
        padding: 30px;
        background: linear-gradient(135deg, var(--primary-color) 0%, #1a4d3a 100%);
    }
    
    .account-sidebar h2 {
        margin-bottom: 25px;
        font-size: 24px;
    }
    
    .account-nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .account-nav ul li {
        margin-bottom: 0;
    }
    
    .account-nav ul li:last-child {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        grid-column: 1 / -1;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(176, 136, 64, 0.3);
    }
    
    .account-nav ul li a {
        padding: 14px 16px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }
    
    .account-nav ul li a:hover {
        transform: translateY(-2px);
    }
    
    .account-content {
        padding: 30px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .order-detail-header,
    .order-addresses {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .addresses-list {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 25px;
        margin: 0 10px;
        max-height: 85vh;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .order-item-image {
        margin-right: 0;
        margin-bottom: 0;
    }
    
    .order-item-total {
        text-align: left;
        margin-top: 10px;
        align-self: flex-end;
    }
    
    /* Orders responsive fixes */
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }
    
    .order-header h3 {
        font-size: 18px;
    }
    
    .order-info {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .order-info-item p {
        font-size: 15px;
    }
    
    .order-actions {
        padding: 0 20px 20px;
        justify-content: center;
    }
    
    .order-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .account-sidebar {
        padding: 25px;
    }
    
    .account-sidebar h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .account-nav ul {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .account-nav ul li a {
        padding: 12px 16px;
        font-size: 14px;
        text-align: left;
        justify-content: flex-start;
    }
    
    .account-content {
        padding: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .form-section {
        padding: 25px;
    }
    
    .order-item-image {
        width: 80px;
        height: 80px;
    }
    
    .timeline {
        padding-left: 30px;
        margin-left: 10px;
    }
    
    .timeline-item {
        padding: 15px;
    }
    
    .timeline-item::before {
        left: -25px;
        width: 12px;
        height: 12px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal h2 {
        font-size: 22px;
    }
    
    /* Orders mobile fixes */
    .order-header {
        padding: 15px;
    }
    
    .order-header h3 {
        font-size: 16px;
    }
    
    .order-date {
        font-size: 13px;
    }
    
    .order-info {
        padding: 15px;
        gap: 12px;
    }
    
    .order-info-item h4 {
        font-size: 12px;
    }
    
    .order-info-item p {
        font-size: 14px;
    }
    
    .order-actions {
        padding: 0 15px 15px;
        gap: 10px;
    }
    
    .order-status {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .pagination {
        gap: 10px;
    }
    
    .no-orders {
        padding: 60px 15px;
    }
    
    .no-orders p {
        font-size: 16px;
    }
    
}
/* Estilos para el campo de búsqueda de países */
.search-container {
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #eee;
    z-index: 1;
}

.country-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.options-container {
    max-height: 250px;
    overflow-y: auto;
}

.select-options {
    max-height: 350px; /* Aumentamos el tamaño máximo para acomodar la barra de búsqueda */
}
/* Modal de Confirmación Elegante para Order Detail */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001; /* Mayor que el modal existente */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(13, 51, 39, 0.08);
}

.modal-overlay.active .confirm-modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-family: var(--heading-font);
    letter-spacing: -0.3px;
}

.modal-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
    font-family: var(--body-font);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--body-font);
    min-width: 100px;
}

.btn-cancel-modal {
    background: #e2e8f0;
    color: #475569;
}

.btn-cancel-modal:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

.btn-confirm-cancel {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.btn-confirm-cancel:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Responsive para el modal */
@media (max-width: 480px) {
    .confirm-modal {
        margin: 20px;
        padding: 24px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-message {
        font-size: 15px;
    }
}
/* Modal de Éxito para Order Detail */
.success-modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(13, 51, 39, 0.08);
    position: relative;
}

.modal-overlay.active .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s infinite;
}

.success-modal-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes successPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.success-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-family: var(--heading-font);
    letter-spacing: -0.3px;
}

.success-modal-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    line-height: 1.5;
    font-family: var(--body-font);
}

.refund-notice {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.refund-notice-icon {
    width: 24px;
    height: 24px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.refund-notice-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.refund-notice-text {
    font-size: 14px;
    color: #155724;
    font-weight: 500;
    line-height: 1.4;
}

.btn-success-ok {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--body-font);
    min-width: 120px;
}

.btn-success-ok:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* Auto-close indicator */
.auto-close-indicator {
    margin-top: 15px;
    font-size: 13px;
    color: #6c757d;
    font-style: italic;
}

.countdown {
    font-weight: 600;
    color: var(--primary-color);
}

/* Responsive para modal de éxito */
@media (max-width: 480px) {
    .success-modal {
        margin: 20px;
        padding: 24px;
    }
    
    .success-modal-title {
        font-size: 20px;
    }
    
    .success-modal-message {
        font-size: 15px;
    }
    
    .refund-notice {
        padding: 12px;
        margin: 15px 0;
    }
    
    .refund-notice-text {
        font-size: 13px;
    }
}