:root {
    --profile-amber: #F5A800;
    --profile-amber-dark: #D48C00;
    --profile-amber-light: #FFF3CC;
    --profile-amber-glow: rgba(245, 168, 0, 0.15);
    --profile-bg: #F7F5F0;
    --profile-surface: #FFFFFF;
    --profile-surface2: #FAFAF8;
    --profile-border: #EAE7DF;
    --profile-text: #1A1612;
    --profile-text-muted: #8A8278;
    --profile-red: #E84040;
    --profile-success: #2DB57A;
    --profile-radius: 16px;
    --profile-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --profile-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --profile-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ─── PAGE HEADER ─── */
.profile-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeUp 0.5s ease both;
}

.profile-page-header-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-amber) 0%, #FF8C00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(245, 168, 0, 0.3);
    flex-shrink: 0;
}

.profile-page-header-text h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.profile-page-header-text p {
    color: var(--profile-text-muted);
    font-size: 14px;
    margin-top: 3px;
}

/* ─── CARD ─── */
.profile-tab-content .card {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    box-shadow: var(--profile-shadow-md);
    margin-bottom: 24px;
    overflow: hidden;
    animation: fadeUp 0.5s ease both;
}

.profile-tab-content .card:nth-child(2) {
    animation-delay: 0.08s;
}

.profile-tab-content .card:nth-child(3) {
    animation-delay: 0.16s;
}

.profile-tab-content .card-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--profile-border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--profile-surface2);
}

.profile-tab-content .card-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--profile-amber-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-amber-dark);
    flex-shrink: 0;
}

.profile-tab-content .card-header h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.profile-tab-content .card-header p {
    font-size: 13px;
    color: var(--profile-text-muted);
    margin-top: 1px;
}

.profile-tab-content .card-body {
    padding: 28px;
}

/* ─── ORDERS TABLE ─── */
.profile-tab-content .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-tab-content .table {
    width: 100%;
    font-size: 14px;
    color: var(--profile-text);
    border-collapse: separate;
    border-spacing: 0;
}

.profile-tab-content .table thead {
    background: var(--profile-surface2);
}

.profile-tab-content .table thead th {
    padding: 16px 20px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--profile-text-muted);
    border-bottom: 1px solid var(--profile-border);
    vertical-align: middle;
}

.profile-tab-content .table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.profile-tab-content .table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.profile-tab-content .table tbody tr {
    border-bottom: 1px solid var(--profile-border);
    transition: background 0.2s;
}

.profile-tab-content .table tbody tr:hover {
    background: rgba(245, 168, 0, 0.04);
}

.profile-tab-content .table tbody tr:last-child {
    border-bottom: none;
}

.profile-tab-content .table tbody td {
    padding: 18px 20px;
    vertical-align: middle;
    font-size: 14px;
    font-weight: 500;
    color: var(--profile-text);
}

.profile-tab-content .table tbody .item-button,
.profile-tab-content .table tbody .view-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: var(--profile-amber);
    color: white;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(245, 168, 0, 0.35);
}

.profile-tab-content .table tbody .item-button:hover,
.profile-tab-content .table tbody .view-btn:hover {
    background: var(--profile-amber-dark);
    box-shadow: 0 4px 16px rgba(245, 168, 0, 0.45);
    transform: translateY(-1px);
}

.profile-tab-content .table tbody .item-button:active,
.profile-tab-content .table tbody .view-btn:active {
    transform: scale(0.97);
}

.profile-tab-content .table tbody .item-button.cancel-order {
    background: transparent;
    color: var(--profile-red);
    border: 1.5px solid rgba(232, 64, 64, 0.3);
    box-shadow: none;
}

.profile-tab-content .table tbody .item-button.cancel-order:hover {
    background: rgba(232, 64, 64, 0.08);
}

/* Back orders table action buttons */
.profile-tab-content .table tbody .add-back-order-to-card {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--profile-amber);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 3px 12px rgba(245, 168, 0, 0.35);
}

.profile-tab-content .table tbody .add-back-order-to-card:hover {
    background: var(--profile-amber-dark);
    box-shadow: 0 4px 16px rgba(245, 168, 0, 0.45);
    transform: translateY(-1px);
}

.profile-tab-content .table tbody .mail-me-btn {
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    color: var(--profile-red);
    border: 1.5px solid rgba(232, 64, 64, 0.3);
    cursor: pointer;
}

.profile-tab-content .table tbody .mail-me-btn:hover {
    background: rgba(232, 64, 64, 0.08);
}

.profile-tab-content .table tbody .delete-back-order {
    width: 34px;
    height: 34px;
    min-height: 34px ;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--profile-red);
    border: 1.5px solid rgba(232, 64, 64, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(232, 64, 64, 0.25);
    background: transparent;
    font-weight: 300 !important;
}

.profile-tab-content .table tbody .delete-back-order i {
    font-weight: 300 !important;
}

.profile-tab-content .table tbody .delete-back-order:hover {
    background: rgba(232, 64, 64, 0.08);
}

.profile-tab-content .table tbody a[href] {
    color: var(--profile-amber-dark);
    font-weight: 600;
}

.profile-tab-content .table tbody a[href]:hover {
    color: var(--profile-amber);
}

/* ─── INVOICES & PAYMENT HISTORY ─── */
.profile-tab-content .invoices-filter-form .form-control {
    height: 46px;
    background: var(--profile-bg);
    border: 1.5px solid var(--profile-border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14.5px;
    color: var(--profile-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-tab-content .invoices-filter-form .form-control:focus {
    border-color: var(--profile-amber);
    box-shadow: 0 0 0 4px var(--profile-amber-glow);
    background: var(--profile-surface);
}

.profile-tab-content .invoices-filter-form .form-group {
    margin-bottom: 0;
}

.profile-tab-content .invoices-filter-form .btn-primary {
    height: 46px;
}

/* ─── COLLAPSIBLE CARD ─── */
.profile-tab-content .card-collapsible .card-header {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.profile-tab-content .card-collapsible .card-header:hover {
    background: rgba(245, 168, 0, 0.06);
}

.profile-tab-content .card-collapsible .card-header .collapse-chevron {
    flex-shrink: 0;
    color: var(--profile-text-muted);
    transition: transform 0.25s ease;
}

.profile-tab-content .card-collapsible:has(#securityPasswordCollapse.show) .card-header .collapse-chevron,
.profile-tab-content .card-collapsible:has(#addressesCollapse.show) .card-header .collapse-chevron {
    transform: rotate(180deg);
}

/* ─── ADDRESS CARD (profile style) ─── */
.profile-tab-content .address-card.profile-address-item {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: var(--profile-radius);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: var(--profile-shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
    animation: addressFadeIn 0.4s ease both;
}

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

.profile-tab-content .address-card.profile-address-item:last-child {
    margin-bottom: 0;
}

.profile-tab-content .address-card.profile-address-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--profile-shadow-lg);
    border-color: rgba(245, 168, 0, 0.4);
}

.profile-tab-content .address-card.profile-address-item.is-default {
    border-color: var(--profile-amber);
    background: linear-gradient(135deg, rgba(245, 168, 0, 0.05) 0%, var(--profile-surface) 100%);
    box-shadow: 0 4px 20px rgba(245, 168, 0, 0.15);
}

.profile-tab-content .address-card.profile-address-item.is-default:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(245, 168, 0, 0.22);
}

.profile-tab-content .address-card .address-card-body {
    padding: 22px 24px;
}

.profile-tab-content .address-card .address-item-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-tab-content .address-card .address-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--profile-amber-light) 0%, rgba(255, 243, 204, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-amber-dark);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 168, 0, 0.15);
}

.profile-tab-content .address-card.profile-address-item.is-default .address-item-icon {
    background: linear-gradient(135deg, var(--profile-amber) 0%, var(--profile-amber-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 168, 0, 0.35);
}

.profile-tab-content .address-card .address-item-content {
    flex: 1;
    min-width: 0;
}

.profile-tab-content .address-card .address-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--profile-amber-dark);
    background: var(--profile-amber-light);
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.profile-tab-content .address-card .address-badge svg {
    flex-shrink: 0;
}

.profile-tab-content .address-card .address-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-tab-content .address-card .address-line {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--profile-text);
}

.profile-tab-content .address-card .address-line-muted {
    font-size: 13px;
    font-weight: 400;
    color: var(--profile-text-muted);
    margin-top: 2px;
}

.profile-tab-content .address-card .address-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--profile-border);
}

/* Address card btn styles (works in profile + addresses tab) */
.profile-tab-content .address-card .btn {
    height: 38px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.profile-tab-content .address-card .btn svg {
    flex-shrink: 0;
}

.profile-tab-content .address-card .btn.btn-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
}

.profile-tab-content .address-card .btn:active {
    transform: scale(0.97);
}

.profile-tab-content .address-card .btn-primary {
    background: var(--profile-amber);
    color: white;
    box-shadow: 0 3px 12px rgba(245, 168, 0, 0.35);
}

.profile-tab-content .address-card .btn-primary:hover {
    background: var(--profile-amber-dark);
    box-shadow: 0 4px 16px rgba(245, 168, 0, 0.45);
    transform: translateY(-1px);
}

.profile-tab-content .address-card .btn-danger {
    background: transparent;
    color: var(--profile-red);
    border: 1.5px solid rgba(232, 64, 64, 0.3);
}

.profile-tab-content .address-card .btn-danger:hover {
    background: rgba(232, 64, 64, 0.08);
    color: var(--profile-red);
    transform: translateY(-1px);
}

/* Address card list inside profile */
.profile-tab-content .address-card-data {
    gap: 0;
}

.profile-tab-content .address-card-data .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
}

.profile-tab-content .address-card-data .address-card,
.profile-tab-content .address-card-data .addresses-item {
    margin-bottom: 14px;
}

.profile-tab-content .address-card-data .address-card:last-child,
.profile-tab-content .address-card-data .addresses-item:last-child {
    margin-bottom: 0;
}

/* ─── FORM GRID ─── */
.profile-tab-content .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-tab-content .form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.profile-tab-content .form-group.full {
    grid-column: 1 / -1;
}

.profile-tab-content label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--profile-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tab-content .input-wrap {
    position: relative;
}

.profile-tab-content .input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--profile-text-muted);
    pointer-events: none;
    flex-shrink: 0;
}

.profile-tab-content input[type="text"],
.profile-tab-content input[type="email"],
.profile-tab-content input[type="tel"],
.profile-tab-content input[type="password"],
.profile-tab-content select {
    width: 100%;
    height: 46px;
    background: var(--profile-bg);
    border: 1.5px solid var(--profile-border);
    border-radius: 12px;
    padding: 0 16px 0 44px;
    font-size: 14.5px;
    color: var(--profile-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    appearance: none;
}

.profile-tab-content input[type="text"]:focus,
.profile-tab-content input[type="email"]:focus,
.profile-tab-content input[type="tel"]:focus,
.profile-tab-content input[type="password"]:focus,
.profile-tab-content select:focus {
    border-color: var(--profile-amber);
    box-shadow: 0 0 0 4px var(--profile-amber-glow);
    background: var(--profile-surface);
}

.profile-tab-content input.has-error {
    border-color: var(--profile-red);
}

.profile-tab-content input[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-tab-content .select-wrap {
    position: relative;
}

.profile-tab-content .select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: var(--profile-text-muted);
    margin-top: 3px;
    pointer-events: none;
}

/* ─── RETURN & WARRANTY ─── */
.profile-tab-content .return-warranty-form .form-control {
    height: 46px;
    background: var(--profile-bg);
    border: 1.5px solid var(--profile-border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14.5px;
    color: var(--profile-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-tab-content .return-warranty-form .form-control:focus {
    border-color: var(--profile-amber);
    box-shadow: 0 0 0 4px var(--profile-amber-glow);
    background: var(--profile-surface);
}

.profile-tab-content .return-warranty-form textarea.form-control {
    height: auto;
    min-height: 80px;
    padding: 12px 16px;
}

.profile-tab-content .return-warranty-form label.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--profile-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Customer returns table (inline editable) */
.profile-tab-content .table-customer-returns th,
.profile-tab-content .table-customer-returns td {
    text-align: center !important;
    vertical-align: middle !important;
    min-width: 100px;
}

.profile-tab-content .table-customer-returns .cr-shipping-cell,
.profile-tab-content .table-customer-returns .cr-tracking-cell {
    min-width: 160px;
}

.profile-tab-content .table-customer-returns .cr-shipping-select,
.profile-tab-content .table-customer-returns .cr-tracking-input {
    text-align: center !important;
    min-height: 38px;
    min-width: 140px;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    background: var(--profile-bg);
    border: 1.5px solid var(--profile-border);
    border-radius: 10px;
}

.profile-tab-content .table-customer-returns .cr-shipping-select:focus,
.profile-tab-content .table-customer-returns .cr-tracking-input:focus {
    border-color: var(--profile-amber);
    outline: none;
}

/* ─── DIVIDER ─── */
.profile-tab-content .divider {
    height: 1px;
    background: var(--profile-border);
    margin: 24px 0;
}

/* ─── BUTTONS ─── */
.profile-tab-content .btn-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

.profile-tab-content .btn {
    min-height: 46px;
    padding: 10px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.profile-tab-content .btn:active {
    transform: scale(0.97);
}

.profile-tab-content .btn-primary {
    background: var(--profile-amber);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 168, 0, 0.35);
}

.profile-tab-content .btn-primary:hover {
    background: var(--profile-amber-dark);
    box-shadow: 0 6px 20px rgba(245, 168, 0, 0.45);
}

.profile-tab-content .btn-primary:active {
    background: var(--profile-amber-dark);
    box-shadow: 0 6px 20px rgba(245, 168, 0, 0.45);
}

.profile-tab-content .btn-ghost {
    background: transparent;
    color: var(--profile-text-muted);
    border: 1.5px solid var(--profile-border);
}

.profile-tab-content .btn-ghost:hover {
    background: var(--profile-bg);
    color: var(--profile-text);
}

/* ─── PASSWORD STRENGTH ─── */
.profile-tab-content .strength-bar {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.profile-tab-content .strength-bar span {
    flex: 1;
    height: 3px;
    border-radius: 4px;
    background: var(--profile-border);
    transition: background 0.3s;
}

.profile-tab-content .strength-bar span.active {
    background: var(--profile-amber);
}

.profile-tab-content .strength-bar span.strong {
    background: var(--profile-success);
}

.profile-tab-content .strength-bar span.danger {
    background: var(--profile-red);
}

.profile-tab-content .strength-label {
    font-size: 12px;
    color: var(--profile-text-muted);
    margin-top: 4px;
}

/* ─── TOAST ─── */
.profile-tab-content .toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--profile-text);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--profile-shadow-lg);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    z-index: 999;
}

.profile-tab-content .toast.show {
    transform: translateY(0);
    opacity: 1;
}

.profile-tab-content .toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--profile-success);
    flex-shrink: 0;
}

/* ─── ANIMATION ─── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .profile-tab-content .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-tab-content .form-group.full {
        grid-column: 1;
    }

    .profile-tab-content main {
        padding: 24px 16px 60px;
    }

    .profile-tab-content nav {
        padding: 0 16px;
    }

    .profile-tab-content .nav-search {
        display: none;
    }

    .profile-tab-content .top-nav {
        padding: 0 16px;
    }
}

.profile-tab-content .input-edit-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-tab-content .input-edit-wrap .input-wrap {
    flex: 1;
}

.profile-tab-content .input-wrap {
    position: relative;
}

.profile-tab-content .btn-edit {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1.5px solid var(--profile-border);
    background: var(--profile-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    border-color: var(--profile-amber);
    background: var(--profile-amber);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 168, 0, 0.35);
}

.profile-tab-content button > svg {
    min-width: 18px !important;
    min-height: 18px !important;
}

/* ─── ADDRESS CARD ─── */
.profile-tab-content .address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-tab-content .address-item {
    border: 1.5px solid var(--profile-border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    background: var(--profile-surface2);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.profile-tab-content .address-item:hover {
    border-color: var(--profile-amber);
    box-shadow: 0 0 0 4px var(--profile-amber-glow);
}

.profile-tab-content .address-item.default {
    border-color: var(--profile-amber);
    background: var(--profile-amber-light);
}

.profile-tab-content .address-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--profile-amber);
    color: white;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.profile-tab-content .address-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--profile-bg);
    color: var(--profile-text-muted);
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid var(--profile-border);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.profile-tab-content .address-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-tab-content .address-line {
    font-size: 13.5px;
    color: var(--profile-text-muted);
    line-height: 1.6;
}

.profile-tab-content .address-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--profile-border);
}

.profile-tab-content .address-item.default .address-actions {
    border-top-color: rgba(245,168,0,0.25);
}

.profile-tab-content .btn-addr {
    flex: 1;
    height: 34px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid var(--profile-border);
    background: transparent;
    color: var(--profile-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.profile-tab-content .btn-addr:hover {
    border-color: var(--profile-amber);
    background: var(--profile-amber-light);
    color: var(--profile-amber-dark);
}

.profile-tab-content .btn-addr.danger:hover {
    border-color: var(--profile-red);
    background: rgba(232,64,64,0.06);
    color: var(--profile-red);
}


.profile-tab-content .btn-danger {
    background: transparent;
    color: var(--profile-red);
    border: 1.5px solid rgba(232, 64, 64, 0.3);
}

.profile-tab-content .btn-danger:hover {
    background: rgba(232, 64, 64, 0.06);
    color: var(--profile-red);
}

.profile-tab-content .address-add {
    border: 1.5px dashed var(--profile-border);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    min-height: 160px;
    transition: border-color 0.2s, background 0.2s;
    background: transparent;
    width: 100%;
}

.profile-tab-content .address-add:hover {
    border-color: var(--profile-amber);
    background: var(--profile-amber-light);
}

.profile-tab-content .address-add-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--profile-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--profile-text-muted);
    transition: background 0.2s, color 0.2s;
}

.profile-tab-content .address-add:hover .address-add-icon {
    background: var(--profile-amber);
    color: white;
}

.profile-tab-content .address-add span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--profile-text-muted);
}

.profile-tab-content .address-add:hover span { color: var(--profile-amber-dark); }

/* ─── EX VAT COLLAPSIBLE ─── */
.profile-tab-content .ex-vat-collapsible-card {
    border: 1.5px solid var(--profile-border);
    border-radius: var(--profile-radius);
    background: var(--profile-surface2);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-tab-content .ex-vat-collapsible-card:has(#exVatCollapse.show) {
    border-color: rgba(245, 168, 0, 0.4);
    box-shadow: 0 2px 12px rgba(245, 168, 0, 0.1);
}

.profile-tab-content .ex-vat-collapsible-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.profile-tab-content .ex-vat-collapsible-header:hover {
    background: rgba(245, 168, 0, 0.06);
}

.profile-tab-content .ex-vat-collapsible-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text);
    letter-spacing: 0.2px;
}

.profile-tab-content .ex-vat-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--profile-amber-light);
    color: var(--profile-amber-dark);
    font-size: 13px;
    transition: transform 0.25s ease, background 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.profile-tab-content .ex-vat-toggle-icon:hover {
    background: var(--profile-amber);
    color: white;
}

.profile-tab-content .ex-vat-collapsible-card:has(#exVatCollapse.show) .ex-vat-toggle-icon i {
    transform: rotate(45deg);
}

.profile-tab-content .ex-vat-toggle-icon i {
    transition: transform 0.25s ease;
}

.profile-tab-content .ex-vat-collapsible-body {
    padding: 0 20px 20px;
}

.profile-tab-content .ex-vat-notice {
    font-size: 13.5px;
    color: var(--profile-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.profile-tab-content .ex-vat-verified-message {
    font-size: 14px;
    color: var(--profile-success);
    font-weight: 500;
    padding: 10px 0;
}

.profile-tab-content .ex-vat-collapsible-body .form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--profile-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tab-content .ex-vat-collapsible-body .form-control {
    height: 42px;
    background: var(--profile-bg);
    border: 1.5px solid var(--profile-border);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--profile-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.profile-tab-content .ex-vat-collapsible-body .form-control:focus {
    border-color: var(--profile-amber);
    box-shadow: 0 0 0 4px var(--profile-amber-glow);
    background: var(--profile-surface);
}

.profile-tab-content .ex-vat-collapsible-body .form-select {
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--profile-border);
    background: var(--profile-bg);
    font-size: 14px;
    padding: 0 10px;
}

.profile-tab-content .ex-vat-collapsible-body .input-group-text {
    background: var(--profile-bg);
    border: 1.5px solid var(--profile-border);
    font-size: 14px;
    color: var(--profile-text-muted);
}

.profile-tab-content .ex-vat-submit-row {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

.profile-tab-content .ex-vat-submit-row .btn {
    height: 42px;
    padding: 0 24px;
    font-size: 14px;
}
.js-show-tax-document-input{
    height: auto !important;
    padding: 10px 16px !important;
    background-color: #007BFF !important;
}

/* ─── CART PAGE ─── */
.profile-tab-content .cart-items-card {
    animation-delay: 0.04s;
}

.profile-tab-content .cart-summary-card {
    animation-delay: 0.08s;
}

@media (min-width: 992px) {
    .profile-tab-content .cart-summary-card {
        position: sticky;
        top: 24px;
    }
}

.profile-tab-content .cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 8px;
}

.profile-tab-content .cart-summary-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text-muted);
}

.profile-tab-content .cart-summary-amount {
    font-size: 20px;
    font-weight: 800;
    color: var(--profile-text);
    letter-spacing: -0.3px;
}

.profile-tab-content .cart-empty-card {
    animation-delay: 0.04s;
}

.profile-tab-content .empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 24px;
}

.profile-tab-content .empty-page i {
    font-size: 48px;
    color: var(--profile-amber);
    margin-bottom: 8px;
}

.profile-tab-content .empty-page h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--profile-text);
    margin: 0;
}

.profile-tab-content .empty-page span {
    font-size: 14px;
    color: var(--profile-text-muted);
    max-width: 320px;
}

.profile-tab-content .cart-back-orders-card {
    animation-delay: 0.12s;
}

.profile-tab-content .table .table-img img {
    border-radius: 10px;
    border: 1px solid var(--profile-border);
}

.profile-tab-content .table .product-remove .remove-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1.5px solid rgba(232, 64, 64, 0.25);
    background: transparent;
    color: var(--profile-red);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.profile-tab-content .table .product-remove .remove-wishlist:hover {
    background: rgba(232, 64, 64, 0.08);
    border-color: rgba(232, 64, 64, 0.4);
}

.profile-tab-content .pro-qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--profile-border);
    border-radius: 17px;
    overflow: hidden;
    background: var(--profile-bg);
}

.profile-tab-content .pro-qty input {
    width: 52px;
    height: 38px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--profile-text);
}

.profile-tab-content .pro-qty .qtybtn {
    width: 34px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--profile-text-muted);
    background: var(--profile-surface);
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.profile-tab-content .pro-qty .qtybtn:hover {
    background: var(--profile-amber-light);
    color: var(--profile-amber-dark);
}

.profile-tab-content .checkout-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-tab-content .axil-cart-table {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0;
}
