.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;

    padding: 2rem;
    background-color: var(--bg-body);

}

.auth-card {
    background: var(--bg-card);
    padding: 3rem 2.5rem;

    border-radius: 16px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    width: 100%;
    max-width: 420px;

    border: 1px solid rgba(0, 0, 0, 0.05);

    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}


.auth-tabs {
    display: flex;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
    gap: 1rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;

    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.auth-tab:hover {
    color: var(--primary);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}


.auth-form {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.auth-form.active {
    display: block;
}


.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}


.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.2s;
    pointer-events: none;
}

.input-icon input {
    width: 100%;
    height: 48px;

    padding: 0 1rem 0 2.75rem;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input, #f9fafb);

    color: var(--text-main);
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-icon input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);

    outline: none;
}

.input-icon input:focus+i {
    color: var(--primary);
}


.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.forgot-password:hover {
    opacity: 0.8;
    text-decoration: underline;
}


.auth-form button[type="submit"] {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);

}

.auth-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
    filter: brightness(1.05);
}

.auth-form button[type="submit"]:active {
    transform: translateY(0);
}

.auth-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


.error-message {
    background-color: #fef2f2;
    color: #ef4444;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    border: 1px solid #fecaca;
    display: none;

    text-align: center;
}


.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    animation: fadeIn 0.8s ease backwards;
}

.profile-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 2rem;
    height: fit-content;
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.user-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.avatar {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-md);
}

.avatar:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: var(--primary);
    transform: translateX(8px);
}

.nav-item.logout {
    color: #ef4444;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    border-radius: 0;
}

.nav-item.logout:hover {
    background: transparent;
    color: #dc2626;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-card,
.address-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.order-card:hover,
.address-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-id {
    font-weight: 700;
}

.order-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.order-status.completed {
    background: #dcfce7;
    color: #166534;
}

.order-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.order-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.order-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-weight: 700;
    text-align: right;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 2rem;
    }
}


[data-theme="dark"] .input-icon input {
    background: #000000;

    color: #f8fafc;

    border-color: rgba(255, 255, 255, 0.12);

}

[data-theme="dark"] .input-icon input::placeholder {
    color: #64748b;

}

[data-theme="dark"] .input-icon input:focus {
    background: #2a3548;

    border-color: #60a5fa;

    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);

}

[data-theme="dark"] .input-icon i {
    color: #64748b;

}

[data-theme="dark"] .input-icon input:focus+i {
    color: #60a5fa;

}


[data-theme="dark"] .auth-form button[type="submit"],
[data-theme="dark"] #contactForm button[type="submit"] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
    border: none;
    border-radius: 12px;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .auth-form button[type="submit"]:hover,
[data-theme="dark"] #contactForm button[type="submit"]:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
    filter: brightness(1.1);
}

[data-theme="dark"] .auth-form button[type="submit"]:active {
    transform: translateY(0);
}

[data-theme="dark"] .auth-form button[type="submit"]:disabled {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, #000000 100%);
}


[data-theme="dark"] .error-message {
    background-color: #000000;

    border-color: rgba(255, 255, 255, 0.12);

}


[data-theme="dark"] #login-error,
[data-theme="dark"] #register-error,
[data-theme="dark"] #reset-error {
    background-color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
}

.modal-content {
    animation: scaleIn 0.3s ease-out;
}


.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.7;
    text-decoration: underline;
}


[data-theme="dark"] .modal input[type="text"],
[data-theme="dark"] .modal input[type="tel"],
[data-theme="dark"] .modal select {
    background: #000000 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .modal input[type="text"]:focus,
[data-theme="dark"] .modal input[type="tel"]:focus,
[data-theme="dark"] .modal select:focus {
    background: #2a3548 !important;
    border-color: #60a5fa !important;
}


[data-theme="dark"] select,
[data-theme="dark"] .form-group select {
    background: #000000 !important;
    color: #f8fafc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] select:focus,
[data-theme="dark"] .form-group select:focus {
    background: #2a3548 !important;
    border-color: #60a5fa !important;
}

[data-theme="dark"] select option {
    background: #000000;
    color: #f8fafc;
}

[data-theme="dark"] .modal label {
    color: var(--text-main);
}





.btn-modal-primary,
.btn-modal-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}


.btn-modal-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-modal-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
    transform: translateY(-2px);
}

.btn-modal-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}


.btn-modal-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-modal-secondary:hover {
    background: #e2e8f0;
    color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-modal-secondary:active {
    transform: translateY(0);
}


[data-theme="dark"] .btn-modal-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .btn-modal-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

[data-theme="dark"] .btn-modal-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border: 1px solid #475569;
}

[data-theme="dark"] .btn-modal-secondary:hover {
    background: #475569;
    color: #f8fafc;
}


.settings-card h3 {
    color: var(--text-main);
}





.btn-add-address {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-add-address:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.btn-add-address:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}


[data-theme="dark"] .btn-add-address {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .btn-add-address:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}


.address-list,
.orders-list {
    display: grid;
    gap: 1rem;
}





.btn-shop-now {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-shop-now:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
    transform: translateY(-2px);
}

.btn-shop-now:active {
    transform: translateY(0);
}


[data-theme="dark"] .btn-shop-now {
    background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

[data-theme="dark"] .btn-shop-now:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}





.order-status {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.order-status.pendiente_de_confirmacion {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

[data-theme="dark"] .order-status.pendiente_de_confirmacion {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    color: #fde68a;
    border: 1px solid #d97706;
}


.order-status.confirmado {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

[data-theme="dark"] .order-status.confirmado {
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    color: #bfdbfe;
    border: 1px solid #3b82f6;
}


.order-status.enviado {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

[data-theme="dark"] .order-status.enviado {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #a7f3d0;
    border: 1px solid #10b981;
}


.order-status.processing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fbbf24;
}

.order-status.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}





.order-tracking {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.9rem;
}

.order-tracking i {
    color: #10b981;
}

.order-tracking strong {
    font-family: monospace;
    font-size: 1rem;
}

[data-theme="dark"] .order-tracking {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #10b981;
    color: #a7f3d0;
}

[data-theme="dark"] .order-tracking i {
    color: #34d399;
}







.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    position: relative;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(139, 92, 246, 0.08);
}

.order-card:hover::before {
    opacity: 1;
}


[data-theme="dark"] .order-card {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .order-card::before {
    opacity: 0.7;
}

[data-theme="dark"] .order-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(168, 85, 247, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .order-card:hover::before {
    opacity: 1;
}


.order-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.order-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}


.order-card [style*="border-radius: 50px"] {
    backdrop-filter: blur(10px);
    text-shadow: none;
}


[data-theme="dark"] .order-card [style*="border-left: 3px solid"] {
    background: rgba(15, 15, 25, 0.8) !important;
    border-left-color: #8b5cf6 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.03);
}


[data-theme="dark"] .order-card [style*="background: var(--bg-body)"] {
    background: rgba(10, 10, 20, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .order-card [style*="background: var(--bg-body)"]:hover {
    border-color: rgba(168, 85, 247, 0.25) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


[data-theme="dark"] .order-card [style*="font-size: 1.5rem"][style*="font-weight: 800"] {
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}


[data-theme="dark"] .order-card [style*="rgba(34, 197, 94"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06)) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
}


.order-card [style*="width: 70px"][style*="height: 70px"] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .order-card [style*="width: 70px"][style*="height: 70px"] {
    background: linear-gradient(135deg, rgba(20, 20, 35, 1), rgba(15, 15, 25, 1)) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(168, 85, 247, 0.05);
}


.order-card button[style*="linear-gradient(135deg, #6366f1"],
.order-card button[style*="linear-gradient(135deg, #1a1a2e"] {
    position: relative;
    overflow: hidden;
}

.order-card button[style*="linear-gradient(135deg, #6366f1"]:hover,
.order-card button[style*="linear-gradient(135deg, #1a1a2e"]:hover {
    filter: brightness(1.1);
}





.order-item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.order-item-qty {
    font-weight: 600;
    color: var(--primary);
    min-width: 2rem;
}

.order-item-name {
    flex: 1;
}

.order-item-size {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    background: var(--bg-body);
    border-radius: 4px;
    color: var(--text-muted);
}





.copy-tracking-btn {
    background: none;
    border: none;
    color: #10b981;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: auto;
}

.copy-tracking-btn:hover {
    background: rgba(16, 185, 129, 0.15);
    transform: scale(1.1);
}

.tracking-number {
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .order-item-size {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .copy-tracking-btn {
    color: #34d399;
}

[data-theme="dark"] .copy-tracking-btn:hover {
    background: rgba(52, 211, 153, 0.15);
}





.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.custom-checkbox-label:hover {
    background: rgba(99, 102, 241, 0.05);
}

.custom-checkbox-label:active {
    background: rgba(99, 102, 241, 0.1);
}

.custom-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-box {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-box::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    position: relative;
    top: -1px;
}

.custom-checkbox:checked+.checkbox-box {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.custom-checkbox:checked+.checkbox-box::after {
    transform: rotate(45deg) scale(1);
}

.custom-checkbox:focus+.checkbox-box {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}


[data-theme="dark"] .checkbox-box {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .custom-checkbox:checked+.checkbox-box {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    border-color: #60a5fa;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.4);
}


@media (max-width: 768px) {
    .checkbox-box {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .checkbox-box::after {
        width: 7px;
        height: 14px;
    }

    .custom-checkbox-label {
        padding: 0.75rem 0.5rem;
        margin: -0.75rem -0.5rem;
    }
}





.btn-change-password {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.btn-change-password:hover {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
    transform: translateY(-2px);
}

.btn-change-password:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}


[data-theme="dark"] .btn-change-password {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .btn-change-password:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}





.btn-save-preferences {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-save-preferences:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
    transform: translateY(-2px);
}

.btn-save-preferences:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}


[data-theme="dark"] .btn-save-preferences {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .btn-save-preferences:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}





[data-theme="dark"] .profile-container {
    position: relative;
}

[data-theme="dark"] .profile-container::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] .profile-container::after {
    content: '';
    position: fixed;
    top: 30%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}


[data-theme="dark"] .profile-sidebar {
    background: linear-gradient(180deg, rgba(15, 15, 25, 0.95) 0%, rgba(10, 10, 18, 0.98) 100%);
    border-color: rgba(168, 85, 247, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.08);
}

[data-theme="dark"] .profile-sidebar:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(168, 85, 247, 0.12);
}


[data-theme="dark"] .avatar {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .avatar:hover {
    box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3);
}


[data-theme="dark"] .nav-item:hover,
[data-theme="dark"] .nav-item.active {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 3px solid rgba(168, 85, 247, 0.7);
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.05);
}


[data-theme="dark"] .profile-content {
    position: relative;
}

[data-theme="dark"] .content-section h2 {
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}


[data-theme="dark"] .order-card,
[data-theme="dark"] .address-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(168, 85, 247, 0.04);
}

[data-theme="dark"] .order-card:hover,
[data-theme="dark"] .address-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.1);
}


[data-theme="dark"] .settings-card {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(139, 92, 246, 0.04);
}


[data-theme="dark"] .points-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(168, 85, 247, 0.06);
}


[data-theme="dark"] .modal-content {
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(168, 85, 247, 0.1);
}


[data-theme="dark"] .reward-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 85, 247, 0.15);
}