/* Display faces + full locale fallbacks (Hebrew/Arabic/Ru stacks from style.css --font-stack-ui) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Heebo:wght@400;500;600;700;800&family=Noto+Sans+Hebrew:wght@400;500;600;700&family=Cairo:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap");

.account-immersive-page {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    color: #0f1b47;
    font-family: "Outfit", "Inter", var(--font-stack-ui, system-ui, sans-serif);
}

.account-immersive-page .container {
    position: relative;
    z-index: 2;
}

.immersive-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 12%, rgba(95, 117, 255, 0.13), transparent 33%),
        radial-gradient(circle at 87% 18%, rgba(61, 211, 255, 0.11), transparent 32%),
        radial-gradient(circle at 30% 88%, rgba(180, 87, 255, 0.09), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

/* Profile page: richer ambient background (shapes + mesh, no extra DOM) */
.account-immersive-page--profile .immersive-bg {
    background:
        radial-gradient(ellipse 120% 80% at 50% -35%, rgba(99, 102, 241, 0.14), transparent 55%),
        radial-gradient(circle at 92% 72%, rgba(244, 114, 182, 0.08), transparent 38%),
        radial-gradient(circle at 8% 65%, rgba(56, 189, 248, 0.09), transparent 36%),
        radial-gradient(circle at 15% 12%, rgba(95, 117, 255, 0.13), transparent 33%),
        radial-gradient(circle at 87% 18%, rgba(61, 211, 255, 0.11), transparent 32%),
        radial-gradient(circle at 30% 88%, rgba(180, 87, 255, 0.09), transparent 34%),
        linear-gradient(165deg, #fdfdff 0%, #f0f4ff 42%, #faf8ff 100%);
}

.account-immersive-page--profile .immersive-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    background-image:
        radial-gradient(rgba(99, 102, 241, 0.09) 1px, transparent 1px),
        radial-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px);
    background-size: 48px 48px, 24px 24px;
    background-position: 0 0, 12px 18px;
    animation: immersiveMeshDrift 42s linear infinite;
}

.account-immersive-page--profile .immersive-bg::after {
    content: "";
    position: absolute;
    width: clamp(240px, 42vw, 520px);
    height: clamp(240px, 42vw, 520px);
    border-radius: 50%;
    top: 55%;
    left: 72%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(129, 140, 248, 0.12), transparent 68%);
    filter: blur(4px);
    animation: immersiveOrbPulse 14s ease-in-out infinite;
}

@keyframes immersiveMeshDrift {
    0% { background-position: 0 0, 12px 18px; }
    100% { background-position: 48px 48px, 60px 66px; }
}

@keyframes immersiveOrbPulse {
    0%, 100% {
        opacity: 0.65;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.bg-symbol {
    position: absolute;
    color: rgba(67, 90, 225, 0.2);
    filter: drop-shadow(0 8px 18px rgba(27, 41, 102, 0.12));
    animation: floatY 6s ease-in-out infinite;
}

.bg-symbol:nth-child(odd) {
    animation-duration: 8s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.account-hero {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(93, 112, 230, 0.25);
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 255, 0.96));
    box-shadow: 0 14px 30px rgba(26, 42, 103, 0.14);
    color: #12204f;
    overflow: hidden;
    padding: 1.2rem 1.4rem;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.account-hero::before {
    content: "";
    position: absolute;
    inset: -45% auto auto -20%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 110, 255, 0.2), transparent 62%);
    pointer-events: none;
}

.account-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(26, 42, 103, 0.2);
}

.account-hero .badge {
    border: 1px solid rgba(82, 103, 220, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #3347ae;
}

.glass-card {
    border: 1px solid rgba(111, 124, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 35px rgba(18, 28, 65, 0.12);
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(18, 28, 65, 0.16);
}

.metric-card {
    text-align: center;
    padding: 1rem;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.metric-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 28px rgba(18, 28, 65, 0.18);
}

.metric-card .metric-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.7rem;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #4359cd, #7a8cff);
    color: #fff;
    box-shadow: 0 12px 22px rgba(52, 71, 177, 0.25);
}

.metric-card:hover .metric-icon {
    animation: iconPulse 800ms ease;
}

/* Profile stat cards: equal height + gentle idle motion */
.profile-stats-row > [class*="col-"] {
    display: flex;
}

.profile-stats-row .metric-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.profile-stats-row .metric-card .card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes profileMetricFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.profile-stats-row .metric-card--animated:not(:hover) {
    animation: profileMetricFloat 5.5s ease-in-out infinite;
}

.profile-stats-row .col-md-4:nth-child(1) .metric-card--animated:not(:hover) {
    animation-delay: 0s;
}

.profile-stats-row .col-md-4:nth-child(2) .metric-card--animated:not(:hover) {
    animation-delay: 0.45s;
}

.profile-stats-row .col-md-4:nth-child(3) .metric-card--animated:not(:hover) {
    animation-delay: 0.9s;
}

/* Stagger reveal (card is inside column, not direct child of .row) */
.profile-stats-row .col-md-4:nth-child(1) .reveal-up {
    transition-delay: 0.05s;
}

.profile-stats-row .col-md-4:nth-child(2) .reveal-up {
    transition-delay: 0.12s;
}

.profile-stats-row .col-md-4:nth-child(3) .reveal-up {
    transition-delay: 0.2s;
}

.glass-card.metric-card {
    transition:
        transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card.metric-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 22px 48px rgba(49, 67, 170, 0.18);
}

/* Profile main column: stagger larger panels as they scroll in */
.account-immersive-page--profile .col-lg-9 > .card.reveal-up:nth-child(1) {
    transition-delay: 0.02s;
}

.account-immersive-page--profile .col-lg-9 > .card.reveal-up:nth-child(3) {
    transition-delay: 0.1s;
}

.account-immersive-page--profile .col-lg-9 > .card.reveal-up:nth-child(4) {
    transition-delay: 0.16s;
}

.interactive-tilt {
    transition: transform 150ms ease;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Address cards (/addresses): scale on hover instead of 3D tilt — tilt + backdrop-filter caused blurry text */
.address-card-hover {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    transform-origin: center center;
    /* Slightly more opaque = less glass blur when scaling */
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.address-card-hover:hover {
    transform: scale(1.035);
    box-shadow: 0 22px 44px rgba(18, 28, 65, 0.2);
}

@media (prefers-reduced-motion: reduce) {
    .address-card-hover {
        transition: box-shadow 0.2s ease;
    }

    .address-card-hover:hover {
        transform: none;
        box-shadow: 0 20px 38px rgba(18, 28, 65, 0.18);
    }
}

/* Wishlist (/wishlist): CSS grid avoids Bootstrap col + flex min-width overlap bugs */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 1200px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.wishlist-grid__cell {
    min-width: 0;
    display: flex;
}

.wishlist-product-card {
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.wishlist-product-media {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(241, 245, 249, 0.9);
}

.wishlist-product-media__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.wishlist-product-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}

.wishlist-product-meta {
    min-height: 1.35rem;
}

.wishlist-product-meta--empty {
    min-height: 1.35rem;
    margin: 0;
}

@media (max-width: 575.98px) {
    .wishlist-product-title {
        font-size: 0.95rem;
    }
}

.loyalty-points-summary {
    border: 0;
    border-radius: 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 16%, rgba(255, 255, 255, 0.25), transparent 36%),
        linear-gradient(145deg, #3049cc 0%, #566df0 55%, #7086ff 100%);
    box-shadow: 0 18px 36px rgba(40, 60, 180, 0.34);
}

.loyalty-points-summary .card-body {
    padding: 1.25rem 1.15rem;
}

.loyalty-points-summary__eyebrow {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
}

.loyalty-points-summary__value {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-size: clamp(2.1rem, 4.8vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-shadow: 0 6px 16px rgba(18, 30, 104, 0.4);
}

.loyalty-points-summary__sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.loyalty-points-summary__rate {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.96);
    background: rgba(17, 29, 96, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 991.98px) {
    .loyalty-points-summary .card-body {
        padding: 1.1rem 1rem;
    }
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.faq-panel .accordion-button {
    font-weight: 600;
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
}

.faq-panel .accordion-item {
    border-color: rgba(98, 113, 238, 0.2);
}

.account-tooltip-hint {
    color: #6a77c5;
    cursor: help;
}

.profile-side-nav .list-group-item {
    border-radius: 10px;
    margin-bottom: 0.35rem;
    border: 0;
    transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.profile-side-nav .list-group-item:hover {
    transform: translateX(-3px);
    background: rgba(86, 102, 223, 0.08);
    box-shadow: 0 8px 18px rgba(65, 86, 197, 0.12);
}

.profile-side-nav .list-group-item.active {
    background: linear-gradient(120deg, #4055c3, #6376e2);
    color: #fff;
}

.reveal-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 350ms ease, transform 350ms ease;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.account-immersive-page h1,
.account-immersive-page h2,
.account-immersive-page h3,
.account-immersive-page h4,
.account-immersive-page h5,
.account-immersive-page .btn,
.account-immersive-page .badge {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    letter-spacing: 0.01em;
}

.account-immersive-page .btn {
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.account-immersive-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(49, 67, 166, 0.2);
}

.account-immersive-page .table tbody tr {
    transition: transform 140ms ease, background-color 140ms ease;
}

.account-immersive-page .table tbody tr:hover {
    transform: translateX(2px);
    background-color: rgba(88, 108, 232, 0.06);
}

.account-hero-actions {
    align-items: center;
}

.account-hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.52rem 1rem;
    font-weight: 700;
    border: 1px solid transparent;
    overflow: hidden;
}

.account-hero-btn i {
    transition: transform 180ms ease;
}

.account-hero-btn:hover i {
    transform: translateY(-1px) scale(1.1);
}

.account-hero-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #3f56cc, #6b81ff);
    box-shadow: 0 12px 24px rgba(52, 73, 190, 0.28);
}

.account-hero-btn--primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #3348b9, #6076ef);
}

.account-hero-btn--secondary {
    color: #2b3d9c;
    border-color: rgba(69, 88, 195, 0.35);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(49, 67, 166, 0.14);
}

.account-hero-btn--secondary:hover {
    color: #20318a;
    background: rgba(238, 242, 255, 0.95);
}

/* ---------- Orders hub (/orders) — blue gradients + motion ---------- */
.orders-hub .immersive-bg {
    background:
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.22), transparent 38%),
        radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.18), transparent 35%),
        radial-gradient(circle at 42% 92%, rgba(99, 102, 241, 0.14), transparent 38%),
        linear-gradient(180deg, #fbfdff 0%, #f0f7ff 45%, #eef2ff 100%);
}

.orders-hub .bg-symbol {
    color: rgba(37, 99, 235, 0.18);
}

.orders-stats-grid .reveal-up:nth-child(1) { transition-delay: 0.04s; }
.orders-stats-grid .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.orders-stats-grid .reveal-up:nth-child(3) { transition-delay: 0.16s; }
.orders-stats-grid .reveal-up:nth-child(4) { transition-delay: 0.22s; }

.orders-metric {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.22);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.99) 0%, rgba(239, 246, 255, 0.96) 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.1);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.orders-metric::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #0ea5e9);
    opacity: 0.85;
    transform: scaleX(0.35);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.orders-metric:hover::before {
    transform: scaleX(1);
}

.orders-metric:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(37, 99, 235, 0.16);
}

.orders-metric__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.85rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.orders-metric:hover .orders-metric__icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.42);
}

.orders-metric--delivered .orders-metric__icon {
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.32);
}

.orders-metric--pending .orders-metric__icon {
    background: linear-gradient(145deg, #fbbf24 0%, #d97706 100%);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
}

.orders-metric--spent .orders-metric__icon {
    background: linear-gradient(145deg, #06b6d4 0%, #2563eb 100%);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.orders-metric__value {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    color: #1e3a8a;
    letter-spacing: -0.02em;
}

.orders-metric__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
}

.orders-main-card {
    border: 1px solid rgba(59, 130, 246, 0.2);
    /* visible so the filter dropdown is not clipped; body clips list to radius */
    overflow: visible;
    box-shadow: 0 18px 42px rgba(30, 58, 138, 0.12);
}

.orders-main-card.glass-card:hover {
    transform: none;
    box-shadow: 0 18px 42px rgba(30, 58, 138, 0.12);
}

.orders-main-card > .card-body {
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.orders-main-card__header {
    padding: 1rem 1.25rem;
    background: linear-gradient(118deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%, rgba(224, 231, 255, 0.5) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.14);
}

.orders-main-card__title-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.35);
}

.orders-filter-btn {
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 55%, #0891b2 130%);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
    transition: box-shadow 0.22s ease, filter 0.22s ease;
}

.orders-filter-btn:hover {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36);
}

.orders-filter-btn:focus {
    color: #fff;
}

.orders-filter-btn::after {
    border-top-color: rgba(255, 255, 255, 0.9);
}

/* Popper positions with transform; this menu used to disable the old global transform animation */
.dropdown-menu.orders-filter-menu {
    animation: none;
    margin-top: 0.35rem;
    min-width: 11.5rem;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    box-shadow: 0 16px 40px rgba(30, 58, 138, 0.18);
    padding: 0.5rem 0;
}

.dropdown-menu.orders-filter-menu.show {
    animation: orders-filter-menu-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes orders-filter-menu-in {
    from {
        opacity: 0;
        clip-path: inset(0 0 0 100%);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

.dropdown-menu.orders-filter-menu .dropdown-item {
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    transition: background 0.18s ease, padding-inline-start 0.2s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}

.dropdown-menu.orders-filter-menu .dropdown-item:hover,
.dropdown-menu.orders-filter-menu .dropdown-item:focus {
    padding-inline-start: 1.35rem;
}

.orders-row {
    position: relative;
    background: rgba(255, 255, 255, 0.65);
    transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.orders-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #38bdf8, #2563eb, #4f46e5);
    opacity: 0;
    transform: scaleY(0.6);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.orders-row:hover {
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.92) 0%, rgba(255, 255, 255, 0.95) 55%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.orders-row:hover::before {
    opacity: 1;
    transform: scaleY(1);
}

.orders-row .rounded {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transition: transform 0.3s ease;
}

.orders-row:hover .rounded {
    transform: scale(1.05);
}

.orders-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.orders-status-pill--pending-await-bit {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.35), rgba(13, 148, 136, 0.45));
    color: #ecfdf5;
    border: 1px solid rgba(45, 212, 191, 0.5);
}

.orders-status-pill--pending {
    color: #92400e;
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border-color: rgba(217, 119, 6, 0.35);
}

.orders-status-pill--paid {
    color: #fff;
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.orders-status-pill--shipped {
    color: #fff;
    background: linear-gradient(145deg, #06b6d4, #0284c7);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.22);
}

.orders-status-pill--delivered {
    color: #fff;
    background: linear-gradient(145deg, #34d399, #059669);
    border-color: rgba(5, 150, 105, 0.3);
}

.orders-status-pill--cancelled {
    color: #f1f5f9;
    background: linear-gradient(145deg, #64748b, #475569);
    border-color: rgba(71, 85, 105, 0.4);
}

.orders-total-amount {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-size: 1.05rem;
    color: #1d4ed8;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(37, 99, 235, 0.28);
}

.orders-action-btn {
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.38rem 1rem;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}

.orders-action-btn:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(79, 70, 229, 0.32);
}

.orders-progress__track {
    height: 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    overflow: hidden;
}

.orders-progress__bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 45%, #4f46e5 100%);
    background-size: 140% 100%;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
    .orders-progress__bar {
        animation: orders-progress-hue 5s ease-in-out infinite;
    }
}

@keyframes orders-progress-hue {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.orders-pagination .page-link {
    border-radius: 12px;
    margin: 0 0.2rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #1d4ed8;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.orders-pagination .page-link:hover {
    background: rgba(239, 246, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.14);
    color: #1e40af;
}

.orders-pagination .page-item.active .page-link {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.orders-empty__orb {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.25rem;
    border-radius: 28px;
    display: grid;
    place-items: center;
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(145deg, #60a5fa 0%, #2563eb 45%, #312e81 100%);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.35);
    animation: orders-empty-float 4.5s ease-in-out infinite;
}

@keyframes orders-empty-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.orders-empty__title {
    color: #1e3a8a;
    font-weight: 800;
}

.orders-empty__cta {
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0891b2 120%);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.orders-empty__cta:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.orders-hub .faq-panel {
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.55) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .orders-metric::before,
    .orders-metric:hover,
    .orders-metric:hover .orders-metric__icon,
    .orders-row:hover .rounded,
    .orders-progress__bar,
    .orders-empty__orb {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .orders-metric:hover {
        transform: translateY(-2px);
    }

    .page-head--accent-orders::before {
        animation: none !important;
    }
}

/* ---------- Addresses hub (/addresses) ---------- */
.addresses-hub__title {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: -0.02em;
}

.addresses-add-btn {
    border: none;
    color: #fff;
    font-weight: 700;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #0d9488 0%, #2563eb 55%, #6366f1 115%);
    box-shadow: 0 10px 26px rgba(13, 148, 136, 0.28);
    transition: box-shadow 0.22s ease, filter 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.addresses-add-btn:hover {
    color: #fff;
    filter: brightness(1.04);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.32);
    transform: translateY(-2px);
}

.addresses-add-btn__icon {
    display: inline-grid;
    place-items: center;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.addresses-add-btn:hover .addresses-add-btn__icon {
    transform: rotate(90deg) scale(1.08);
}

.address-card {
    position: relative;
    height: 100%;
    border: 1px solid rgba(45, 212, 191, 0.16);
    overflow: hidden;
}

.address-card--is-default {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.14);
}

.address-card--is-default::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #2dd4bf, #2563eb, #6366f1);
    pointer-events: none;
}

.address-badge-default {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}

.address-badge-default i {
    font-size: 0.65rem;
    opacity: 0.95;
}

.address-card__label {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-weight: 700;
    color: #0f172a;
}

.address-card__lines {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #334155;
}

.address-card__name {
    font-weight: 700;
    color: #0f172a;
}

.address-card__block,
.address-card__phone {
    display: block;
}

.address-card__phone {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.address-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.address-action-form {
    display: inline-flex;
    margin: 0;
}

.address-action-btn {
    border: none;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 12px;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.address-action-btn__icon {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 8px;
    font-size: 0.78rem;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.address-action-btn:hover .address-action-btn__icon {
    transform: scale(1.12);
}

.address-action-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.address-action-btn--delete:focus-visible {
    outline-color: rgba(220, 38, 38, 0.55);
}

.address-action-btn:active {
    transform: scale(0.97);
}

.address-action-btn--edit {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.address-action-btn--edit:hover {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.32);
    transform: translateY(-2px);
}

.address-action-btn--edit:hover .address-action-btn__icon {
    background: rgba(255, 255, 255, 0.22);
}

.address-action-btn--default {
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.22);
}

.address-action-btn--default:hover {
    color: #fff;
    background: linear-gradient(135deg, #0d9488, #0ea5e9);
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.28);
    transform: translateY(-2px);
}

.address-action-btn--delete {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.22);
}

.address-action-btn--delete:hover {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.35);
    transform: translateY(-2px);
}

.address-action-btn--delete:hover .address-action-btn__icon {
    background: rgba(255, 255, 255, 0.22);
    animation: address-trash-wiggle 0.5s ease;
}

@keyframes address-trash-wiggle {
    0%, 100% { transform: scale(1.12) rotate(0); }
    25% { transform: scale(1.12) rotate(-6deg); }
    75% { transform: scale(1.12) rotate(6deg); }
}

.addresses-empty-hint {
    border-radius: 14px;
    border: 1px dashed rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(239, 246, 255, 0.95));
}

.addresses-faq {
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.addresses-flash {
    border-radius: 12px;
    animation: addresses-flash-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes addresses-flash-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Editor modal */
.address-editor-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2);
}

/* Form wraps .modal-body + .modal-footer; restore scroll so footer + fields stay reachable */
#addAddressModal .address-editor-modal {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, calc(100vh - 2rem));
}

#addAddressModal .address-editor-modal__header {
    flex-shrink: 0;
}

#addAddressModal .address-editor-modal > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#addAddressModal .address-editor-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#addAddressModal .address-editor-modal__footer {
    flex-shrink: 0;
}

.address-editor-modal__header {
    position: relative;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(125deg, rgba(240, 253, 250, 0.97) 0%, rgba(239, 246, 255, 0.98) 48%, rgba(224, 231, 255, 0.55) 100%);
    border-bottom: 1px solid rgba(45, 212, 191, 0.18);
}

.address-editor-modal__head-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding-inline-end: 2.25rem;
}

.address-editor-modal__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(145deg, #0d9488, #2563eb);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
    animation: address-modal-icon-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes address-modal-icon-pop {
    from {
        opacity: 0;
        transform: scale(0.65) rotate(-12deg);
    }
    55% {
        transform: scale(1.06) rotate(4deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.address-editor-modal__title {
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.address-editor-modal__subtitle {
    font-size: 0.88rem;
    color: #64748b;
}

.address-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.18);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.address-modal-close.btn-close {
    background-image: none;
}

.address-modal-close::before {
    content: "×";
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 800;
    color: #1e3a8a;
}

.address-modal-close:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: rgba(30, 64, 175, 0.55);
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 22px rgba(30, 64, 175, 0.24);
}

.address-editor-modal__body {
    padding: 1.35rem 1.35rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(248, 250, 252, 0.85) 100%);
}

.address-editor-modal .modal-field {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.address-editor-modal .modal-field.is-visible {
    opacity: 1;
    transform: none;
}

.address-field-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #475569;
}

.address-field-control {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 0.55rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.address-field-control:hover {
    border-color: rgba(37, 99, 235, 0.35);
}

.address-field-control:focus {
    border-color: rgba(37, 99, 235, 0.65);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.address-default-check {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.address-default-check .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.15em;
}

.address-editor-modal__footer {
    padding: 1rem 1.35rem 1.25rem;
    background: rgba(248, 250, 252, 0.95);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    gap: 0.6rem;
}

.address-cancel-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    color: #475569;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.address-cancel-btn:hover {
    color: #0f172a;
    border-color: rgba(100, 116, 139, 0.55);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.address-cancel-btn__x {
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.address-cancel-btn:hover .address-cancel-btn__x {
    transform: rotate(-180deg);
}

.address-save-btn {
    position: relative;
    font-weight: 700;
    padding: 0.55rem 1.2rem;
    border-radius: 12px;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #0d9488 0%, #2563eb 50%, #4f46e5 110%);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 8.5rem;
    transition: box-shadow 0.22s ease, filter 0.22s ease, transform 0.22s ease;
}

.address-save-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.34);
    transform: translateY(-2px);
}

.address-save-btn__state--busy {
    display: none;
    align-items: center;
    gap: 0.45rem;
}

.address-save-btn__state--idle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.address-save-btn.is-loading .address-save-btn__state--idle {
    display: none;
}

.address-save-btn.is-loading .address-save-btn__state--busy {
    display: inline-flex;
}

.address-save-btn__icons {
    position: relative;
    width: 1.1em;
    height: 1em;
    display: inline-grid;
    place-items: center;
}

.address-save-btn__ic {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.address-save-btn__ic--check {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(-45deg);
}

.address-save-btn:hover:not(:disabled) .address-save-btn__ic--disk {
    opacity: 0;
    transform: translate(-70%, -50%) scale(0.7);
}

.address-save-btn:hover:not(:disabled) .address-save-btn__ic--check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
}

/* Delete modal */
.address-delete-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.22);
}

.address-delete-modal__header {
    padding: 1.2rem 1.25rem 0.5rem;
    background: linear-gradient(165deg, #fff5f5 0%, #ffffff 55%);
}

.address-delete-modal__title-wrap {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding-inline-end: 2rem;
}

.address-delete-modal__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg, #f87171, #dc2626);
    box-shadow: 0 10px 22px rgba(220, 38, 38, 0.32);
    animation: address-delete-icon-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes address-delete-icon-pop {
    0% {
        opacity: 0;
        transform: scale(0.55) translateY(8px);
    }
    65% {
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.address-delete-modal__target {
    color: #0f172a;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.address-delete-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0 1.25rem 1.15rem !important;
}

.address-delete-dismiss {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: #fff;
    color: #334155;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.address-delete-dismiss:hover {
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.address-delete-confirm {
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.address-delete-confirm:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(220, 38, 38, 0.36);
}

.address-delete-confirm:focus-visible {
    outline: 2px solid rgba(220, 38, 38, 0.5);
    outline-offset: 2px;
}

.address-delete-confirm__busy {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.address-delete-confirm__idle {
    display: inline-flex;
    align-items: center;
}

.address-delete-confirm.is-loading .address-delete-confirm__idle {
    display: none;
}

.address-delete-confirm.is-loading .address-delete-confirm__busy {
    display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
    .addresses-add-btn,
    .addresses-add-btn__icon,
    .address-action-btn,
    .address-action-btn__icon,
    .address-modal-close,
    .address-cancel-btn__x,
    .address-save-btn__ic,
    .address-editor-modal .modal-field,
    .address-editor-modal__icon,
    .address-delete-modal__icon,
    .addresses-flash {
        animation: none !important;
        transition-duration: 0.001ms !important;
    }

    .address-editor-modal .modal-field {
        opacity: 1;
        transform: none;
    }

    .addresses-add-btn:hover,
    .address-action-btn:hover,
    .address-save-btn:hover:not(:disabled) {
        transform: none;
    }
}

/* Profile — clickable member tier card + tiers modal */
.profile-member-tier-card {
    cursor: pointer;
}

/* Hover motion shared with .glass-card.metric-card:hover (higher specificity) */

.profile-member-tier-card:focus {
    outline: none;
}

.profile-member-tier-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.45), 0 16px 35px rgba(18, 28, 65, 0.12);
}

.profile-member-tier-card__hint {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    font-weight: 600;
}

.profile-member-tier-card .metric-icon.metric-icon--bronze {
    background: linear-gradient(145deg, #cd7f32, #8b5a2b);
    box-shadow: 0 12px 22px rgba(139, 90, 43, 0.3);
}

.profile-member-tier-card .metric-icon.metric-icon--silver {
    background: linear-gradient(145deg, #94a3b8, #64748b);
    box-shadow: 0 12px 22px rgba(100, 116, 139, 0.32);
}

.profile-member-tier-card .metric-icon.metric-icon--gold {
    background: linear-gradient(145deg, #eab308, #ca8a04);
    box-shadow: 0 12px 22px rgba(202, 138, 4, 0.32);
}

.profile-member-tiers-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.profile-member-tiers-modal__lead {
    font-size: 1rem;
}

.profile-tier-row {
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.65);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.profile-tier-row:last-child {
    margin-bottom: 0;
}

.profile-tier-row--current {
    border-color: rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 0.98));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.profile-tier-row__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.profile-tier-row__badge {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #fff;
}

.profile-tier-row__badge--bronze {
    background: linear-gradient(135deg, #cd7f32, #8b4513);
}

.profile-tier-row__badge--silver {
    background: linear-gradient(135deg, #64748b, #475569);
}

.profile-tier-row__badge--gold {
    background: linear-gradient(135deg, #ca8a04, #a16207);
}

.profile-tier-row__you {
    font-weight: 700;
    font-size: 0.65rem;
}

/* Profile — recent orders (card rows; avoids table + magnetic-button overflow) */
.profile-orders-card .profile-orders-card__body {
    overflow-x: hidden;
}

.profile-orders-card__head {
    background: linear-gradient(125deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.profile-orders-card__sub {
    margin-top: 0.15rem !important;
}

.profile-recent-orders {
    display: flex;
    flex-direction: column;
}

.profile-order-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.9rem 1.2rem;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    transition: background 0.18s ease;
}

.profile-order-row:last-child {
    border-bottom: none;
}

.profile-order-row:hover {
    background: rgba(239, 246, 255, 0.65);
}

.profile-order-row:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: -2px;
    position: relative;
    z-index: 1;
}

.profile-order-row__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.profile-order-row__id {
    font-weight: 800;
    font-family: "Space Grotesk", "Outfit", var(--font-stack-ui, system-ui, sans-serif);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.profile-order-row__date {
    font-size: 0.83rem;
}

.profile-order-row__badge {
    flex: 0 1 auto;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.38em 0.65em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-order-row__meta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-order-row__total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}

.profile-order-row__chev {
    color: #94a3b8;
    font-size: 0.88rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.profile-order-row:hover .profile-order-row__chev {
    color: #3b82f6;
    transform: translateX(3px);
}

@media (max-width: 575.98px) {
    .profile-order-row {
        flex-wrap: wrap;
    }

    .profile-order-row__info {
        order: 1;
        flex: 1 1 auto;
        min-width: 50%;
    }

    .profile-order-row__meta {
        order: 2;
        margin-left: auto;
    }

    .profile-order-row__badge {
        order: 3;
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-immersive-page--profile .immersive-bg::before,
    .account-immersive-page--profile .immersive-bg::after {
        animation: none !important;
    }

    .profile-stats-row .metric-card--animated {
        animation: none !important;
    }

    .glass-card.metric-card:hover {
        transform: none;
    }

    .profile-order-row:hover .profile-order-row__chev {
        transform: none;
    }

    .account-immersive-page--preferences .pref-option-row:hover {
        transform: none;
    }

    .account-immersive-page--preferences .pref-option-row:hover .pref-option-row__icon {
        transform: none;
    }

    .loyalty-rules-list__item:hover,
    .loyalty-reward-card:hover {
        transform: none;
    }
}

/* ------------------------------------------------------------------------- */
/* User preferences (/preferences): section titles + option rows + icons   */
/* ------------------------------------------------------------------------- */

.account-immersive-page--preferences .prefs-card-header-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg, #4f5fe0, #7b8fff);
    box-shadow: 0 8px 18px rgba(67, 89, 205, 0.28);
    font-size: 1rem;
}

.account-immersive-page--preferences .prefs-section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #12204f;
}

.account-immersive-page--preferences .prefs-section-title__icon {
    display: inline-grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 10px;
    color: #4359cd;
    background: rgba(95, 117, 255, 0.12);
    font-size: 0.95rem;
}

.account-immersive-page--preferences .prefs-section-title__text {
    flex: 1 1 auto;
    min-width: 8rem;
}

.account-immersive-page--preferences .pref-option-row {
    display: grid;
    /* icon | copy | switch — in RTL the switch column sits on the opposite side from the icon (no overlap) */
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    margin-bottom: 0.85rem !important;
    border-radius: 14px;
    border: 1px solid rgba(111, 124, 255, 0.18);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.92));
    box-shadow: 0 4px 14px rgba(18, 28, 65, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.account-immersive-page--preferences .pref-option-row:hover {
    transform: translateY(-2px);
    border-color: rgba(95, 117, 255, 0.35);
    box-shadow: 0 12px 28px rgba(26, 42, 103, 0.12);
    background: linear-gradient(165deg, #ffffff, rgba(238, 243, 255, 0.98));
}

.account-immersive-page--preferences .pref-option-row__icon {
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    margin-top: 0.15rem;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #4359cd, #6c7cff);
    box-shadow: 0 10px 22px rgba(52, 71, 177, 0.22);
    font-size: 1.05rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.account-immersive-page--preferences .pref-option-row:hover .pref-option-row__icon {
    transform: scale(1.06) translateY(-1px);
    box-shadow: 0 12px 26px rgba(52, 71, 177, 0.3);
}

.account-immersive-page--preferences .pref-option-row__text {
    min-width: 0;
}

.account-immersive-page--preferences .pref-option-row__text .form-check-label {
    cursor: pointer;
    display: block;
}

.account-immersive-page--preferences .pref-option-row__text .form-text {
    margin-top: 0.35rem;
}

/* Switch-only column: strip Bootstrap float/padding so the toggle stays in its grid cell */
.account-immersive-page--preferences .pref-option-row__switch.form-check.form-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.account-immersive-page--preferences .pref-option-row__switch .form-check-input {
    float: none !important;
    margin: 0 !important;
    width: 2.6em;
    height: 1.35em;
    cursor: pointer;
    margin-top: 0.2rem;
}

/* ------------------------------------------------------------------------- */
/* Loyalty points page                                                       */
/* ------------------------------------------------------------------------- */

.account-immersive-page--loyalty .immersive-bg {
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.12), transparent 32%),
        radial-gradient(circle at 88% 22%, rgba(251, 191, 36, 0.1), transparent 30%),
        radial-gradient(circle at 42% 92%, rgba(99, 102, 241, 0.08), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
}

.loyalty-card-head-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg, #4f5fe0, #7b8fff);
    box-shadow: 0 8px 18px rgba(67, 89, 205, 0.22);
    font-size: 0.95rem;
}

.loyalty-card-head-icon--gold {
    background: linear-gradient(145deg, #d97706, #f59e0b);
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

.loyalty-how-card .card-body {
    padding-top: 1.1rem;
}

.loyalty-rate-pill {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e3a5f;
    background: linear-gradient(120deg, rgba(224, 231, 255, 0.95), rgba(254, 243, 199, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.06);
}

.loyalty-rate-pill i {
    color: #4359cd;
    font-size: 1.05rem;
}

.loyalty-rules-list__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.72rem 0.85rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(111, 124, 255, 0.12);
    background: rgba(255, 255, 255, 0.75);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.loyalty-rules-list__item:last-child {
    margin-bottom: 0;
}

.loyalty-rules-list__item:hover {
    background: rgba(248, 250, 255, 0.98);
    border-color: rgba(99, 102, 241, 0.22);
    transform: translateY(-1px);
}

.loyalty-rules-list__icon {
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, #059669, #34d399);
    font-size: 0.85rem;
    box-shadow: 0 6px 14px rgba(5, 150, 105, 0.22);
}

.loyalty-rules-list__text {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #0f1b47;
}

.loyalty-reward-card {
    border-radius: 16px !important;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.55));
    box-shadow: 0 8px 22px rgba(18, 28, 65, 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.loyalty-reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(18, 28, 65, 0.12) !important;
}

.loyalty-reward-badge {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.45em 0.75em;
    border-radius: 999px;
    background: linear-gradient(145deg, #f59e0b, #fbbf24) !important;
    color: #1a1508 !important;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.loyalty-reward-card__footer {
    border-top: 1px solid rgba(111, 124, 255, 0.1);
}

.loyalty-table-wrap {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.loyalty-history-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #475569;
    background: rgba(241, 245, 255, 0.95);
    border-bottom: 1px solid rgba(111, 124, 255, 0.15);
    white-space: nowrap;
}

.loyalty-history-table tbody td {
    font-size: 0.9rem;
    vertical-align: middle;
}
