/* Account Settings Styles - Professional & Modern */

.account-settings-container {
    display: flex;
    max-width: 1400px;
    margin: 120px auto 40px;
    padding: 0 20px;
    gap: 30px;
    min-height: calc(100vh - 160px);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-sidebar {
    width: 300px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 8px 32px rgba(0, 63, 127, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid rgba(1, 165, 230, 0.1);
    backdrop-filter: blur(10px);
}

.settings-sidebar h2 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #003f7f, #01a5e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #01a5e6, transparent) 1;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #161616;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.settings-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #01a5e6, #0180b3);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.settings-nav-link:hover {
    background: linear-gradient(135deg, rgba(1, 165, 230, 0.08), rgba(1, 165, 230, 0.05));
    color: #01a5e6;
    transform: translateX(4px);
    border-color: rgba(1, 165, 230, 0.2);
}

.settings-nav-link:hover::before {
    transform: scaleY(1);
}

.settings-nav-link.active {
    background: linear-gradient(135deg, #01a5e6, #0180b3);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(1, 165, 230, 0.3);
    transform: translateX(4px);
    border-color: #01a5e6;
}

.settings-nav-link.active::before {
    transform: scaleY(1);
    background: rgba(255, 255, 255, 0.3);
}

.settings-nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.settings-nav-link:hover i,
.settings-nav-link.active i {
    transform: scale(1.1);
}

.settings-content {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 63, 127, 0.1);
    border: 1px solid rgba(1, 165, 230, 0.1);
    backdrop-filter: blur(10px);
}

.settings-section {
    display: none;
}

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

.settings-section h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, #003f7f, #01a5e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 16px;
}

.settings-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #01a5e6, transparent);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    margin-bottom: 0;
}

.btn-add-address {
    background: linear-gradient(135deg, #01a5e6, #0180b3);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(1, 165, 230, 0.3);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn-add-address::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-add-address:hover::before {
    left: 100%;
}

.btn-add-address:hover {
    background: linear-gradient(135deg, #0180b3, #01a5e6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 165, 230, 0.4);
}

.btn-add-address:active {
    transform: translateY(0);
}

.settings-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(1, 165, 230, 0.1);
    transition: all 0.3s ease;
}

.settings-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #003f7f;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.form-group .required {
    color: #ff4444;
    font-weight: 700;
    font-size: 1.1rem;
    margin-left: 2px;
}

.form-group .optional {
    color: #8a8f99;
    font-weight: 400;
    font-size: 0.85rem;
}

.form-input {
    padding: 14px 18px;
    border: 2px solid #e0e4e8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #161616;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: #01a5e6;
    box-shadow: 0 0 0 4px rgba(1, 165, 230, 0.15);
    transform: translateY(-1px);
    background: #ffffff;
}

.form-input:hover:not(:focus) {
    border-color: #b8c4d0;
}

.form-input:disabled,
.form-input[readonly] {
    background: #f4f6f8;
    color: #8a8f99;
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-help {
    font-size: 0.85rem;
    color: #8a8f99;
    margin-top: -4px;
}

.field-error-bubble {
    display: none;
    position: relative;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #dc3545;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.35;
}

.field-error-bubble::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: rgba(220, 53, 69, 0.12);
    border-left: 1px solid rgba(220, 53, 69, 0.35);
    border-top: 1px solid rgba(220, 53, 69, 0.35);
    transform: rotate(45deg);
}

html[dir="rtl"] .field-error-bubble::before {
    left: auto;
    right: 18px;
}

body.dark-mode .field-error-bubble {
    background: rgba(220, 53, 69, 0.18);
    border-color: rgba(220, 53, 69, 0.45);
    color: #ff6b6b;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    gap: 12px;
}

.btn-save {
    background: linear-gradient(135deg, #01a5e6, #0180b3);
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(1, 165, 230, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-save::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-save:hover::before {
    left: 100%;
}

.btn-save:hover {
    background: linear-gradient(135deg, #0180b3, #01a5e6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 165, 230, 0.4);
}

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

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn-save {
    background: #01a5e6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background: #0188b8;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #f4f6f8;
    color: #161616;
    border: 1px solid #d4d8de;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #eef2f7;
    border-color: #01a5e6;
    color: #01a5e6;
}

.ghost-btn {
    background: transparent;
    color: #003f7f;
    border: 1px solid #d6e3f0;
    box-shadow: none;
}

.ghost-btn:hover {
    border-color: #01a5e6;
    color: #01a5e6;
}

.address-modal-content {
    max-width: 780px;
    width: 95%;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 14px 40px rgba(0, 63, 127, 0.18);
    border: 1px solid rgba(1, 165, 230, 0.12);
    border-radius: 20px;
    padding: 28px 28px 22px;
    position: relative;
    margin: 0 auto;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalPop 0.35s ease;
}

.address-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e8ec;
}

.modal-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f0f4f8;
    color: #01a5e6;
    box-shadow: 0 8px 18px rgba(1, 165, 230, 0.18);
}

.modal-icon.accent {
    background: linear-gradient(135deg, #01a5e6, #0180b3);
    color: #ffffff;
}

.modal-title-wrap h2 {
    margin: 0;
}

.modal-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
}

.address-form-grid .form-grid.two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.address-form-grid .form-group.phone-group .phone-input-wrapper {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
}

.address-form-grid .primary-checkbox {
    background: #f7fbff;
    border: 1px dashed rgba(1, 165, 230, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
}

.subtle-hint {
    color: #6b7280;
}

.sticky-actions {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.confirm-modal-content {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 28px 26px 22px;
    border-top: 4px solid #f44336;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    animation: modalPop 0.3s ease;
}

.confirm-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.confirm-icon.danger {
    background: linear-gradient(135deg, #ffe5e5, #ffffff);
    color: #d32f2f;
    border: 2px solid #f44336;
    box-shadow: 0 10px 20px rgba(244, 67, 54, 0.25);
}

.confirm-title {
    margin-bottom: 6px;
    color: #003f7f;
}

.confirm-text {
    margin: 0 auto 12px;
    color: #6b7280;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-confirm {
    padding: 12px 22px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.6px;
    border: none;
    min-width: 110px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-confirm:hover {
    transform: translateY(-1px);
}

.btn-confirm.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    box-shadow: 0 8px 18px rgba(244, 67, 54, 0.25);
}

.btn-confirm.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 8px 18px rgba(46, 204, 113, 0.25);
}

/* Modals moved outside #shipping-addresses - display centered on full viewport */
body.account-settings-page .modal.modal-global,
body .modal.modal-global {
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.5);
}

body.account-settings-page .modal.modal-global.show,
body .modal.modal-global.show {
    display: flex !important;
}

body.account-settings-page .modal {
    align-items: center;
    justify-content: center;
    padding: 80px 16px 40px;
}

@media (max-height: 700px) {
    body.account-settings-page .modal {
        align-items: flex-start;
        padding-top: 100px;
    }
}

.modern-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
}

.modern-modal.show {
    display: flex;
}

.modern-modal.show .address-modal-content,
.modern-modal.show .confirm-modal-content {
    animation: modalPop 0.35s ease;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Addresses List */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.address-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e6e8ec;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #01a5e6, #0180b3);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.address-card:hover {
    border-color: #01a5e6;
    box-shadow: 0 8px 24px rgba(1, 165, 230, 0.15);
    transform: translateY(-2px);
}

.address-card:hover::before {
    transform: scaleY(1);
}

.address-card.primary {
    border-color: #01a5e6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f4ff 100%);
    box-shadow: 0 4px 16px rgba(1, 165, 230, 0.2);
}

.address-card.primary::before {
    transform: scaleY(1);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.address-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #003f7f, #01a5e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
}

.address-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #01a5e6, #0180b3);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(1, 165, 230, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.address-details {
    color: #161616;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.address-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-edit-address,
.btn-delete-address,
.btn-set-primary {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-edit-address::before,
.btn-delete-address::before,
.btn-set-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-edit-address:hover::before,
.btn-delete-address:hover::before,
.btn-set-primary:hover::before {
    left: 100%;
}

.btn-edit-address {
    background: linear-gradient(135deg, #01a5e6, #0180b3);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 165, 230, 0.3);
}

.btn-edit-address:hover {
    background: linear-gradient(135deg, #0180b3, #01a5e6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 165, 230, 0.4);
}

.btn-delete-address {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-delete-address:hover {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.btn-set-primary {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-set-primary:hover {
    background: linear-gradient(135deg, #45a049, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-set-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-edit-address:active,
.btn-delete-address:active,
.btn-set-primary:active {
    transform: translateY(0);
}

/* Shipments List */
.shipments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.shipment-card {
    background: #ffffff;
    border: 1px solid #e6e8ec;
    border-radius: 12px;
    padding: 20px;
}

.shipment-card-large {
    font-size: 1rem;
}

.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e8ec;
}

.shipment-id {
    font-weight: 600;
    color: #003f7f;
}

.shipment-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.shipment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.shipment-status.processing {
    background: #cfe2ff;
    color: #084298;
}

.shipment-status.shipped {
    background: #d1e7dd;
    color: #0f5132;
}

.shipment-status.delivered {
    background: #d4edda;
    color: #155724;
}

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

.shipment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shipment-detail-label {
    font-size: 0.85rem;
    color: #8a8f99;
}

.shipment-detail-value {
    font-weight: 500;
    color: #161616;
}

/* Responsive Design - Medium Screens */
@media (max-width: 968px) {
    .account-settings-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 100px;
        padding: 0 16px;
    }
    
    .settings-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        padding: 20px;
    }
    
    .settings-sidebar h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .settings-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .settings-nav::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .settings-nav::-webkit-scrollbar-thumb {
        background: #01a5e6;
        border-radius: 10px;
    }
    
    .settings-nav-link {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: fit-content;
    }
    
    .settings-content {
        padding: 24px;
    }
    
    .settings-section h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-header h2 {
        margin-bottom: 0;
    }
    
    .btn-add-address {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design - Small Screens */
@media (max-width: 768px) {
    .account-settings-container {
        margin-top: 80px;
        padding: 0 12px;
        gap: 16px;
    }
    
    .settings-sidebar {
        padding: 16px;
        border-radius: 10px;
    }
    
    .settings-sidebar h2 {
        font-size: 1.2rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .settings-nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .settings-nav-link i {
        font-size: 1rem;
        width: 18px;
    }
    
    .settings-content {
        padding: 20px;
        border-radius: 10px;
    }
    
    .settings-section h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .settings-card {
        padding: 20px;
    }
    
    .form-group {
        gap: 6px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .address-card {
        padding: 16px;
    }
    
    .address-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .address-actions button {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 24px 20px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .account-settings-container {
        margin-top: 70px;
        padding: 0 10px;
        gap: 12px;
    }
    
    .settings-sidebar {
        padding: 14px;
        width: 100%;
        position: static;
    }
    
    .settings-sidebar h2 {
        font-size: 1.1rem;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    
    .settings-nav-link {
        white-space: nowrap;
        padding: 6px 10px;
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .settings-nav-link i {
        font-size: 0.9rem;
        width: 16px;
    }
    
    .settings-content {
        padding: 16px;
    }
    
    .settings-section h2 {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    
    .settings-card {
        padding: 16px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-save {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .address-card {
        padding: 14px;
    }
    
    .modal-content {
        width: 98%;
        max-width: 98%;
        padding: 20px 16px;
        margin: 10px auto;
    }
}

/* Dark Mode Support */
html.dark-mode body,
body.dark-mode {
    background: #1a1a1a !important;
}

html.dark-mode .account-settings-container,
body.dark-mode .account-settings-container {
    background: #1a1a1a;
}

html.dark-mode .settings-sidebar,
body.dark-mode .settings-sidebar,
html.dark-mode .settings-content,
body.dark-mode .settings-content,
html.dark-mode .settings-card,
body.dark-mode .settings-card,
html.dark-mode .address-card,
body.dark-mode .address-card,
html.dark-mode .shipment-card,
body.dark-mode .shipment-card,
html.dark-mode .address-modal-content,
body.dark-mode .address-modal-content,
html.dark-mode .confirm-modal-content,
body.dark-mode .confirm-modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #444444;
}

html.dark-mode .settings-sidebar h2,
body.dark-mode .settings-sidebar h2,
html.dark-mode .settings-section h2,
body.dark-mode .settings-section h2,
html.dark-mode .section-header h2,
body.dark-mode .section-header h2 {
    color: #ffffff;
}

html.dark-mode .settings-sidebar,
body.dark-mode .settings-sidebar {
    border-bottom-color: #444444;
}

html.dark-mode .settings-nav-link,
body.dark-mode .settings-nav-link {
    color: #e0e0e0;
}

html.dark-mode .settings-nav-link:hover,
body.dark-mode .settings-nav-link:hover {
    background: #333333;
    color: #01a5e6;
}

html.dark-mode .settings-nav-link.active,
body.dark-mode .settings-nav-link.active {
    background: #01a5e6;
    color: #ffffff;
}

html.dark-mode .form-group label,
body.dark-mode .form-group label {
    color: #ffffff;
}

html.dark-mode .form-group .optional,
body.dark-mode .form-group .optional {
    color: #b0b0b0;
}

html.dark-mode .modal-subtitle,
body.dark-mode .modal-subtitle {
    color: #cdd3db;
}

html.dark-mode .form-input,
body.dark-mode .form-input {
    background: #333333;
    border-color: #444444;
    color: #e0e0e0;
}

html.dark-mode .form-input:focus,
body.dark-mode .form-input:focus {
    border-color: #01a5e6;
    box-shadow: 0 0 0 3px rgba(1, 165, 230, 0.2);
}

html.dark-mode .form-input:disabled,
html.dark-mode .form-input[readonly],
body.dark-mode .form-input:disabled,
body.dark-mode .form-input[readonly] {
    background: #ffffff;
    color: #161616;
    border-color: #d4d8de;
}

html.dark-mode .form-help,
body.dark-mode .form-help {
    color: #b0b0b0;
}

html.dark-mode .checkbox-label,
body.dark-mode .checkbox-label {
    color: #e0e0e0;
}

html.dark-mode .btn-cancel,
body.dark-mode .btn-cancel {
    background: #333333;
    color: #e0e0e0;
    border-color: #444444;
}

html.dark-mode .btn-cancel:hover,
body.dark-mode .btn-cancel:hover {
    background: #3a3a3a;
    border-color: #01a5e6;
    color: #01a5e6;
}

html.dark-mode .address-name,
body.dark-mode .address-name {
    color: #ffffff;
}

html.dark-mode .address-details,
body.dark-mode .address-details {
    color: #e0e0e0;
}

html.dark-mode .address-card,
body.dark-mode .address-card {
    border-color: #444444;
}

html.dark-mode .address-card:hover,
body.dark-mode .address-card:hover {
    border-color: #01a5e6;
    box-shadow: 0 4px 12px rgba(1, 165, 230, 0.2);
}

html.dark-mode .address-card.primary,
body.dark-mode .address-card.primary {
    background: #1a3a4a;
    border-color: #01a5e6;
}

html.dark-mode .btn-set-primary,
body.dark-mode .btn-set-primary {
    background: #333333;
    color: #01a5e6;
    border-color: #01a5e6;
}

html.dark-mode .btn-set-primary:hover,
body.dark-mode .btn-set-primary:hover {
    background: #01a5e6;
    color: #ffffff;
}

html.dark-mode .shipment-header,
body.dark-mode .shipment-header {
    border-bottom-color: #444444;
}

html.dark-mode .shipment-id,
body.dark-mode .shipment-id {
    color: #ffffff;
}

html.dark-mode .shipment-detail-label,
body.dark-mode .shipment-detail-label {
    color: #b0b0b0;
}

html.dark-mode .shipment-detail-value,
body.dark-mode .shipment-detail-value {
    color: #e0e0e0;
}

html.dark-mode .shipment-card,
body.dark-mode .shipment-card {
    border-color: #444444;
}

/* Modal Dark Mode */
html.dark-mode .modal-content,
body.dark-mode .modal-content {
    background: #2a2a2a;
    color: #e0e0e0;
}

html.dark-mode .modal-content h2,
html.dark-mode .modal-content h3,
body.dark-mode .modal-content h2,
body.dark-mode .modal-content h3 {
    color: #ffffff;
}

html.dark-mode .close-modal,
body.dark-mode .close-modal {
    color: #e0e0e0;
}

html.dark-mode .close-modal:hover,
body.dark-mode .close-modal:hover {
    color: #ffffff;
}

/* Phone Input Styles */
.phone-input-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-direction: row-reverse; /* RTL support */
}

.phone-country-code {
    padding: 12px 16px;
    border: 1px solid #d4d8de;
    border-right: none;
    border-radius: 0 8px 8px 0;
    background: #f8f9fa;
    font-size: 1rem;
    font-weight: 600;
    color: #003f7f;
    cursor: default;
    min-width: 80px;
    text-align: center;
}

.phone-input {
    border-radius: 8px 0 0 8px;
    border-left: 1px solid #d4d8de;
    flex: 1;
}

.phone-input-wrapper:focus-within .phone-country-code,
.phone-input-wrapper:focus-within .phone-input {
    border-color: #01a5e6;
    box-shadow: 0 0 0 3px rgba(1, 165, 230, 0.1);
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

html.dark-mode .phone-country-code,
body.dark-mode .phone-country-code {
    background: var(--color-surface-elevated, #2f2f2f);
    color: var(--color-text, #e8eaed);
    border-color: var(--color-border, #444444);
}

html.dark-mode .phone-input,
body.dark-mode .phone-input {
    background: var(--color-surface-elevated, #2f2f2f);
    color: var(--color-text, #e8eaed);
    border-color: var(--color-border, #444444);
}

html.dark-mode .form-help,
body.dark-mode .form-help {
    color: var(--color-text-muted, #aeb4bd);
}




