/* Premium — badge, sheet, editor section, shop card. --lp-c is the nick colour. */

/* Badge next to the name ------------------------------------------------- */
.lp-badge {
    --lp-c: #55a4df;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05em;
    height: 1.05em;
    margin-left: 4px;
    vertical-align: -0.14em;
    color: var(--lp-c);
    cursor: pointer;
    flex: none;
    transition: transform .18s cubic-bezier(.2, .9, .3, 1.4), filter .18s ease;
}
.lp-badge svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 0 transparent); }
.lp-badge:hover { transform: scale(1.18) rotate(-8deg); }
.lp-badge:hover svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--lp-c) 70%, transparent)); }

/* Sidebar item ------------------------------------------------------------ */
.lp-nav-item .lp-nav-star { color: #55a4df; transition: transform .2s ease; }
.lp-nav-item:hover .lp-nav-star { transform: rotate(-10deg) scale(1.08); }

/* Sheet ------------------------------------------------------------------- */
.lp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: background .22s ease, backdrop-filter .22s ease;
}
.lp-overlay.is-open { background: rgba(0, 0, 0, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.lp-sheet {
    --lp-c: #55a4df;
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 860px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 30px;
    background: var(--card-bg, #0c0c0e);
    border: 1px solid var(--border-color, rgba(255, 255, 255, .1));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px color-mix(in srgb, var(--lp-c) 12%, transparent);
    color: var(--text-main, #fff);
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
    transform: translateY(18px) scale(.97);
    opacity: 0;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
    scrollbar-width: none;
}
.lp-sheet::-webkit-scrollbar { display: none; }
.lp-overlay.is-open .lp-sheet { transform: none; opacity: 1; }

.lp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
}
.lp-close:hover { background: rgba(0, 0, 0, .55); }

.lp-hero {
    position: relative;
    height: 210px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(60% 75% at 50% 58%, color-mix(in srgb, var(--lp-c) 55%, transparent), transparent 70%),
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--lp-c) 22%, #000) 0%, #07070a 70%);
}
body.light-theme .lp-hero {
    background:
        radial-gradient(60% 75% at 50% 58%, color-mix(in srgb, var(--lp-c) 45%, transparent), transparent 70%),
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--lp-c) 25%, #fff) 0%, #f4f6fa 75%);
}
.lp-rays {
    position: absolute;
    inset: -60%;
    background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--lp-c) 22%, transparent) 0deg 7deg, transparent 7deg 22deg);
    mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 55%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 55%);
    animation: lp-spin 26s linear infinite;
}
.lp-sparks { position: absolute; inset: 0; pointer-events: none; }
.lp-sparks i {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 6px;
    height: 6px;
    background: #fff;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    transform: scale(var(--s));
    opacity: 0;
    animation: lp-twinkle 3.2s ease-in-out infinite;
    animation-delay: var(--d);
}
.lp-hero-star {
    position: relative;
    width: 104px;
    height: 104px;
    color: var(--lp-c);
    filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--lp-c) 65%, transparent));
    animation: lp-float 4.5s ease-in-out infinite;
}
.lp-hero-star .lp-star { width: 100%; height: 100%; display: block; }
.lp-hero-star::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
    background-size: 250% 100%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M55.6 9.8L62.3 19.6Q66.0 25.0 72.4 26.2L88.2 29.2Q98.0 31.0 91.4 38.5L79.8 51.6Q75.5 56.5 76.7 62.9L79.6 78.2Q81.5 88.0 72.3 84.1L56.0 77.1Q50.0 74.5 44.0 77.1L28.2 84.0Q19.0 88.0 21.1 78.2L24.3 63.4Q25.0 60.0 28.2 58.5L52.9 46.8Q54.5 46.0 52.8 46.1L21.5 48.2Q17.5 48.5 14.8 45.5L8.6 38.5Q2.0 31.0 11.8 29.2L27.6 26.2Q34.0 25.0 37.7 19.6L44.4 9.8Q50.0 1.5 55.6 9.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M55.6 9.8L62.3 19.6Q66.0 25.0 72.4 26.2L88.2 29.2Q98.0 31.0 91.4 38.5L79.8 51.6Q75.5 56.5 76.7 62.9L79.6 78.2Q81.5 88.0 72.3 84.1L56.0 77.1Q50.0 74.5 44.0 77.1L28.2 84.0Q19.0 88.0 21.1 78.2L24.3 63.4Q25.0 60.0 28.2 58.5L52.9 46.8Q54.5 46.0 52.8 46.1L21.5 48.2Q17.5 48.5 14.8 45.5L8.6 38.5Q2.0 31.0 11.8 29.2L27.6 26.2Q34.0 25.0 37.7 19.6L44.4 9.8Q50.0 1.5 55.6 9.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: lp-shine 3.6s ease-in-out infinite;
}
.lp-hero-star.is-pop { animation: lp-pop .9s cubic-bezier(.2, .9, .3, 1.3), lp-float 4.5s ease-in-out .9s infinite; }

.lp-body { padding: 4px 22px 22px; }
.lp-title {
    margin: 14px 0 6px;
    text-align: center;
    font: 800 26px/1.15 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -.3px;
}
.lp-lead { margin: 0 auto 14px; max-width: 340px; text-align: center; color: var(--text-muted, #8b8b93); font-size: 14px; line-height: 1.5; }
.lp-lead b { color: var(--text-main); }
.lp-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: max-content;
    max-width: 100%;
    margin: -2px auto 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--lp-c) 14%, transparent);
    color: var(--lp-c);
    font-size: 13px;
    font-weight: 800;
}
.lp-status-star { width: 15px; height: 15px; }

.lp-perks {
    display: grid;
    gap: 2px;
    padding: 6px;
    border-radius: 22px;
    background: var(--input-bg, rgba(255, 255, 255, .04));
    border: 1px solid var(--border-color);
}
.lp-perk { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 16px; }
.lp-perk b { display: block; font-size: 14px; font-weight: 800; color: var(--text-main); }
.lp-perk small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.lp-perk-ico {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--lp-c) 92%, #fff), color-mix(in srgb, var(--lp-c) 70%, #000));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.lp-perk-ico svg { width: 19px; height: 19px; }

.lp-section-title { margin: 18px 4px 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.lp-plans { display: grid; gap: 8px; }
.lp-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 14px;
    border-radius: 18px;
    border: 1.5px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.lp-plan:hover { background: rgba(128, 128, 128, .06); }
.lp-plan.is-on { border-color: var(--lp-c); background: color-mix(in srgb, var(--lp-c) 9%, transparent); }
.lp-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-color); position: relative; transition: border-color .15s ease; }
.lp-plan.is-on .lp-radio { border-color: var(--lp-c); }
.lp-plan.is-on .lp-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lp-c); }
.lp-plan-main { flex: 1; min-width: 0; }
.lp-plan-main b { display: block; font-size: 15px; font-weight: 800; }
.lp-plan-main small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.lp-save { flex: none; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--lp-c) 18%, transparent); color: var(--lp-c); font-size: 11.5px; font-weight: 800; }
.lp-price { flex: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.lp-price small { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.lp-skel { height: 58px; border-radius: 18px; background: linear-gradient(90deg, var(--input-bg), rgba(128, 128, 128, .12), var(--input-bg)); background-size: 200% 100%; animation: lp-skel 1.2s linear infinite; }
.lp-closed { margin-top: 16px; padding: 14px; border-radius: 16px; text-align: center; font-weight: 700; color: var(--text-muted); background: var(--input-bg); }

.lp-foot {
    position: sticky;
    bottom: -22px;
    margin: 16px -22px -22px;
    padding: 14px 22px 20px;
    background: linear-gradient(to top, var(--card-bg, #0c0c0e) 75%, transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.lp-buy {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(100deg, color-mix(in srgb, var(--lp-c) 80%, #fff 0%), color-mix(in srgb, var(--lp-c) 70%, #7c3aed));
    box-shadow: 0 10px 28px color-mix(in srgb, var(--lp-c) 40%, transparent);
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, opacity .15s ease;
}
.lp-buy::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    background-size: 250% 100%;
    animation: lp-shine 3.2s ease-in-out infinite;
}
.lp-buy:active { transform: scale(.98); }
.lp-buy:disabled { opacity: .55; cursor: default; }
.lp-buy.is-ghost { background: var(--input-bg); color: var(--text-main); border: 1px solid var(--border-color); box-shadow: none; }
.lp-buy.is-ghost::after { display: none; }
.lp-balance { font-size: 12.5px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.lp-balance.is-short { color: #f4212e; }
.lp-link { border: none; background: none; color: var(--lp-c); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; padding: 4px; }

@media (max-width: 560px) {
    .lp-overlay { align-items: flex-end; padding: 0; }
    .lp-sheet { max-width: none; border-radius: 28px 28px 0 0; max-height: 94vh; transform: translateY(40px); }
}

/* Editor section -------------------------------------------------------- */
.lp-editor {
    --lp-c: #55a4df;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid color-mix(in srgb, var(--lp-c) 35%, var(--border-color));
    background:
        radial-gradient(120% 60% at 0% 0%, color-mix(in srgb, var(--lp-c) 12%, transparent), transparent 60%),
        var(--card-bg);
    scroll-margin-top: 80px;
}
.lp-editor-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 2px; }
.lp-editor-star {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--lp-c);
    background: color-mix(in srgb, var(--lp-c) 14%, transparent);
}
.lp-editor-star .lp-star { width: 26px; height: 26px; }
.lp-editor-copy { flex: 1; min-width: 0; }
.lp-editor-copy b { display: block; font: 800 17px/1.2 'Outfit', 'Plus Jakarta Sans', sans-serif; color: var(--text-main); }
.lp-editor-copy small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
.lp-editor-btn {
    flex: none;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    background: var(--lp-c);
    color: #fff;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
}
.lp-editor-body { display: flex; flex-direction: column; gap: 14px; }
.lp-editor-body > .form-field-card { margin: 0; }
.lp-editor.is-locked .lp-editor-body {
    max-height: 520px;
    overflow: hidden;
    filter: saturate(.6);
    opacity: .55;
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    pointer-events: none;
    user-select: none;
}
.lp-lock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 240px;
    border: none;
    border-radius: 0 0 26px 26px;
    background: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 26px;
    cursor: pointer;
    font: inherit;
}
.lp-lock-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--lp-c);
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--lp-c) 45%, transparent);
    transition: transform .15s ease;
}
.lp-lock:hover .lp-lock-pill { transform: translateY(-2px); }
.lp-lock-pill .lp-star { width: 17px; height: 17px; }

.lp-inline-locked .v9-style-row { opacity: .45; filter: saturate(.5); pointer-events: none; }
.lp-inline-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 9px 2px 7px;
    border: none;
    border-radius: 999px;
    background: color-mix(in srgb, #55a4df 16%, transparent);
    color: #55a4df;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    vertical-align: 1px;
    cursor: pointer;
}
.lp-inline-tag .lp-star { width: 12px; height: 12px; }

/* Shop card ------------------------------------------------------------- */
.lp-shop-card {
    --lp-c: #55a4df;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 14px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--lp-c) 40%, var(--border-color));
    background:
        radial-gradient(90% 140% at 0% 50%, color-mix(in srgb, var(--lp-c) 22%, transparent), transparent 60%),
        var(--card-bg);
    color: var(--text-main);
    font: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease;
}
.lp-shop-card:hover { transform: translateY(-1px); border-color: var(--lp-c); }
.lp-shop-star {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--lp-c);
    background: color-mix(in srgb, var(--lp-c) 16%, transparent);
}
.lp-shop-star .lp-star { width: 34px; height: 34px; filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--lp-c) 55%, transparent)); animation: lp-float 4.5s ease-in-out infinite; }
.lp-shop-copy { flex: 1; min-width: 0; }
.lp-shop-copy b { display: block; font-size: 16px; font-weight: 800; }
.lp-shop-copy small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.lp-shop-cta { flex: none; padding: 10px 16px; border-radius: 999px; background: var(--lp-c); color: #fff; font-weight: 800; font-size: 14px; }
@media (max-width: 480px) {
    .lp-shop-cta { display: none; }
}

/* Motion ------------------------------------------------------------------ */
@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes lp-twinkle { 0%, 100% { opacity: 0; transform: scale(calc(var(--s) * .4)); } 50% { opacity: .9; transform: scale(var(--s)); } }
@keyframes lp-shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes lp-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35) rotate(-12deg); } 65% { transform: scale(.92) rotate(4deg); } 100% { transform: scale(1); } }
@keyframes lp-skel { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
    .lp-rays, .lp-sparks i, .lp-hero-star, .lp-hero-star::after, .lp-buy::after, .lp-shop-star .lp-star { animation: none !important; }
}
