/* ==========================================================================
   ToonApp Hub · style.css
   Styles for the public store pages: home, plugin, contact, checkout,
   log in, sign up and password pages.
   ========================================================================== */

/* ToonApp Hub public store: cartoon halftone pages, sticker-price grid, split-panel auth pages */
:root {
    --bg: #bfe6ff;
    --dots: #a6dbff;
    --surface: #ffffff;
    --soft: #eef6ff;
    --fg: #1b1530;
    --muted: #4f4a6b;
    --ink: #1b1530;
    --on-pop: #1b1530;
    --purple: #7b5cff;
    --hub: #1f66ff;
    --yellow: #ffd23f;
    --pink: #ff5c8a;
    --mint: #2ee6a6;
    --red: #e5334b;
    --display: "Lilita One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
    --body: "Nunito", ui-rounded, system-ui, sans-serif;
    --b: 3px solid var(--ink);
    --sh: 5px 5px 0 var(--ink);
    --sh-sm: 3px 3px 0 var(--ink);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1c1740;
        --dots: #252055;
        --surface: #2b2560;
        --soft: #352e70;
        --fg: #fff5de;
        --muted: #c9c2ea;
        --ink: #0a0720;
        --red: #ff6b80;
        --hub: #7aa8ff;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #1c1740;
    --dots: #252055;
    --surface: #2b2560;
    --soft: #352e70;
    --fg: #fff5de;
    --muted: #c9c2ea;
    --ink: #0a0720;
    --red: #ff6b80;
    --hub: #7aa8ff;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
}
img {
    max-width: 100%;
}
[hidden] {
    display: none !important;
}
:root {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
body {
    background: var(--bg);
    color: var(--fg);
    font: 500 16px/1.55 var(--body);
    background-image: radial-gradient(var(--dots) 2px, transparent 2.5px);
    background-size: 22px 22px;
}
button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
}
:focus-visible {
    outline: 3px dashed var(--purple);
    outline-offset: 3px;
}
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 16px;
}
h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    margin: 0;
    text-wrap: balance;
    letter-spacing: 0.01em;
}
.hidden {
    display: none !important;
}
.note {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
}
.err {
    color: var(--red);
    font-weight: 900;
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 22px;
    border: var(--b);
    border-radius: 16px;
    background: var(--yellow);
    color: var(--on-pop);
    font-weight: 900;
    font-size: 16px;
    box-shadow: var(--sh-sm);
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform 0.12s,
        box-shadow 0.12s;
}
.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}
.btn:active {
    transform: translate(2px, 2px) scale(0.98, 0.96);
    box-shadow: 0 0 0 var(--ink);
}
.btn.pink {
    background: var(--pink);
}
.btn.mint {
    background: var(--mint);
}
.btn.white {
    background: var(--surface);
    color: var(--fg);
}
.btn.purple {
    background: var(--purple);
    color: #fff;
}
.btn.danger {
    background: var(--red);
    color: #fff;
}
.btn.sm {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
    border-radius: 12px;
}
.btn.xs {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
    border-radius: 10px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
}
.btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

/* Header */
.bar {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 20;
    padding-block: 12px;
}
.bar-in {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: var(--b);
    border-radius: 20px;
    box-shadow: var(--sh);
    padding: 8px 8px 8px 14px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 28px;
    color: var(--fg);
    text-decoration: none;
    line-height: 1;
    background: none;
    border: 0;
    padding: 0;
}
.logo b {
    color: var(--purple);
    font-weight: 400;
}
.logo .hub {
    color: var(--hub);
}
.logo-ic {
    width: 40px;
    height: 40px;
    flex: none;
    filter: drop-shadow(0 0 6px rgba(31, 102, 255, 0.45));
}
@media (max-width: 400px) {
    .logo .hub {
        display: none;
    }
}
.nav {
    display: flex;
    gap: 2px;
    margin-left: 10px;
}
.nav a {
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
}
.nav a:hover {
    background: var(--soft);
}
.bar-right {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}
.cart-n {
    background: var(--pink);
    color: var(--on-pop);
    border: 2px solid var(--ink);
    border-radius: 99px;
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    display: grid;
    place-items: center;
    padding: 0 6px;
}
.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    border: 2px solid var(--ink);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
}
@media (max-width: 860px) {
    .nav {
        display: none;
    }
}
@media (max-width: 560px) {
    .hide-sm {
        display: none;
    }
    .logo {
        font-size: 24px;
    }
    .bar-in {
        padding-left: 10px;
    }
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding-block: 36px 28px;
}
.hero h1 {
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1;
}
.hero h1 .hl {
    color: var(--purple);
    display: inline-block;
    transform: rotate(-2deg);
}
.hero h1 .hl2 {
    background: var(--yellow);
    color: var(--on-pop);
    border: var(--b);
    border-radius: 14px;
    padding: 0 12px;
    display: inline-block;
    transform: rotate(1.5deg);
    box-shadow: var(--sh-sm);
}
.hero p {
    font-size: 19px;
    font-weight: 700;
    color: var(--muted);
    max-width: 54ch;
    margin: 22px 0 26px;
}
.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.apps {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.mascot-box {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
}
#mascot {
    width: min(100%, 360px);
    height: auto;
    overflow: visible;
}
.toon .bob {
    animation: bob 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 180px 330px;
}
.toon .shadow {
    animation: shadow 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 180px 345px;
}
@keyframes bob {
    0%,
    100% {
        transform: translateY(0) scale(1.04, 0.96);
    }
    50% {
        transform: translateY(-22px) scale(0.97, 1.03);
    }
}
@keyframes shadow {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.75);
        opacity: 0.6;
    }
}
.bubble {
    position: absolute;
    top: 4%;
    right: 2%;
    z-index: 2;
    background: var(--surface);
    border: var(--b);
    border-radius: 18px;
    padding: 8px 14px;
    font-weight: 900;
    box-shadow: var(--sh-sm);
    transform: rotate(4deg);
    font-size: 15px;
    max-width: 250px;
    line-height: 1.3;
    transition: transform 0.25s cubic-bezier(0.3, 1.7, 0.5, 1);
}
.bubble.talk {
    transform: rotate(2deg) scale(1.06);
}
.toon .mouth {
    transition: d 0.08s;
}
.toon.talking .bob {
    animation-duration: 0.75s;
}
.toon .laugh-eyes {
    opacity: 0;
}
.toon.laughing .laugh-eyes {
    opacity: 1;
}
.toon.laughing .eye,
.toon.laughing .pupil {
    opacity: 0;
}
.toon.laughing .bob {
    animation: laughNod 0.3s ease-in-out infinite;
    transform-origin: 180px 300px;
}
.toon.laughing .shadow {
    animation: shadow 0.3s ease-in-out infinite;
}
@keyframes laughNod {
    0%,
    100% {
        transform: translateY(-8px) rotate(-5deg);
    }
    50% {
        transform: translateY(6px) rotate(4deg) scale(1.03, 0.96);
    }
}
.toon.laughing .tear {
    opacity: 1;
    animation: tear 0.6s ease-in infinite;
}
.toon .tear {
    opacity: 0;
}
@keyframes tear {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(26px);
        opacity: 0;
    }
}
#mascot {
    cursor: pointer;
}
.buddy {
    position: fixed;
    left: 18px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    width: 118px;
    transition:
        transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1),
        opacity 0.25s;
}
.buddy.off {
    transform: translateY(170px) rotate(-10deg);
    opacity: 0;
    pointer-events: none;
}
.buddy svg {
    width: 118px;
    height: auto;
    overflow: visible;
    cursor: pointer;
    display: block;
}
.buddy-bubble {
    position: absolute;
    left: 92px;
    bottom: 104px;
    width: max-content;
    max-width: 270px;
    background: var(--surface);
    color: var(--fg);
    border: var(--b);
    border-radius: 18px;
    padding: 10px 14px;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.3;
    box-shadow: var(--sh-sm);
    transform-origin: 0 100%;
    transition:
        transform 0.25s cubic-bezier(0.3, 1.7, 0.5, 1),
        opacity 0.2s;
}
.buddy-bubble::after {
    content: "";
    position: absolute;
    left: 14px;
    bottom: -11px;
    width: 16px;
    height: 16px;
    background: var(--surface);
    border-right: var(--b);
    border-bottom: var(--b);
    transform: rotate(45deg);
}
.buddy-bubble.hide {
    transform: scale(0.6);
    opacity: 0;
}
@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }
    .mascot-box {
        order: -1;
    }
    #mascot {
        width: 200px;
    }
    .bubble {
        right: 6%;
    }
}

.host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    border: 2px solid var(--ink);
    border-radius: 8px;
    padding: 2px 7px;
    color: #fff;
    letter-spacing: 0.02em;
}
.apps .host {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 12px;
    box-shadow: var(--sh-sm);
}

/* Stars */
.stars {
    display: inline-flex;
    gap: 1px;
    line-height: 1;
    vertical-align: -2px;
}
.stars i {
    font-style: normal;
    color: var(--yellow);
    -webkit-text-stroke: 1.4px var(--ink);
    font-size: 17px;
}
.stars i.off {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--muted);
}
.rate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
    color: var(--muted);
}

/* Shop */
.shop-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.shop-head h2 {
    font-size: clamp(32px, 4vw, 46px);
}
.tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}
.chip {
    height: 40px;
    padding: 0 16px;
    border: var(--b);
    border-radius: 99px;
    background: var(--surface);
    font-weight: 800;
    box-shadow: var(--sh-sm);
    transition: transform 0.12s;
}
.chip:hover {
    transform: translateY(-2px);
}
.chip[aria-pressed="true"] {
    background: var(--purple);
    color: #fff;
}
.search {
    flex: 1;
    min-width: 200px;
    max-width: 320px;
    margin-left: auto;
    position: relative;
}
.search input,
.sort {
    height: 44px;
    border: var(--b);
    border-radius: 14px;
    background: var(--surface);
    padding: 0 14px;
    font-weight: 700;
    width: 100%;
}
.search input {
    padding-left: 40px;
}
.search svg {
    position: absolute;
    left: 13px;
    top: 13px;
}
.sort {
    width: auto;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
    padding-bottom: 20px;
}
.grid.is-loading {
    opacity: 0.55;
    pointer-events: none;
}
.cover-art {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(
            135deg,
            hsl(var(--hue, 280) 88% 74%),
            hsl(calc(var(--hue, 280) + 45) 90% 80%)
        );
    color: var(--ink);
    font-family: var(--display);
    font-size: clamp(40px, 6vw, 62px);
    letter-spacing: 0.04em;
    text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.45);
}
.pp-cover .cover-art {
    font-size: clamp(56px, 9vw, 110px);
}
.mc-cover .cover-art {
    font-size: 36px;
}
.load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 0 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}
.load-more[hidden] {
    display: none;
}
#scrollSentinel {
    height: 1px;
}
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--line);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.card {
    position: relative;
    background: var(--surface);
    border: var(--b);
    border-radius: 22px;
    box-shadow: var(--sh);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1),
        box-shadow 0.18s;
}
.card:hover {
    transform: translate(-3px, -4px) rotate(-0.6deg);
    box-shadow: 8px 9px 0 var(--ink);
}
.cover {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    border: 0;
    border-bottom: var(--b);
    border-radius: 19px 19px 0 0;
    padding: 0;
    overflow: hidden;
    background: var(--soft);
    cursor: pointer;
    position: relative;
}
.cover img,
.cover canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sticker {
    position: absolute;
    top: -14px;
    right: -12px;
    background: var(--yellow);
    color: var(--on-pop);
    border: var(--b);
    border-radius: 14px;
    padding: 4px 12px;
    font-family: var(--display);
    font-size: 22px;
    transform: rotate(7deg);
    box-shadow: var(--sh-sm);
    z-index: 2;
    font-variant-numeric: tabular-nums;
}
.sticker s {
    font-family: var(--body);
    font-size: 13px;
    font-weight: 800;
    opacity: 0.7;
    margin-left: 4px;
}
.sticker.free {
    background: var(--mint);
}
.flag {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--pink);
    color: var(--on-pop);
    border: 2px solid var(--ink);
    border-radius: 9px;
    padding: 2px 9px;
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.vidflag {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--red);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: 9px;
    padding: 2px 8px;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cbody {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.cmeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cbody h3 {
    font-size: 24px;
    line-height: 1.05;
    cursor: pointer;
}
.cbody p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}
.cfoot {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    gap: 8px;
}
.cfoot .btn {
    flex: 1;
}
.cfoot .btn.in {
    background: var(--mint);
}
.empty {
    grid-column: 1/-1;
    background: var(--surface);
    border: var(--b);
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.empty h3 {
    font-size: 30px;
}
.empty p {
    margin: 0;
    max-width: 44ch;
    color: var(--muted);
    font-weight: 700;
}

.how {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding-block: 44px;
}
.step {
    background: var(--surface);
    border: var(--b);
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 22px;
}
.step .n {
    width: 46px;
    height: 46px;
    border: var(--b);
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 24px;
    color: var(--on-pop);
    margin-bottom: 12px;
}
.step h3 {
    font-size: 24px;
    margin-bottom: 6px;
}
.step p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}
@media (max-width: 760px) {
    .how {
        grid-template-columns: 1fr;
    }
}
.faq {
    padding-bottom: 56px;
    display: grid;
    gap: 12px;
    max-width: 760px;
}
.faq details {
    background: var(--surface);
    border: var(--b);
    border-radius: 16px;
    box-shadow: var(--sh-sm);
    padding: 14px 18px;
}
.faq summary {
    font-weight: 900;
    cursor: pointer;
    font-size: 17px;
}
.faq p {
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 600;
}
footer {
    padding-block: 24px 40px;
    font-weight: 700;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Overlays */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 40, 0.55);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.scrim.on {
    opacity: 1;
    pointer-events: auto;
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 16px;
    pointer-events: none;
}
.modal .panel {
    background: var(--surface);
    border: var(--b);
    border-radius: 26px;
    box-shadow: 8px 8px 0 var(--ink);
    width: min(940px, 100%);
    max-height: calc(100% - 24px);
    overflow: auto;
    opacity: 0;
    transform: scale(0.85) rotate(-2deg);
    transition:
        transform 0.3s cubic-bezier(0.3, 1.7, 0.5, 1),
        opacity 0.15s;
}
.modal.narrow .panel {
    width: min(520px, 100%);
}
.modal.on {
    pointer-events: auto;
}
.modal.on .panel {
    opacity: 1;
    transform: none;
}
.x {
    width: 40px;
    height: 40px;
    border: var(--b);
    border-radius: 12px;
    background: var(--surface);
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    flex: none;
    box-shadow: var(--sh-sm);
}
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(430px, 100%);
    z-index: 50;
    background: var(--surface);
    border-left: var(--b);
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer.on {
    transform: none;
}
.dh {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: var(--b);
}
.dh h3 {
    font-size: 28px;
}
.dbody {
    flex: 1;
    overflow: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dfoot {
    border-top: var(--b);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.li {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 8px;
}
.li .th {
    width: 72px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 9px;
    overflow: hidden;
    background: var(--surface);
}
.li .th img,
.li .th canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.li b {
    display: block;
    line-height: 1.2;
}
.li small {
    font-weight: 700;
    color: var(--muted);
}
.li .p {
    font-family: var(--display);
    font-size: 20px;
}
.own {
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: start;
}
.own .th {
    width: 96px;
    height: 60px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}
.own .th img,
.own .th canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.own b {
    display: block;
    line-height: 1.2;
    font-size: 17px;
}
.own small {
    font-weight: 700;
    color: var(--muted);
    display: block;
}
.own .acts {
    grid-column: 1/-1;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.own .acts .btn {
    flex: 1;
}
.post {
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post.unread {
    background: var(--surface);
    box-shadow: var(--sh-sm);
}
.post h4 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: 21px;
    line-height: 1.1;
}
.post p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    white-space: normal;
}
.post .meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
}
.tagpill {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--yellow);
    color: var(--on-pop);
    border: 2px solid var(--ink);
    border-radius: 99px;
    padding: 0 8px;
}
.emailbox {
    background: var(--soft);
    border: 2px dashed var(--ink);
    border-radius: 14px;
    padding: 12px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    max-height: 110px;
    overflow: auto;
    word-break: break-all;
}
/* phone fixes: header + admin menu */
@media (max-width: 820px) {
    .side {
        flex-wrap: wrap;
        overflow: visible;
    }
    .tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}
@media (max-width: 560px) {
    .bar-in {
        gap: 6px;
        padding: 6px 6px 6px 10px;
    }
    .bar-right {
        gap: 6px;
    }
    .bar-right .btn.sm {
        height: 38px;
        padding: 0 9px;
        gap: 4px;
    }
    #libN {
        display: none;
    }
}
@media (max-width: 440px) {
    .logo > span {
        display: none;
    }
}
/* email codes */
.lab-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.lab-row .link {
    font-size: 13px;
}
.verify-ic {
    width: 62px;
    height: 62px;
    border: var(--b);
    border-radius: 18px;
    background: var(--hub);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--sh-sm);
}
.verify-text {
    margin: 0;
    font-weight: 700;
    color: var(--muted);
}
.verify-text b {
    color: var(--fg);
}
.code-in {
    font-size: 28px !important;
    letter-spacing: 0.45em;
    text-align: center;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums;
}
.demo-code {
    background: var(--yellow);
    color: var(--on-pop);
    border: var(--b);
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 14px;
}
.demo-code b {
    font-size: 22px;
    letter-spacing: 0.2em;
    display: block;
    margin-top: 2px;
}
.code-links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.code-links .link[disabled] {
    opacity: 0.5;
    pointer-events: none;
    text-decoration: none;
}
/* auth pages */
.auth-view {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 16px;
    padding-block: 18px 60px;
}
.auth-page .panel {
    max-width: 980px;
    margin: 0 auto;
    background: var(--surface);
    border: var(--b);
    border-radius: 28px;
    box-shadow: 10px 10px 0 var(--ink);
    overflow: hidden;
    animation: authIn 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes authIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.auth-page .auth-side {
    min-height: 100%;
}

.auth-page .panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
}
.auth-side {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: var(--b);
    border-radius: 23px 0 0 23px;
    background: linear-gradient(160deg, #0a2ad1 0%, #1f66ff 55%, #22c4ff 100%);
}
.auth-side::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.28) 2px, transparent 2.5px);
    background-size: 20px 20px;
    mask-image: linear-gradient(180deg, transparent 35%, #000);
    -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000);
}
.auth-side .ring {
    position: absolute;
    z-index: -1;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}
.auth-side .r1 {
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -110px;
}
.auth-side .r2 {
    width: 150px;
    height: 150px;
    right: -30px;
    bottom: -40px;
    background: rgba(255, 255, 255, 0.12);
}
.auth-side .spark {
    position: absolute;
    right: 26px;
    top: 24px;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    animation: twinkle 2.8s ease-in-out infinite;
}
.auth-side .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 24px;
    line-height: 1;
}
.auth-side .brand img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 8px rgba(120, 200, 255, 0.7));
}
.auth-side h3 {
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.02;
    margin-top: 18px;
    text-shadow: 3px 3px 0 rgba(0, 10, 80, 0.35);
}
.auth-page .form {
    gap: 11px;
}
.auth-page .pw input {
    padding-right: 62px;
}
.auth-side ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-weight: 800;
    font-size: 15px;
}
.auth-side li {
    display: flex;
    gap: 10px;
    align-items: center;
}
.auth-side .ck {
    width: 24px;
    height: 24px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #1f66ff;
    border: 2px solid var(--ink);
}
.auth-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.auth-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    padding: 24px 26px 4px;
}
.auth-top h2 {
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.05;
}
.auth-top .note {
    margin: 4px 0 0;
}
.auth-main .mbody {
    padding: 16px 26px 26px;
}
.auth-page .field input,
.auth-page .field select {
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.auth-page .field input:focus,
.auth-page .field select:focus {
    outline: none;
    border-color: var(--hub);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hub) 28%, transparent);
}
.auth-page .btn.pink {
    height: 52px;
    font-size: 17px;
}
@media (max-width: 720px) {
    .auth-page .panel {
        grid-template-columns: 1fr;
    }
    .auth-side {
        border-right: 0;
        border-bottom: var(--b);
        border-radius: 23px 23px 0 0;
        padding: 18px 20px;
        gap: 10px;
    }
    .auth-side ul,
    .auth-side .ring {
        display: none;
    }
    .auth-side h3 {
        margin-top: 0;
        font-size: 26px;
    }
    .auth-top {
        padding: 18px 18px 0;
    }
    .auth-main .mbody {
        padding: 14px 18px 20px;
    }
}
/* product page */
.crumbs {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 20px 18px;
}
.crumbs .note {
    min-width: 0;
    overflow-wrap: anywhere;
}
.pp-hero {
    --fg: #1b1530;
    --muted: #3b3458;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    border: var(--b);
    border-radius: 30px;
    box-shadow: 8px 8px 0 var(--ink);
    color: var(--fg);
    background: linear-gradient(135deg, hsl(var(--h) 92% 74%), hsl(calc(var(--h) + 35) 95% 81%));
}
.pp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.55) 2.2px, transparent 2.7px);
    background-size: 22px 22px;
    mask-image: linear-gradient(110deg, transparent 30%, #000 75%);
    -webkit-mask-image: linear-gradient(110deg, transparent 30%, #000 75%);
}
.pp-hero .blob {
    position: absolute;
    z-index: -1;
    border: 3px solid var(--ink);
    border-radius: 50%;
}
.pp-hero .b1 {
    width: 240px;
    height: 240px;
    right: -70px;
    top: -90px;
    background: hsl(calc(var(--h) + 180) 90% 72%);
    animation: drift 7s ease-in-out infinite;
}
.pp-hero .b2 {
    width: 130px;
    height: 130px;
    left: 42%;
    bottom: -60px;
    background: var(--yellow);
    animation: drift 9s ease-in-out infinite reverse;
}
.pp-hero .spark {
    position: absolute;
    z-index: -1;
    color: #fff;
    -webkit-text-stroke: 2px var(--ink);
    font-size: 34px;
    line-height: 1;
    animation: twinkle 2.8s ease-in-out infinite;
}
.pp-hero .s1 {
    right: 8%;
    bottom: 14%;
}
.pp-hero .s2 {
    left: 47%;
    top: 10%;
    font-size: 26px;
    animation-delay: 0.9s;
}
.pp-hero .s3 {
    right: 30%;
    top: 6%;
    font-size: 22px;
    animation-delay: 1.7s;
}
@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0);
    }
    50% {
        transform: translate(-14px, 12px) rotate(8deg);
    }
}
@keyframes twinkle {
    0%,
    100% {
        transform: scale(1) rotate(0);
    }
    50% {
        transform: scale(1.25) rotate(15deg);
    }
}
.pp-cover {
    position: relative;
    aspect-ratio: 16/10;
    border: var(--b);
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 8px 8px 0 var(--ink);
    transform: rotate(-2deg);
    transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pp-cover:hover {
    transform: rotate(0) scale(1.02);
}
.pp-cover img,
.pp-cover canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pp-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.pp-head .cmeta,
.pp-head .rate {
    color: var(--muted);
}
.pp-head h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;
}
.pp-tag {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    max-width: 40ch;
}
.pp-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.pp-price {
    font-family: var(--display);
    font-size: 34px;
    line-height: 1;
    background: var(--yellow);
    color: var(--on-pop);
    border: var(--b);
    border-radius: 14px;
    padding: 6px 14px;
    box-shadow: var(--sh-sm);
    transform: rotate(-3deg);
    font-variant-numeric: tabular-nums;
}
.pp-price s {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 800;
    opacity: 0.7;
    margin-left: 6px;
}
.pp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding-block: 28px 10px;
    align-items: start;
}
.pp-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}
.pp-card {
    background: var(--surface);
    border: var(--b);
    border-radius: 24px;
    box-shadow: var(--sh);
    padding: 22px;
    min-width: 0;
}
.pp-card > h2 {
    font-size: 30px;
    margin-bottom: 14px;
}
.pp-desc {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--muted);
    white-space: pre-line;
    max-width: 68ch;
}
.fgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.fcard {
    display: flex;
    gap: 10px;
    align-items: start;
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 12px 14px;
    font-weight: 800;
}
.fstar {
    color: var(--yellow);
    -webkit-text-stroke: 1.5px var(--ink);
    font-size: 20px;
    line-height: 1.1;
    flex: none;
}
.pp-yt {
    margin: 0;
}
.shots-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pp-card .reviews {
    padding: 0;
}
.pp-side {
    position: sticky;
    top: 100px;
    min-width: 0;
}
.buybox {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.buybox .big-price {
    font-size: 46px;
}
.perks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-weight: 800;
    font-size: 14px;
}
.perks li {
    display: flex;
    gap: 8px;
    align-items: center;
}
.perks li::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex: none;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
    color: var(--on-pop);
    font-size: 12px;
    font-weight: 900;
}
.pp-more {
    padding-block: 28px 10px;
}
.pp-more h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    margin-bottom: 16px;
}
.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.more-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    background: var(--surface);
    border: var(--b);
    border-radius: 20px;
    box-shadow: var(--sh);
    overflow: hidden;
    transition:
        transform 0.18s cubic-bezier(0.3, 1.6, 0.5, 1),
        box-shadow 0.18s;
}
.more-card:hover {
    transform: translate(-3px, -4px) rotate(-0.6deg);
    box-shadow: 8px 9px 0 var(--ink);
}
.mc-cover {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    border-bottom: var(--b);
    overflow: hidden;
    background: var(--soft);
}
.mc-cover img,
.mc-cover canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mc-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}
.mc-body b {
    font-family: var(--display);
    font-weight: 400;
    font-size: 20px;
    line-height: 1.1;
}
.mc-price {
    font-family: var(--display);
    font-size: 18px;
    background: var(--yellow);
    color: var(--on-pop);
    border: 2px solid var(--ink);
    border-radius: 10px;
    padding: 2px 8px;
    flex: none;
}
@media (max-width: 900px) {
    .pp-body {
        grid-template-columns: 1fr;
    }
    .pp-side {
        position: static;
        order: -1;
    }
}
@media (max-width: 760px) {
    .pp-hero {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 22px;
        border-radius: 24px;
    }
    .pp-cover {
        transform: rotate(-1deg);
    }
}
.contact-head {
    padding-block: 28px 26px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 14px;
}
.contact-head h1 {
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1;
}
.contact-head p {
    font-size: 19px;
    font-weight: 700;
    color: var(--muted);
    margin: 0;
    max-width: 52ch;
}
.contact {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    padding-bottom: 56px;
    align-items: start;
}
#contactView .contact-info {
    background: var(--surface);
    border: var(--b);
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 18px;
}
.ccards {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}
.ccard {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: var(--b);
    border-radius: 16px;
    box-shadow: var(--sh-sm);
    padding: 10px 12px;
    font-weight: 800;
    min-width: 0;
    text-decoration: none;
    color: var(--fg);
    transition:
        transform 0.12s,
        box-shadow 0.12s;
}
a.ccard:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}
.ccard .ic {
    width: 40px;
    height: 40px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    color: var(--on-pop);
}
.ccard .tx {
    min-width: 0;
    flex: 1;
}
.ccard small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ccard .v {
    overflow-wrap: anywhere;
}
.msg {
    background: var(--surface);
    border: var(--b);
    border-radius: 18px;
    box-shadow: var(--sh-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.msg.unread {
    border-color: var(--pink);
    box-shadow: 4px 4px 0 var(--pink);
}
.msg .top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: start;
}
.msg p {
    margin: 0;
    font-weight: 600;
    white-space: normal;
    overflow-wrap: anywhere;
}
.newdot {
    font-family: var(--body);
    font-size: 11px;
    font-weight: 900;
    background: var(--pink);
    color: var(--on-pop);
    border: 2px solid var(--ink);
    border-radius: 99px;
    padding: 0 7px;
    margin-left: 6px;
    vertical-align: 3px;
}
@media (max-width: 820px) {
    .contact {
        grid-template-columns: 1fr;
    }
}
.shot-slots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}
.slot {
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 10px;
    background: var(--soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.slot .drop {
    aspect-ratio: 16/9;
    font-size: 14px;
    background: var(--surface);
    border-width: 2px;
}
.slot input,
.slot textarea {
    border: 2px solid var(--ink);
    border-radius: 10px;
    background: var(--surface);
    padding: 8px 10px;
    font-weight: 700;
    width: 100%;
}
.slot textarea {
    min-height: 72px;
    resize: vertical;
}
@media (max-width: 620px) {
    .shot-slots {
        grid-template-columns: 1fr;
    }
}
.shots {
    grid-column: 1/-1;
    border-top: var(--b);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.shots > h3 {
    font-size: 32px;
}
.shot {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: center;
    background: var(--soft);
    border: var(--b);
    border-radius: 20px;
    padding: 14px;
    box-shadow: var(--sh-sm);
}
.shot.flip .shot-img {
    order: 2;
}
.shot-img {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16/10;
    border: var(--b);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
    padding: 0;
    cursor: zoom-in;
    font-weight: 800;
    color: var(--muted);
}
.shot-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shot-txt {
    min-width: 0;
}
.shot-txt h4 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 26px;
    margin: 0 0 6px;
    line-height: 1.1;
}
.shot-txt p {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    white-space: normal;
}
@media (max-width: 720px) {
    .shot {
        grid-template-columns: 1fr;
    }
    .shot.flip .shot-img {
        order: 0;
    }
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 65;
    background: rgba(10, 7, 32, 0.88);
    display: grid;
    place-items: center;
    padding: 20px;
    cursor: zoom-out;
}
.lightbox figure {
    margin: 0;
    max-width: min(1100px, 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lightbox img {
    max-height: 78vh;
    width: auto;
    max-width: 100%;
    border: var(--b);
    border-radius: 16px;
    background: #fff;
    align-self: center;
}
.lightbox figcaption {
    color: #fff;
    font-weight: 800;
    text-align: center;
    max-width: 60ch;
    align-self: center;
}
.optin {
    display: flex;
    gap: 12px;
    align-items: start;
    background: var(--yellow);
    color: var(--on-pop);
    border: var(--b);
    border-radius: 16px;
    box-shadow: var(--sh-sm);
    padding: 12px 14px;
    cursor: pointer;
}
.optin input {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 2px;
    accent-color: var(--purple);
}
.optin b {
    display: block;
    font-size: 16px;
}
.optin small {
    display: block;
    font-weight: 700;
    font-size: 13px;
    opacity: 0.85;
}
.link {
    border: 0;
    background: none;
    padding: 0;
    font-weight: 800;
    color: var(--pink);
    text-decoration: underline;
    font-size: 13px;
}
.row {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.row.total {
    font-family: var(--display);
    font-weight: 400;
    font-size: 28px;
}

.form {
    display: grid;
    gap: 14px;
}
.form .two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 560px) {
    .form .two {
        grid-template-columns: 1fr;
    }
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.field label,
.field .lab {
    font-weight: 900;
    font-size: 14px;
}
.field small {
    font-weight: 700;
    color: var(--muted);
    font-size: 12px;
}
.field input,
.field select,
.field textarea {
    border: var(--b);
    border-radius: 12px;
    background: var(--surface);
    padding: 10px 12px;
    font-weight: 700;
    width: 100%;
}
.field textarea {
    min-height: 96px;
    resize: vertical;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
    border-color: var(--red);
    background: color-mix(in srgb, var(--red) 8%, var(--surface));
}
.ferr {
    color: var(--red);
    font-weight: 800;
    font-size: 12px;
}
.hosts-pick {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hosts-pick label {
    display: flex;
    align-items: center;
    gap: 6px;
    border: var(--b);
    border-radius: 12px;
    padding: 6px 10px;
    font-weight: 800;
    cursor: pointer;
    background: var(--surface);
}
.hosts-pick label:has(input:checked) {
    background: var(--yellow);
    color: var(--on-pop);
}
.drop {
    border: 3px dashed var(--ink);
    border-radius: 16px;
    background: var(--soft);
    aspect-ratio: 16/7;
    display: grid;
    place-items: center;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    font-weight: 800;
    padding: 12px;
}
.drop.over {
    background: var(--yellow);
    color: var(--on-pop);
}
.drop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: var(--b);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
    border-radius: 23px 23px 0 0;
}
.mhead h2 {
    font-size: 30px;
}
.mbody {
    padding: 20px 22px;
}
.mfoot {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 22px;
    border-top: var(--b);
    position: sticky;
    bottom: 0;
    background: var(--surface);
    border-radius: 0 0 23px 23px;
}
.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    cursor: pointer;
}
.toggle input {
    width: 20px;
    height: 20px;
    accent-color: var(--purple);
}
.pw {
    position: relative;
}
.pw button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    font-weight: 900;
    font-size: 12px;
    color: var(--purple);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 30px) rotate(-2deg);
    background: var(--yellow);
    color: var(--on-pop);
    border: var(--b);
    border-radius: 14px;
    box-shadow: var(--sh-sm);
    padding: 10px 16px;
    font-weight: 900;
    z-index: 70;
    opacity: 0;
    transition: 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
    pointer-events: none;
    max-width: calc(100% - 32px);
}
.toast.on {
    opacity: 1;
    transform: translate(-50%, 0) rotate(-2deg);
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- multi-page additions ---------- */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main {
    flex: 1;
}
.bar .wrap {
    padding-inline: 16px;
}
.logo span {
    white-space: nowrap;
}
.nav a[aria-current="page"] {
    background: var(--soft);
}
.menu-wrap {
    position: relative;
}
.menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 210px;
    background: var(--surface);
    border: var(--b);
    border-radius: 16px;
    box-shadow: var(--sh);
    padding: 6px;
    display: none;
    z-index: 30;
}
.menu.on {
    display: grid;
}
.menu a,
.menu button {
    display: block;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    color: var(--fg);
    background: none;
    border: 0;
    font-size: 15px;
}
.menu a:hover,
.menu button:hover {
    background: var(--soft);
}
.menu button {
    color: var(--red);
}
.icon-btn {
    padding: 0 11px;
}
.cart-n.dot {
    position: absolute;
    top: -9px;
    right: -9px;
}
.site-foot {
    padding-block: 24px 40px;
    font-weight: 700;
    color: var(--muted);
}
.foot-in {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.site-foot a {
    color: inherit;
}
.empty.flat {
    box-shadow: none;
}
.li .th {
    display: block;
}
a.btn {
    color: var(--on-pop);
}
a.btn.white {
    color: var(--fg);
}
a.btn.purple {
    color: #fff;
}
.page-pad {
    padding-block: 18px 50px;
}
@media (max-width: 440px) {
    .hide-xs {
        display: none;
    }
}
.panel2 {
    background: var(--surface);
    border: var(--b);
    border-radius: 22px;
    box-shadow: var(--sh);
    padding: 18px;
    min-width: 0;
}
.panel2 h3 {
    font-size: 24px;
    margin-bottom: 12px;
}
.track {
    height: 18px;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: var(--soft);
    overflow: hidden;
}
.track span {
    display: block;
    height: 100%;
    background: var(--purple);
    border-right: 2px solid var(--ink);
}
.mini {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
}
.mini small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}
/* checkout */
.co {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.co-list {
    display: grid;
    gap: 12px;
}
.co-sum {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.co-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 34px 22px;
}
.co-ok .big-ic {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: var(--b);
    background: var(--mint);
    display: grid;
    place-items: center;
    box-shadow: var(--sh-sm);
}
.co-ok p {
    margin: 0;
    max-width: 52ch;
    color: var(--muted);
    font-weight: 700;
}
@media (max-width: 820px) {
    .co {
        grid-template-columns: 1fr;
    }
    .co-sum {
        position: static;
    }
}

/* ---------- plugin page: tutorial link, ratings and reviews, specs ---------- */
.yt {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px;
    padding: 14px;
    border: var(--b);
    border-radius: 18px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--sh-sm);
    transition: transform 0.12s;
}
.yt:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}
.yt .play {
    width: 58px;
    height: 42px;
    flex: none;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.yt b {
    font-family: var(--display);
    font-weight: 400;
    font-size: 21px;
    display: block;
    line-height: 1.1;
}
.yt small {
    font-weight: 800;
    opacity: 0.9;
}
.reviews {
    padding: 0 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reviews h3 {
    font-size: 24px;
}
.rsum {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 16px;
    padding: 12px 14px;
}
.rsum .big {
    font-family: var(--display);
    font-size: 44px;
    line-height: 1;
    text-align: center;
}
.dist {
    display: grid;
    gap: 3px;
    font-size: 12px;
    font-weight: 800;
}
.dist div {
    display: grid;
    grid-template-columns: 14px 1fr 22px;
    gap: 6px;
    align-items: center;
}
.dist .track {
    height: 10px;
}
.dist .track span {
    background: var(--yellow);
}
.rv {
    border-bottom: 2px dashed var(--soft);
    padding-bottom: 10px;
}
.rv:last-child {
    border-bottom: 0;
}
.rv .top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 900;
}
.rv p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 600;
    white-space: normal;
}
.vbadge {
    font-size: 11px;
    background: var(--mint);
    color: var(--on-pop);
    border: 2px solid var(--ink);
    border-radius: 99px;
    padding: 0 7px;
    margin-left: 6px;
    font-weight: 900;
    vertical-align: 1px;
}
.pick {
    display: flex;
    gap: 4px;
}
.pick button {
    border: 0;
    background: none;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    transition: transform 0.1s;
}
.pick button.on {
    color: var(--yellow);
}
.pick button:hover {
    transform: scale(1.2) rotate(-8deg);
}
.specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    background: var(--soft);
    border: 2px solid var(--ink);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    margin: 0;
}
.specs dt {
    font-weight: 900;
}
.specs dd {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    text-align: right;
}
.pp-yt {
    margin: 0;
}
.big-price s {
    font-family: var(--body);
    font-size: 16px;
    font-weight: 800;
    opacity: 0.7;
    margin-left: 8px;
}
