.order-wrapper {

}

.order-item {
    border-bottom: 1px solid #dedede;
    padding: 0.6rem 0rem;

}

.order-item:last-of-type {
    border: none;
}

.order-item i{
    color: var(--cs-accent, #f97316);
    display: inline-block;
    width: 2rem;
    text-align: center;
}

.order-item-date {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.order-item-id {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.order-item-status {
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
}

.order-item-products {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.order-item-products a {
    text-decoration: none;
    margin-left: 0.4rem;
    padding: 0.1rem;
    display: inline-block;
    border: 1px solid #f7f7f7;
    border-radius: 0.25rem;
}

.order-item-products a img {
    width: 4rem;
}

.order-item-link a {
    text-decoration: none;
    color: var(--cs-text-muted, #64748b);
    font-size: 0.7rem;
    font-weight: bold;
    transition: 0.4s;
}

.order-item-link a:hover {
    color: var(--cs-accent, #f97316);
    transition: 0.4s;
}


.my-address-wrapper {
    display: block;
    width: 100%;
    position: relative;
    border-radius: 0.25rem;
    border: 2px solid #dedede;
    background-color: #fcfcfc;
    font-size: 0.8rem;
    color: #333333;
    transition: 0.4s;
}

.my-address-wrapper:hover {
    background-color: #efefef;
    transition: 0.4s;
}

.my-address-wrapper a{
    position: absolute;
    left: 0.4rem;
    top: 0.4rem;
    text-decoration: none;
    font-size: 0.7rem;
    margin: 0.2rem;
    /*color: #00b5fe;*/
    color: var(--cs-text-muted, #64748b);
    background-color: inherit;
    transition: 0.4s;
}

.my-address-wrapper:hover a{
    color: var(--cs-accent, #f97316);
    transition: 0.4s;
}


.field-title {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.6rem;
}

.field-value {
    font-size: 0.9rem;
    line-height: 1.6rem;

}

.profile-account-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8eef5;
    background-color: #f4f7fb;
}

.profile-account-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-account-avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8fa3b8;
    font-size: 2.5rem;
}

.profile-account-avatar-label {
    font-size: 0.75rem;
    color: #7a8798;
}

.profile-photo-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0;
}

.profile-photo-picker .profile-account-avatar,
.profile-photo-picker .profile-account-avatar--placeholder {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.profile-photo-picker input[type="file"] {
    max-width: 100%;
    font-size: 0.8rem;
}

.profile-photo-picker-hint {
    font-size: 0.75rem;
    color: #7a8798;
    text-align: center;
    margin: 0;
}

/* ---------- Favorites & Compare lists ---------- */
.profile-lists-page .profile-lists-alert {
    border-radius: 0.75rem;
    border: 0;
    margin-bottom: 1rem;
}

.profile-lists-panel {
    background: var(--cs-card-bg, #fff);
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 1rem;
    padding: 1.15rem 1.15rem 1.35rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-lists-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cs-border, #e2e8f0);
}

.profile-lists-head__intro {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.profile-lists-chip {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.profile-lists-chip--heart {
    background: var(--cs-red-light, #fef2f2);
    color: var(--cs-red, #ef4444);
}

.profile-lists-chip--compare {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-lists-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
}

.profile-lists-subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-lists-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--cs-body-bg, #f8fafc);
    border: 1px solid var(--cs-border, #e2e8f0);
    color: var(--cs-navy, #0f172a);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.profile-lists-link:hover {
    background: var(--cs-accent-light, #fff7ed);
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-fav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.profile-fav-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 0.95rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.profile-fav-card:hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.profile-fav-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: var(--cs-body-bg, #f8fafc);
    overflow: hidden;
}

.profile-fav-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}

.profile-fav-card__badge,
.profile-compare-card__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cs-accent-dark, #ea580c), var(--cs-accent, #f97316));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 6px 14px var(--cs-accent-glow, rgba(249, 115, 22, 0.18));
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.profile-fav-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.85rem 0.85rem 0.95rem;
    flex: 1;
}

.profile-fav-card__name,
.profile-compare-card__name {
    color: var(--cs-navy, #0f172a);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    min-height: 2.6em;
}

.profile-fav-card__name:hover,
.profile-compare-card__name:hover {
    color: var(--cs-accent-dark, #ea580c);
}

.profile-fav-card__price,
.profile-compare-card__meta dd {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.profile-fav-card__price strong,
.profile-compare-card__meta dd strong {
    color: var(--cs-navy, #0f172a);
    font-size: 0.95rem;
}

.profile-fav-card__price small,
.profile-compare-card__meta dd small {
    color: var(--cs-text-muted, #64748b);
    font-size: 0.72rem;
}

.profile-fav-card__old,
.profile-compare-card__old {
    color: var(--cs-text-light, #94a3b8);
    text-decoration: line-through;
    font-size: 0.78rem;
}

.profile-fav-card__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
}

.profile-fav-card__cta,
.profile-compare-card__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.65rem;
    background: var(--cs-navy, #0f172a);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.18s ease;
}

.profile-fav-card__cta:hover,
.profile-compare-card__cta:hover {
    background: var(--cs-accent, #f97316);
    color: #fff;
}

.profile-fav-card__remove,
.profile-compare-card__remove {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: var(--cs-red-light, #fef2f2);
    color: var(--cs-red, #ef4444);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.profile-fav-card__remove:hover,
.profile-compare-card__remove:hover {
    background: var(--cs-red, #ef4444);
    color: #fff;
}

.profile-compare-scroll {
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-inline: -0.15rem;
}

.profile-compare-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15.5rem, 1fr);
    gap: 0.9rem;
    min-width: min(100%, calc(var(--compare-count, 1) * 15.5rem));
}

.profile-compare-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 0.95rem;
    padding: 0.95rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    min-height: 100%;
}

.profile-compare-card__remove {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
}

.profile-compare-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    background: var(--cs-body-bg, #f8fafc);
    overflow: hidden;
}

.profile-compare-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.65rem;
}

.profile-compare-card__meta {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.profile-compare-card__meta > div {
    display: grid;
    gap: 0.15rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--cs-border, #e2e8f0);
}

.profile-compare-card__meta dt {
    margin: 0;
    font-size: 0.72rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-compare-card__meta dd {
    margin: 0;
    font-size: 0.86rem;
    color: var(--cs-text-main, #1e293b);
    font-weight: 600;
}

.profile-compare-stock {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.profile-compare-stock--ok {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.profile-compare-stock--off {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cs-red, #ef4444);
}

.profile-lists-empty {
    text-align: center;
    padding: 2.4rem 1rem 2rem;
}

.profile-lists-empty__icon {
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 0.9rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-red-light, #fef2f2);
    color: var(--cs-red, #ef4444);
    font-size: 1.35rem;
}

.profile-lists-empty__icon--compare {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-lists-empty strong {
    display: block;
    font-size: 1.05rem;
    color: var(--cs-navy, #0f172a);
    margin-bottom: 0.35rem;
}

.profile-lists-empty p {
    margin: 0 auto 1.1rem;
    max-width: 26rem;
    color: var(--cs-text-muted, #64748b);
    font-size: 0.88rem;
    line-height: 1.7;
}

.profile-lists-empty__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    border-radius: 0.7rem;
    background: var(--cs-accent, #f97316);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
}

.profile-lists-empty__cta:hover {
    background: var(--cs-accent-dark, #ea580c);
    color: #fff;
}

@media (max-width: 991.98px) {
    .profile-fav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .profile-lists-panel {
        padding: 0.95rem;
        border-radius: 0.85rem;
    }

    .profile-fav-grid {
        grid-template-columns: 1fr;
    }

    .profile-lists-head {
        align-items: stretch;
    }

    .profile-lists-link {
        justify-content: center;
        width: 100%;
    }

    .profile-compare-track {
        grid-auto-columns: minmax(14rem, 85vw);
    }
}

/* ---------- Orders & Wallet ---------- */
.profile-lists-chip--orders,
.profile-lists-chip--wallet,
.profile-lists-chip--address,
.profile-lists-chip--ticket,
.profile-lists-chip--account {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-lists-empty__icon--orders,
.profile-lists-empty__icon--address,
.profile-lists-empty__icon--ticket {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-orders-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.15rem;
}

.profile-orders-overview__stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background:
        linear-gradient(135deg, var(--cs-accent-light, #fff7ed) 0%, #fff 62%);
}

.profile-orders-overview__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--cs-accent, #f97316) 14%, white);
    color: var(--cs-accent-dark, #ea580c);
    font-size: 0.95rem;
}

.profile-orders-overview__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
    line-height: 1.2;
}

.profile-orders-overview__label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 600;
}

.profile-order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.15rem;
}

.profile-order-filter {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: #fff;
    color: var(--cs-text-main, #1e293b);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.profile-order-filter:hover {
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent);
    color: var(--cs-accent-dark, #ea580c);
    background: var(--cs-accent-light, #fff7ed);
}

.profile-order-filter.is-active {
    background: var(--cs-accent, #f97316);
    border-color: var(--cs-accent, #f97316);
    color: #fff;
    box-shadow: 0 4px 12px var(--cs-accent-glow, rgba(249, 115, 22, 0.18));
}

.profile-order-list {
    display: grid;
    gap: 0.85rem;
}

.profile-order-card {
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    padding: 1.05rem 1.1rem;
    display: grid;
    gap: 0.9rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-order-card:hover {
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 28%, transparent);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.profile-order-card__top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.profile-order-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    font-size: 0.84rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-order-card__code {
    color: var(--cs-navy, #0f172a);
    font-weight: 800;
}

.profile-order-card__meta i {
    margin-left: 0.3rem;
}

.profile-order-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.profile-order-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: #e2e8f0;
    color: #334155;
}

.profile-order-badge--0 { background: #e2e8f0; color: #475569; }
.profile-order-badge--1 { background: #fef3c7; color: #b45309; }
.profile-order-badge--2 { background: #fee2e2; color: #b91c1c; }
.profile-order-badge--3 { background: #d1fae5; color: var(--cs-success, #10b981); }
.profile-order-badge--4 { background: #1e293b; color: #f8fafc; }
.profile-order-badge--5 { background: #e0f2fe; color: #0369a1; }
.profile-order-badge--6 { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

.profile-order-badge--pay-0 { background: #fef3c7; color: #b45309; }
.profile-order-badge--pay-1 { background: #d1fae5; color: var(--cs-success, #10b981); }
.profile-order-badge--pay-2 { background: #1e293b; color: #f8fafc; }
.profile-order-badge--pay-3 { background: #e0f2fe; color: #0369a1; }

.profile-order-card__body {
    display: grid;
    gap: 0.85rem;
}

.profile-order-card__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-order-thumb {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.7rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: var(--cs-body-bg, #f8fafc);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--cs-text-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 800;
}

.profile-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.profile-order-thumb--more {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 25%, transparent);
}

.profile-order-card__stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.profile-order-card__stats > div {
    padding: 0.55rem 0.65rem;
    border-radius: 0.7rem;
    background: var(--cs-body-bg, #f8fafc);
    border: 1px solid transparent;
}

.profile-order-card__stats dt {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-order-card__stats dd {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--cs-navy, #0f172a);
}

.profile-order-card__stats dd small {
    font-size: 0.7rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 600;
}

.profile-order-card__tracking {
    grid-column: 1 / -1;
}

.profile-order-tracking__code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
    margin-left: 0.35rem;
}

.profile-order-tracking__carrier {
    display: inline-block;
    margin-right: 0.45rem;
    font-size: 0.72rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 600;
}

.profile-order-tracking__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.profile-order-tracking__copy,
.profile-order-tracking__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.45rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: #fff;
    color: var(--cs-navy, #0f172a);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.profile-order-tracking__copy:hover,
.profile-order-tracking__link:hover {
    border-color: var(--cs-accent, #f97316);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-order-tracking__pending {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: var(--cs-text-muted, #64748b) !important;
}

.profile-order-card__actions {
    display: flex;
    justify-content: flex-end;
}

.profile-order-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.7rem;
    background: var(--cs-navy, #0f172a);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-order-card__cta:hover {
    background: var(--cs-accent, #f97316);
    color: #fff;
}

.profile-order-card__cta--secondary {
    background: #fff;
    color: var(--cs-accent-dark, #ea580c);
    border: 1px solid color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent);
}

.profile-order-card__cta--secondary:hover {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
    border-color: var(--cs-accent, #f97316);
}

.profile-order-card__cta--disabled {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.profile-order-pagination {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cs-border, #e2e8f0);
}

.profile-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1rem;
}

.profile-pager__summary {
    margin: 0;
    font-size: 0.82rem;
    color: var(--cs-text-muted, #64748b);
    line-height: 1.5;
}

.profile-pager__summary strong {
    color: var(--cs-navy, #0f172a);
    font-weight: 800;
}

.profile-pager__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-order-pagination .pagination {
    margin: 0;
}

.profile-order-pagination .page-item {
    margin: 0;
}

.profile-order-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 0.7rem !important;
    border: 1px solid var(--cs-border, #e2e8f0) !important;
    background: #fff !important;
    color: var(--cs-navy, #0f172a) !important;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: none !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.profile-order-pagination .page-item.active .page-link,
.profile-order-pagination .page-item.active .page-link:hover,
.profile-order-pagination .page-item.active .page-link:focus {
    background: var(--cs-accent, #f97316) !important;
    border-color: var(--cs-accent, #f97316) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px var(--cs-accent-glow, rgba(249, 115, 22, 0.18)) !important;
}

.profile-order-pagination .page-link:hover,
.profile-order-pagination .page-link:focus {
    background: var(--cs-accent-light, #fff7ed) !important;
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 40%, transparent) !important;
    color: var(--cs-accent-dark, #ea580c) !important;
}

.profile-order-pagination .page-item.disabled .page-link,
.profile-order-pagination .page-item.disabled .page-link:hover {
    background: var(--cs-body-bg, #f8fafc) !important;
    border-color: var(--cs-border, #e2e8f0) !important;
    color: #94a3b8 !important;
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .profile-pager {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-pager__summary {
        text-align: center;
    }

    .profile-pager__pages {
        justify-content: center;
    }
}

.profile-wallet-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.profile-wallet-stat {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: 0.95rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: #fff;
}

.profile-wallet-stat--balance {
    background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%);
}

.profile-wallet-stat--points {
    background: linear-gradient(135deg, var(--cs-accent-light, #fff7ed) 0%, #fff 55%);
}

.profile-wallet-stat__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.profile-wallet-stat--balance .profile-wallet-stat__icon {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.profile-wallet-stat--points .profile-wallet-stat__icon {
    background: color-mix(in srgb, var(--cs-accent, #f97316) 14%, transparent);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-wallet-stat__label {
    margin: 0;
    font-size: 0.82rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 700;
}

.profile-wallet-stat__value {
    margin: 0.25rem 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
    line-height: 1.3;
}

.profile-wallet-stat__value small {
    font-size: 0.78rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 700;
}

.profile-wallet-stat__hint {
    margin: 0;
    font-size: 0.76rem;
    color: var(--cs-text-muted, #64748b);
    line-height: 1.55;
}

.profile-wallet-ledger {
    margin-top: 0.35rem;
}

.profile-wallet-ledger__head {
    margin: 0 0 0.85rem;
}

.profile-wallet-ledger__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
}

.profile-wallet-ledger__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-wallet-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}

.profile-wallet-panel {
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.05rem 1.1rem;
    min-height: 12rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.profile-wallet-panel--money {
    background:
        linear-gradient(165deg, rgba(16, 185, 129, 0.06), transparent 42%),
        #fff;
}

.profile-wallet-panel--points {
    background:
        linear-gradient(165deg, color-mix(in srgb, var(--cs-accent, #f97316) 8%, transparent), transparent 42%),
        #fff;
}

.profile-wallet-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--cs-border, #e2e8f0);
}

.profile-wallet-panel__intro {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.profile-wallet-panel__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.profile-wallet-panel--money .profile-wallet-panel__icon {
    background: rgba(16, 185, 129, 0.14);
    color: #059669;
}

.profile-wallet-panel--points .profile-wallet-panel__icon {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-wallet-panel__intro h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
}

.profile-wallet-panel__intro p {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-wallet-panel__count {
    flex-shrink: 0;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: var(--cs-body-bg, #f8fafc);
    border: 1px solid var(--cs-border, #e2e8f0);
    font-size: 0.72rem;
    color: var(--cs-navy, #0f172a);
    font-weight: 800;
}

.profile-wallet-tx {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.profile-wallet-tx--compact {
    margin-top: 1rem;
}

.profile-wallet-tx__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: 0.8rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-wallet-tx__item:hover {
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 28%, transparent);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.profile-wallet-tx--compact .profile-wallet-tx__item {
    grid-template-columns: auto minmax(0, 1fr);
}

.profile-wallet-tx__glyph {
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.78rem;
}

.profile-wallet-tx__glyph--credit,
.profile-wallet-tx__glyph--points {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.profile-wallet-tx__glyph--debit {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.profile-wallet-tx__main {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.profile-wallet-tx__type {
    display: inline-flex;
    width: fit-content;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.profile-wallet-tx__type--credit,
.profile-wallet-tx__type--points {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.profile-wallet-tx__type--debit {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.profile-wallet-tx__desc {
    font-size: 0.84rem;
    color: var(--cs-navy, #0f172a);
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-wallet-tx__main time {
    font-size: 0.74rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-wallet-tx__amount {
    flex-shrink: 0;
    font-size: 0.92rem;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.profile-wallet-tx__amount small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--cs-text-muted, #64748b);
    text-align: left;
}

.profile-wallet-tx__amount.is-credit { color: #059669; }
.profile-wallet-tx__amount.is-debit { color: #dc2626; }

.profile-wallet-topup {
    margin: 0 0 1.25rem;
    padding: 1.1rem 1.15rem;
    border-radius: 1rem;
    border: 1px solid var(--cs-accent-glow, rgba(249, 115, 22, 0.18));
    background: linear-gradient(135deg, color-mix(in srgb, var(--cs-accent, #f97316) 6%, transparent), rgba(255, 255, 255, 0.9));
}

.profile-wallet-topup__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-wallet-topup__head p {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    line-height: 1.7;
    color: #64748b;
}

.profile-wallet-convert__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-wallet-topup__fields {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.profile-wallet-topup__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.profile-wallet-topup__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 0.7rem;
    padding: 0.55rem 1rem;
    background: var(--cs-accent, #f97316);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 12px var(--cs-accent-glow, rgba(249, 115, 22, 0.18));
}

.profile-wallet-topup__submit:hover {
    background: var(--cs-accent-dark, #ea580c);
}

.profile-wallet-topup__empty {
    text-align: center;
    padding: 0.75rem 0.25rem 0.35rem;
    color: #64748b;
    font-size: 0.86rem;
}

.profile-wallet-topup__empty i {
    display: block;
    margin-bottom: 0.4rem;
    opacity: 0.7;
}

.profile-wallet-tx__balance {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

.profile-wallet-empty {
    text-align: center;
    padding: 1.75rem 0.9rem;
    border-radius: 0.85rem;
    border: 1px dashed var(--cs-border, #e2e8f0);
    background: var(--cs-body-bg, #f8fafc);
    color: var(--cs-text-muted, #64748b);
}

.profile-wallet-empty i {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
    color: var(--cs-accent, #f97316);
    opacity: 0.85;
}

.profile-wallet-empty p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.65;
}

@media (max-width: 991.98px) {
    .profile-wallet-summary,
    .profile-wallet-columns,
    .profile-orders-overview,
    .profile-order-card__stats,
    .profile-wallet-topup__fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .profile-wallet-tx__item {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .profile-wallet-tx__amount {
        grid-column: 2;
        text-align: right;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {
    .profile-order-card__actions {
        justify-content: stretch;
    }

    .profile-order-card__cta,
    .profile-order-card__cta--disabled {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Addresses & Tickets ---------- */


.profile-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-address-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 0.95rem;
    padding: 1rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.profile-address-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
    flex-shrink: 0;
}

.profile-address-card__body {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.45rem;
}

.profile-address-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
}

.profile-address-card__title small {
    font-size: 0.78rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 700;
}

.profile-address-card__line {
    margin: 0;
    font-size: 0.86rem;
    color: var(--cs-text-main, #1e293b);
    line-height: 1.65;
}

.profile-address-card__meta {
    margin: 0.15rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.profile-address-card__meta > div {
    padding: 0.4rem 0.5rem;
    border-radius: 0.6rem;
    background: var(--cs-body-bg, #f8fafc);
}

.profile-address-card__meta dt {
    margin: 0;
    font-size: 0.68rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-address-card__meta dd {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cs-navy, #0f172a);
    word-break: break-word;
}

.profile-address-card__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.profile-address-card__cta {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.48rem 0.7rem;
    border-radius: 0.65rem;
    border: 0;
    background: var(--cs-navy, #0f172a);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-address-card__cta:hover {
    background: var(--cs-accent, #f97316);
}

.profile-address-card__remove {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: var(--cs-red-light, #fef2f2);
    color: var(--cs-red, #ef4444);
}

.profile-address-card__remove:hover {
    background: var(--cs-red, #ef4444);
    color: #fff;
}

.profile-ticket-list {
    display: grid;
    gap: 0.85rem;
}

.profile-ticket-card {
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 0.95rem;
    padding: 1rem 1.05rem;
    background: #fff;
    display: grid;
    gap: 0.75rem;
}

.profile-ticket-card__top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.profile-ticket-card__title {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
}

.profile-ticket-card__excerpt {
    margin: 0;
    font-size: 0.84rem;
    color: var(--cs-text-muted, #64748b);
    line-height: 1.6;
}

.profile-ticket-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.profile-ticket-badge--open {
    background: #d1fae5;
    color: var(--cs-success, #10b981);
}

.profile-ticket-badge--closed {
    background: #e2e8f0;
    color: #475569;
}

.profile-ticket-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.9rem;
    font-size: 0.78rem;
    color: var(--cs-text-muted, #64748b);
    font-weight: 600;
}

.profile-ticket-card__meta i {
    margin-left: 0.25rem;
}

.profile-ticket-card__actions,
.profile-ticket-show-actions,
.profile-ticket-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.profile-ticket-card__actions {
    justify-content: space-between;
}

.profile-ticket-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.85rem;
    border-radius: 0.65rem;
    background: var(--cs-navy, #0f172a);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-ticket-card__cta:hover {
    background: var(--cs-accent, #f97316);
    color: #fff;
}

.profile-ticket-card__toggle {
    border: 1px solid var(--cs-border, #e2e8f0);
    background: var(--cs-body-bg, #f8fafc);
    color: var(--cs-navy, #0f172a);
    border-radius: 0.65rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-ticket-thread {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.profile-ticket-msg {
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--cs-border, #e2e8f0);
}

.profile-ticket-msg--mine {
    background: var(--cs-accent-light, #fff7ed);
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 22%, transparent);
}

.profile-ticket-msg--support {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, 0.22);
}

.profile-ticket-msg__head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.8rem;
}

.profile-ticket-msg__head strong {
    color: var(--cs-navy, #0f172a);
}

.profile-ticket-msg__head time {
    color: var(--cs-text-muted, #64748b);
}

.profile-ticket-msg__body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--cs-text-main, #1e293b);
    white-space: pre-wrap;
}

.profile-ticket-msg__file {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cs-accent-dark, #ea580c);
    text-decoration: none;
}

.profile-ticket-reply {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cs-border, #e2e8f0);
}

.profile-ticket-reply__title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
}

.profile-ticket-reply__submit {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 0.7rem;
    background: var(--cs-accent, #f97316);
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
}

.profile-ticket-reply__submit:hover {
    background: var(--cs-accent-dark, #ea580c);
}

.profile-ticket-closed-note {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 600;
}

.profile-ticket-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.profile-ticket-form__field--full {
    grid-column: 1 / -1;
}

.profile-ticket-form__hint {
    margin: 0.35rem 0 0;
    font-size: 0.76rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-ticket-form__actions {
    margin-top: 1.1rem;
}

@media (max-width: 991.98px) {
    .profile-address-grid,
    .profile-ticket-form__grid,
    .profile-address-card__meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .profile-address-card {
        flex-direction: column;
    }

    .profile-ticket-card__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-ticket-card__cta,
    .profile-ticket-card__toggle {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Account profile ---------- */


.profile-account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
    gap: 1.15rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
    padding: 1.1rem;
    border-radius: 1rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--cs-accent, #f97316) 8%, transparent), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
    animation: profileAccountFade 0.45s ease both;
}

.profile-account-hero__identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-account-avatar-shell {
    flex: 0 0 auto;
    padding: 0.2rem;
    border-radius: 999px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent), rgba(15, 23, 42, 0.08));
}

.profile-account-page .profile-account-avatar {
    width: 88px;
    height: 88px;
    display: block;
}

.profile-account-hero__meta {
    min-width: 0;
}

.profile-account-hero__name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
    word-break: break-word;
}

.profile-account-hero__hint {
    margin: 0.3rem 0 0.65rem;
    color: var(--cs-text-muted, #64748b);
    font-size: 0.86rem;
}

.profile-account-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.profile-account-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 600;
}

.profile-account-tag--ok {
    background: rgba(16, 185, 129, 0.12);
    color: var(--cs-success, #10b981);
}

.profile-account-progress {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid var(--cs-border, #e2e8f0);
}

.profile-account-progress__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: var(--cs-navy, #0f172a);
}

.profile-account-progress__track {
    height: 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.profile-account-progress__bar {
    display: block;
    height: 100%;
    width: var(--profile-progress, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cs-accent, #f97316), var(--cs-accent-dark, #ea580c));
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-account-progress__note {
    margin: 0;
    font-size: 0.76rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.profile-account-tile {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: #fff;
    animation: profileAccountRise 0.45s ease both;
    animation-delay: var(--tile-delay, 0ms);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-account-tile:hover {
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transform: translateY(-1px);
}

.profile-account-tile.is-empty {
    background: #f8fafc;
}

.profile-account-tile__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-account-tile.is-empty .profile-account-tile__icon {
    background: #e2e8f0;
    color: #64748b;
}

.profile-account-tile__body {
    min-width: 0;
    flex: 1;
}

.profile-account-tile__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.profile-account-tile__label {
    font-size: 0.78rem;
    color: var(--cs-text-muted, #64748b);
}

.profile-account-tile__badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--cs-success, #10b981);
    background: rgba(16, 185, 129, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.profile-account-tile__badge.is-locked {
    color: var(--cs-accent-dark, #ea580c);
    background: var(--cs-accent-light, #fff7ed);
}

.profile-account-tile.is-locked {
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 28%, transparent);
}

.profile-mobile-frozen {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.65rem;
    border-radius: 0.7rem;
    border: 1px dashed #94a3b8;
    background: #f1f5f9;
    color: #475569;
}

.profile-mobile-frozen__input {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
    font-weight: 700;
    color: #0f172a;
}

.profile-mobile-frozen__badge {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cs-accent-dark, #ea580c);
    background: var(--cs-accent-light, #fff7ed);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

/* ---------- Profile sidebar ---------- */
.profile-sidebar-card {
    background: var(--cs-card-bg, #fff);
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 1rem;
    padding: 0.85rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.profile-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.55rem 0.9rem;
    margin-bottom: 0.55rem;
    border-bottom: 1px solid var(--cs-border, #e2e8f0);
}

.profile-sidebar-user__avatar {
    flex: 0 0 auto;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.profile-sidebar-user__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-sidebar-user__placeholder {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.1rem;
}

.profile-sidebar-user__meta {
    min-width: 0;
}

.profile-sidebar-user__name {
    display: block;
    font-size: 0.9rem;
    color: var(--cs-navy, #0f172a);
    word-break: break-word;
}

.profile-sidebar-user__mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--cs-accent-dark, #ea580c);
    font-weight: 600;
}

.profile-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
}

.profile-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.65rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.profile-sidebar-link:hover {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-sidebar-link.is-active {
    background: var(--cs-accent-light, #fff7ed);
    color: var(--cs-accent-dark, #ea580c);
    box-shadow: inset 3px 0 0 var(--cs-accent, #f97316);
}

.profile-sidebar-link__icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #f1f5f9;
    color: inherit;
    font-size: 0.82rem;
}

.profile-sidebar-link.is-active .profile-sidebar-link__icon {
    background: color-mix(in srgb, var(--cs-accent, #f97316) 18%, white);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-sidebar-link__label {
    flex: 1;
    min-width: 0;
}

.profile-sidebar-link__count,
.profile-sidebar-link__meta {
    flex: 0 0 auto;
    min-width: 1.4rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    background: #e2e8f0;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}

.profile-sidebar-link.is-active .profile-sidebar-link__count,
.profile-sidebar-link.is-active .profile-sidebar-link__meta {
    background: color-mix(in srgb, var(--cs-accent, #f97316) 18%, white);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-sidebar-link__meta {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-sidebar-link--logout {
    margin-top: 0.35rem;
    color: #b91c1c;
}

.profile-sidebar-link--logout:hover {
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
}

.profile-sidebar-link--logout .profile-sidebar-link__icon {
    background: rgba(185, 28, 28, 0.1);
}

@media (max-width: 767.98px) {
    .profile-sidebar-card {
        padding: 0.7rem;
    }

    .profile-sidebar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.45rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .profile-sidebar-user {
        margin-bottom: 0.7rem;
    }

    .profile-sidebar-link {
        flex: 0 0 auto;
        white-space: nowrap;
        padding: 0.6rem 0.75rem;
        border: 1px solid var(--cs-border, #e2e8f0);
    }

    .profile-sidebar-link.is-active {
        box-shadow: none;
        border-color: color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent);
    }

    .profile-sidebar-link--logout {
        margin-top: 0;
    }
}

.profile-account-tile__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cs-navy, #0f172a);
    word-break: break-word;
}

.profile-account-tile__empty {
    font-size: 0.86rem;
    color: #94a3b8;
}

.profile-account-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.15rem;
}

.profile-account-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.6rem;
    border-radius: 0.8rem;
    border: 1px solid var(--cs-border, #e2e8f0);
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.profile-account-shortcut:hover {
    background: var(--cs-accent-light, #fff7ed);
    border-color: color-mix(in srgb, var(--cs-accent, #f97316) 35%, transparent);
    color: var(--cs-accent-dark, #ea580c);
}

.profile-account-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.9rem;
}

.profile-account-edit-grid__full {
    grid-column: 1 / -1;
}

.profile-account-modal .modal-body {
    padding-top: 0.85rem;
}

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

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

@media (max-width: 991.98px) {
    .profile-account-hero {
        grid-template-columns: 1fr;
    }

    .profile-account-grid,
    .profile-account-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .profile-account-hero__identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-account-page .profile-account-avatar {
        width: 76px;
        height: 76px;
    }

    .profile-account-grid,
    .profile-account-shortcuts,
    .profile-account-edit-grid {
        grid-template-columns: 1fr;
    }

    .profile-account-shortcut {
        justify-content: flex-start;
        padding-inline: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-account-hero,
    .profile-account-tile,
    .profile-account-progress__bar {
        animation: none !important;
        transition: none !important;
    }
}

.profile-order-qr {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-order-qr__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-order-qr__head strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.profile-order-qr__head span {
    font-size: 0.78rem;
    color: #64748b;
}

.profile-order-qr__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.75rem;
}

.profile-order-qr__item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.55rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ecfdf5 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.profile-order-qr__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none !important;
    color: #334155 !important;
}

.profile-order-qr__preview:hover,
.profile-order-qr__preview:focus-visible {
    color: var(--cs-accent-dark, #ea580c) !important;
    outline: none;
}

.profile-order-qr__preview img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 0.55rem;
    padding: 0.25rem;
}

.profile-order-qr__preview span {
    font-size: 0.72rem;
    text-align: center;
    line-height: 1.35;
}

.profile-order-qr__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.28rem 0.45rem;
    border-radius: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--cs-accent-dark, #ea580c) !important;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--cs-accent, #f97316) 28%, transparent);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-order-qr__download:hover,
.profile-order-qr__download:focus-visible {
    background: var(--cs-accent-light, #fff7ed);
    border-color: var(--cs-accent, #f97316);
    outline: none;
}
/* ---------- Profile completion (checkout + auth) ---------- */
.profile-complete-checkout .profile-complete-main {
    min-width: 0;
}

.profile-complete-card {
    background: #fff;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 1rem;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.04);
    padding: 1.15rem 1.2rem 1.35rem;
    animation: profileAccountFade 0.4s ease both;
}

.profile-complete-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.profile-complete-card__head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--cs-navy, #0f172a);
}

.profile-complete-card__head p {
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    color: var(--cs-text-muted, #64748b);
    line-height: 1.55;
}

.profile-complete-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.1rem;
}

.profile-complete-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-complete-check.is-done {
    background: rgba(16, 185, 129, 0.12);
    color: var(--cs-success, #10b981);
}

.profile-complete-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
}

.profile-complete-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.profile-complete-field--wide {
    grid-column: 1 / -1;
}

.profile-complete-field label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cs-navy, #0f172a);
}

.profile-complete-field label .req {
    color: var(--cs-red, #ef4444);
}

.profile-complete-field input {
    width: 100%;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    background: #fff;
    color: var(--cs-text-main, #0f172a);
    font-size: 0.92rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-complete-field input:focus {
    outline: none;
    border-color: var(--cs-accent, #f97316);
    box-shadow: 0 0 0 3px var(--cs-accent-glow, rgba(249, 115, 22, 0.18));
}

.profile-complete-field.has-error input {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.profile-complete-field.is-locked input {
    background: #f8fafc;
    color: #475569;
    cursor: default;
}

.profile-complete-hint,
.profile-complete-error {
    font-size: 0.76rem;
    line-height: 1.45;
}

.profile-complete-hint {
    color: var(--cs-text-muted, #64748b);
}

.profile-complete-hint i {
    color: var(--cs-accent, #f97316);
}

.profile-complete-error {
    color: #b91c1c;
    font-weight: 600;
}

.profile-complete-note {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 1.1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: var(--cs-accent-light, #fff7ed);
    border: 1px solid color-mix(in srgb, var(--cs-accent, #f97316) 22%, transparent);
    color: var(--cs-accent-dark, #ea580c);
    font-size: 0.8rem;
    line-height: 1.55;
}

.profile-complete-note i {
    margin-top: 0.15rem;
}

.profile-complete-flash {
    margin-bottom: 1rem;
}

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

    .profile-complete-field--wide {
        grid-column: auto;
    }
}
