/* HOLLA MARKET: production theme based on design-preview, variant B. */
:root {
    --paper: #e4e7ea;
    --paper-2: #d9dde1;
    --card: #ffffff;
    --card-2: #f2f4f6;
    --ink: #111317;
    --ink-2: #2e333b;
    --muted: #5e6571;
    --line: #d3d7dc;
    --yellow: #ffc21a;
    --yellow-soft: #fff0bf;
    --good: #0b7a47;
    --good-bright: #3be08a;
    --bad: #c4302a;
    --bw: 1.5px;
    --poster-shadow: 3px 3px 0 var(--ink);
    --poster-shadow-sm: 2px 2px 0 var(--ink);
    --poster-radius: 18px;
    --poster-radius-sm: 12px;
    --poster-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --app-safe-top: max(
        env(safe-area-inset-top, 0px),
        var(--tg-safe-area-inset-top, 0px),
        var(--tg-content-safe-area-inset-top, 0px),
        var(--tg-runtime-safe-top, 0px)
    );
    --app-safe-right: max(
        env(safe-area-inset-right, 0px),
        var(--tg-safe-area-inset-right, 0px),
        var(--tg-content-safe-area-inset-right, 0px),
        var(--tg-runtime-safe-right, 0px)
    );
    --app-safe-bottom: max(
        env(safe-area-inset-bottom, 0px),
        var(--tg-safe-area-inset-bottom, 0px),
        var(--tg-content-safe-area-inset-bottom, 0px),
        var(--tg-runtime-safe-bottom, 0px)
    );
    --app-safe-left: max(
        env(safe-area-inset-left, 0px),
        var(--tg-safe-area-inset-left, 0px),
        var(--tg-content-safe-area-inset-left, 0px),
        var(--tg-runtime-safe-left, 0px)
    );

    --bg: var(--paper);
    --surface: var(--card);
    --surface-2: var(--card-2);
    --border: var(--ink);
    --border-soft: var(--line);
    --text: var(--ink);
    --text-2: var(--muted);
    --hint: var(--muted);
    --accent: var(--yellow);
    --accent-soft: rgba(255, 194, 26, 0.22);
    --accent-strong: rgba(255, 194, 26, 0.36);
    --accent-glow: rgba(255, 194, 26, 0.32);
    --accent-hover: #ffd154;
    --accent-deep: #e2a700;
    --green: var(--good);
    --green-soft: rgba(11, 122, 71, 0.12);
    --danger: var(--bad);
    --danger-soft: rgba(196, 48, 42, 0.12);
    color-scheme: light;
}

html,
body {
    min-height: 100%;
    background: var(--paper);
}

body {
    color: var(--ink);
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0;
}

button,
input,
select,
textarea {
    font-family: inherit;
    letter-spacing: 0;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

#app {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 460px;
    min-height: 100dvh;
    min-height: var(--tg-runtime-viewport-height, var(--tg-viewport-stable-height, 100dvh));
    margin: 0 auto;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding:
        calc(var(--app-safe-top) + 13px)
        calc(16px + var(--app-safe-right))
        11px
        calc(16px + var(--app-safe-left));
    border: 0;
    background: rgba(228, 231, 234, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

.app-header.scrolled {
    background: rgba(228, 231, 234, 0.97);
    border-bottom: 1px solid var(--line);
}

.app-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: none;
}

.app-brand-accent {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 0 6px;
    border: 1.5px solid var(--ink);
    border-radius: 5px;
    background: var(--yellow);
    color: var(--ink);
}

.header-wallet {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 3px 4px 3px 13px;
    border: var(--bw) solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.header-wallet i {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--yellow);
}

.header-wallet svg {
    width: 16px;
    height: 16px;
}

.header-wallet:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

#content,
body.admin-mode #content {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
        8px
        calc(16px + var(--app-safe-right))
        calc(112px + var(--app-safe-bottom))
        calc(16px + var(--app-safe-left));
}

.large-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
}

.app-title-large {
    display: block;
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0;
}

body[data-active-tab='home'] .large-title-row {
    display: none;
}

.back-to-shop-btn {
    min-height: 40px;
    padding: 8px 11px;
    border: var(--bw) solid var(--ink);
    border-radius: 10px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.tab-panel:not([hidden]) {
    animation: poster-rise 360ms var(--poster-ease) both;
}

@keyframes poster-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Variant B home */
.home-poster-screen {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.poster-b {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
    padding: 18px 18px 20px;
    border-radius: var(--poster-radius);
    background: var(--ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--yellow);
}

.poster-b-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1.5px solid #343940;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.poster-b-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--good-bright);
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.poster-b-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: poster-ping 2s ease-in-out infinite;
}

.poster-b-live.offline {
    color: #ff817b;
}

@keyframes poster-ping {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 224, 138, 0); }
    50% { box-shadow: 0 0 0 5px rgba(59, 224, 138, 0.14); }
}

.poster-b-title {
    margin: 0;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 34px;
    font-weight: 900;
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0;
}

.poster-b-copy {
    max-width: 350px;
    margin: 0;
    color: #b9bec6;
    font-size: 14px;
    line-height: 1.45;
}

.poster-b-ticker {
    margin: 1px -18px 0;
    overflow: hidden;
    border-block: 1.5px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
}

.poster-b-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    padding: 7px 0;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
    animation: poster-marquee 22s linear infinite;
}

.poster-b-ticker-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 10px;
}

.poster-b-ticker-track i {
    font-style: normal;
}

@keyframes poster-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.poster-b-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    border: 1.5px solid var(--ink);
    border-radius: 13px;
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 3px 3px 0 #fff;
    font-size: 15px;
    font-weight: 800;
}

.poster-b-cta svg {
    width: 18px;
    height: 18px;
}

.poster-b-cta:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.wallet-ticket-b {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    overflow: hidden;
    padding: 12px 15px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--yellow);
    box-shadow: var(--poster-shadow);
}

.wallet-ticket-b-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.wallet-ticket-b-main span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.wallet-ticket-b-main strong {
    overflow: hidden;
    font-family: 'Unbounded', sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-ticket-b-cut {
    position: relative;
    width: 0;
    height: 44px;
    border-left: 1.5px dashed var(--ink);
}

.wallet-ticket-b-cut::before,
.wallet-ticket-b-cut::after {
    content: '';
    position: absolute;
    left: -9px;
    width: 16px;
    height: 16px;
    border: var(--bw) solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
}

.wallet-ticket-b-cut::before { top: -25px; }
.wallet-ticket-b-cut::after { bottom: -25px; }

.wallet-ticket-b button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 #fff;
    font-size: 13px;
    font-weight: 800;
}

.wallet-ticket-b button svg {
    width: 15px;
    height: 15px;
}

.wallet-ticket-b button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.home-live-order {
    display: block;
    width: 100%;
    padding: 15px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow);
    text-align: left;
}

.home-live-order-top,
.home-live-order-main,
.home-live-order-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.home-live-order-top {
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.home-live-order-top span:first-child {
    color: var(--bad);
}

.home-live-order-top span:first-child::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
}

.home-live-order-top span:last-child {
    color: var(--muted);
    font-weight: 600;
    text-transform: none;
}

.home-live-order-cover {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border: var(--bw) solid var(--ink);
    border-radius: 10px;
    background: var(--yellow);
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.home-live-order-copy {
    flex: 1;
    min-width: 0;
}

.home-live-order-copy strong,
.home-live-order-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-order-copy strong { font-size: 15px; }
.home-live-order-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.home-live-order-percent {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px;
    font-weight: 900;
}

.home-live-order-percent small {
    font-size: 14px;
}

.home-live-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 38px;
    margin: 13px 0 10px;
}

.home-live-bars i {
    flex: 1;
    min-width: 2px;
    border-radius: 2px 2px 0 0;
    background: #d9dde1;
}

.home-live-bars i.is-done { background: var(--ink); }

.home-live-order-foot {
    color: var(--muted);
    font-size: 11.5px;
}

.home-live-order-foot b { color: var(--ink); }

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.home-section-title {
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.home-section-hint {
    color: var(--muted);
    font-size: 11px;
}

.home-lineup {
    overflow: hidden;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--card);
    box-shadow: var(--poster-shadow);
}

.home-lineup-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 3px 8px;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.home-lineup-row + .home-lineup-row {
    border-top: 1.5px solid var(--line);
}

.home-lineup-row:first-child {
    background: var(--yellow);
}

.home-lineup-row:active {
    background: var(--yellow-soft);
}

.home-lineup-name,
.home-lineup-price {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.home-lineup-dots {
    height: 2px;
    background-image: linear-gradient(90deg, var(--muted) 35%, transparent 0);
    background-position: center;
    background-size: 6px 1.5px;
    background-repeat: repeat-x;
    opacity: 0.65;
}

.home-lineup-sub {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11.5px;
}

.home-news-section,
.home-reviews-section,
.home-socials-section {
    margin: 0;
}

.news-scroller,
.reviews-scroller {
    gap: 11px;
    margin-inline: -16px;
    padding: 3px 16px 5px;
}

.news-card,
.review-card,
.reviews-page-card {
    border: var(--bw) solid var(--ink);
    border-radius: 14px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.news-card::before,
.review-card::before,
.home-social::before {
    display: none;
}

.news-card-body strong,
.review-card-author,
.review-card-text {
    color: var(--ink);
}

.news-card-body p,
.news-meta,
.review-card-meta {
    color: var(--muted);
}

.home-section-title-link {
    color: var(--ink);
}

.reviews-count-badge {
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    background: var(--yellow);
    color: var(--ink);
}

.home-socials {
    gap: 10px;
}

.home-social {
    border: var(--bw) solid var(--ink);
    border-radius: 14px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.home-social:hover,
.home-social:active {
    border-color: var(--ink);
    background: var(--yellow-soft);
}

.home-social-title { color: var(--ink); }
.home-social-hint { color: var(--muted); }
.home-kwork-section { margin-top: -15px; }

/* Shared production surfaces */
.card,
.profile-card,
.balance-card,
.stat-card,
.order-item,
.profile-activity-row,
.admin-plan-form,
.admin-plan-row,
.admin-user-row,
.admin-user-card,
.admin-pricing-block,
.reviews-page-summary,
.selected-artist-catalog,
.artist-profile-section {
    border-color: var(--ink);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.card::before,
.profile-card::before,
.balance-card::before,
.stat-card::before,
.order-item::before {
    display: none;
}

.card h2,
.profile-card-head h2,
.profile-section-title,
.admin-title,
.full-page-title {
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.card-text,
.order-meta,
.profile-username,
.profile-info-cell span,
.profile-activity-row span,
.admin-kicker,
.admin-plan-meta,
.admin-user-meta,
.subtitle {
    color: var(--muted);
}

.profile-overview-card {
    overflow: hidden;
    border: var(--bw) solid var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--yellow);
}

/* Profile follows the B mockup: display face only for identity and metrics. */
[data-panel='profile'],
[data-panel='profile'] button,
[data-panel='profile'] input {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0;
}

[data-panel='profile'] .profile-name,
[data-panel='profile'] .balance-amount,
[data-panel='profile'] .stat-num,
[data-panel='profile'] .profile-card-head h2,
[data-panel='profile'] .profile-section-title {
    font-family: 'Unbounded', sans-serif;
    letter-spacing: 0;
}

[data-panel='profile'] .profile-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.18;
}

[data-panel='profile'] .profile-card-head h2 {
    font-size: 17px;
    line-height: 1.15;
}

[data-panel='profile'] .profile-section-title {
    font-size: 11px;
}

.profile-overview-card .profile-name,
.profile-overview-card .profile-kicker,
.profile-overview-card .profile-info-cell strong {
    color: #fff;
}

.profile-overview-card .profile-username,
.profile-overview-card .profile-info-cell span {
    color: #a9afb8;
}

.profile-overview-card .profile-info-cell {
    border-color: #353a42;
    background: #1b1f25;
}

.profile-main .profile-avatar,
.profile-avatar {
    border: var(--bw) solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--yellow);
}

.profile-overview-card .profile-online-dot {
    border-color: var(--ink);
    box-shadow: none;
}

.balance-card {
    border: var(--bw) solid var(--ink);
    background: var(--yellow);
    box-shadow: var(--poster-shadow);
}

.balance-label,
.balance-amount { color: var(--ink); }

.balance-topup-btn,
.profile-admin-btn {
    border: var(--bw) solid var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

.balance-topup-btn::before,
.balance-topup-btn::after,
.profile-admin-btn::before,
.profile-admin-btn::after,
.artist-profile-section::before {
    content: none;
    display: none;
}

.profile-admin-btn {
    border-color: var(--ink);
}

.profile-admin-btn:hover,
.profile-admin-btn:active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.stat-card {
    border: var(--bw) solid var(--ink);
    border-radius: 12px;
}

.stat-num,
.stat-label { color: var(--ink); }

.category-dropdown-trigger,
.category-dropdown-menu,
.category-dropdown-item,
.presave-dropdown-trigger,
.presave-dropdown-menu,
.presave-dropdown-item {
    border-color: var(--ink);
    background: var(--card);
    color: var(--ink);
}

.category-dropdown-trigger,
.presave-dropdown-trigger {
    border-width: var(--bw);
    box-shadow: var(--poster-shadow-sm);
}

.category-dropdown-item.active,
.presave-dropdown-item.is-active {
    background: var(--yellow);
    color: var(--ink);
}

.plans-grid { gap: 10px; }

.plan-card {
    overflow: visible;
    border: var(--bw) solid var(--ink);
    border-radius: 13px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.plan-card::before { display: none; }

.plan-card.selected,
.plan-card.popular {
    border-color: var(--ink);
    background: var(--yellow);
    box-shadow: var(--poster-shadow);
}

.plan-card .plan-number,
.plan-card .plan-price,
.plan-card .plan-custom-title { color: var(--ink); }

.plan-card .plan-sublabel,
.plan-card .plan-price-per { color: var(--muted); }

.plan-divider { background: var(--line); }

.plan-badge {
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: var(--yellow);
}

.filter-chips { gap: 8px; }

.chip {
    border: var(--bw) solid var(--ink);
    background: var(--card);
    color: var(--muted);
    box-shadow: 1px 1px 0 var(--ink);
}

.chip.active {
    border-color: var(--ink);
    background: var(--yellow);
    color: var(--ink);
}

.order-item {
    border: var(--bw) solid var(--ink);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--poster-shadow-sm);
}

.order-title,
.order-id,
.progress-label { color: var(--ink); }

.progress {
    border: 1px solid var(--ink);
    background: var(--paper-2);
}

.progress-fill,
.progress-fill.done { background: var(--yellow); }

.badge {
    border: 1px solid currentColor;
}

.btn {
    border: var(--bw) solid var(--ink);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.btn::before,
.btn::after { display: none; }

.btn-primary,
.btn-sm-primary {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

.btn:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.plain-btn,
.profile-mini-link,
.text-btn {
    color: var(--ink);
}

input,
select,
textarea,
.input,
.textarea,
.url-input-wrap,
.artist-url-field {
    border-color: var(--ink);
    background: var(--card);
    color: var(--ink);
}

.artist-url-field,
.url-input-wrap {
    border-width: var(--bw);
    box-shadow: var(--poster-shadow-sm);
}

input::placeholder,
textarea::placeholder { color: #858b94; }

/* Remove the legacy blue/dark layers from the artist and release workflow. */
.artist-profile-section {
    overflow: visible;
    padding: 16px;
    border: var(--bw) solid var(--ink);
    background: var(--card);
    box-shadow: var(--poster-shadow);
}

.artist-profile-head .card-text {
    color: var(--muted);
    font-family: 'Onest', sans-serif;
}

.profile-section-kicker,
.artist-library-select small,
.artist-card-copy span,
.artist-open-link {
    color: var(--ink);
}

.artist-count-badge,
.artist-releases-head span {
    border: 1.5px solid var(--ink);
    border-radius: 7px;
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 1px 1px 0 var(--ink);
}

.artist-link-form {
    align-items: stretch;
    gap: 9px;
}

.artist-url-field {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.artist-url-field span {
    color: var(--muted);
}

.artist-link-form input {
    min-height: 50px;
    border: var(--bw) solid var(--ink);
    border-radius: 11px;
    background: var(--card);
    color: var(--ink);
    box-shadow: none;
}

.artist-add-btn,
.artist-add-btn:hover,
.artist-add-btn:active {
    min-height: 48px;
    border: var(--bw) solid var(--ink);
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

.artist-add-btn::before,
.artist-add-btn::after {
    content: none;
    display: none;
}

.artist-catalog-loading,
.artist-library-empty,
.catalog-empty {
    border: var(--bw) solid var(--ink);
    border-radius: 12px;
    background: var(--card-2);
    color: var(--muted);
}

.artist-library-empty > span,
.catalog-empty > svg,
.artist-cover-fallback {
    border: 1.5px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: none;
}

.artist-library-empty h3,
.artist-library-select strong,
.artist-card-copy h3,
.artist-releases-head h3,
.release-option strong,
.artist-release-card strong {
    color: var(--ink);
}

.artist-library-empty p,
.artist-library-select p,
.release-option small,
.artist-release-card small {
    color: var(--muted);
}

.artist-library-item,
.order-artist-option,
.saved-artist-choice,
.release-option,
.artist-release-card {
    border: var(--bw) solid var(--ink);
    background: var(--card);
    color: var(--ink);
    box-shadow: 1px 1px 0 var(--ink);
}

.artist-library-item.selected,
.order-artist-option.selected,
.saved-artist-choice.selected,
.release-option.selected {
    border-color: var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.artist-library-select i,
.order-artist-option i,
.saved-artist-choice > svg {
    color: var(--ink);
}

.artist-library-actions button,
.artist-carousel-arrow {
    border: var(--bw) solid var(--ink);
    background: var(--card-2);
    color: var(--ink);
    box-shadow: 1px 1px 0 var(--ink);
}

.artist-card {
    border: var(--bw) solid var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

.artist-card-copy span,
.artist-card-copy h3,
.artist-card .artist-open-link,
.artist-card .artist-stats strong {
    color: #fff;
}

.artist-card-copy span,
.artist-card .artist-stats small {
    color: #a9afb8;
}

.artist-card .artist-cover-fallback {
    background: var(--yellow);
    color: var(--ink);
}

.artist-stats div {
    border-color: #353a42;
    background: #1b1f25;
}

.order-step-heading > span,
.release-picker-head > span {
    border: 1.5px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
}

.release-option-cover,
.release-cover-wrap {
    border: 1px solid var(--ink);
    background: var(--paper-2);
}

.release-option-cover i,
.release-cover-wrap i {
    background: var(--ink);
    color: var(--yellow);
}

.profile-mini-link {
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    background: var(--yellow);
    color: var(--ink);
}

.profile-activity-row {
    border-color: var(--line);
    background: var(--card-2);
}

.modal-backdrop {
    background: rgba(17, 19, 23, 0.56);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-sheet {
    border: var(--bw) solid var(--ink);
    border-bottom: 0;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 -3px 0 var(--yellow);
}

.modal-sheet h2,
.modal-header-row h2 {
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.modal-close-x {
    border: var(--bw) solid var(--ink);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.option-card,
.topup-payer-option,
.party-lookup-card,
.order-modal-badge {
    border-color: var(--ink);
    background: var(--card);
    color: var(--ink);
}

.profile-connect-hint {
    border: 1.5px solid var(--ink);
    background: var(--yellow-soft);
}

.profile-connect-hint > span {
    border: 1.5px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
}

.profile-connect-hint b { color: var(--ink); }
.profile-connect-hint span span,
.profile-connect-hint div span { color: var(--muted); }
.profile-connect-hint button { background: var(--yellow); color: var(--ink); }

.target-mode-switch {
    border-color: var(--ink);
    background: var(--card-2);
}

.target-mode-switch button { color: var(--muted); }
.target-mode-switch button.active { background: var(--yellow); color: var(--ink); }

.topup-payer-option.active,
.topup-payer-option.is-selected,
.topup-payer-option[aria-pressed='true'] {
    border-color: var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.topup-payer-icon,
.party-lookup-icon {
    border: 1.5px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
}

.party-lookup-card,
.topup-fee-preview {
    border: 1.5px solid var(--ink);
    background: var(--yellow-soft);
    color: var(--ink);
}

#topup-submit,
#topup-submit:hover,
#topup-submit:active {
    border: var(--bw) solid var(--ink);
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

#topup-submit::before,
#topup-submit::after {
    content: none;
    display: none;
}

.topup-quick-grid button {
    border: 1.5px solid var(--ink);
    background: var(--card);
    color: var(--ink);
}

.topup-quick-grid button:active { background: var(--yellow); }

.checkout-bar {
    border: var(--bw) solid var(--ink);
    border-bottom: 0;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 -3px 0 var(--yellow);
}

.checkout-total,
.checkout-price { color: var(--ink); }

.admin-toolbar,
.admin-metric-strip,
.admin-tabbar {
    border-color: var(--ink);
    background: var(--card);
    color: var(--ink);
}

.admin-nav-btn.active {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--ink);
}

.news-cover {
    background: var(--yellow-soft);
}

.news-cover-fallback {
    color: var(--ink);
}

.news-cover-fallback svg {
    filter: none;
}

.admin-metric-strip {
    border: var(--bw) solid var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.admin-form-grid input,
.admin-form-grid select,
.admin-balance-field input,
.admin-pricing-row input {
    border-color: var(--ink);
    background: var(--card);
    color: var(--ink);
}

/* Four-item navigation from variant B. History remains reachable from profile. */
.tabbar {
    position: fixed;
    z-index: 80;
    left: 50%;
    right: auto;
    bottom: calc(10px + max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px)));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: min(calc(100% - 24px), 436px);
    height: auto;
    padding: 6px;
    transform: translateX(-50%);
    border: var(--bw) solid var(--ink);
    border-radius: 20px;
    background: var(--card);
    box-shadow: var(--poster-shadow);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tabbar.hide {
    transform: translate(-50%, 120px);
    opacity: 0;
    pointer-events: none;
}

body.modal-open .tabbar {
    transform: translate(-50%, 120px);
    opacity: 0;
    pointer-events: none;
}

.tab-indicator { display: none; }

.tab {
    width: auto;
    height: 58px;
    padding: 6px 2px;
    border-radius: 13px;
    color: var(--muted);
    gap: 3px;
}

.tab[data-tab='home'] { order: 1; }
.tab[data-tab='order'] { order: 2; }
.tab[data-tab='orders'] { order: 3; }
.tab[data-tab='history'] { display: none; }
.tab[data-tab='profile'] { order: 4; }

.tab svg {
    width: 21px;
    height: 21px;
    filter: none;
}

.tab-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
}

.tab.active {
    background: var(--yellow);
    color: var(--ink);
}

.tab.active svg { filter: none; }

.tab[data-tab='order'] svg {
    padding: 3px;
    border-radius: 7px;
    background: var(--ink);
    color: var(--yellow);
}

.tab-badge {
    top: 2px;
    right: 8px;
    border: 1.5px solid var(--card);
    background: var(--bad);
    box-shadow: none;
}

.toast {
    border: var(--bw) solid var(--ink);
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
}

#loading-splash {
    background: var(--paper);
    color: var(--ink);
}

#loading-splash .splash-bg,
#loading-splash .splash-grid,
#loading-splash .splash-orbit { display: none; }

.splash-mark {
    border: var(--bw) solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
    box-shadow: var(--poster-shadow);
}

.splash-brand,
.splash-brand span { color: var(--ink); }

.splash-progress {
    border: 1.5px solid var(--ink);
    background: var(--card);
}

.splash-progress-fill { background: var(--yellow); }

.splash-status { color: var(--muted); }

#auth-stub {
    background: var(--paper);
    color: var(--ink);
}

.auth-stub-card {
    border: var(--bw) solid var(--ink);
    background: var(--card);
    box-shadow: var(--poster-shadow);
}

.auth-stub-brand,
.auth-stub-title { color: var(--ink); }
.auth-stub-brand span { color: var(--ink); background: var(--yellow); }
.auth-stub-text,
.auth-stub-footer { color: var(--muted); }
.auth-stub-btn { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--yellow); }

/* Fullscreen Telegram keeps controls above the document on some mobile builds. */
html.telegram-mobile .app-header {
    padding-top: calc(var(--app-safe-top) + 28px);
}

html.telegram-mobile.telegram-ios .app-header {
    padding-top: calc(var(--app-safe-top) + 38px);
}

@media (min-width: 520px) {
    body {
        background-color: var(--paper);
        background-image: radial-gradient(var(--paper-2) 1px, transparent 1px);
        background-size: 14px 14px;
    }
}

@media (min-width: 720px) {
    #app {
        display: flex;
        grid-template-columns: none;
        grid-template-rows: none;
        grid-template-areas: none;
    }

    body.admin-mode #app {
        display: flex;
        grid-template-columns: none;
        grid-template-areas: none;
    }

    .app-header {
        padding:
            calc(var(--app-safe-top) + 14px)
            calc(16px + var(--app-safe-right))
            11px
            calc(16px + var(--app-safe-left));
    }

    #content,
    body.admin-mode #content {
        max-width: none;
        padding: 8px 16px 112px;
    }

    .tabbar,
    .tabbar.admin-visible {
        position: fixed;
        top: auto;
        left: 50%;
        bottom: 10px;
        display: grid;
        flex-direction: row;
        width: min(calc(100% - 24px), 436px);
        height: auto;
        padding: 6px;
        transform: translateX(-50%);
        border: var(--bw) solid var(--ink);
        border-radius: 20px;
        background: var(--card);
        box-shadow: var(--poster-shadow);
    }

    body.admin-mode .tabbar,
    body.admin-mode .tabbar.hide {
        display: none;
    }

    .tabbar.admin-visible .tab,
    .tab { width: auto; }

    .checkout-bar {
        max-width: 460px;
    }
}

@media (max-width: 370px) {
    .poster-b-title { font-size: 30px; }
    .wallet-ticket-b { gap: 9px; padding-inline: 12px; }
    .wallet-ticket-b-main strong { font-size: 21px; }
    .wallet-ticket-b button { padding-inline: 11px; }
    .home-lineup-name,
    .home-lineup-price { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .poster-b-ticker-track,
    .poster-b-live i { animation: none; }
}

/* Variant B exact pass: home, reviews, contacts and profile. */
body[data-active-tab='profile'] .large-title-row {
    display: none;
}

.home-poster-screen,
.profile-b-screen {
    padding-top: 10px;
}

.poster-b {
    gap: 16px;
}

.poster-b-title {
    font-size: 36px;
}

.home-reviews-section,
.home-socials-section,
.profile-b-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-section-header,
.profile-b-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-section-title-link,
.profile-b-section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.home-section-chevron {
    width: 18px;
    height: 18px;
}

.home-text-btn,
.profile-b-text-btn {
    flex: none;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.home-quote-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-quote-score {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    padding: 14px 16px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--poster-shadow-sm);
}

.home-quote-score[hidden] {
    display: none;
}

.home-quote-score > b {
    grid-row: 1 / 3;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
}

.home-review-stars,
.home-quote-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--yellow);
}

.home-quote-score small {
    color: #aeb4bd;
    font-size: 12.5px;
}

.home-quotes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-quote {
    position: relative;
    padding: 16px 16px 14px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius-sm);
    background: var(--card);
    box-shadow: var(--poster-shadow-sm);
}

.home-quote::before {
    content: '“';
    position: absolute;
    top: -13px;
    left: 12px;
    color: var(--yellow);
    font-family: 'Unbounded', sans-serif;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 0 var(--ink);
}

.home-quote p {
    margin: 0;
    padding-top: 7px;
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.45;
}

.home-quote-by {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 12px;
}

.home-quote-by > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-quote-by b {
    color: var(--ink);
    font-size: 13.5px;
}

.home-contact-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 6px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius-sm);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
    font-size: 13px;
    font-weight: 700;
}

.home-contact:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.home-contact-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: var(--bw) solid var(--ink);
    border-radius: 12px;
    color: #fff;
}

.home-contact-icon svg {
    width: 21px;
    height: 21px;
}

.home-contact-icon-tg { background: #229ed9; }
.home-contact-icon-vk { background: #2787f5; }
.home-contact-icon-kwork {
    background: #1db954;
    font-size: 14px;
    font-weight: 800;
}

.profile-b-screen {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.pf-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 18px 16px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--yellow);
}

.pf-hero-burst {
    position: absolute;
    right: -15px;
    bottom: -53px;
    z-index: -1;
    color: var(--yellow);
    font-family: 'Unbounded', sans-serif;
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.12;
    transform: rotate(15deg);
}

.pf-hero-burst::before { content: '+'; }

.pf-avatar {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--yellow);
    background-position: center;
    background-size: cover;
    color: var(--ink);
    box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--yellow);
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 900;
}

.pf-id {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.pf-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--good-bright);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pf-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pf-id > b {
    overflow: hidden;
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.pf-id small {
    overflow: hidden;
    color: #aeb4bd;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-tier {
    padding: 7px 9px;
    border-radius: 10px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(3deg);
}

.pf-tier strong { font: inherit; }

.pf-wallet-ticket {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(130px, 0.72fr);
    align-items: stretch;
    overflow: hidden;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--yellow);
    box-shadow: var(--poster-shadow);
}

.pf-wallet-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 15px 5px 15px 16px;
}

.pf-wallet-main > span {
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pf-wallet-main > b {
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.15;
    white-space: nowrap;
}

.pf-wallet-main small {
    overflow: hidden;
    color: #655000;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-wallet-cut {
    position: relative;
    border-inline: 1px dashed rgba(17, 19, 23, 0.48);
}

.pf-wallet-cut::before,
.pf-wallet-cut::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 22px;
    height: 22px;
    border: var(--bw) solid var(--ink);
    border-radius: 50%;
    background: var(--paper);
    transform: translateX(-50%);
}

.pf-wallet-cut::before { top: -13px; }
.pf-wallet-cut::after { bottom: -13px; }

.pf-wallet-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px 12px 11px 3px;
}

.pf-wallet-primary,
.pf-wallet-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: var(--bw) solid var(--ink);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.pf-wallet-primary {
    background: var(--ink);
    color: #fff;
}

.pf-wallet-secondary {
    background: rgba(255, 255, 255, 0.58);
    color: var(--ink);
}

.pf-wallet-primary svg {
    width: 15px;
    height: 15px;
}

.pf-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 14px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius-sm);
    background: var(--card);
    box-shadow: var(--poster-shadow-sm);
}

.pf-stat > span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.pf-stat > b {
    overflow: hidden;
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-stat small {
    color: var(--muted);
    font-size: 11px;
}

.pf-stat small strong { color: inherit; font: inherit; font-weight: 800; }
.pf-stat.is-accent { background: var(--yellow); }
.pf-stat.is-accent > span,
.pf-stat.is-accent small { color: #655000; }

.pf-pills {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pf-pills span {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 9px 4px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--card-2);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.pf-pills b {
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.profile-b-section h2 {
    margin: 0;
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.profile-b-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-b-section-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.profile-b-screen .artist-profile-section {
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-b-screen .artist-link-form {
    gap: 9px;
    padding: 13px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius-sm);
    background: var(--card-2);
    box-shadow: var(--poster-shadow-sm);
}

.profile-b-screen .artist-link-form[hidden] { display: none; }

.profile-b-screen .artist-library-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-b-screen .artist-library-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius-sm);
    background: var(--card);
    box-shadow: var(--poster-shadow-sm);
}

.profile-b-screen .artist-library-item.selected {
    background: var(--yellow);
    box-shadow: var(--poster-shadow);
}

.profile-b-screen .artist-library-select {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.profile-b-screen .artist-library-select .artist-cover,
.profile-b-screen .artist-library-select .artist-cover-fallback {
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

.profile-b-screen .artist-library-select > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-b-screen .artist-library-select strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-b-screen .artist-library-select small,
.profile-b-screen .artist-library-select p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
}

.profile-b-screen .artist-library-actions {
    gap: 5px;
}

.profile-b-screen .artist-library-actions button {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: var(--card-2);
    color: var(--ink);
}

.pf-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--card);
    box-shadow: var(--poster-shadow);
}

.pf-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    color: var(--ink);
    text-align: left;
}

.pf-row + .pf-row { border-top: 1.5px solid var(--line); }
.pf-row:active { background: var(--yellow-soft); }

.pf-row-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--ink);
    border-radius: 11px;
    background: var(--card-2);
}

.pf-row-icon svg { width: 18px; height: 18px; }

.pf-row-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.pf-row-text b { font-size: 14.5px; }
.pf-row-text small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-row-chevron {
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--muted);
}

.profile-b-screen .profile-admin-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--ink);
    color: #fff;
    box-shadow: 3px 3px 0 var(--yellow);
    text-align: left;
}

.profile-b-screen .profile-admin-btn[hidden] { display: none; }

.profile-b-screen .profile-admin-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--yellow);
    color: var(--ink);
}

.profile-b-screen .profile-admin-icon svg { width: 22px; height: 22px; }

.profile-b-screen .profile-admin-text {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.profile-b-screen .profile-admin-text b { color: #fff; font-size: 14.5px; }
.profile-b-screen .profile-admin-text small { color: #aeb4bd; font-size: 12.5px; }
.profile-b-screen .profile-admin-btn .pf-row-chevron { color: var(--yellow); }

body.page-reviews .full-page {
    gap: 16px;
}

.reviews-page-summary {
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--ink);
    color: #fff;
    box-shadow: var(--poster-shadow-sm);
}

.reviews-page-summary .reviews-summary-stars { color: var(--yellow); }
.reviews-page-summary .reviews-summary-avg { color: #fff; }
.reviews-page-summary .reviews-summary-count { color: #aeb4bd; }

.reviews-page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reviews-page-list .review-card {
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius-sm);
    background: var(--card);
    box-shadow: var(--poster-shadow-sm);
}

body.page-tariffs .full-page[data-page="tariffs"] {
    padding-bottom: calc(104px + var(--app-safe-bottom));
}

.tariffs-page .full-page-header {
    align-items: center;
    margin: 2px 0 14px;
}

.tariffs-page .full-page-back {
    border: var(--bw) solid var(--ink);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
}

.tariffs-page-heading {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tariffs-page-heading > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tariffs-page-heading .full-page-title {
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
}

.tariffs-page-lead {
    max-width: 390px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.tariff-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tariff-card {
    position: relative;
    overflow: hidden;
    padding: 17px;
    border: var(--bw) solid var(--ink);
    border-radius: var(--poster-radius);
    background: var(--card);
    color: var(--ink);
    box-shadow: var(--poster-shadow-sm);
    transition: transform 220ms var(--poster-ease), box-shadow 220ms var(--poster-ease);
}

.tariff-card.is-active {
    box-shadow: 5px 5px 0 var(--yellow);
    transform: translate(-1px, -1px);
}

.tariff-card-personal {
    background: var(--yellow-soft);
}

.tariff-card-reseller {
    background: var(--ink);
    color: #fff;
    box-shadow: 4px 4px 0 var(--yellow);
}

.tariff-card-reseller::after {
    content: 'R';
    position: absolute;
    right: -11px;
    bottom: -50px;
    color: var(--yellow);
    font-family: 'Unbounded', sans-serif;
    font-size: 145px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.08;
    transform: rotate(-8deg);
    pointer-events: none;
}

.tariff-card-top,
.tariff-card-title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tariff-index {
    color: var(--muted);
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.tariff-status {
    padding: 5px 8px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--card-2);
    color: var(--ink);
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
}

.tariff-card.is-active .tariff-status {
    background: var(--yellow);
}

.tariff-card-reseller .tariff-index { color: #8f96a1; }
.tariff-card-reseller .tariff-status {
    border-color: var(--yellow);
    background: transparent;
    color: var(--yellow);
}
.tariff-card-reseller.is-active .tariff-status {
    background: var(--yellow);
    color: var(--ink);
}

.tariff-card-title {
    align-items: flex-end;
    margin-top: 17px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--line);
}

.tariff-card-title > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.tariff-card-title span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tariff-card-title h2 {
    margin: 0;
    color: inherit;
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.tariff-card-title > strong {
    flex: none;
    color: var(--ink);
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 900;
}

.tariff-card-reseller .tariff-card-title { border-bottom-color: #353941; }
.tariff-card-reseller .tariff-card-title span { color: #9da4af; }
.tariff-card-reseller .tariff-card-title > strong { color: var(--yellow); }

.tariff-period {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 11px;
    padding: 5px 8px;
    border: 1px solid #3a3f47;
    border-radius: 7px;
    color: #c8cdd4;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tariff-feature-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0 17px;
    padding: 0;
    list-style: none;
}

.tariff-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: inherit;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.35;
}

.tariff-feature-list i {
    position: relative;
    flex: none;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
}

.tariff-feature-list i::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 3px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    transform: rotate(-45deg);
}

.tariff-card-reseller .tariff-feature-list li { color: #eef0f3; }

.tariff-action {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: var(--bw) solid var(--ink);
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 850;
}

.tariff-card-reseller .tariff-action {
    border-color: var(--yellow);
    background: var(--yellow);
    color: var(--ink);
}

.tariff-action:disabled {
    cursor: default;
    opacity: 0.58;
}

.tariff-card.is-active .tariff-action:disabled { opacity: 1; }

.tariff-subscription-state {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    margin: -2px 0 12px;
    padding: 12px;
    border: 1px solid #3b4049;
    border-radius: 10px;
    background: #202329;
}

.tariff-subscription-state[hidden] { display: none; }

.tariff-subscription-state span,
.tariff-subscription-state small {
    color: #9da4af;
    font-size: 10px;
    font-weight: 700;
}

.tariff-subscription-state strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
}

.tariff-subscription-state small {
    color: var(--yellow);
}

.tariff-renew-control {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 38px;
    margin-top: 8px;
    border: 1px solid #434851;
    border-radius: 10px;
    background: transparent;
    color: #c8cdd4;
    font-size: 11px;
    font-weight: 800;
}

.tariff-renew-control[hidden] { display: none; }
.tariff-renew-control:disabled { opacity: 0.5; }

.tariff-purchase-modal {
    max-width: 410px;
    padding: 20px;
}

.tariff-purchase-modal .modal-header-row {
    align-items: flex-start;
    margin-bottom: 17px;
}

.tariff-purchase-modal .modal-header-row h2 {
    margin: 4px 0 0;
    text-align: left;
}

.tariff-modal-kicker {
    color: #7e858f;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.tariff-purchase-summary {
    overflow: hidden;
    border: var(--bw) solid var(--ink);
    border-radius: 12px;
    background: #fff;
}

.tariff-purchase-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 48px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--line);
}

.tariff-purchase-summary > div:last-child { border-bottom: 0; }
.tariff-purchase-summary span { color: var(--muted); font-size: 11px; font-weight: 700; }
.tariff-purchase-summary strong { color: var(--ink); font-size: 13px; font-weight: 900; text-align: right; }
.tariff-purchase-summary strong.is-insufficient { color: #d32f45; }

.tariff-renew-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    border: 1.5px solid var(--ink);
    border-radius: 11px;
    background: var(--yellow-soft);
}

.tariff-renew-note-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    font-size: 19px;
    font-weight: 900;
}

.tariff-renew-note div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tariff-renew-note strong { color: var(--ink); font-size: 11px; line-height: 1.3; }
.tariff-renew-note small { color: var(--muted); font-size: 9.5px; line-height: 1.4; }

.tariff-purchase-error {
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1.5px solid #d32f45;
    border-radius: 10px;
    background: #fff1f3;
    color: #a51d31;
    font-size: 10.5px;
    font-weight: 750;
    line-height: 1.4;
}

.tariff-purchase-error[hidden] { display: none; }

.tariff-confirm-btn,
.tariff-cancel-btn {
    width: 100%;
    min-height: 46px;
    border: var(--bw) solid var(--ink);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 900;
}

.tariff-confirm-btn {
    background: var(--yellow);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}

.tariff-confirm-btn:disabled { opacity: 0.55; }

.tariff-cancel-btn {
    min-height: 40px;
    margin-top: 8px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

.tariffs-page-footnote {
    margin: 16px 10px 0;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.45;
    text-align: center;
}

.admin-tariff-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.admin-tariff-controls .pricing-input {
    width: 100%;
}

@media (max-width: 370px) {
    .poster-b-title { font-size: 32px; }
    .pf-hero { grid-template-columns: auto minmax(0, 1fr); }
    .pf-tier { grid-column: 1 / -1; justify-self: start; transform: none; }
    .pf-wallet-ticket { grid-template-columns: minmax(0, 1fr) 16px 118px; }
    .pf-wallet-main > b { font-size: 21px; }
    .pf-stats { grid-template-columns: 1fr; }
}

/* Alignment fixes after testing inside the Telegram viewport. */
.home-news-section .news-scroller {
    width: 100%;
    margin-inline: 0;
    padding: 2px 3px 8px 0;
    scroll-padding-inline: 0;
}

.home-news-section .news-card {
    flex-basis: 84%;
    max-width: none;
}

.home-reviews-section .home-section-header {
    align-items: center;
    flex-wrap: nowrap;
}

.home-reviews-section .home-section-title-link {
    flex: 1;
    gap: 7px;
    overflow: hidden;
}

.home-reviews-section .home-section-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 17px;
    white-space: nowrap;
}

.home-reviews-section .reviews-count-badge {
    flex: none;
    padding-inline: 8px;
}

.home-reviews-section .home-section-chevron,
.home-reviews-section .home-text-btn {
    flex: none;
}
