/* Techland premium storefront polish - isolated visual overrides. */
:root {
    --tl-surface-0: #05070a;
    --tl-surface-1: #090d12;
    --tl-surface-2: #0e141c;
    --tl-border: rgba(148, 163, 184, 0.18);
    --tl-border-strong: rgba(203, 213, 225, 0.28);
    --tl-gold: #d9b36b;
    --tl-gold-soft: rgba(217, 179, 107, 0.12);
    --tl-green: #79b98c;
    --tl-red: #c9707d;
    --tl-violet: #9c8bd4;
}

/* Hero: cinematic, quiet and readable without constant visual effects. */
.techland-home-hero {
    height: clamp(430px, 45vw, 580px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 1.35rem !important;
    background-color: #040608 !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46), inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

.techland-home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), inset 0 -90px 100px rgba(0, 0, 0, 0.18);
}

.techland-home-hero-video {
    filter: saturate(0.9) contrast(1.04) brightness(0.88);
}

.techland-home-hero-shade {
    background:
        linear-gradient(90deg, rgba(3, 6, 8, 0.96) 0%, rgba(3, 6, 8, 0.8) 34%, rgba(3, 6, 8, 0.2) 68%, rgba(3, 6, 8, 0.34) 100%),
        linear-gradient(0deg, rgba(3, 6, 8, 0.88) 0%, transparent 55%) !important;
}

.techland-home-hero-shade::after {
    animation: none !important;
    opacity: 0.2 !important;
}

.techland-home-hero-content {
    left: clamp(1.35rem, 4vw, 4rem) !important;
    bottom: clamp(1.35rem, 3.5vw, 3.4rem) !important;
    width: min(45rem, 62%) !important;
    z-index: 8;
}

html[dir="rtl"] .techland-home-hero-content {
    left: auto !important;
    right: clamp(1.35rem, 4vw, 4rem) !important;
}

.techland-home-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.85rem;
    margin: 0 0 0.55rem !important;
    padding: 0.35rem 0.7rem;
    color: #f1d39b !important;
    background: rgba(8, 11, 15, 0.72);
    border: 1px solid rgba(217, 179, 107, 0.38);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-size: clamp(0.68rem, 1vw, 0.82rem) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.techland-home-hero-description {
    max-width: 36rem !important;
    margin-top: 0.35rem !important;
    color: #e5e7eb !important;
    font-size: clamp(0.78rem, 1.15vw, 0.98rem) !important;
    line-height: 1.75 !important;
    text-wrap: balance;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.techland-home-hero-actions {
    gap: 0.55rem !important;
    margin-top: 1rem !important;
}

.techland-home-hero-actions button {
    min-height: 44px !important;
    padding: 0.68rem 1rem !important;
    border-radius: 0.72rem !important;
    color: #f8fafc !important;
    background: rgba(12, 16, 22, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 10px 24px rgba(0, 0, 0, 0.24) !important;
    backdrop-filter: blur(12px);
}

.techland-home-hero-actions button:hover {
    transform: translateY(-1px) !important;
    color: #fff !important;
    background: rgba(21, 27, 36, 0.96) !important;
    border-color: rgba(203, 213, 225, 0.48) !important;
}

.techland-home-hero-actions button > i {
    width: 1.65rem !important;
    height: 1.65rem !important;
    flex-basis: 1.65rem !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 0.86rem !important;
}

.techland-home-hero-primary {
    color: #111418 !important;
    background: linear-gradient(180deg, #e1bf7d, #c99d50) !important;
    border-color: rgba(244, 213, 151, 0.72) !important;
}

.techland-home-hero-primary:hover {
    color: #080a0d !important;
    background: linear-gradient(180deg, #e8ca90, #d4aa5c) !important;
}

.techland-home-hero-primary > i { color: #16191e !important; }
.techland-home-hero-secondary { border-color: rgba(201, 112, 125, 0.48) !important; }
.techland-home-hero-secondary > i { color: #df8b97 !important; }
.techland-home-hero-gamepass { border-color: rgba(121, 185, 140, 0.48) !important; }
.techland-home-hero-gamepass > i { color: #8fd0a2 !important; }
.techland-home-hero-tertiary > i { color: #c5ccd6 !important; }
.techland-home-hero-scroll { display: none !important; }

/* Home rails: one consistent visual language across every section. */
#home-product-rails {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: clamp(1.45rem, 3vw, 2.4rem) !important;
}

#home-product-rails > section[id^="home-rail-section-"] {
    --rail-accent: var(--tl-gold);
    --rail-soft: var(--tl-gold-soft);
    position: relative;
    margin: 0 !important;
    padding: 0 0 0.35rem !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#home-rail-section-subscriptions,
#home-rail-section-gamepass { --rail-accent: var(--tl-green) !important; --rail-soft: rgba(121, 185, 140, 0.1) !important; }
#home-rail-section-discounts,
#home-rail-section-ending { --rail-accent: var(--tl-red) !important; --rail-soft: rgba(201, 112, 125, 0.1) !important; }
#home-rail-section-preorders { --rail-accent: var(--tl-violet) !important; --rail-soft: rgba(156, 139, 212, 0.1) !important; }
#home-rail-section-collections { --rail-accent: #b8c7dc !important; --rail-soft: rgba(184, 199, 220, 0.1) !important; }

#home-product-rails > section[id^="home-rail-section-"]::before {
    content: "";
    position: absolute;
    top: 3rem;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rail-accent) 35%, transparent), transparent);
    opacity: 0.65;
    pointer-events: none;
}

#home-product-rails > section[id^="home-rail-section-"] > div:first-child {
    min-height: 3.15rem;
    margin-bottom: 0.75rem !important;
    padding-inline: 0.1rem;
}

#home-product-rails > section[id^="home-rail-section-"] > div:first-child > div:first-child > span:first-child {
    width: 2.35rem !important;
    height: 2.35rem !important;
    color: var(--rail-accent) !important;
    background: var(--rail-soft) !important;
    border: 1px solid color-mix(in srgb, var(--rail-accent) 34%, transparent);
    border-radius: 0.72rem !important;
    box-shadow: none !important;
}

#home-product-rails > section[id^="home-rail-section-"] h3 {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem) !important;
    letter-spacing: 0 !important;
}

#home-product-rails > section[id^="home-rail-section-"] > div:first-child > div:last-child > button {
    border-radius: 0.68rem !important;
    box-shadow: none !important;
}

#home-product-rails > section[id^="home-rail-section-"] > div:first-child > div:last-child > button:not(:last-child) {
    color: #cbd5e1 !important;
    background: #0b1017 !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
}

#home-product-rails > section[id^="home-rail-section-"] > div:first-child > div:last-child > button:last-child {
    color: #e8edf4 !important;
    background: #111720 !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
}

#home-product-rails > section[id^="home-rail-section-"] > div:first-child > div:last-child > button:last-child:hover {
    color: #fff !important;
    border-color: color-mix(in srgb, var(--rail-accent) 55%, transparent) !important;
}

.home-rail-scroll {
    display: flex !important;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 0.75rem !important;
    padding: 0.15rem 0.08rem 0.55rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    contain: layout paint;
    scrollbar-width: none;
}

.home-rail-loop-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    max-width: none;
}

.home-rail-loop-group {
    gap: 0.75rem !important;
    padding-inline-end: 0.75rem !important;
}

.home-rail-card,
.home-rail-skeleton {
    width: 182px !important;
    flex-basis: 182px !important;
    height: 294px;
    border-radius: 0.9rem !important;
}

.home-rail-card {
    display: flex;
    flex-direction: column;
    color: #f8fafc;
    background: linear-gradient(180deg, #0e141c 0%, #090d12 100%) !important;
    border: 1px solid var(--tl-border) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22) !important;
    transform: translateZ(0);
    animation: tl-premium-card-in 240ms ease-out both;
}

.home-rail-card:hover {
    transform: translateY(-2px) !important;
    border-color: var(--tl-border-strong) !important;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34) !important;
}

.home-rail-media {
    height: 164px !important;
    flex: 0 0 164px;
    background: #080c11 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.home-rail-img-bg {
    opacity: 0.2 !important;
    filter: blur(12px) saturate(0.75) !important;
}

.home-rail-img-wrap {
    inset: 0.45rem !important;
    border-color: rgba(255, 255, 255, 0.07) !important;
    background: rgba(4, 7, 10, 0.4) !important;
}

.home-rail-img-main {
    max-width: 100% !important;
    max-height: 100% !important;
    filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.5)) !important;
}

.home-rail-card > div:last-child {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    padding: 0.72rem 0.78rem 0.78rem !important;
}

.home-rail-card > div:last-child > div:last-child {
    margin-top: auto !important;
}

.home-rail-card h3 {
    min-height: 2.35rem;
    color: #f8fafc !important;
    font-size: 0.78rem !important;
    line-height: 1.38 !important;
}

.home-rail-card .line-through {
    color: #9ca3af !important;
    font-size: 0.62rem !important;
}

.home-rail-card .text-emerald-400 {
    color: #8dd4a4 !important;
}

.home-collection-card {
    display: block !important;
    height: 294px !important;
    background: #090d12 !important;
}

.home-collection-shade {
    background: linear-gradient(to top, rgba(3, 5, 8, 0.99) 0%, rgba(3, 5, 8, 0.72) 36%, rgba(3, 5, 8, 0.05) 72%) !important;
}

.home-collection-arrow {
    color: #e5e7eb !important;
    background: rgba(8, 12, 17, 0.82) !important;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none !important;
    backdrop-filter: blur(8px);
}

/* Catalog cards: restrained badges, stable dimensions and cleaner hierarchy. */
#products-grid {
    gap: clamp(0.75rem, 1.6vw, 1.15rem) !important;
}

#products-grid > article.glass-card {
    background: linear-gradient(180deg, #0e141c 0%, #090d12 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    border-radius: 0.95rem !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateZ(0);
    animation: tl-premium-card-in 220ms ease-out both;
}

#products-grid > article.glass-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(217, 179, 107, 0.42) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32) !important;
}

#products-grid .product-thumb-frame {
    background: radial-gradient(circle at 50% 32%, #18202b 0%, #0b1017 64%, #070a0f 100%) !important;
    border-radius: 0.95rem 0.95rem 0 0 !important;
}

#products-grid .product-thumb-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 68%, rgba(3, 6, 10, 0.38));
}

#products-grid > article.glass-card > div:last-child {
    padding: 0.78rem !important;
}

#products-grid h3 {
    min-height: 2.45em;
    color: #f8fafc !important;
    line-height: 1.38 !important;
}

#products-grid .tl-grid-badge {
    animation: none !important;
    transform: none !important;
    border-radius: 0.48rem !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3) !important;
}

#products-grid .tl-grid-sale-badge {
    color: #fff !important;
    background: rgba(166, 55, 74, 0.94) !important;
    border-color: rgba(232, 133, 149, 0.42) !important;
}

#products-grid .tl-grid-gamepass-badge,
#products-grid .tl-grid-reseller-badge {
    background: rgba(42, 110, 65, 0.94) !important;
    border-color: rgba(121, 185, 140, 0.42) !important;
}

#products-grid .tl-grid-platform-badge {
    background: rgba(5, 8, 12, 0.82) !important;
    border-color: rgba(148, 163, 184, 0.22) !important;
    backdrop-filter: blur(10px);
}

#products-grid button[aria-label] {
    border-radius: 0.7rem !important;
}

/* Product detail: artwork-forward desktop and compact, clear mobile facts. */
#product-details-modal {
    background: rgba(1, 3, 6, 0.9) !important;
    backdrop-filter: blur(16px) !important;
}

#product-details-modal .product-detail-shell {
    max-width: 76rem !important;
    max-height: 92dvh !important;
    color: #f8fafc;
    background: linear-gradient(145deg, #0b1017 0%, #070a0f 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62) !important;
}

#product-details-modal .product-detail-shell > .grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) !important;
}

#product-details-modal #pd-image-stage {
    height: min(82dvh, 760px) !important;
    background: #05080d !important;
    border-inline-end: 1px solid rgba(148, 163, 184, 0.12);
}

#product-details-modal #pd-img-backdrop {
    filter: blur(32px) saturate(0.78) brightness(0.42) !important;
    opacity: 0.62 !important;
}

#product-details-modal #pd-img {
    padding: clamp(0.65rem, 1.4vw, 1.15rem) !important;
}

#product-details-modal .product-detail-content {
    padding: clamp(1.35rem, 2.6vw, 2.35rem) !important;
}

#product-details-modal #pd-name {
    max-width: 32rem;
    margin-bottom: 1rem !important;
    font-size: clamp(1.7rem, 3vw, 2.65rem) !important;
    line-height: 1.12 !important;
    text-wrap: balance;
}

#product-details-modal .product-detail-price-block {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

#product-details-modal .product-detail-facts {
    gap: 0.55rem !important;
}

#product-details-modal .product-detail-facts > div {
    min-height: 4.25rem;
    padding: 0.72rem 0.8rem !important;
    background: rgba(14, 20, 28, 0.86) !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    border-radius: 0.72rem !important;
    box-shadow: none !important;
}

#product-details-modal .product-detail-description {
    background: rgba(7, 10, 15, 0.72) !important;
    border-color: rgba(148, 163, 184, 0.14) !important;
    border-radius: 0.85rem !important;
}

#product-details-modal .product-detail-actions {
    gap: 0.65rem !important;
}

#product-details-modal #pd-btn-cart,
#product-details-modal #pd-btn-buy {
    min-height: 3.25rem;
    border-radius: 0.75rem !important;
    box-shadow: none !important;
}

#product-details-modal #pd-btn-cart {
    color: #e5e7eb !important;
    background: #111822 !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

#product-details-modal #pd-btn-buy {
    color: #111418 !important;
    background: linear-gradient(180deg, #e1bf7d, #c99d50) !important;
    border: 1px solid rgba(244, 213, 151, 0.62) !important;
}

#product-details-modal #pd-discount-watch {
    color: #d9e6f5 !important;
    background: rgba(21, 60, 91, 0.22) !important;
    border-color: rgba(103, 168, 213, 0.34) !important;
}

@keyframes tl-premium-card-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .home-rail-card,
    .home-rail-skeleton {
        width: 202px !important;
        flex-basis: 202px !important;
        height: 310px;
    }

    .home-collection-card { height: 310px !important; }
    .home-rail-media { height: 178px !important; flex-basis: 178px; }
}

@media (max-width: 767px) {
    .techland-home-hero {
        height: clamp(410px, 112vw, 470px) !important;
        border-radius: 1rem !important;
    }

    .techland-home-hero-video {
        object-position: 64% center !important;
    }

    .techland-home-hero-shade {
        background:
            linear-gradient(0deg, rgba(3, 6, 8, 0.98) 0%, rgba(3, 6, 8, 0.78) 42%, rgba(3, 6, 8, 0.08) 77%),
            linear-gradient(90deg, rgba(3, 6, 8, 0.5), transparent 74%) !important;
    }

    .techland-home-hero-content,
    html[dir="rtl"] .techland-home-hero-content {
        left: 0.85rem !important;
        right: 0.85rem !important;
        bottom: 1rem !important;
        width: auto !important;
    }

    .techland-home-hero-eyebrow {
        min-height: 1.6rem;
        margin-bottom: 0.35rem !important;
        padding: 0.28rem 0.58rem;
        font-size: 0.65rem !important;
    }

    .techland-home-hero-description {
        max-width: 27rem !important;
        font-size: 0.71rem !important;
        line-height: 1.6 !important;
    }

    .techland-home-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.4rem !important;
        margin-top: 0.72rem !important;
    }

    .techland-home-hero-actions button {
        min-height: 2.55rem !important;
        padding: 0.52rem 0.42rem !important;
        font-size: 0.65rem !important;
    }

    #home-product-rails {
        gap: 1.35rem !important;
    }

    #home-product-rails > section[id^="home-rail-section-"]::before {
        top: 2.85rem;
    }

    #home-product-rails > section[id^="home-rail-section-"] > div:first-child {
        min-height: 2.9rem;
        margin-bottom: 0.58rem !important;
    }

    #home-product-rails > section[id^="home-rail-section-"] > div:first-child > div:first-child > span:first-child {
        width: 2.15rem !important;
        height: 2.15rem !important;
    }

    .home-rail-card,
    .home-rail-skeleton {
        width: 160px !important;
        flex-basis: 160px !important;
        height: 278px;
    }

    .home-collection-card { height: 278px !important; }
    .home-rail-media { height: 148px !important; flex-basis: 148px; }

    .home-rail-card h3 {
        font-size: 0.72rem !important;
    }

    #products-grid > article.glass-card {
        border-radius: 0.82rem !important;
    }

    #products-grid .product-thumb-frame {
        border-radius: 0.82rem 0.82rem 0 0 !important;
    }

    #products-grid > article.glass-card > div:last-child {
        padding: 0.65rem !important;
    }

    #product-details-modal {
        backdrop-filter: none !important;
    }

    #product-details-modal .product-detail-shell {
        height: 100dvh !important;
        max-height: 100dvh !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    #product-details-modal .product-detail-shell > .grid {
        display: block !important;
    }

    #product-details-modal #pd-image-stage {
        height: clamp(320px, 92vw, 430px) !important;
        border-inline-end: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    }

    #product-details-modal .product-detail-mobile-heading {
        background: linear-gradient(180deg, rgba(6, 9, 13, 0.72), rgba(6, 9, 13, 0.94)) !important;
        border-color: rgba(203, 213, 225, 0.18) !important;
    }

    #product-details-modal .product-detail-content {
        padding: 0.9rem 0.85rem calc(8.7rem + env(safe-area-inset-bottom, 0px)) !important;
    }

    #product-details-modal .product-detail-facts {
        gap: 0.45rem !important;
    }

    #product-details-modal .product-detail-facts > div {
        min-height: 3.9rem !important;
        padding: 0.58rem 0.65rem !important;
    }

    #product-details-modal .product-detail-actions {
        background: rgba(7, 10, 15, 0.98) !important;
        border-color: rgba(148, 163, 184, 0.2) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-rail-card,
    #products-grid > article.glass-card {
        animation: none !important;
        transition: none !important;
    }
}

/* Profile summary: identity, membership and common actions in one compact surface. */
.profile-overview-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 1.45rem);
    border: 1px solid rgba(217, 179, 107, 0.24) !important;
    border-radius: 1.25rem !important;
    background: linear-gradient(135deg, rgba(18, 24, 33, 0.98), rgba(7, 11, 16, 0.98)) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28) !important;
}

.profile-overview-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(11.5rem, auto);
    align-items: center;
    gap: 1rem;
}

.profile-overview-avatar {
    position: relative;
    width: 4.75rem;
    height: 4.75rem;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
    border: 2px solid rgba(217, 179, 107, 0.62);
    border-radius: 1.1rem;
    background: #0b1017;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.profile-overview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-overview-avatar > span {
    position: absolute;
    inset-inline-end: 0.25rem;
    bottom: 0.25rem;
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.45rem;
    color: #111827;
    background: #d9b36b;
    font-size: 0.62rem;
}

.profile-overview-identity { min-width: 0; }
.profile-overview-kicker { margin-bottom: 0.2rem; color: #8f9baa; font-size: 0.66rem; font-weight: 800; }
.profile-overview-identity h2 { overflow: hidden; color: #f8fafc; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.profile-overview-badges { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.48rem; }
.profile-overview-badges > span {
    display: inline-flex;
    min-height: 1.65rem;
    align-items: center;
    gap: 0.32rem;
    padding: 0.28rem 0.55rem;
    border: 1px solid rgba(217, 179, 107, 0.25);
    border-radius: 999px;
    color: #efd7a8;
    background: rgba(217, 179, 107, 0.09);
    font-size: 0.62rem;
    font-weight: 900;
}
.profile-overview-badges > span.hidden { display: none !important; }
.profile-overview-badges #profile-summary-reseller { color: #9be4b0; border-color: rgba(121, 185, 140, 0.32); background: rgba(121, 185, 140, 0.1); }
.profile-overview-badges .profile-overview-id { color: #9ca3af; border-color: rgba(148, 163, 184, 0.2); background: rgba(15, 23, 42, 0.55); }
.profile-overview-id b { color: #e5e7eb; }

.profile-overview-balance {
    min-width: 0;
    padding-inline-start: 1rem;
    border-inline-start: 1px solid rgba(148, 163, 184, 0.16);
    text-align: end;
}
.profile-overview-balance > span { display: flex; align-items: center; justify-content: flex-end; gap: 0.4rem; color: #8f9baa; font-size: 0.64rem; font-weight: 800; }
.profile-overview-balance > strong { display: block; margin: 0.12rem 0 0.45rem; color: #f8fafc; font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 950; line-height: 1.2; }
.profile-overview-balance > button {
    display: inline-flex;
    min-height: 2.3rem;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(121, 185, 140, 0.35);
    border-radius: 0.68rem;
    color: #c9f0d3;
    background: rgba(121, 185, 140, 0.12);
    font-size: 0.66rem;
    font-weight: 900;
}

.profile-utility-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background: rgba(12, 18, 27, 0.82);
}

.profile-utility-icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(125, 211, 252, 0.2);
    border-radius: 0.72rem;
    color: #9bdcf5;
    background: rgba(14, 116, 144, 0.12);
}

.profile-utility-copy { min-width: 0; }
.profile-utility-copy p { color: #f8fafc; font-size: 0.72rem; font-weight: 900; }
.profile-utility-copy span { display: block; overflow: hidden; margin-top: 0.1rem; color: #8f9baa; font-size: 0.62rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
#push-notification-card #push-notification-button {
    display: inline-flex;
    width: auto;
    min-height: 2.35rem;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.78rem;
    border: 1px solid rgba(125, 211, 252, 0.28);
    border-radius: 0.68rem;
    color: #d9f3fc;
    background: rgba(14, 116, 144, 0.14);
    font-size: 0.64rem;
    font-weight: 900;
}

.profile-reseller-tools {
    padding: 1rem;
    border: 1px solid rgba(121, 185, 140, 0.25);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(12, 30, 22, 0.88), rgba(8, 15, 18, 0.94));
}
.profile-reseller-tools.hidden { display: none !important; }
.profile-reseller-tools-heading { display: flex; align-items: center; gap: 0.75rem; }
.profile-reseller-tools-heading > span {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.75rem;
    color: #bce8c8;
    background: rgba(121, 185, 140, 0.14);
}
.profile-reseller-tools-heading h3 { color: #f8fafc; font-size: 0.78rem; font-weight: 950; }
.profile-reseller-tools-heading p { margin-top: 0.12rem; color: #91a69a; font-size: 0.62rem; line-height: 1.45; }
.profile-reseller-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; margin-top: 0.8rem; }
.profile-reseller-actions button {
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem;
    border: 1px solid rgba(121, 185, 140, 0.22);
    border-radius: 0.72rem;
    color: #dcebe0;
    background: rgba(121, 185, 140, 0.08);
    font-size: 0.66rem;
    font-weight: 900;
}

.profile-metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.profile-metrics-grid.is-reseller { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.profile-metric-card {
    display: flex;
    min-width: 0;
    min-height: 5rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 0.9rem;
    background: rgba(12, 18, 27, 0.8);
}
.profile-metric-card.hidden { display: none !important; }
.profile-metric-card > span { display: flex; min-width: 0; align-items: center; gap: 0.42rem; color: #8f9baa; font-size: 0.63rem; font-weight: 850; }
.profile-metric-card > span i { color: #d9b36b; }
.profile-metric-card > strong { overflow: hidden; color: #f8fafc; font-size: clamp(1rem, 2.4vw, 1.35rem); font-weight: 950; line-height: 1.25; text-overflow: ellipsis; }
.profile-metric-reseller { border-color: rgba(121, 185, 140, 0.24); background: rgba(121, 185, 140, 0.07); }
.profile-metric-reseller > span i { color: #8ed19f; }
.profile-metric-reseller > strong { color: #ccefd5; font-size: 0.78rem; white-space: normal; }

.profile-tier-overview {
    padding: 1rem;
    border: 1px solid rgba(217, 179, 107, 0.2);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(17, 23, 32, 0.94), rgba(7, 11, 16, 0.96));
}
.profile-tier-overview.hidden { display: none !important; }
.profile-tier-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.72rem; }
.profile-tier-summary-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border: 1px solid rgba(217, 179, 107, 0.28);
    border-radius: 0.75rem;
    color: #edcc8e;
    background: rgba(217, 179, 107, 0.1);
}
.profile-tier-summary-copy { min-width: 0; }
.profile-tier-summary-copy p { color: #8f9baa; font-size: 0.58rem; font-weight: 800; }
.profile-tier-summary-copy h3 { color: #f8fafc; font-size: 0.85rem; font-weight: 950; }
.profile-tier-summary-copy span { display: block; overflow: hidden; margin-top: 0.08rem; color: #acb5c1; font-size: 0.59rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-tier-summary > strong { color: #edcc8e; font-size: 0.8rem; font-weight: 950; }
.profile-tier-progress { overflow: hidden; height: 0.38rem; margin-top: 0.75rem; border-radius: 999px; background: rgba(148, 163, 184, 0.14); }
.profile-tier-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b78946, #efd39a); }
.profile-tier-details { margin-top: 0.65rem; border-top: 1px solid rgba(148, 163, 184, 0.12); }
.profile-tier-details summary { display: flex; min-height: 2.6rem; align-items: center; justify-content: space-between; gap: 0.7rem; color: #cbd5e1; cursor: pointer; font-size: 0.64rem; font-weight: 900; list-style: none; }
.profile-tier-details summary::-webkit-details-marker { display: none; }
.profile-tier-details summary > span { display: flex; align-items: center; gap: 0.42rem; }
.profile-tier-details[open] summary > i { transform: rotate(180deg); }
.profile-tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; padding-top: 0.25rem; }
.profile-tier-item { padding: 0.72rem; border: 1px solid rgba(148, 163, 184, 0.13); border-radius: 0.75rem; background: rgba(15, 23, 42, 0.48); }
.profile-tier-item.is-current { border-color: rgba(217, 179, 107, 0.38); background: rgba(217, 179, 107, 0.07); }
.profile-tier-item-heading { display: flex; align-items: center; gap: 0.55rem; }
.profile-tier-item-heading > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 0.55rem; color: #edcc8e; background: rgba(217, 179, 107, 0.09); }
.profile-tier-item-heading h4 { color: #f8fafc; font-size: 0.68rem; font-weight: 950; }
.profile-tier-item-heading p,
.profile-tier-item-meta p { color: #8f9baa; font-size: 0.55rem; line-height: 1.45; }
.profile-tier-item-meta { display: grid; gap: 0.18rem; margin-top: 0.5rem; }
.profile-tier-item-meta .is-unlocked { color: #8ed19f; }

.reseller-panel-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}
.reseller-panel-action,
.reseller-panel-export {
    display: flex;
    min-width: 0;
    min-height: 3.3rem;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0.7rem 0.65rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 0.75rem;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.25;
}
.reseller-panel-action.is-primary {
    border-color: rgba(52, 211, 153, 0.38);
    color: #fff;
    background: #059669;
}
.reseller-panel-export {
    width: 100%;
    min-height: 2.9rem;
    margin-top: 0.65rem;
    border-color: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.1);
}

/* Admin-controlled seasonal accents. Structure and interaction stay unchanged. */
html[data-visual-preset="ramadan"] { --tl-gold: #e0c36d; --tl-gold-soft: rgba(224, 195, 109, 0.12); --tl-season-accent: #57b889; }
html[data-visual-preset="new_year"] { --tl-gold: #a9d8ee; --tl-gold-soft: rgba(169, 216, 238, 0.12); --tl-season-accent: #8fb8ec; }
html[data-visual-preset="black_friday"] { --tl-gold: #d7dbe0; --tl-gold-soft: rgba(215, 219, 224, 0.1); --tl-season-accent: #d05a67; }
html[data-visual-preset="xbox_event"] { --tl-gold: #80c995; --tl-gold-soft: rgba(128, 201, 149, 0.12); --tl-season-accent: #68c27f; }
html[data-visual-preset]:not([data-visual-preset="default"]) body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 9998;
    height: 2px;
    background: var(--tl-season-accent, var(--tl-gold));
    pointer-events: none;
}
html[data-visual-preset]:not([data-visual-preset="default"]) .techland-home-hero,
html[data-visual-preset]:not([data-visual-preset="default"]) .profile-overview-card {
    border-color: color-mix(in srgb, var(--tl-season-accent) 46%, transparent) !important;
}
html[data-visual-preset]:not([data-visual-preset="default"]) .techland-home-hero-eyebrow {
    color: var(--tl-season-accent) !important;
}
html[data-visual-preset="ramadan"] .techland-home-hero-shade { background: linear-gradient(90deg, rgba(3, 16, 13, 0.96), rgba(3, 12, 10, 0.72) 42%, rgba(3, 8, 8, 0.2) 72%), linear-gradient(0deg, rgba(3, 12, 10, 0.9), transparent 58%) !important; }
html[data-visual-preset="new_year"] .techland-home-hero-shade { background: linear-gradient(90deg, rgba(5, 12, 22, 0.96), rgba(7, 18, 31, 0.7) 42%, rgba(3, 8, 14, 0.18) 72%), linear-gradient(0deg, rgba(4, 10, 18, 0.9), transparent 58%) !important; }
html[data-visual-preset="black_friday"] .techland-home-hero-shade { background: linear-gradient(90deg, rgba(8, 5, 7, 0.97), rgba(16, 6, 8, 0.72) 42%, rgba(5, 4, 5, 0.18) 72%), linear-gradient(0deg, rgba(10, 5, 7, 0.92), transparent 58%) !important; }
html[data-visual-preset="xbox_event"] .techland-home-hero-shade { background: linear-gradient(90deg, rgba(3, 13, 7, 0.97), rgba(3, 16, 8, 0.72) 42%, rgba(3, 8, 5, 0.16) 72%), linear-gradient(0deg, rgba(3, 12, 6, 0.9), transparent 58%) !important; }

@media (max-width: 767px) {
    .profile-overview-main { grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; }
    .profile-overview-avatar { width: 4rem; height: 4rem; border-radius: 0.9rem; }
    .profile-overview-balance {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.25rem 0.65rem;
        margin-top: 0.25rem;
        padding: 0.72rem 0 0;
        border-inline-start: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
        text-align: start;
    }
    .profile-overview-balance > span { justify-content: flex-start; }
    .profile-overview-balance > strong { margin: 0; font-size: 1.55rem; }
    .profile-overview-balance > button { grid-column: 2; grid-row: 1 / span 2; }
    .profile-utility-card { gap: 0.55rem; padding: 0.68rem !important; }
    .profile-utility-icon { width: 2.2rem; height: 2.2rem; }
    .profile-utility-copy span { max-width: 11rem; }
    #push-notification-card #push-notification-button { width: auto !important; padding: 0.52rem 0.62rem !important; }
    #push-notification-card #push-notification-button span { display: none; }
    .profile-reseller-tools { padding: 0.82rem; }
    .profile-metrics-grid,
    .profile-metrics-grid.is-reseller { gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-metric-card { min-height: 4.35rem; padding: 0.72rem; }
    .profile-metric-card > strong { font-size: 0.98rem; }
    .profile-metric-reseller > strong { font-size: 0.66rem; }
    .profile-tier-overview { padding: 0.82rem; }
    .profile-tier-summary > strong { max-width: 6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .profile-tier-grid { grid-template-columns: 1fr; }
}

