:root {
    --bg-a: #080326;
    --bg-b: #12093d;
    --panel: #1b1b30;
    --panel-deep: #111122;
    --glass: rgba(255, 255, 255, 0.085);
    --glass-strong: rgba(255, 255, 255, 0.13);
    --line: rgba(255, 255, 255, 0.16);
    --text: #ffffff;
    --muted: #b9b7c8;
    --blue: #4368f5;
    --blue-dark: #253ec7;
    --green: #35b870;
    --red: #f25c6b;
    --yellow: #f7c948;
    --cyan: #65d8ff;
    --shadow: 0 20px 52px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg-a);
}

body {
    margin: 0;
    min-height: 100%;
    font-family: "Hind Siliguri", "Roboto", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(101, 216, 255, 0.16), transparent 26rem),
        radial-gradient(circle at 90% 22%, rgba(242, 92, 107, 0.13), transparent 22rem),
        linear-gradient(180deg, #10084a 0%, #070022 52%, #080326 100%);
    line-height: 1.55;
    overflow-x: hidden;
}

/* ITFair-inspired premium redesign layer - reversible */
.premium-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    gap: 18px;
    text-align: center;
    margin: 18px 0 22px;
    padding: clamp(34px, 8vw, 72px) 18px;
    border-radius: 34px;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 138, 31, 0.2), transparent 24rem),
        radial-gradient(circle at 88% 82%, rgba(101, 216, 255, 0.18), transparent 24rem),
        radial-gradient(circle at 12% 74%, rgba(255, 46, 146, 0.14), transparent 20rem),
        linear-gradient(145deg, rgba(23, 18, 46, 0.96), rgba(12, 10, 28, 0.98)) padding-box,
        linear-gradient(135deg, rgba(255, 138, 31, 0.8), rgba(255, 46, 146, 0.76), rgba(101, 216, 255, 0.78)) border-box;
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34), 0 0 54px rgba(255, 46, 146, 0.13);
}

.premium-hero::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
        radial-gradient(circle at 50% 35%, rgba(255, 138, 31, 0.18), transparent 16rem);
    opacity: 0.85;
}

.premium-hero::after {
    content: "";
    position: absolute;
    width: min(78%, 680px);
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 138, 31, 0.95), rgba(255, 46, 146, 0.82), rgba(101, 216, 255, 0.88), transparent);
    box-shadow: 0 0 22px rgba(255, 138, 31, 0.58);
}

.premium-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    color: #f7d089;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(255, 138, 31, 0.12);
    border: 1px solid rgba(255, 181, 92, 0.22);
}

.premium-hero h2 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(38px, 8vw, 76px);
    line-height: 1.05;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0;
}

.premium-hero h2 span {
    color: #ff9d22;
    text-shadow: 0 0 28px rgba(255, 138, 31, 0.38);
}

.premium-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(18px, 3.4vw, 24px);
    line-height: 1.55;
}

.premium-hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.premium-cta,
.premium-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.premium-cta {
    background: linear-gradient(135deg, #ff8a1f 0%, #ff2e92 58%, #8a4df2 100%);
    box-shadow: 0 20px 42px rgba(255, 46, 146, 0.28), 0 0 34px rgba(255, 138, 31, 0.22);
}

.premium-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.premium-hero.compact {
    padding: clamp(26px, 6vw, 48px) 18px;
}

.premium-hero.compact h2 {
    font-size: clamp(32px, 6.5vw, 56px);
}

.premium-section-pill {
    min-height: 68px;
    border-radius: 999px;
    justify-content: center;
    margin: 4px 0 24px;
}

.premium-section-pill span {
    text-align: center;
    font-size: clamp(22px, 5vw, 32px);
    letter-spacing: 0;
}

.premium-switch {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 999px;
}

.premium-switch a {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
}

.premium-product-list {
    gap: 18px;
}

.catalog-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 138, 31, 0.12), transparent 17rem),
        radial-gradient(circle at 10% 95%, rgba(101, 216, 255, 0.14), transparent 15rem),
        linear-gradient(145deg, rgba(26, 25, 43, 0.98), rgba(17, 15, 34, 0.98)) padding-box,
        linear-gradient(135deg, rgba(101, 216, 255, 0.72), rgba(142, 73, 216, 0.7), rgba(255, 138, 31, 0.55)) border-box;
}

.catalog-product-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
}

.catalog-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.38), 0 0 34px rgba(255, 46, 146, 0.12);
}

.catalog-product-card .product-card-link {
    position: relative;
    display: grid;
    gap: 18px;
    color: #fff;
    padding: 24px;
}

.catalog-product-card .product-head {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    align-items: center;
}

.catalog-product-card .product-thumb,
.catalog-product-card .product-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24), 0 0 28px rgba(101, 216, 255, 0.12);
}

.catalog-product-card h3 {
    margin: 0 0 6px;
    font-size: clamp(30px, 5.6vw, 42px);
    line-height: 1.08;
}

.catalog-product-card p {
    font-size: clamp(18px, 3.6vw, 22px);
    color: rgba(255, 255, 255, 0.78);
}

.catalog-product-card .compact-price-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
}

.catalog-product-card .compact-price-panel > div {
    min-width: 0;
}

.catalog-product-card .compact-price-panel span {
    font-size: clamp(18px, 3.4vw, 22px);
    font-weight: 800;
}

.catalog-product-card .compact-price-panel strong {
    width: fit-content;
    min-width: 108px;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: clamp(17px, 3.5vw, 20px);
    background: linear-gradient(135deg, #6d6cff, #b148f5);
    box-shadow: 0 12px 24px rgba(109, 108, 255, 0.26);
}

.catalog-product-card .compact-price-panel .stock-empty {
    background: linear-gradient(135deg, #ff5d72, #f24f65);
    box-shadow: 0 12px 24px rgba(242, 92, 107, 0.24);
}

.catalog-product-card .compact-price-panel .stock-ok {
    background: linear-gradient(135deg, #35d98b, #37c8a5);
    box-shadow: 0 12px 24px rgba(53, 184, 112, 0.2);
}

.product-detail-layout {
    gap: 20px;
}

.product-detail-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 138, 31, 0.12), transparent 18rem),
        radial-gradient(circle at 10% 90%, rgba(101, 216, 255, 0.13), transparent 16rem),
        linear-gradient(145deg, rgba(28, 27, 45, 0.98), rgba(17, 16, 34, 0.98)) padding-box,
        linear-gradient(135deg, rgba(101, 216, 255, 0.74), rgba(142, 73, 216, 0.68), rgba(255, 138, 31, 0.54)) border-box;
}

.product-detail-card h2 {
    font-size: clamp(38px, 5.8vw, 56px);
    line-height: 1.05;
    letter-spacing: 0;
}

.product-detail-summary {
    color: rgba(255, 255, 255, 0.8);
}

.detail-lines div {
    align-items: flex-start;
}

.detail-price {
    color: #ffce4f;
    text-shadow: 0 0 24px rgba(247, 201, 72, 0.2);
}

.product-detail-layout .product-image-card {
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 138, 31, 0.16), transparent 18rem),
        radial-gradient(circle at 78% 82%, rgba(101, 216, 255, 0.14), transparent 16rem),
        linear-gradient(145deg, rgba(42, 43, 82, 0.78), rgba(21, 17, 47, 0.84)) padding-box,
        linear-gradient(135deg, rgba(255, 138, 31, 0.76), rgba(255, 46, 146, 0.66), rgba(101, 216, 255, 0.7)) border-box;
}

@media (min-width: 900px) {
    .app-shell {
        width: min(100%, 1320px);
    }

    .premium-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .premium-hero {
        margin-top: 12px;
        border-radius: 28px;
        padding: 32px 18px 36px;
    }

    .premium-hero-badge {
        letter-spacing: 2px;
        font-size: 11px;
    }

    .premium-hero-actions {
        width: 100%;
    }

    .premium-cta,
    .premium-ghost {
        width: 100%;
        min-height: 54px;
        font-size: 17px;
    }

    .catalog-product-card {
        border-radius: 24px;
    }

    .catalog-product-card .product-card-link {
        padding: 18px;
        gap: 14px;
    }

    .catalog-product-card .product-head {
        grid-template-columns: 104px 1fr;
        gap: 16px;
    }

    .catalog-product-card .product-thumb,
    .catalog-product-card .product-icon {
        width: 104px;
        height: 104px;
    }

    .catalog-product-card .compact-price-panel {
        gap: 10px;
        padding: 14px;
    }

    .catalog-product-card .compact-price-panel strong {
        min-width: 96px;
    }
}

@media (max-width: 420px) {
    .catalog-product-card .product-head {
        grid-template-columns: 92px 1fr;
    }

    .catalog-product-card .product-thumb,
    .catalog-product-card .product-icon {
        width: 92px;
        height: 92px;
        border-radius: 22px;
    }

    .catalog-product-card h3 {
        font-size: 30px;
    }
}

a {
    color: #55b9ff;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.app-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 24px 22px 42px;
}

.has-bottom-nav .app-shell {
    padding-bottom: 150px;
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.055));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand-card {
    padding: 30px 22px 26px;
    margin-bottom: 26px;
}

.brand-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-logo {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
}

.brand-main h1 {
    margin: 0;
    font-size: clamp(38px, 9vw, 54px);
    line-height: 1.05;
    font-weight: 900;
}

.brand-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.soft-pill,
.wallet-pill,
.select-pill,
.round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    min-height: 54px;
    padding: 0 22px;
    font-size: 20px;
    font-weight: 800;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.wallet-pill {
    min-height: 48px;
    font-size: 18px;
    color: #fff;
}

.wallet-pill i {
    color: var(--yellow);
}

.top-toolbar {
    position: sticky;
    top: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 56px 1fr minmax(96px, auto) 56px;
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin: -24px -22px 24px;
    border-radius: 0 0 28px 28px;
}

.round-btn {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.select-pill {
    border-radius: 14px;
    min-height: 58px;
    padding: 8px 12px;
    flex-direction: column;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.1;
}

.select-pill small {
    max-width: 120px;
    color: #dedce8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
}

.text-only {
    align-items: center;
    font-size: 20px;
}

.ticker {
    display: flex;
    align-items: center;
    min-height: 62px;
    margin-bottom: 30px;
    overflow: hidden;
}

.ticker span {
    display: block;
    width: 100%;
    padding: 0 18px;
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 800;
    white-space: normal;
    text-align: right;
}

.category-grid,
.product-list {
    display: grid;
    gap: 24px;
}

.category-card,
.product-card,
.history-card {
    display: block;
    color: #fff;
    background: rgba(27, 27, 42, 0.95);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 220px;
}

.category-icon,
.product-icon {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(67, 104, 245, 0.25), rgba(53, 184, 112, 0.14));
    color: #fff;
    font-size: 54px;
}

.category-card h2,
.product-card h3,
.history-card h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.16;
    font-weight: 900;
}

.category-card p,
.product-card p,
.footer-card p,
.section-title p,
.history-card p {
    color: #d8d6e4;
    margin: 0;
    font-size: clamp(17px, 4.7vw, 22px);
}

.form-card,
.list-card {
    overflow: hidden;
    margin: 34px auto;
}

.form-card header,
.list-card > header {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.15;
    font-weight: 900;
}

.stack-form {
    display: grid;
    gap: 22px;
    padding: 34px 26px;
}

.stack-form label {
    display: grid;
    gap: 8px;
}

.stack-form label > span,
.field-title {
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
}

.input-dark,
.qty-input {
    width: 100%;
    min-height: 60px;
    color: #fff;
    background: #202034;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 0 20px;
    font-size: 20px;
    outline: none;
}

select.input-dark,
textarea.input-dark {
    padding-top: 14px;
    padding-bottom: 14px;
}

.textarea {
    min-height: 118px;
    resize: vertical;
}

.textarea.tall {
    min-height: 220px;
}

.input-dark:focus,
.qty-input:focus {
    border-color: rgba(67, 104, 245, 0.9);
    box-shadow: 0 0 0 4px rgba(67, 104, 245, 0.18);
}

.password-wrap {
    position: relative;
}

.password-wrap .input-dark {
    padding-right: 76px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    color: #aeb0bf;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
}

.stack-form small {
    color: var(--muted);
    font-size: 14px;
}

.check-line {
    grid-template-columns: 28px 1fr;
    align-items: flex-start;
    color: #d9d7e4;
    font-size: 19px;
}

.check-line input {
    width: 24px;
    height: 24px;
    margin-top: 3px;
}

.primary-btn {
    width: 100%;
    min-height: 62px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    font-size: 21px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(67, 104, 245, 0.24);
    cursor: pointer;
}

.primary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.primary-btn.compact {
    min-height: 52px;
    font-size: 17px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.danger-btn {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    font-size: 17px;
    font-weight: 900;
    padding: 0 18px;
}

.soft-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin-top: 16px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.no-pad {
    padding: 0;
}

.center-text,
.small-text {
    text-align: center;
    color: var(--muted);
    margin: 0;
}

.section-title {
    text-align: center;
    margin: 14px 0 26px;
}

.section-title h2 {
    margin: 0 0 6px;
    font-size: clamp(34px, 8vw, 48px);
}

.product-card {
    display: grid;
    gap: 22px;
}

.product-head {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 22px;
    align-items: center;
}

.product-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.type-pill {
    display: inline-flex;
    margin-top: 10px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(101, 216, 255, 0.12);
    color: #aee7ff;
    border: 1px solid rgba(101, 216, 255, 0.24);
    font-size: 14px;
    font-weight: 900;
}

.product-detail-card {
    margin-top: 26px;
}

.delivery-box {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.delivery-box.inside-card {
    margin: 20px 24px 0;
}

.delivery-box h4 {
    margin: 0;
    font-size: 22px;
}

.delivery-box p {
    color: #d8d6e4;
    font-size: 17px;
}

.delivery-box textarea {
    width: 100%;
    min-height: 240px;
    color: #fff;
    background: #101323;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 16px;
    resize: vertical;
}

.price-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
}

.price-panel div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #dddbea;
    font-size: 19px;
    font-weight: 700;
}

.price-panel i {
    color: var(--green);
    margin-right: auto;
}

.price-panel strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #5a84ff, #8d49d8);
    color: #fff;
}

.price-panel .stock-empty {
    background: var(--red);
}

.price-panel .stock-ok {
    background: var(--green);
}

@media (min-width: 900px) {
    .app-shell {
        width: min(86vw, 1540px);
        padding-top: 38px;
    }

    .brand-card {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 28px;
        min-height: 118px;
        padding: 22px 30px;
        margin: 0 auto 70px;
    }

    .brand-main {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-main h1 {
        font-size: clamp(42px, 3.2vw, 58px);
        white-space: nowrap;
    }

    .brand-actions {
        margin-top: 0;
        justify-content: flex-end;
    }

    .soft-pill,
    .wallet-pill {
        min-height: 62px;
        padding: 0 30px;
        font-size: 21px;
    }

    .ticker {
        width: min(82vw, 1180px);
        margin: -38px auto 58px;
    }

    .category-grid,
    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .category-card,
    .product-card {
        min-height: 330px;
        padding: 38px;
        border-radius: 14px;
    }

    .product-card {
        align-content: start;
    }

    .category-card h2,
    .product-card h3 {
        font-size: clamp(30px, 2.25vw, 42px);
        text-align: center;
    }

    .category-card p,
    .product-card p,
    .section-title p {
        font-size: clamp(19px, 1.35vw, 24px);
    }

    .product-head {
        grid-template-columns: 96px 1fr;
        gap: 28px;
        align-items: center;
    }

    .product-icon,
    .product-thumb,
    .category-icon {
        width: 88px;
        height: 88px;
        border-radius: 10px;
        font-size: 50px;
    }

    .price-panel {
        padding: 24px 28px;
    }

    .primary-btn.link-btn {
        width: auto;
        min-width: 220px;
        justify-self: center;
        padding: 0 26px;
    }

    .section-title {
        margin: -18px 0 40px;
    }

    .section-title h2 {
        font-size: clamp(44px, 4vw, 68px);
    }

    .footer-card {
        width: min(100%, 760px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1220px) {
    .category-grid,
    .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-card {
        grid-template-columns: 118px 1fr;
    }

    .product-card {
        min-height: 365px;
    }
}

.buy-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
}

.qty-input {
    text-align: center;
}

.option-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 12px;
}

.option-tile {
    display: flex !important;
    min-height: 92px;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #202034;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.option-tile span {
    display: grid;
    gap: 3px;
}

.option-tile small {
    color: var(--muted);
}

.option-tile input {
    width: 22px;
    height: 22px;
    accent-color: var(--blue);
}

.option-tile i {
    color: #df4d80;
    font-size: 26px;
}

.coin-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--yellow);
    color: #fff;
    font-weight: 900;
}

.coin-icon.green {
    background: #28b487;
}

.list-card {
    padding-bottom: 26px;
}

.history-card {
    margin: 20px 24px 0;
}

.history-card h3 {
    font-size: clamp(24px, 6vw, 32px);
}

.history-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
    color: #f2f0fa;
    font-size: 17px;
}

.inline-actions {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.bar {
    height: 12px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.history-row strong {
    text-align: right;
}

.status.success,
.status.completed {
    color: var(--green);
}

.status.pending {
    color: var(--yellow);
}

.amount.positive {
    color: var(--green);
}

.amount.negative {
    color: var(--red);
}

.profile-grid {
    display: grid;
    gap: 14px;
    padding: 30px 26px 8px;
}

.profile-grid div {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.profile-grid span,
.refer-box span {
    color: var(--muted);
    font-size: 15px;
}

.profile-grid strong {
    font-size: 20px;
    overflow-wrap: anywhere;
}

.refer-box {
    display: grid;
    gap: 8px;
    padding: 18px 26px 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.admin-tile {
    display: grid;
    gap: 8px;
    min-height: 160px;
    padding: 22px;
    color: #fff;
}

.admin-tile i {
    font-size: 30px;
    color: var(--cyan);
}

.admin-tile strong {
    font-size: 22px;
}

.admin-tile span {
    color: var(--muted);
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-card strong {
    display: block;
    font-size: 36px;
}

.stat-card span {
    color: var(--muted);
    text-transform: capitalize;
}

.alert-card,
.notice-card,
.empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 18px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.alert-card.success {
    border-color: rgba(53, 184, 112, 0.45);
}

.alert-card.success i {
    color: var(--green);
}

.alert-card.error {
    border-color: rgba(242, 92, 107, 0.45);
    background: rgba(242, 92, 107, 0.14);
}

.alert-card.error i {
    color: var(--red);
}

.notice-card {
    display: block;
    color: #eceaf6;
}

.notice-card code {
    color: var(--cyan);
}

.empty-state {
    display: block;
    margin: 22px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 6px;
}

.footer-card {
    margin-top: 50px;
    padding: 34px 28px;
}

.footer-card h2 {
    margin: 0 0 18px;
    font-size: 32px;
}

.footer-card .soft-pill {
    margin-bottom: 24px;
    font-size: 19px;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.support-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 9px 14px;
}

.eps-trust-panel {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(24, 20, 61, 0.82), rgba(10, 8, 35, 0.94));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.eps-trust-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 10px;
    padding: 11px 13px;
}

.eps-trust-copy > span {
    color: #c4b5fd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eps-trust-copy > span i {
    margin-right: 6px;
}

.eps-trust-copy > strong {
    color: #fff;
    font-size: 13px;
}

.eps-trust-copy > small {
    flex-basis: 100%;
    color: rgba(226, 232, 240, 0.68);
    font-size: 11px;
    line-height: 1.4;
}

.eps-method-strip {
    padding: 0;
    border-top: 1px solid rgba(139, 92, 246, 0.18);
    background: #07051f;
}

.eps-method-strip img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.eps-banner-mobile {
    display: none;
}

.footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 28px 0;
}

@media (max-width: 640px) {
    .eps-trust-copy {
        padding: 10px 12px;
    }

    .eps-trust-copy > strong {
        font-size: 12px;
    }

    .eps-method-strip {
        overflow: hidden;
    }

    .eps-method-strip img {
        width: 100%;
        max-width: 100%;
    }

    .eps-banner-full {
        display: none !important;
    }

    .eps-banner-mobile {
        display: grid;
        background: #07051f;
    }

    .eps-banner-mobile > span {
        display: block;
        overflow: hidden;
    }

    .eps-banner-mobile > span + span {
        border-top: 1px solid rgba(139, 92, 246, 0.18);
    }

    .eps-banner-mobile img {
        display: block;
        width: 215.52%;
        max-width: none;
        height: auto;
    }

    .eps-banner-mobile > span:nth-child(2) img {
        width: 186.57%;
        transform: translateX(-46.4%);
    }
}

.floating-call {
    position: fixed;
    right: 18px;
    bottom: 112px;
    z-index: 1010;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #303031;
    border: 8px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 34px rgba(222, 80, 202, 0.55);
    font-size: 25px;
}

.floating-call.no-bottom-nav {
    bottom: 24px;
}

.bottom-nav {
    position: fixed;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    width: min(744px, calc(100% - 16px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 10px 8px;
    border-radius: 24px;
    background: rgba(43, 42, 66, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav a {
    min-width: 0;
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 70px;
    color: #fff;
    border-radius: 18px;
    font-weight: 800;
    font-size: clamp(11px, 3.4vw, 15px);
}

.bottom-nav i {
    font-size: 24px;
}

.bottom-nav a.active {
    background: rgba(255, 255, 255, 0.18);
}

.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1100;
    width: min(100%, 420px);
    transform: translateX(105%);
    transition: transform 180ms ease;
    background: #1b2431;
    box-shadow: -18px 0 42px rgba(0, 0, 0, 0.35);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 92px;
    padding: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-head strong {
    overflow-wrap: anywhere;
    font-size: 20px;
}

.drawer-head button {
    width: 46px;
    height: 46px;
    color: #cbd2dc;
    background: transparent;
    border: 0;
    font-size: 32px;
}

.mobile-drawer a {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 78px;
    padding: 0 28px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-size: 21px;
}

.mobile-drawer a i {
    width: 30px;
    text-align: center;
}

.mobile-drawer a.danger {
    color: #ff5d78;
}

@media (max-width: 430px) {
    .app-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .top-toolbar {
        margin-left: -16px;
        margin-right: -16px;
        grid-template-columns: 52px minmax(120px, 1fr) 92px 52px;
        gap: 8px;
    }

    .select-pill {
        padding-left: 10px;
        padding-right: 10px;
    }

    .category-card,
    .product-head {
        grid-template-columns: 82px 1fr;
        gap: 16px;
    }

    .category-icon,
    .product-icon,
    .product-thumb {
        width: 76px;
        height: 76px;
        font-size: 42px;
    }

    .category-card,
    .product-card,
    .history-card {
        padding: 22px;
    }

    .option-grid {
        grid-template-columns: 1fr;
    }

    .admin-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .brand-main h1 {
        font-size: 38px;
    }
}

@media (max-width: 899px) {
    .app-shell {
        width: 100vw;
        max-width: 100vw;
    }

    .brand-card,
    .ticker,
    .product-card,
    .category-card,
    .form-card,
    .list-card,
    .footer-card {
        width: 100%;
        max-width: calc(100vw - 36px);
    }

    .product-card h3,
    .product-card p,
    .category-card h2,
    .category-card p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

/* Friendly customer refinements */
.category-card,
.product-card,
.history-card,
.form-card,
.list-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(101, 216, 255, 0.26);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
}

.product-card .primary-btn,
.product-detail-card .primary-btn {
    background: linear-gradient(135deg, #24b47e, #4368f5);
}

.input-dark::placeholder,
.qty-input::placeholder {
    color: rgba(223, 224, 238, 0.58);
}

/* Friendly auth screens */
.auth-body {
    background:
        radial-gradient(circle at 10% 12%, rgba(36, 180, 126, 0.2), transparent 28rem),
        radial-gradient(circle at 90% 18%, rgba(67, 104, 245, 0.22), transparent 30rem),
        linear-gradient(135deg, #07131e 0%, #111d3b 50%, #0b1020 100%);
}

.auth-body .app-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    display: grid;
    align-content: center;
    padding-top: 34px;
    padding-bottom: 34px;
}

.auth-body .brand-card,
.auth-body .form-card,
.auth-body .footer-card {
    border-radius: 26px;
}

.auth-body .brand-card {
    padding: 24px;
    margin-bottom: 18px;
}

.auth-body .brand-main h1 {
    font-size: clamp(36px, 10vw, 50px);
}

.auth-body .brand-actions {
    display: none;
}

.auth-body .form-card {
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
    border: 0;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: none;
}

.auth-body .form-card header {
    color: #111827;
    background: transparent;
    padding: 34px 30px 8px;
    text-align: left;
    font-size: clamp(32px, 8vw, 44px);
}

.auth-body .stack-form {
    padding: 22px 30px 34px;
    gap: 18px;
}

.auth-body .stack-form label > span,
.auth-body .field-title {
    color: #374151;
}

.auth-body .input-dark {
    min-height: 58px;
    color: #111827;
    background: #f7f8fb;
    border: 1px solid #d9dde8;
    border-radius: 16px;
    font-size: 18px;
}

.auth-body .input-dark:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.auth-body .toggle-password {
    color: #4b5563;
    background: #ffffff;
    border-color: #d9dde8;
}

.auth-body .check-line,
.auth-body .center-text,
.auth-body .small-text,
.auth-body .stack-form small {
    color: #5b6474;
}

.auth-body .primary-btn {
    min-height: 60px;
    background: linear-gradient(135deg, #13a76f, #2563eb);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.auth-body .footer-card {
    display: none;
}

@media (min-width: 980px) {
    .auth-body .app-shell {
        width: min(92vw, 1120px);
        grid-template-columns: minmax(0, 1fr) minmax(400px, 470px);
        gap: 28px;
        align-items: center;
    }

    .auth-body .brand-card {
        min-height: 440px;
        align-content: center;
        margin: 0;
        padding: 46px;
    }

    .auth-body .brand-main {
        justify-content: center;
    }

    .auth-body .form-card {
        margin: 0;
    }
}

/* Advanced admin panel */
.admin-body {
    min-height: 100vh;
    color: #172033;
    background: #f3f6fb;
    overflow-x: hidden;
}

.admin-body a {
    color: inherit;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: 286px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    color: #fff;
    background: #050608;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 18px 0 44px rgba(15, 23, 42, 0.15);
}

.admin-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 96px;
    padding: 24px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand img {
    width: 44px;
    height: 44px;
}

.admin-brand strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.admin-brand span,
.admin-sidebar-footer span {
    display: block;
    color: #a7adba;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.admin-nav {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 18px 10px;
    overflow-y: auto;
}

.admin-nav a,
.admin-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    color: #e6e9f0;
    font-weight: 800;
}

.admin-nav a i,
.admin-sidebar-footer a i {
    width: 22px;
    text-align: center;
    color: #cfd6e6;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: #181a20;
}

.admin-nav a.active {
    box-shadow: inset 4px 0 #ff4f86;
}

.admin-nav a.active i {
    color: #ff6b9a;
}

.admin-sidebar-footer {
    display: grid;
    gap: 8px;
    padding: 18px 12px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.danger-link {
    color: #ff5e75 !important;
}

.admin-main {
    min-height: 100vh;
    margin-left: 286px;
    padding: 30px;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    margin: -30px -30px 28px;
    padding: 14px 30px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #e6eaf2;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-kicker {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-topbar h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
}

.admin-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 12px;
    color: #172033;
    background: #edf2f8;
}

.admin-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-top-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    color: #243047;
    background: #f3f6fb;
    font-weight: 900;
}

.admin-body .section-title {
    text-align: left;
    margin: 0 0 20px;
}

.admin-body .section-title h2 {
    color: #172033;
    font-size: clamp(28px, 4vw, 42px);
}

.admin-body .section-title p {
    color: #64748b;
    font-size: 17px;
}

.admin-body .glass-card,
.admin-body .form-card,
.admin-body .list-card,
.admin-body .history-card,
.admin-body .stat-card,
.admin-body .admin-tile {
    color: #172033;
    background: #fff;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
}

.admin-body .form-card,
.admin-body .list-card {
    margin: 0 0 24px;
}

.admin-body .form-card header,
.admin-body .list-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 18px 22px;
    color: #172033;
    background: #fff;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    font-size: 20px;
    font-weight: 900;
}

.admin-body .stack-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 22px;
}

.admin-body .stack-form label:has(.textarea),
.admin-body .stack-form label:has(input[type="file"]),
.admin-body .stack-form .check-line,
.admin-body .stack-form .primary-btn,
.admin-body .stack-form .danger-btn,
.admin-body .stack-form .center-text,
.admin-body .stack-form .small-text {
    grid-column: 1 / -1;
}

.admin-body .stack-form label > span,
.admin-body .field-title {
    color: #374151;
    font-size: 14px;
}

.admin-body .input-dark,
.admin-body .qty-input {
    min-height: 46px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dde8;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 15px;
}

.admin-body textarea.input-dark {
    padding-top: 12px;
}

.admin-body .input-dark:focus,
.admin-body .qty-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-body .check-line {
    grid-template-columns: 22px 1fr;
    color: #465166;
    font-size: 15px;
}

.admin-body .primary-btn,
.admin-body .danger-btn {
    width: auto;
    min-height: 44px;
    justify-self: start;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-body .primary-btn {
    background: linear-gradient(135deg, #ff4f86, #ff6b9a);
    box-shadow: 0 10px 20px rgba(255, 79, 134, 0.22);
}

.admin-body .danger-btn {
    background: linear-gradient(135deg, #e11d48, #fb7185);
}

.admin-body .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
}

.admin-body .stat-card {
    min-height: 128px;
    display: grid;
    align-content: center;
    text-align: left;
}

.admin-body .stat-card strong {
    color: #172033;
    font-size: clamp(28px, 3vw, 42px);
}

.admin-body .stat-card span,
.admin-body .admin-tile span,
.admin-body .history-card p {
    color: #64748b;
    font-size: 15px;
}

.admin-body .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-body .admin-tile {
    min-height: 150px;
    padding: 22px;
}

.admin-body .admin-tile i {
    color: #ff4f86;
}

.admin-body .history-card {
    margin: 16px 22px 0;
    padding: 20px;
}

.admin-body .history-card h3 {
    color: #172033;
    font-size: 22px;
}

.admin-body .history-row {
    color: #465166;
    font-size: 15px;
}

.admin-body .history-row strong {
    color: #172033;
}

.admin-body .status,
.admin-body .amount {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.admin-body .status.success,
.admin-body .status.completed,
.admin-body .amount.positive {
    color: #067647;
    background: #dcfce7;
}

.admin-body .status.pending {
    color: #92400e;
    background: #fef3c7;
}

.admin-body .amount.negative {
    color: #b91c1c;
    background: #fee2e2;
}

.admin-body .delivery-box,
.admin-body .profile-grid div {
    background: #f8fafc;
    border-color: #e6eaf2;
}

.admin-body .delivery-box textarea {
    color: #172033;
    background: #fff;
    border-color: #d7dde8;
}

.admin-backdrop {
    display: none;
}

@media (max-width: 1180px) {
    .admin-body .stats-grid,
    .admin-body .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .admin-sidebar {
        transform: translateX(-105%);
        transition: transform 180ms ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-backdrop.open {
        position: fixed;
        inset: 0;
        z-index: 1190;
        display: block;
        border: 0;
        background: rgba(15, 23, 42, 0.48);
    }

    .admin-main {
        margin-left: 0;
        padding: 18px;
    }

    .admin-topbar {
        margin: -18px -18px 20px;
        padding: 12px 18px;
    }

    .admin-menu-btn {
        display: inline-grid;
        place-items: center;
        flex: 0 0 auto;
    }

    .admin-top-actions {
        display: none;
    }

    .admin-body .stack-form,
    .admin-body .stats-grid,
    .admin-body .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-body .history-card {
        margin: 14px;
    }
}

/* Compact storefront refresh */
:root {
    --compact-card: rgba(28, 29, 43, 0.96);
    --compact-card-soft: rgba(255, 255, 255, 0.075);
}

body {
    font-size: 15px;
}

.app-shell {
    width: min(100%, 650px);
    max-width: 100%;
    padding: 18px 18px 36px;
    overflow-x: hidden;
}

.has-bottom-nav .app-shell {
    padding-bottom: 118px;
}

.glass-card {
    border-radius: 18px;
}

.brand-card {
    padding: 20px 18px;
    margin-bottom: 18px;
    max-width: calc(100vw - 36px);
}

.brand-logo {
    width: 48px;
    height: 48px;
}

.brand-main h1 {
    font-size: clamp(28px, 7vw, 40px);
}

.soft-pill,
.wallet-pill,
.select-pill,
.round-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 16px;
}

.wallet-pill {
    min-height: 40px;
    font-size: 15px;
}

.top-toolbar {
    grid-template-columns: 48px 1fr minmax(86px, auto) 48px;
    gap: 8px;
    padding: 10px;
    margin: -18px -18px 18px;
    border-radius: 0 0 20px 20px;
}

.round-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
}

.select-pill {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
}

.select-pill small {
    font-size: 10px;
}

.ticker {
    min-height: 50px;
    margin-bottom: 18px;
    max-width: calc(100vw - 36px);
}

.ticker span {
    font-size: clamp(15px, 4vw, 18px);
    text-align: center;
}

.category-grid,
.product-list {
    min-width: 0;
    max-width: calc(100vw - 36px);
    gap: 14px;
}

.product-card,
.category-card,
.history-card {
    min-width: 0;
    max-width: calc(100vw - 36px);
    background: var(--compact-card);
    border-radius: 14px;
    padding: 18px;
}

.catalog-product-card {
    padding: 0;
    overflow: hidden;
}

.product-card-link {
    min-width: 0;
    display: grid;
    gap: 14px;
    color: #fff;
    padding: 18px;
}

.product-head,
.category-card {
    min-width: 0;
    grid-template-columns: 76px 1fr;
    gap: 14px;
}

.product-head > div,
.category-card > div {
    min-width: 0;
}

.category-icon,
.product-icon,
.product-thumb {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    font-size: 36px;
}

.category-card h2,
.product-card h3,
.history-card h3 {
    margin-bottom: 6px;
    font-size: clamp(22px, 5.6vw, 30px);
}

.product-card p,
.category-card p,
.footer-card p,
.section-title p,
.history-card p {
    font-size: clamp(14px, 3.8vw, 17px);
    line-height: 1.45;
}

.compact-price-panel {
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.055);
    border-radius: 12px;
}

.compact-price-panel div {
    font-size: 15px;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    justify-items: start;
}

.compact-price-panel div > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.price-panel strong {
    min-width: 78px;
    max-width: 100%;
    min-height: 34px;
    padding: 0 12px;
    font-size: 15px;
    white-space: nowrap;
    justify-self: start;
}

.category-strip {
    display: flex;
    gap: 10px;
    margin: 18px 0 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-strip a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 800;
    font-size: 13px;
}

.form-card header,
.list-card > header {
    padding: 18px;
    font-size: clamp(22px, 6vw, 30px);
}

.stack-form {
    gap: 16px;
    padding: 22px 18px;
}

.stack-form label > span,
.field-title {
    font-size: 14px;
}

.input-dark,
.qty-input {
    min-height: 48px;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
}

textarea.input-dark,
select.input-dark {
    padding-top: 12px;
    padding-bottom: 12px;
}

.textarea {
    min-height: 96px;
}

.textarea.tall {
    min-height: 150px;
}

.primary-btn,
.danger-btn {
    min-height: 50px;
    border-radius: 12px;
    font-size: 16px;
}

.history-row {
    font-size: 14px;
}

.bottom-nav {
    width: min(640px, calc(100% - 16px));
    padding: 8px;
    border-radius: 20px;
}

.bottom-nav a {
    min-height: 58px;
    border-radius: 15px;
    font-size: clamp(10px, 3vw, 13px);
}

.bottom-nav i {
    font-size: 20px;
}

.floating-call {
    width: 58px;
    height: 58px;
    bottom: 96px;
}

.product-detail-layout {
    display: grid;
    gap: 16px;
}

.product-image-card {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 22px;
}

.product-hero-image,
.product-hero-icon {
    width: min(100%, 360px);
    max-height: 260px;
    object-fit: contain;
    border-radius: 12px;
}

.product-hero-icon {
    height: 180px;
    font-size: 82px;
}

.product-detail-card h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 6vw, 34px);
    line-height: 1.2;
}

.product-detail-summary {
    margin-bottom: 14px !important;
}

.detail-lines {
    display: grid;
    gap: 10px;
}

.detail-lines div {
    display: grid;
    grid-template-columns: 26px auto 1fr;
    gap: 8px;
    align-items: start;
    color: #f5f2ff;
    font-size: 16px;
}

.detail-lines i {
    color: var(--cyan);
    font-size: 18px;
    margin-top: 2px;
}

.detail-lines strong {
    white-space: nowrap;
}

.detail-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--yellow);
    font-size: 28px;
    font-weight: 900;
}

.detail-stock {
    color: var(--muted);
    font-size: 15px;
}

.buy-form {
    margin-top: 18px;
}

.total-price-box {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 900;
}

.total-price-box strong {
    color: var(--yellow);
}

.buy-now-btn {
    background: linear-gradient(135deg, #8a603b, #9b6b42) !important;
}

/* Dark friendly auth, no white card */
.auth-body .form-card {
    color: #fff;
    background: rgba(26, 27, 43, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.auth-body .form-card header {
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    padding: 22px 22px 6px;
    text-align: center;
    font-size: clamp(24px, 7vw, 34px);
}

.auth-body .stack-form label > span,
.auth-body .field-title,
.auth-body .check-line,
.auth-body .center-text,
.auth-body .small-text,
.auth-body .stack-form small {
    color: var(--muted);
}

.auth-body .input-dark {
    color: #fff;
    background: #202034;
    border-color: rgba(255, 255, 255, 0.14);
}

.auth-body .toggle-password {
    color: #d8d6e4;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.social-login-panel {
    display: grid;
    gap: 12px;
    padding: 18px 22px 0;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.social-divider::before,
.social-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 10px;
}

.social-btn {
    min-width: 0;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 900;
    font-size: 14px;
}

.social-btn-google-main {
    min-height: 52px;
    justify-content: flex-start;
    padding: 0 16px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.2);
    font-size: 16px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.social-btn-google-main img {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.social-btn-google-main span {
    flex: 1;
    padding-right: 28px;
    text-align: center;
}

.social-btn.google i {
    color: #fbbc05;
}

.social-btn.facebook {
    background: rgba(24, 119, 242, 0.18);
}

.social-btn.facebook i {
    color: #7bb4ff;
}

.social-btn.github {
    background: rgba(255, 255, 255, 0.11);
}

.social-btn.github i {
    color: #ffffff;
}

.social-btn.is-pending {
    opacity: 0.72;
}

.social-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .app-shell {
        width: min(88vw, 1180px);
        padding-top: 28px;
    }

    .brand-card {
        min-height: 92px;
        margin-bottom: 32px;
        padding: 18px 24px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-main h1 {
        font-size: clamp(30px, 2.6vw, 44px);
    }

    .soft-pill,
    .wallet-pill {
        min-height: 48px;
        padding: 0 20px;
        font-size: 16px;
    }

    .ticker {
        width: min(100%, 920px);
        margin: 0 auto 28px;
    }

    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

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

    .product-card,
    .category-card {
        min-height: auto;
        padding: 20px;
        border-radius: 14px;
    }

    .catalog-product-card {
        padding: 0;
    }

    .product-card-link {
        padding: 20px;
    }

    .product-card h3,
    .category-card h2 {
        font-size: clamp(23px, 1.8vw, 30px);
        text-align: left;
    }

    .product-card p,
    .category-card p,
    .section-title p {
        font-size: 15px;
    }

    .section-title {
        margin: 0 0 22px;
    }

    .section-title h2 {
        font-size: clamp(30px, 3vw, 44px);
    }

    .product-detail-layout {
        grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1fr);
        align-items: start;
    }
}

@media (max-width: 430px) {
    .compact-price-panel div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
        justify-items: start;
    }

    .price-panel strong {
        min-width: 68px;
        max-width: 100%;
        padding: 0 10px;
        font-size: 13px;
        justify-self: start;
    }
}

@media (min-width: 1220px) {
    .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.admin-body .secondary-admin-btn {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Store/Courses navigation and checkout polish */
.view-switch {
    display: flex;
    gap: 10px;
    padding: 10px;
    width: min(100%, 680px);
    margin-inline: auto;
}

.view-switch a {
    flex: 1;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    font-weight: 900;
}

.view-switch a.active {
    background: linear-gradient(135deg, rgba(80, 114, 255, 0.75), rgba(150, 76, 214, 0.75));
}

.compact-title {
    margin-bottom: 18px;
}

.compact-title h2 {
    font-size: clamp(30px, 7vw, 48px);
}

.bottom-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: min(680px, calc(100% - 14px));
    gap: 4px;
}

.bottom-nav a {
    min-height: 56px;
    padding: 7px 3px;
    font-size: clamp(9px, 2.4vw, 12px);
    line-height: 1.1;
}

.bottom-nav i {
    font-size: 18px;
}

.product-detail-layout {
    gap: 14px;
}

.product-image-card {
    min-height: 160px;
    padding: 16px;
}

.product-hero-image,
.product-hero-icon {
    max-height: 170px;
}

.product-detail-card h2 {
    font-size: clamp(24px, 6vw, 32px);
}

.detail-lines {
    gap: 8px;
}

.detail-lines div {
    font-size: 15px;
}

.detail-price {
    margin-top: 14px;
    font-size: clamp(24px, 7vw, 30px);
}

.buy-form {
    margin-top: 14px;
}

.qty-stepper {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 10px;
    align-items: center;
}

.qty-step {
    min-height: 52px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 18px;
    cursor: pointer;
}

.qty-step:hover {
    background: rgba(255, 255, 255, 0.18);
}

.buy-confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1800;
    padding: 18px;
    place-items: center;
}

.buy-confirm-modal.is-open {
    display: grid;
}

.buy-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 18, 0.72);
    backdrop-filter: blur(10px);
}

.buy-confirm-dialog {
    position: relative;
    width: min(100%, 520px);
    overflow: hidden;
}

.buy-confirm-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.buy-confirm-dialog h2 {
    margin: 0;
    font-size: clamp(22px, 5.7vw, 30px);
}

.buy-confirm-dialog header button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.confirm-summary {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.confirm-summary div {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 3px 14px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.confirm-summary i {
    grid-row: span 2;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #56ccf2, #8f4bea);
}

.confirm-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.confirm-summary strong {
    color: #fff;
    font-size: 20px;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 12px;
    padding: 18px 22px 22px;
}

.confirm-actions .primary-btn,
.confirm-actions .soft-pill {
    width: 100%;
    justify-content: center;
}

.course-list {
    display: grid;
    gap: 16px;
}

.course-card {
    overflow: hidden;
    padding: 0;
}

.course-card a {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    color: #fff;
}

.course-thumb,
.course-icon {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    object-fit: cover;
}

.course-icon {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #20345f, #14223f);
    color: #fff;
    font-size: 34px;
}

.course-card h3 {
    margin: 0 0 8px;
    font-size: clamp(23px, 6vw, 34px);
    line-height: 1.1;
}

.course-card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.course-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #d8d6e4;
    font-size: 13px;
    font-weight: 800;
}

.course-meta-row span,
.course-meta-row strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.course-meta-row strong {
    color: var(--yellow);
}

.course-player-layout {
    display: grid;
    gap: 16px;
}

.course-player-card,
.course-content-card {
    overflow: hidden;
}

.course-video-frame {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.3);
}

.course-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.course-video-empty {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 22px;
}

.course-hero-image,
.course-hero-icon {
    width: min(78%, 420px);
    max-height: 260px;
    object-fit: contain;
}

.course-hero-icon {
    height: 180px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #20345f, #14223f);
    color: #fff;
    font-size: 70px;
}

.course-player-copy {
    padding: 20px;
}

.course-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.course-player-copy h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.1;
}

.course-player-copy p,
.lesson-notes {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.course-content-card {
    padding: 18px;
}

.course-content-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.course-content-head h2 {
    margin: 0;
    font-size: 22px;
}

.course-content-head a {
    color: #fff;
    font-size: 22px;
}

.course-search {
    width: 100%;
    margin-bottom: 16px;
}

.course-section {
    margin-bottom: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.course-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 17px;
    cursor: pointer;
    list-style: none;
}

.course-section summary::-webkit-details-marker {
    display: none;
}

.course-section summary strong,
.course-section summary small {
    display: block;
}

.course-section summary small {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
}

.course-section[open] summary i {
    transform: rotate(180deg);
}

.lesson-list {
    display: grid;
    padding: 0 17px 17px;
}

.lesson-list a {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    color: #ecebff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lesson-list a.active {
    color: #fff;
    background: rgba(118, 85, 255, 0.18);
    margin-inline: -12px;
    padding-inline: 12px;
    border-radius: 12px;
}

.lesson-list i {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #66e88d;
    background: rgba(102, 232, 141, 0.14);
    border-radius: 50%;
}

.lesson-list span {
    min-width: 0;
}

.lesson-list small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 12px;
}

.empty-mini {
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 860px) {
    .course-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-player-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
        align-items: start;
    }

    .product-image-card {
        min-height: 260px;
    }

    .product-hero-image,
    .product-hero-icon {
        max-height: 260px;
    }
}

@media (max-width: 520px) {
    .confirm-actions {
        grid-template-columns: 1fr;
    }

    .course-card a {
        grid-template-columns: 76px 1fr;
        padding: 16px;
    }

    .course-thumb,
    .course-icon {
        width: 66px;
        height: 66px;
    }
}

/* Notifications */
.notification-bell {
    position: relative;
    text-decoration: none;
}

.notification-bell span {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #ff4f72;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 0 18px rgba(255, 79, 114, 0.55);
}

.notification-popup {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.notification-popup.is-open {
    display: flex;
}

.notification-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 0, 28, 0.72);
    backdrop-filter: blur(10px);
}

.notification-popup-card {
    position: relative;
    width: min(94vw, 520px);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(82, 201, 255, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(32, 31, 54, 0.98), rgba(18, 17, 37, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.notification-popup-icon,
.notification-list-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, #5a80ff, #9b52ff);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.28);
}

.notification-popup-copy {
    margin-top: 16px;
}

.notification-popup-copy span,
.notification-list-meta span {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.notification-popup-copy h2 {
    margin: 8px 0 10px;
    font-size: 28px;
    line-height: 1.15;
}

.notification-popup-copy p,
.notification-list-copy p {
    color: var(--muted);
    line-height: 1.55;
}

.notification-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    color: var(--cyan);
    font-weight: 800;
}

.notification-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
}

.notification-popup-actions form {
    margin: 0;
}

.notification-tone-success .notification-popup-icon,
.notification-tone-success .notification-list-icon {
    background: linear-gradient(145deg, #1dbb74, #54e39a);
}

.notification-tone-warning .notification-popup-icon,
.notification-tone-warning .notification-list-icon {
    background: linear-gradient(145deg, #f5a524, #ffcf4a);
}

.notification-tone-important .notification-popup-icon,
.notification-tone-important .notification-list-icon {
    background: linear-gradient(145deg, #ff4f72, #9b52ff);
}

.notification-inbox {
    max-width: 900px;
    margin-inline: auto;
    padding: 0;
    overflow: hidden;
}

.notification-inbox > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.notification-inbox > header h2 {
    margin: 4px 0 0;
    font-size: 24px;
}

.notification-inbox > header span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.notification-list {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.notification-list-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.notification-list-item.is-unread {
    border-color: rgba(82, 201, 255, 0.45);
    box-shadow: inset 4px 0 0 rgba(82, 201, 255, 0.85);
}

.notification-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
}

.notification-list-meta small {
    color: var(--muted);
    font-size: 12px;
}

.notification-list-copy h3 {
    margin: 7px 0 7px;
    font-size: 20px;
}

.notification-list-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.notification-list-actions form {
    margin: 0;
}

.read-pill,
.notification-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 8px 11px;
    border-radius: 999px;
    color: #e9e8ff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.admin-notification-form .form-grid,
.admin-inline-editor .form-grid {
    display: grid;
    gap: 12px;
}

.admin-notification-form .form-grid.two,
.admin-inline-editor .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-notification-item {
    border-left: 4px solid rgba(82, 201, 255, 0.72);
}

.admin-notification-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.admin-notification-head h3 {
    margin: 10px 0 6px;
}

.admin-notification-head p {
    color: var(--muted);
}

.admin-inline-editor {
    margin-top: 14px;
}

.admin-inline-editor summary {
    cursor: pointer;
    color: var(--cyan);
    font-weight: 900;
}

@media (max-width: 640px) {
    .notification-popup-card {
        padding: 18px;
        border-radius: 22px;
    }

    .notification-popup-copy h2 {
        font-size: 24px;
    }

    .notification-inbox > header,
    .notification-list-item {
        grid-template-columns: 1fr;
    }

    .notification-list-item {
        display: grid;
    }

    .admin-notification-form .form-grid.two,
    .admin-inline-editor .form-grid.two {
        grid-template-columns: 1fr;
    }
}

/* One-line customer header */
.top-toolbar {
    grid-template-columns: 48px minmax(0, 1fr) auto auto 48px;
    gap: 10px;
    align-items: center;
}

.toolbar-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    overflow: hidden;
}

.toolbar-brand img {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.toolbar-brand strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(18px, 4vw, 28px);
    line-height: 1;
    font-weight: 900;
}

.top-toolbar .toolbar-wallet {
    min-height: 46px;
    padding: 0 14px;
    font-size: 15px;
    white-space: nowrap;
}

.top-toolbar .toolbar-language {
    min-height: 46px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 14px;
}

.top-toolbar .round-btn {
    width: 46px;
    height: 46px;
    min-height: 46px;
}

@media (min-width: 900px) {
    .top-toolbar {
        margin: 0 0 24px;
        padding: 12px;
        border-radius: 18px;
        grid-template-columns: 52px minmax(0, 1fr) auto auto 52px;
    }

    .toolbar-brand img {
        width: 42px;
        height: 42px;
    }

    .toolbar-brand strong {
        font-size: clamp(28px, 2.6vw, 42px);
    }

    .top-toolbar .toolbar-wallet,
    .top-toolbar .toolbar-language {
        min-height: 50px;
        font-size: 16px;
    }

    .top-toolbar .round-btn {
        width: 50px;
        height: 50px;
        min-height: 50px;
    }
}

@media (max-width: 560px) {
    .top-toolbar {
        grid-template-columns: 42px minmax(0, 1fr) auto 42px;
        gap: 7px;
        padding: 9px;
    }

    .top-toolbar .toolbar-language {
        display: none;
    }

    .toolbar-brand {
        gap: 7px;
    }

    .toolbar-brand img {
        width: 30px;
        height: 30px;
    }

    .toolbar-brand strong {
        font-size: clamp(17px, 5vw, 22px);
    }

    .top-toolbar .toolbar-wallet {
        min-height: 42px;
        padding: 0 10px;
        font-size: 13px;
    }

    .top-toolbar .round-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }
}

@media (max-width: 370px) {
    .toolbar-brand img {
        width: 28px;
        height: 28px;
    }

    .toolbar-brand strong {
        font-size: 16px;
    }

    .top-toolbar .toolbar-wallet {
        padding: 0 8px;
        font-size: 12px;
    }

    .top-toolbar .toolbar-wallet i {
        display: none;
    }
}

/* Modern top-edge customer header polish */
.has-bottom-nav .app-shell {
    padding-top: 0;
}

.has-bottom-nav .top-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 14px calc(50% - 50vw);
    padding: 10px 14px;
    grid-template-columns: 46px minmax(0, 1fr) auto 46px;
    gap: 10px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(120deg, rgba(96, 106, 172, 0.78), rgba(48, 39, 92, 0.88)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.has-bottom-nav .top-toolbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(101, 216, 255, 0.12), transparent 42%),
        radial-gradient(circle at 85% 45%, rgba(255, 255, 255, 0.14), transparent 10rem);
}

.has-bottom-nav .top-toolbar > * {
    position: relative;
    z-index: 1;
}

.has-bottom-nav .toolbar-brand {
    gap: 8px;
    padding: 0 2px;
}

.has-bottom-nav .toolbar-brand img {
    width: 32px;
    height: 32px;
}

.has-bottom-nav .toolbar-brand strong {
    font-size: 21px;
    line-height: 1;
    letter-spacing: 0;
}

.has-bottom-nav .top-toolbar .toolbar-wallet {
    min-height: 46px;
    padding: 0 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.has-bottom-nav .top-toolbar .round-btn {
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.has-bottom-nav .top-toolbar .toolbar-language {
    display: none;
}

@media (min-width: 640px) {
    .has-bottom-nav .top-toolbar {
        grid-template-columns: 50px minmax(0, 1fr) auto auto 50px;
        padding: 12px 18px;
        border-radius: 0 0 24px 24px;
    }

    .has-bottom-nav .toolbar-brand img {
        width: 38px;
        height: 38px;
    }

    .has-bottom-nav .toolbar-brand strong {
        font-size: 30px;
    }

    .has-bottom-nav .top-toolbar .toolbar-wallet,
    .has-bottom-nav .top-toolbar .toolbar-language {
        min-height: 50px;
        font-size: 16px;
    }

    .has-bottom-nav .top-toolbar .toolbar-language {
        display: inline-flex;
    }

    .has-bottom-nav .top-toolbar .round-btn {
        width: 50px;
        height: 50px;
        min-height: 50px;
    }
}

@media (min-width: 900px) {
    .has-bottom-nav .top-toolbar {
        width: 100%;
        max-width: 100%;
        margin: 0 0 24px;
        border-radius: 0 0 20px 20px;
    }
}

@media (max-width: 390px) {
    .has-bottom-nav .top-toolbar {
        grid-template-columns: 42px minmax(0, 1fr) auto 42px;
        gap: 7px;
        padding: 8px 10px;
    }

    .has-bottom-nav .toolbar-brand {
        gap: 6px;
    }

    .has-bottom-nav .toolbar-brand img {
        width: 29px;
        height: 29px;
    }

    .has-bottom-nav .toolbar-brand strong {
        font-size: 18px;
    }

    .has-bottom-nav .top-toolbar .toolbar-wallet {
        min-height: 42px;
        padding: 0 10px;
        font-size: 13px;
    }

    .has-bottom-nav .top-toolbar .round-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }
}

@media (max-width: 340px) {
    .has-bottom-nav .toolbar-brand strong {
        font-size: 16px;
    }

    .has-bottom-nav .top-toolbar .toolbar-wallet {
        padding: 0 8px;
        font-size: 12px;
    }
}

/* Mobile header fit and category scroll polish */
.has-bottom-nav .category-strip {
    width: 100vw;
    max-width: 100vw;
    margin: 18px 0 0 calc(50% - 50vw);
    padding: 0 18px 8px;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
}

.has-bottom-nav .category-strip::-webkit-scrollbar {
    display: none;
}

.has-bottom-nav .category-strip a {
    min-height: 44px;
    padding: 0 16px;
}

@media (max-width: 430px) {
    .has-bottom-nav .top-toolbar {
        grid-template-columns: 42px minmax(0, 1fr) auto 42px;
        gap: 6px;
        padding: 8px 9px;
    }

    .has-bottom-nav .toolbar-brand {
        gap: 5px;
        padding: 0;
    }

    .has-bottom-nav .toolbar-brand img {
        width: 28px;
        height: 28px;
    }

    .has-bottom-nav .toolbar-brand strong {
        font-size: 17px;
        font-weight: 900;
    }

    .has-bottom-nav .top-toolbar .toolbar-wallet {
        min-height: 42px;
        gap: 5px;
        padding: 0 8px;
        border-radius: 15px;
        font-size: 13px;
    }

    .has-bottom-nav .top-toolbar .toolbar-wallet i {
        font-size: 13px;
    }

    .has-bottom-nav .top-toolbar .round-btn {
        width: 42px;
        height: 42px;
        min-height: 42px;
    }

    .has-bottom-nav .category-strip {
        gap: 10px;
        padding-inline: 18px;
    }
}

@media (max-width: 360px) {
    .has-bottom-nav .toolbar-brand strong {
        font-size: 15px;
    }

    .has-bottom-nav .top-toolbar .toolbar-wallet {
        padding: 0 6px;
        font-size: 12px;
    }
}

/* Product cards keep price and stock side by side */
.compact-price-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.compact-price-panel div {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: start;
    gap: 8px;
}

.compact-price-panel div > span {
    white-space: nowrap;
}

.compact-price-panel strong {
    justify-self: start;
    min-width: 78px;
    max-width: 100%;
}

@media (max-width: 430px) {
    .compact-price-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .compact-price-panel div > span {
        font-size: 14px;
    }

    .compact-price-panel strong {
        min-width: 72px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 340px) {
    .compact-price-panel {
        gap: 8px;
        padding: 12px;
    }

    .compact-price-panel div > span {
        font-size: 13px;
    }

    .compact-price-panel strong {
        min-width: 64px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* Product detail image frame for 4:3 and square uploads */
.product-image-card {
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
}

.product-image-card .product-hero-image {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    object-fit: contain;
    border-radius: 0;
}

.product-image-card .product-hero-icon {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
}

@media (max-width: 560px) {
    .product-image-card {
        aspect-ratio: 1 / 1;
    }
}

/* Product hero smart-fit: full image visible with soft filled background */
.product-hero-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #17172a;
}

.product-hero-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 18%, rgba(101, 216, 255, 0.12), transparent 16rem),
        linear-gradient(180deg, rgba(8, 3, 38, 0.08), rgba(8, 3, 38, 0.24));
}

.product-hero-bg {
    position: absolute;
    inset: -28px;
    width: calc(100% + 56px);
    height: calc(100% + 56px);
    object-fit: cover;
    filter: blur(24px) saturate(1.22);
    opacity: 0.52;
    transform: scale(1.08);
}

.product-hero-frame .product-hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
    object-fit: contain;
    padding: 14px;
    border-radius: 18px;
}

@media (max-width: 560px) {
    .product-hero-frame .product-hero-image {
        padding: 10px;
        border-radius: 14px;
    }
}

/* Product hero premium rounded border */
.product-detail-layout .product-image-card {
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(31, 29, 58, 0.94), rgba(18, 17, 38, 0.96)) padding-box,
        linear-gradient(135deg, rgba(101, 216, 255, 0.86), rgba(142, 73, 216, 0.78), rgba(247, 201, 72, 0.58)) border-box;
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(101, 216, 255, 0.14),
        0 0 42px rgba(142, 73, 216, 0.13);
}

.product-detail-layout .product-hero-frame {
    border-radius: 25px;
}

.product-detail-layout .product-hero-frame .product-hero-image {
    border-radius: 22px;
}

@media (max-width: 560px) {
    .product-detail-layout .product-image-card {
        border-radius: 24px;
    }

    .product-detail-layout .product-hero-frame {
        border-radius: 21px;
    }

    .product-detail-layout .product-hero-frame .product-hero-image {
        border-radius: 18px;
    }
}

/* Shared premium border system */
:root {
    --premium-surface: linear-gradient(145deg, rgba(31, 29, 58, 0.94), rgba(18, 17, 38, 0.96));
    --premium-surface-soft: linear-gradient(145deg, rgba(56, 58, 103, 0.68), rgba(33, 28, 70, 0.74));
    --premium-border: linear-gradient(135deg, rgba(101, 216, 255, 0.84), rgba(142, 73, 216, 0.78), rgba(247, 201, 72, 0.54));
    --premium-border-soft: linear-gradient(135deg, rgba(101, 216, 255, 0.54), rgba(142, 73, 216, 0.5), rgba(247, 201, 72, 0.34));
    --premium-glow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 28px rgba(101, 216, 255, 0.1), 0 0 34px rgba(142, 73, 216, 0.11);
    --premium-glow-strong: 0 24px 58px rgba(0, 0, 0, 0.34), 0 0 34px rgba(101, 216, 255, 0.14), 0 0 42px rgba(142, 73, 216, 0.13);
}

.glass-card,
.top-toolbar,
.ticker,
.category-card,
.product-card,
.history-card,
.form-card,
.list-card,
.footer-card,
.product-detail-card,
.delivery-box,
.price-panel,
.compact-price-panel,
.option-tile,
.profile-grid div,
.total-price-box,
.course-card,
.lesson-notes,
.lesson-list,
.notification-popup-card,
.notification-inbox,
.notification-list-item,
.admin-tile,
.stat-card {
    border: 1px solid transparent;
    background: var(--premium-surface) padding-box, var(--premium-border-soft) border-box;
    box-shadow: var(--premium-glow);
}

.brand-card,
.product-detail-layout .product-image-card,
.bottom-nav,
.notification-popup-card,
.notification-inbox {
    border: 1px solid transparent;
    background: var(--premium-surface-soft) padding-box, var(--premium-border) border-box;
    box-shadow: var(--premium-glow-strong);
}

.soft-pill,
.wallet-pill,
.select-pill,
.round-btn,
.soft-action,
.notification-link,
.notification-type-pill,
.bottom-nav a.active,
.type-pill,
.provider-badge {
    border: 1px solid transparent;
    background: linear-gradient(145deg, rgba(96, 98, 137, 0.8), rgba(72, 62, 112, 0.82)) padding-box, var(--premium-border-soft) border-box;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.11);
}

.primary-btn,
.secondary-btn,
.danger-btn {
    border: 1px solid rgba(101, 216, 255, 0.24);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), 0 0 22px rgba(142, 73, 216, 0.1);
}

.input-dark,
.qty-input,
select.input-dark,
textarea.input-dark {
    border: 1px solid transparent;
    background: linear-gradient(145deg, rgba(35, 35, 57, 0.96), rgba(23, 23, 42, 0.98)) padding-box, var(--premium-border-soft) border-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.input-dark:focus,
.qty-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(101, 216, 255, 0.18), 0 0 28px rgba(142, 73, 216, 0.14);
}

.form-card header,
.list-card > header,
.notification-inbox > header,
.drawer-head,
.history-row,
.notification-list-item + .notification-list-item {
    border-color: rgba(101, 216, 255, 0.12);
}

.alert-card.error {
    background: linear-gradient(145deg, rgba(70, 26, 42, 0.9), rgba(34, 20, 37, 0.96)) padding-box,
        linear-gradient(135deg, rgba(242, 92, 107, 0.82), rgba(142, 73, 216, 0.62)) border-box;
}

.alert-card.success {
    background: linear-gradient(145deg, rgba(28, 65, 48, 0.88), rgba(20, 34, 38, 0.96)) padding-box,
        linear-gradient(135deg, rgba(53, 184, 112, 0.82), rgba(101, 216, 255, 0.54)) border-box;
}

/* Compact product checkout flow */
.product-detail-card {
    gap: 12px;
}

.product-detail-card .product-detail-summary {
    margin-bottom: 4px !important;
}

.product-detail-card .detail-lines {
    gap: 7px;
}

.product-detail-card .detail-price {
    margin-top: 6px;
    margin-bottom: 0;
    font-size: clamp(26px, 3vw, 34px);
}

.product-detail-card .detail-stock {
    margin-top: -2px;
    font-size: 14px;
}

.product-detail-card .buy-form {
    margin-top: 4px;
    gap: 10px;
}

.buy-form label {
    gap: 5px;
}

.buy-form label > span {
    font-size: 14px;
    line-height: 1.15;
}

.buy-form .input-dark,
.buy-form .qty-input {
    min-height: 48px;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 16px;
}

.buy-form .qty-stepper {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
}

.buy-form .qty-step {
    min-height: 48px;
    border-radius: 14px;
}

.buy-form .total-price-box {
    min-height: 54px;
    padding: 12px 16px;
    align-items: center;
    border-radius: 14px;
}

.buy-form .small-text {
    font-size: 13px;
    line-height: 1.35;
}

.product-detail-card .buy-now-btn {
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #fff;
    background:
        linear-gradient(135deg, #ffbe3d 0%, #ff6b35 46%, #8f4bea 100%) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(101, 216, 255, 0.56), rgba(247, 201, 72, 0.72)) border-box !important;
    box-shadow:
        0 18px 36px rgba(255, 107, 53, 0.28),
        0 0 36px rgba(247, 201, 72, 0.2),
        0 0 42px rgba(142, 73, 216, 0.22);
    letter-spacing: 0;
}

.product-detail-card .buy-now-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow:
        0 22px 42px rgba(255, 107, 53, 0.34),
        0 0 42px rgba(247, 201, 72, 0.26),
        0 0 48px rgba(142, 73, 216, 0.28);
}

.product-detail-card .buy-now-btn:disabled {
    background:
        linear-gradient(135deg, rgba(255, 190, 61, 0.46), rgba(255, 107, 53, 0.38), rgba(143, 75, 234, 0.42)) padding-box,
        var(--premium-border-soft) border-box !important;
}

@media (min-width: 900px) {
    .product-detail-card {
        padding: 24px 28px;
    }
}

@media (max-width: 560px) {
    .product-detail-card {
        gap: 10px;
        padding: 18px;
    }

    .product-detail-card .detail-lines {
        gap: 6px;
    }

    .product-detail-card .detail-price {
        margin-top: 4px;
        font-size: clamp(24px, 6.5vw, 28px);
    }

    .product-detail-card .buy-form {
        gap: 9px;
    }

    .buy-form .input-dark,
    .buy-form .qty-input,
    .buy-form .qty-step {
        min-height: 44px;
    }

    .buy-form .qty-stepper {
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 7px;
    }

    .buy-form .total-price-box {
        min-height: 50px;
        padding: 10px 14px;
    }

    .product-detail-card .buy-now-btn {
        min-height: 54px;
    }
}

/* Premium redesign final overrides - remove this block to return to the previous visual layer */
section.premium-hero {
    border: 1px solid transparent;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 138, 31, 0.2), transparent 24rem),
        radial-gradient(circle at 88% 82%, rgba(101, 216, 255, 0.18), transparent 24rem),
        radial-gradient(circle at 12% 74%, rgba(255, 46, 146, 0.14), transparent 20rem),
        linear-gradient(145deg, rgba(23, 18, 46, 0.96), rgba(12, 10, 28, 0.98)) padding-box,
        linear-gradient(135deg, rgba(255, 138, 31, 0.8), rgba(255, 46, 146, 0.76), rgba(101, 216, 255, 0.78)) border-box;
}

section.premium-section-pill {
    border-radius: 999px;
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 138, 31, 0.15), transparent 18rem),
        linear-gradient(145deg, rgba(35, 30, 70, 0.9), rgba(19, 15, 42, 0.92)) padding-box,
        linear-gradient(135deg, rgba(101, 216, 255, 0.58), rgba(142, 73, 216, 0.62), rgba(255, 138, 31, 0.42)) border-box;
}

.product-list.premium-product-list {
    gap: 18px;
}

article.catalog-product-card {
    padding: 0;
    border: 1px solid transparent;
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 12%, rgba(255, 138, 31, 0.12), transparent 17rem),
        radial-gradient(circle at 10% 95%, rgba(101, 216, 255, 0.14), transparent 15rem),
        linear-gradient(145deg, rgba(26, 25, 43, 0.98), rgba(17, 15, 34, 0.98)) padding-box,
        linear-gradient(135deg, rgba(101, 216, 255, 0.72), rgba(142, 73, 216, 0.7), rgba(255, 138, 31, 0.55)) border-box;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.32), 0 0 28px rgba(101, 216, 255, 0.08);
}

article.catalog-product-card .product-card-link {
    display: grid;
    gap: 18px;
    padding: 24px;
}

article.catalog-product-card .product-head {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

article.catalog-product-card .product-thumb,
article.catalog-product-card .product-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    object-fit: cover;
}

article.catalog-product-card .compact-price-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
}

article.catalog-product-card .compact-price-panel strong {
    width: fit-content;
    min-width: 108px;
    justify-content: center;
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: 999px;
}

article.product-detail-card {
    border: 1px solid transparent;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 138, 31, 0.12), transparent 18rem),
        radial-gradient(circle at 10% 90%, rgba(101, 216, 255, 0.13), transparent 16rem),
        linear-gradient(145deg, rgba(28, 27, 45, 0.98), rgba(17, 16, 34, 0.98)) padding-box,
        linear-gradient(135deg, rgba(101, 216, 255, 0.74), rgba(142, 73, 216, 0.68), rgba(255, 138, 31, 0.54)) border-box;
}

.product-detail-layout > .product-image-card {
    border: 1px solid transparent;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 138, 31, 0.16), transparent 18rem),
        radial-gradient(circle at 78% 82%, rgba(101, 216, 255, 0.14), transparent 16rem),
        linear-gradient(145deg, rgba(42, 43, 82, 0.78), rgba(21, 17, 47, 0.84)) padding-box,
        linear-gradient(135deg, rgba(255, 138, 31, 0.76), rgba(255, 46, 146, 0.66), rgba(101, 216, 255, 0.7)) border-box;
}

@media (min-width: 900px) {
    .app-shell {
        width: min(100%, 1320px);
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-list.premium-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    article.catalog-product-card {
        border-radius: 24px;
    }

    article.catalog-product-card .product-card-link {
        padding: 18px;
        gap: 14px;
    }

    article.catalog-product-card .product-head {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 16px;
    }

    article.catalog-product-card .product-thumb,
    article.catalog-product-card .product-icon {
        width: 96px;
        height: 96px;
    }

    article.catalog-product-card .compact-price-panel {
        gap: 10px;
        padding: 14px;
    }
}

@media (max-width: 380px) {
    article.catalog-product-card .product-head {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    article.catalog-product-card .product-thumb,
    article.catalog-product-card .product-icon {
        width: 84px;
        height: 84px;
        border-radius: 20px;
    }
}

/* Store/Courses glossy switch and product feature checklist */
.premium-store-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 720px);
    margin: 18px auto 24px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(29, 24, 59, 0.92), rgba(13, 11, 31, 0.96)) padding-box,
        linear-gradient(105deg, rgba(101, 216, 255, 0.72), rgba(178, 75, 255, 0.72), rgba(255, 138, 31, 0.68)) border-box;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3), 0 0 34px rgba(123, 82, 255, 0.12);
}

.premium-store-nav a,
.premium-store-nav a.active {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 17px;
    color: #fff;
    font-size: clamp(17px, 3.8vw, 21px);
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.premium-store-nav .store-tab {
    background: linear-gradient(120deg, #ff7a18 0%, #ff2f8f 52%, #b63cff 100%);
}

.premium-store-nav .courses-tab {
    background: linear-gradient(120deg, #7c3cff 0%, #4267ff 48%, #17bfe7 100%);
}

.premium-store-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 12%, rgba(255, 255, 255, 0.24) 42%, transparent 68%);
    transform: translateX(-115%);
    transition: transform 0.5s ease;
}

.premium-store-nav a:hover,
.premium-store-nav a:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.12) brightness(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 16px 30px rgba(0, 0, 0, 0.28), 0 0 26px rgba(111, 100, 255, 0.22);
}

.premium-store-nav a:hover::before,
.premium-store-nav a:focus-visible::before {
    transform: translateX(115%);
}

.premium-store-nav a.active::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 5px;
    height: 2px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.72);
}

article.catalog-product-card .product-feature-list {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

article.catalog-product-card .product-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(15px, 3.2vw, 18px);
    line-height: 1.35;
}

article.catalog-product-card .product-feature-list i {
    flex: 0 0 23px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-top: 1px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    background: linear-gradient(135deg, #ff9d22, #ff6b00);
    box-shadow: 0 7px 16px rgba(255, 107, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

article.catalog-product-card .product-feature-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .premium-store-nav {
        gap: 8px;
        margin: 12px auto 18px;
        padding: 7px;
        border-radius: 20px;
    }

    .premium-store-nav a,
    .premium-store-nav a.active {
        min-height: 52px;
        border-radius: 14px;
        font-size: 17px;
    }

    article.catalog-product-card .product-feature-list {
        gap: 7px;
        margin-top: 8px;
    }

    article.catalog-product-card .product-feature-list li {
        font-size: 15px;
    }
}

/* Product detail checklist and natural-ratio edge-to-edge image */
.product-detail-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
    margin: 2px 0 8px;
    padding: 0;
    list-style: none;
}

.product-detail-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.4;
}

.product-detail-feature-list i {
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    background: linear-gradient(135deg, #ff9d22, #ff6800);
    box-shadow: 0 7px 16px rgba(255, 104, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.product-detail-feature-list span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.product-detail-layout > .product-image-card {
    display: block;
    min-height: 0;
    aspect-ratio: auto;
    padding: 1px;
    overflow: hidden;
}

.product-detail-layout .product-hero-frame {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    background: transparent;
}

.product-detail-layout .product-hero-frame::after,
.product-detail-layout .product-hero-bg {
    display: none;
}

.product-detail-layout .product-hero-frame .product-hero-image {
    position: relative;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    display: block;
    object-fit: contain;
    border-radius: 26px;
}

@media (max-width: 640px) {
    .product-detail-feature-list {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-bottom: 6px;
    }

    .product-detail-feature-list li {
        font-size: 15px;
    }

    .product-detail-layout .product-hero-frame .product-hero-image {
        border-radius: 22px;
    }
}
