/* ==========================================================================
   Growth features: product sets, amazing offers, referral, Instagram story,
   card-to-card. Mobile first, RTL, built on the shop's purple (#651fff).
   Everything is prefixed gx- so it can never collide with main.css.
   ========================================================================== */

:root {
    --gx-primary: #651fff;
    --gx-primary-dark: #4b12d6;
    --gx-primary-soft: #f1ebff;
    --gx-accent: #ff3d6e;
    --gx-success: #12a150;
    --gx-success-soft: #e7f7ee;
    --gx-warning: #b26a00;
    --gx-warning-soft: #fff4e0;
    --gx-danger: #d92d20;
    --gx-danger-soft: #fdecea;
    --gx-ink: #1f2430;
    --gx-muted: #6b7280;
    --gx-line: #ececf1;
    --gx-surface: #ffffff;
    --gx-bg: #f7f7fb;
    --gx-radius: 16px;
    --gx-radius-sm: 10px;
    --gx-shadow: 0 2px 10px rgba(17, 24, 39, .06);
    --gx-shadow-hover: 0 10px 30px rgba(17, 24, 39, .12);
}

.gx-section {
    margin: 24px 0;
}

.gx-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 4px;
}

.gx-section__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gx-ink);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gx-section__title .mdi { color: var(--gx-primary); font-size: 1.4rem; }

.gx-section__sub {
    margin: 4px 0 0;
    font-size: .85rem;
    color: var(--gx-muted);
}

.gx-link {
    color: var(--gx-primary);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.gx-link:hover { color: var(--gx-primary-dark); text-decoration: none; }

/* horizontal strip: scroll-snap on phones, grid from tablets up */
.gx-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 86%);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.gx-strip > * { scroll-snap-align: start; }

@media (min-width: 768px) {
    .gx-strip { grid-auto-columns: minmax(300px, calc(50% - 7px)); }
}

@media (min-width: 1200px) {
    .gx-strip { grid-auto-columns: calc(33.333% - 10px); }
}

.gx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--gx-primary);
    color: #fff !important;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s, transform .1s, box-shadow .2s;
    text-decoration: none !important;
}

.gx-btn:hover { background: var(--gx-primary-dark); box-shadow: 0 6px 18px rgba(101, 31, 255, .3); }
.gx-btn:active { transform: scale(.98); }
.gx-btn[disabled], .gx-btn.is-busy { opacity: .6; cursor: not-allowed; box-shadow: none; }
.gx-btn--block { width: 100%; }
.gx-btn--ghost { background: var(--gx-primary-soft); color: var(--gx-primary) !important; }
.gx-btn--ghost:hover { background: #e4d9ff; box-shadow: none; }
.gx-btn--success { background: var(--gx-success); }
.gx-btn--success:hover { background: #0e8642; box-shadow: none; }
.gx-btn--sm { min-height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }

.gx-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: var(--gx-primary-soft);
    color: var(--gx-primary);
}

.gx-badge--hot { background: var(--gx-accent); color: #fff; }
.gx-badge--success { background: var(--gx-success-soft); color: var(--gx-success); }
.gx-badge--warning { background: var(--gx-warning-soft); color: var(--gx-warning); }
.gx-badge--danger { background: var(--gx-danger-soft); color: var(--gx-danger); }
.gx-badge--muted { background: #f1f1f4; color: var(--gx-muted); }

.gx-card {
    background: var(--gx-surface);
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-radius);
    box-shadow: var(--gx-shadow);
}

.gx-card__body { padding: 18px; }

.gx-price-old { color: var(--gx-muted); text-decoration: line-through; font-size: .85rem; }
.gx-price { color: var(--gx-ink); font-weight: 800; font-size: 1.15rem; }
.gx-price small { font-weight: 500; font-size: .75rem; color: var(--gx-muted); }

/* ---------------------------------------------------------------- bundles */

.gx-bundle {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--gx-surface);
    border: 1px solid var(--gx-line);
    border-radius: var(--gx-radius);
    box-shadow: var(--gx-shadow);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.gx-bundle:hover { box-shadow: var(--gx-shadow-hover); transform: translateY(-2px); }

.gx-bundle__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 12px;
    background: linear-gradient(135deg, #f6f2ff 0%, #fff 70%);
    min-height: 150px;
}

.gx-bundle__cover { width: 100%; height: 170px; object-fit: cover; display: block; }
.gx-bundle__media--cover { padding: 0; }

.gx-bundle__thumb {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--gx-line);
    object-fit: contain;
    padding: 6px;
}

.gx-bundle__plus {
    color: var(--gx-primary);
    font-weight: 900;
    font-size: 1.2rem;
}

.gx-bundle__ribbon {
    position: absolute;
    top: 12px;
    right: 12px;
}

.gx-bundle__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 14px 16px 16px;
}

.gx-bundle__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.6;
}

.gx-bundle__name a { color: var(--gx-ink); }
.gx-bundle__name a:hover { color: var(--gx-primary); text-decoration: none; }

.gx-bundle__desc {
    margin: 0;
    color: var(--gx-muted);
    font-size: .85rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gx-bundle__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.gx-bundle__item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 10px;
    align-items: start;
    font-size: .85rem;
}

.gx-bundle__item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--gx-line);
    background: #fff;
}

.gx-bundle__item-name { color: var(--gx-ink); font-weight: 600; line-height: 1.6; }
.gx-bundle__item-meta { color: var(--gx-muted); font-size: .78rem; }
.gx-bundle__item.is-out .gx-bundle__item-name { color: var(--gx-danger); }

.gx-bundle__select {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.gx-bundle__select select {
    flex: 1 1 120px;
    min-width: 0;
    height: 36px;
    border: 1px solid var(--gx-line);
    border-radius: 10px;
    padding: 0 10px;
    font-size: .8rem;
    background: #fafafe;
    color: var(--gx-ink);
}

.gx-bundle__select select:focus { outline: 2px solid var(--gx-primary-soft); border-color: var(--gx-primary); }
.gx-bundle__select select.is-invalid { border-color: var(--gx-danger); background: var(--gx-danger-soft); }

.gx-bundle__foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--gx-line);
    display: grid;
    gap: 10px;
}

.gx-bundle__prices {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.gx-bundle__save { color: var(--gx-success); font-weight: 700; font-size: .85rem; }

.gx-bundle-hero {
    display: grid;
    gap: 20px;
}

@media (min-width: 992px) {
    .gx-bundle-hero { grid-template-columns: 1.1fr 1fr; align-items: start; }
}

/* ---------------------------------------------------------------- amazing offers */

.gx-offers {
    background: linear-gradient(120deg, #651fff 0%, #8b5cff 55%, #ff3d6e 130%);
    border-radius: 20px;
    padding: 18px 14px 8px;
    color: #fff;
}

.gx-offers .gx-section__title { color: #fff; }
.gx-offers .gx-section__title .mdi { color: #ffd54f; }
.gx-offers .gx-section__sub { color: rgba(255, 255, 255, .85); }
.gx-offers .gx-link { color: #fff; }

.gx-offers .gx-strip { grid-auto-columns: minmax(220px, 70%); }

@media (min-width: 768px) {
    .gx-offers { padding: 22px 20px 10px; }
    .gx-offers .gx-strip { grid-auto-columns: minmax(220px, calc(33.333% - 10px)); }
}

@media (min-width: 1200px) {
    .gx-offers .gx-strip { grid-auto-columns: calc(25% - 11px); }
}

.gx-offer {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--gx-ink);
    border-radius: var(--gx-radius);
    overflow: hidden;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

.gx-offer:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); color: var(--gx-ink); }

.gx-offer__img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fafafe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-offer__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.gx-offer__off {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gx-accent);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 800;
    font-size: .8rem;
}

.gx-offer__body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; }

.gx-offer__name {
    margin: 0;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}

.gx-offer__prices { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; flex-wrap: wrap; }

.gx-timer {
    display: flex;
    gap: 4px;
    direction: ltr;
    justify-content: center;
    margin-top: auto;
    padding-top: 8px;
}

.gx-timer span {
    min-width: 38px;
    padding: 4px 0;
    border-radius: 8px;
    background: var(--gx-primary-soft);
    color: var(--gx-primary);
    text-align: center;
    font-weight: 800;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.gx-timer span small { display: block; font-weight: 500; font-size: .6rem; color: var(--gx-muted); }
.gx-offer.is-ending .gx-timer span { background: var(--gx-danger-soft); color: var(--gx-danger); }

/* ---------------------------------------------------------------- referral */

.gx-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 24px 20px;
    color: #fff;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .18), transparent 40%),
                linear-gradient(135deg, #651fff 0%, #8b5cff 60%, #ff6b8b 120%);
}

.gx-hero h1, .gx-hero h2 { color: #fff; font-weight: 900; font-size: 1.35rem; line-height: 1.8; margin: 0 0 6px; }
.gx-hero p { color: rgba(255, 255, 255, .9); margin: 0; line-height: 1.9; }
.gx-hero__amount { color: #ffd54f; }

.gx-hero__gift {
    position: absolute;
    left: 18px;
    bottom: -10px;
    font-size: 110px;
    opacity: .15;
    line-height: 1;
    pointer-events: none;
}

@media (min-width: 768px) {
    .gx-hero { padding: 32px 30px; }
    .gx-hero h1, .gx-hero h2 { font-size: 1.6rem; }
}

.gx-share {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.gx-share__link {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
    overflow: hidden;
}

.gx-share__link input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 12px 14px;
    direction: ltr;
    font-weight: 700;
    font-size: .9rem;
}

.gx-share__link button {
    border: 0;
    background: #fff;
    color: var(--gx-primary);
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.gx-share__buttons { display: flex; flex-wrap: wrap; gap: 8px; }

.gx-share__buttons a, .gx-share__buttons button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
}

.gx-share__buttons a:hover, .gx-share__buttons button:hover { background: rgba(255, 255, 255, .25); }

.gx-code {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .2);
    letter-spacing: 2px;
    direction: ltr;
}

.gx-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 16px 0;
}

@media (min-width: 768px) {
    .gx-stats { grid-template-columns: repeat(4, 1fr); }
}

.gx-stat {
    background: var(--gx-surface);
    border: 1px solid var(--gx-line);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
}

.gx-stat strong { display: block; font-size: 1.25rem; font-weight: 900; color: var(--gx-ink); }
.gx-stat span { font-size: .8rem; color: var(--gx-muted); }
.gx-stat--accent strong { color: var(--gx-success); }

.gx-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: gxstep;
}

@media (min-width: 768px) {
    .gx-steps { grid-template-columns: repeat(3, 1fr); }
}

.gx-steps li {
    position: relative;
    padding: 16px 16px 16px 16px;
    padding-right: 58px;
    background: var(--gx-bg);
    border-radius: 14px;
    line-height: 1.8;
    font-size: .88rem;
    color: var(--gx-ink);
}

.gx-steps li::before {
    counter-increment: gxstep;
    content: counter(gxstep);
    position: absolute;
    right: 14px;
    top: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gx-primary);
    color: #fff;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gx-steps strong { display: block; }

.gx-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .88rem;
}

.gx-table th, .gx-table td { padding: 12px 10px; border-bottom: 1px solid var(--gx-line); text-align: right; vertical-align: middle; }
.gx-table th { color: var(--gx-muted); font-weight: 600; font-size: .8rem; }
.gx-table tr:last-child td { border-bottom: 0; }

@media (max-width: 575.98px) {
    .gx-table--stack thead { display: none; }
    .gx-table--stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--gx-line); }
    .gx-table--stack td { display: flex; justify-content: space-between; border: 0; padding: 4px 0; }
    .gx-table--stack td::before { content: attr(data-label); color: var(--gx-muted); font-size: .78rem; }
}

.gx-empty {
    text-align: center;
    padding: 28px 12px;
    color: var(--gx-muted);
}

.gx-empty .mdi { font-size: 2.6rem; color: #cfc3ff; display: block; margin-bottom: 6px; }

/* ---------------------------------------------------------------- forms */

.gx-form { display: grid; gap: 14px; }

.gx-form__row { display: grid; gap: 14px; }

@media (min-width: 768px) {
    .gx-form__row--2 { grid-template-columns: 1fr 1fr; }
    .gx-form__row--3 { grid-template-columns: repeat(3, 1fr); }
}

.gx-field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .85rem; color: var(--gx-ink); }
.gx-field small { display: block; margin-top: 4px; color: var(--gx-muted); font-size: .75rem; line-height: 1.7; }

.gx-field input[type=text], .gx-field input[type=number], .gx-field input[type=tel],
.gx-field input[type=time], .gx-field select, .gx-field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--gx-line);
    border-radius: 12px;
    padding: 10px 14px;
    background: #fafafe;
    font-size: .95rem;
    color: var(--gx-ink);
    transition: border-color .2s, background .2s;
}

.gx-field input:focus, .gx-field select:focus, .gx-field textarea:focus {
    outline: 0;
    border-color: var(--gx-primary);
    background: #fff;
    box-shadow: 0 0 0 3px var(--gx-primary-soft);
}

.gx-field .is-ltr { direction: ltr; text-align: left; }

.gx-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 130px;
    padding: 16px;
    border: 2px dashed #d7ccff;
    border-radius: 14px;
    background: #fbf9ff;
    text-align: center;
    color: var(--gx-muted);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.gx-upload:hover, .gx-upload.is-filled { border-color: var(--gx-primary); background: var(--gx-primary-soft); }
.gx-upload .mdi { font-size: 2rem; color: var(--gx-primary); }
.gx-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gx-upload img { max-height: 140px; max-width: 100%; border-radius: 10px; }

.gx-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.8; cursor: pointer; }
.gx-check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--gx-primary); flex: none; }

.gx-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.gx-alert .mdi { font-size: 1.3rem; line-height: 1.3; }
.gx-alert--success { background: var(--gx-success-soft); color: #0b6b35; }
.gx-alert--danger { background: var(--gx-danger-soft); color: #9b1c13; }
.gx-alert--info { background: var(--gx-primary-soft); color: #3d0fa8; }
.gx-alert--warning { background: var(--gx-warning-soft); color: #7a4a00; }

.gx-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gx-rules li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; line-height: 1.8; }
.gx-rules li .mdi { color: var(--gx-success); font-size: 1.15rem; line-height: 1.5; }

/* ---------------------------------------------------------------- card to card */

.gx-bankcard {
    position: relative;
    border-radius: 20px;
    padding: 22px 20px;
    color: #fff;
    background: linear-gradient(135deg, #1f2430 0%, #3b2a7a 60%, #651fff 120%);
    box-shadow: 0 14px 36px rgba(31, 36, 48, .25);
    overflow: hidden;
}

.gx-bankcard::after {
    content: "";
    position: absolute;
    left: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.gx-bankcard__bank { font-weight: 800; opacity: .9; }

.gx-bankcard__number {
    margin: 22px 0 14px;
    direction: ltr;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 576px) {
    .gx-bankcard__number { font-size: 1.6rem; letter-spacing: 4px; }
}

.gx-bankcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.gx-bankcard__holder { font-weight: 700; }

.gx-copy {
    border: 1px solid rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: .8rem;
    cursor: pointer;
}

.gx-copy:hover { background: rgba(255, 255, 255, .26); }

.gx-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--gx-primary-soft);
    margin: 14px 0;
}

.gx-amount strong { font-size: 1.25rem; color: var(--gx-primary); font-weight: 900; }

.gx-countdown-note { font-size: .8rem; color: var(--gx-muted); }

/* ---------------------------------------------------------------- misc */

.gx-cart-bundle {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    padding: 12px !important;
    margin: 8px 0;
    border-radius: 12px;
    background: var(--gx-success-soft);
    color: #0b6b35;
}

.gx-cart-bundle__icon { font-size: 1.4rem; line-height: 1; }
.gx-cart-bundle__text { display: grid; gap: 2px; text-align: right; }
.gx-cart-bundle__text small { color: #2c7a4b; line-height: 1.7; }

.gx-invite-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #651fff, #8b5cff);
    color: #fff;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    flex-wrap: wrap;
}

.gx-invite-bar a { color: #ffd54f; font-weight: 800; }
.gx-invite-bar button { background: transparent; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; line-height: 1; }

.gx-cashback-hint {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    margin-top: 10px;
    border-radius: 12px;
    background: var(--gx-success-soft);
    color: #0b6b35;
    font-size: .85rem;
    font-weight: 600;
}

.gx-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .gx-bundle, .gx-offer, .gx-btn { transition: none; }
    .gx-bundle:hover, .gx-offer:hover { transform: none; }
}

/* section headings of the landing: real h2s that keep the look of the old spans */
.widget .card-header .gx-h {
    display: inline;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.slider-image-wrapper > a { display: block; }

/* ---------------------------------------------------------------- customer club */

.gx-level-card {
    --lvl: #651fff;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 22px 20px;
    color: #fff;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 45%),
                linear-gradient(135deg, var(--lvl) 0%, #1f2430 140%);
}

.gx-level-card__head { display: flex; align-items: center; gap: 14px; }
.gx-level-card__head small { opacity: .85; }
.gx-level-card__head h1 { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 900; }

.gx-level-card__icon {
    width: 56px; height: 56px; flex: none;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px; background: rgba(255, 255, 255, .18);
    font-size: 2rem;
}

.gx-level-card__points { margin-right: auto; text-align: center; }
.gx-level-card__points strong { display: block; font-size: 1.6rem; font-weight: 900; line-height: 1.1; }

.gx-level-card__progress {
    height: 10px; margin: 18px 0 8px;
    border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden;
}

.gx-level-card__progress span { display: block; height: 100%; border-radius: inherit; background: #fff; transition: width .6s ease; }
.gx-level-card__next { margin: 0; font-size: .9rem; opacity: .95; }
.gx-level-card__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .85rem; opacity: .9; }

.gx-levels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.gx-level {
    --lvl: #651fff;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--gx-line);
    border-top: 4px solid var(--lvl);
    background: var(--gx-surface);
}

.gx-level.is-current { box-shadow: 0 8px 24px rgba(17, 24, 39, .12); border-color: var(--lvl); }
.gx-level.is-locked { opacity: .7; }
.gx-level__head { display: flex; align-items: center; gap: 8px; }
.gx-level__head .mdi { color: var(--lvl); font-size: 1.4rem; }
.gx-level__lock { margin-right: auto; color: var(--gx-muted) !important; font-size: 1rem !important; }
.gx-level__rule { display: block; color: var(--gx-muted); margin: 4px 0 8px; }
.gx-level ul { margin: 0; padding-right: 18px; font-size: .82rem; line-height: 1.9; }

/* ---------------------------------------------------------------- wholesale */

.gx-ws { padding: 14px; }
.gx-ws__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.gx-ws__head img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; border: 1px solid var(--gx-line); background: #fff; flex: none; }
.gx-ws__title { flex: 1; min-width: 0; }
.gx-ws__title h2 { margin: 0 0 6px; font-size: .95rem; font-weight: 800; line-height: 1.7; }
.gx-ws__title h2 a { color: var(--gx-ink); }
.gx-ws__tiers { display: flex; flex-wrap: wrap; gap: 4px; }
.gx-ws__sum { text-align: center; font-size: .8rem; color: var(--gx-muted); flex: none; }
.gx-ws__sum strong { color: var(--gx-primary); font-size: 1.1rem; }

.gx-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: .82rem; }
.gx-matrix th { color: var(--gx-muted); font-weight: 600; white-space: nowrap; text-align: center; padding: 4px; }
.gx-matrix tbody th { text-align: right; color: var(--gx-ink); }
.gx-matrix td { text-align: center; vertical-align: top; }
.gx-matrix input { width: 64px; min-height: 38px; text-align: center; border: 1px solid var(--gx-line); border-radius: 10px; background: #fafafe; }
.gx-matrix input:focus { outline: 0; border-color: var(--gx-primary); box-shadow: 0 0 0 3px var(--gx-primary-soft); }
.gx-matrix small { display: block; color: var(--gx-muted); font-size: .65rem; }
.gx-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 6px; border: 1px solid rgba(0, 0, 0, .1); vertical-align: middle; }

.gx-ws-bar {
    position: sticky;
    bottom: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin: 10px 0 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--gx-line);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .15);
}

.gx-ws-bar small { color: var(--gx-muted); }

/* ---------------------------------------------------------------- virtual try-on */

.gx-tryon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #651fff, #ff3d6e);
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(101, 31, 255, .3);
    transition: transform .15s, box-shadow .2s;
}

.gx-tryon-btn small { font-weight: 500; opacity: .9; font-size: .72rem; }
.gx-tryon-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(101, 31, 255, .4); }
.gx-tryon-btn .mdi { font-size: 1.2rem; }

.gx-tryon {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(17, 24, 39, .55);
}

.gx-tryon[hidden] { display: none; }

.gx-tryon__panel {
    width: 100%;
    max-width: 560px;
    max-height: 94vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
    animation: gx-sheet .25s ease;
}

@media (min-width: 768px) {
    .gx-tryon { align-items: center; }
    .gx-tryon__panel { border-radius: 22px; }
}

@keyframes gx-sheet { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.gx-tryon__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--gx-line); position: sticky; top: 0; background: #fff; z-index: 2; }
.gx-tryon__header h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.gx-tryon__header .mdi { color: var(--gx-primary); }
.gx-tryon__close { border: 0; background: #f1f1f4; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.gx-tryon__body { padding: 16px 18px 20px; }
.gx-tryon__center { text-align: center; padding: 20px 0; display: grid; gap: 12px; justify-items: center; }
.gx-tryon__big { font-size: 3rem; color: var(--gx-primary); }

.gx-tryon__intro { display: grid; gap: 14px; }
.gx-tryon__pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.gx-tryon__garment { margin: 0; text-align: center; }
.gx-tryon__garment img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 14px; background: #f7f7fb; border: 1px solid var(--gx-line); }
.gx-tryon__garment figcaption { font-size: .75rem; color: var(--gx-muted); margin-top: 4px; line-height: 1.6; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gx-tryon__plus { font-size: 1.6rem; font-weight: 900; color: var(--gx-primary); }
.gx-tryon__drop { aspect-ratio: 3 / 4; min-height: 0; }
.gx-tryon__drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; max-height: none; }
.gx-upload.is-invalid { border-color: var(--gx-danger); background: var(--gx-danger-soft); }

.gx-tryon__tips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gx-tryon__tips li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--gx-bg); font-size: .75rem; color: var(--gx-ink); }
.gx-tryon__tips .mdi { color: var(--gx-primary); }
.gx-tryon__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.gx-spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--gx-primary-soft); border-top-color: var(--gx-primary); animation: gx-spin .8s linear infinite; }
@keyframes gx-spin { to { transform: rotate(360deg); } }

.gx-tryon__scan { position: relative; width: 200px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #f1ebff, #ffe4ec); }
.gx-tryon__scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(1.05); }
.gx-tryon__scan span {
    position: absolute; left: 0; right: 0; height: 30%;
    background: linear-gradient(180deg, transparent, rgba(101, 31, 255, .45), transparent);
    animation: gx-scan 1.8s ease-in-out infinite;
}
@keyframes gx-scan { 0% { top: -30%; } 100% { top: 100%; } }

.gx-tryon__status { margin: 0; font-weight: 700; color: var(--gx-ink); }
.gx-tryon__bar { width: 220px; height: 6px; border-radius: 999px; background: var(--gx-primary-soft); overflow: hidden; }
.gx-tryon__bar span { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, #651fff, #ff3d6e); transition: width 1s ease; }

.gx-compare { --pos: 50%; position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: #f7f7fb; user-select: none; }
.gx-compare > img, .gx-compare__before img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx-compare__before { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.gx-compare__before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .35); }
.gx-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; direction: ltr; }
.gx-compare__label { position: absolute; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(17, 24, 39, .6); color: #fff; font-size: .72rem; pointer-events: none; }
.gx-compare__label--before { right: 10px; }
.gx-compare__label--after { left: 10px; }
.gx-tryon__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gx-tryon__actions .gx-btn { flex: 1 1 140px; }

@media (prefers-reduced-motion: reduce) {
    .gx-tryon__panel, .gx-tryon__scan span, .gx-spinner { animation: none; }
}
