﻿/* ===  hello-theme.css  === */
/* === Base / Containers === */
.container, .wishlist-grid {
    color: var(--text);
}

hr {
    border-color: var(--border);
    opacity: 1;
}

/* Card-like blocks (base) */
.card, .profile-header, .lists-tabs, .wishlist-card {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

/* Privacy indicator */
.privacy-indicator {
    background: #f5f5f7;
}

[data-theme="dark"] .privacy-indicator {
    background: #2a2b31;
}

/* Text */
.text-secondary {
    color: var(--muted) !important;
}

/* Buttons (Bootstrap compat) */
.btn-light {
    background: color-mix(in oklab, var(--card), var(--text) 6%);
    color: var(--text);
    border: 1px solid var(--border);
}

    .btn-light:hover {
        background: color-mix(in oklab, var(--card), var(--text) 12%);
    }

/* Dropdowns (Bootstrap) */
.dropdown-menu {
    background: var(--card);
    border: 1px solid var(--border);
}

.dropdown-item {
    color: var(--text);
}

    .dropdown-item:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
    }

/* Top search input */
.search-input {
    background: color-mix(in oklab, var(--card), var(--text) 6%);
    color: var(--text);
}

    .search-input::placeholder {
        color: var(--muted);
    }

/* Avatar frame (BS .img-thumbnail) */
.img-thumbnail {
    background: var(--card);
    border: 1px solid var(--border);
}

/* Owner chip */
.owner-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.owner-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: var(--card);
    border: 1px solid var(--border);
}

    .owner-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .owner-avatar span {
        font-size: 12px;
        color: var(--text);
    }

.owner-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.owner-name {
    font-weight: 600;
}

.you-badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand), var(--card) 70%);
    color: #fff;
}

/* Info bar */
.cb-infobar {
    max-width: 1200px;
    margin: 10px auto;
    padding: 10px 14px;
    background: color-mix(in oklab, var(--card), var(--brand) 8%);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
}

/* === Profile hero (base) === */
.profile-header {
    position: relative;
    border-radius: 16px;
    padding: 24px;
    margin: 24px auto;
    max-width: 1200px;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* Share button on profile card */
.profile-share {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: var(--text);
    background: color-mix(in oklab, var(--card), var(--text) 8%);
    border: 1px solid var(--border);
}

    .profile-share:hover {
        background: color-mix(in oklab, var(--card), var(--text) 6%);
    }

/* Badges (contrast) */
.profile-badge {
    background: var(--brand);
    color: #fff;
}

.profile-badge--alt {
    background: color-mix(in oklab, var(--brand), var(--text) 30%);
    color: #fff;
}

/* Metrics */
.profile-metrics {
    display: flex;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.metric {
    text-decoration: none;
    color: var(--text);
    padding: 6px 10px;
    border-radius: 12px;
    background: color-mix(in oklab, var(--card), var(--text) 6%);
    border: 1px solid var(--border);
}

    .metric:hover {
        background: color-mix(in oklab, var(--card), var(--text) 10%);
    }

    .metric .num {
        font-weight: 700;
        font-size: 16px;
        line-height: 1.1;
        display: block;
    }

    .metric .label {
        color: var(--muted);
        font-size: 12px;
    }

/* === Tabs container === */
.lists-tabs {
    max-width: 1200px;
    margin: 0 auto 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    gap: 4px;
}

    .lists-tabs .tab {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        padding: 0 12px;
        border-radius: 8px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        color: var(--muted);
        border: 1px solid transparent;
        transition: background .2s, color .2s, border-color .2s;
        text-align: center;
    }

        .lists-tabs .tab:hover {
            background: color-mix(in oklab, var(--card), var(--text) 6%);
            color: var(--text);
        }

        .lists-tabs .tab:focus-visible {
            outline: none;
            border-color: var(--brand);
        }

        .lists-tabs .tab.active {
            background: var(--brand);
            color: #fff;
            box-shadow: 0 4px 14px rgba(0,0,0,.15);
        }

    .lists-tabs.compact .tab {
        height: 34px;
        padding: 0 10px;
        border-radius: 10px;
        font-weight: 600;
    }

        .lists-tabs.compact .tab:hover {
            background: color-mix(in oklab, var(--card), var(--text) 6%);
            color: var(--text);
        }

        .lists-tabs.compact .tab.active {
            background: var(--brand);
            color: #fff !important;
            box-shadow: 0 4px 14px rgba(0,0,0,.15);
        }

    .lists-tabs.owner {
        display: none;
    }

@media (max-width:768px) {
    .lists-tabs.owner {
        display: flex;
    }
}

.tab {
    text-decoration: none;
}

/* === Lists grid & cards === */
.wishlist-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.wishlist-grid--padded {
    padding-bottom: 36px;
}

.wishlist-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: .2s;
    text-decoration: none;
    color: inherit;
}

.wishlist-card--center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.wishlist-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.wishlist-card-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    gap: 16px;
}

.list-glyph {
    flex-shrink: 0;
}

.wishlist-main {
    flex: 1;
    min-width: 0;
}

.wishlist-aside {
    color: var(--muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-badge {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--bg);
    font-size: 18px;
    text-align: right;
}

.wishlist-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.wishlist-description {
    color: var(--muted);
    font-size: 14px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

.wishlist-description--markdown {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}

    .wishlist-description--markdown > * {
        margin: 0;
    }

    .wishlist-description--markdown > :first-child {
        margin-top: 0;
    }

    .wishlist-description--markdown > :last-child {
        margin-bottom: 0;
    }

    .wishlist-description--markdown img {
        max-width: 100%;
        height: auto;
    }

.count {
    color: var(--muted);
    font-size: 14px;
}

/* === Profile details === */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
}

    .profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.profile-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 8px;
}

.profile-username {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 16px;
}

.profile-bio {
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 24px;
    max-width: 72ch;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-name .profile-badge,
.profile-name .profile-badge--alt {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 0;
    background: var(--brand) !important;
    color: #fff !important;
}

.profile-header .profile-name {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
}

    .profile-header .profile-name .profile-badge,
    .profile-header .profile-name .profile-badge--alt {
        -webkit-text-fill-color: #fff !important;
    }

.profile-name .profile-badge--alt {
    background: color-mix(in oklab, var(--brand), var(--text) 35%) !important;
}

.page-content {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
    box-shadow: none;
    border: 0;
    background: transparent;
}

/* === Compact mobile profile header === */
@media (max-width: 520px) {
    .profile-header {
        padding: 16px 16px 12px;
        border-radius: 12px;
        margin: 12px 0;
    }

    .ph-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .profile-avatar.sm {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        overflow: hidden;
        display: grid;
        place-items: center;
    }

    .ph-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .profile-name {
        font-size: 24px;
        margin: 0;
    }

    .profile-username {
        font-size: 13px;
        color: var(--muted);
        margin-top: 2px;
    }

    .share-btn {
        position: absolute;
        right: 12px;
        top: 12px;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--border);
        background: var(--card);
        color: var(--text);
    }

        .share-btn.ok {
            outline: 2px solid color-mix(in oklab, var(--brand), white 30%);
        }

    .ph-stats {
        display: flex;
        gap: 8px;
        margin: 10px 0 0;
    }

    .stat-chip {
        display: flex;
        gap: 6px;
        align-items: baseline;
        padding: 8px 10px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--card);
        color: var(--text);
        text-decoration: none;
    }

        .stat-chip .num {
            font-weight: 700;
        }

    .clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .actions-bar {
        margin-top: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

        .actions-bar .abtn {
            border: 1px solid var(--border);
            background: var(--card);
            border-radius: 12px;
            padding: 10px 12px;
            text-align: center;
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
        }

            .actions-bar .abtn.primary {
                background: var(--brand);
                color: #fff;
                border-color: transparent;
            }

    .lists-tabs {
        position: sticky;
        top: 56px;
        margin: 12px 0;
        padding: 6px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }

    .fab {
        right: 16px;
        bottom: 16px;
    }
}

/* General list page parts */
.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list--simple .li {
    padding: 12px 14px;
    min-height: 64px;
    background: var(--cb-card-bg, rgba(255,255,255,0.06));
}

@media (hover: hover) {
    .list--simple .li:hover {
        background: var(--cb-card-bg-hover, rgba(255,255,255,0.10));
    }
}

.list--simple .li-body {
    flex: 1 1 auto;
    min-width: 0;
}

.list--simple .li-title {
    font-size: 15px;
    margin: 0 0 4px;
}

.list--simple .li-desc {
    margin: 2px 0 0;
    font-size: 13px;
    opacity: 0.8;
}

.list--simple .li-body-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.list--simple .li-meta {
    flex: 0 0 auto;
    text-align: right;
    margin-left: 8px;
}

.list--simple .li-price {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}

.list--simple .li-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.list--simple .li-status--available {
    background: var(--cb-status-available-bg, rgba(0, 200, 120, 0.12));
    color: var(--cb-status-available-fg, #0a8f4c);
}

.list--simple .li-status--reserved {
    background: var(--cb-status-reserved-bg, rgba(255, 188, 0, 0.16));
    color: var(--cb-status-reserved-fg, #a86b00);
}

.list--simple .li-status--presented {
    background: var(--cb-status-presented-bg, rgba(80, 130, 255, 0.18));
    color: var(--cb-status-presented-fg, #3554d1);
}

.list--simple .li-likes {
    font-size: 12px;
    opacity: 0.8;
}

.list--simple .li--presented {
    opacity: 0.6;
}

@media (min-width: 768px) {
    .list--simple .li {
        padding: 14px 18px;
    }
}

.li {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: .2s;
}

    .li:hover {
        border-color: var(--brand);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }

.li-thumb {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: color-mix(in oklab, var(--card), var(--text) 6%);
    display: grid;
    place-items: center;
}

    .li-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.li-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.li-title {
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li-desc {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 92px;
}

@media (max-width:520px) {
    .li-meta {
        min-width: auto;
        align-items: flex-start;
    }
}

.list-intro {
    margin: 6px 0 18px;
}

.list-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 12px;
}

.list-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.list-actions .icon-btn {
    background: transparent;
    padding: 0;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    color: var(--text);
    box-shadow: none;
    transition: all 0.2s ease;
}

    .list-actions .icon-btn svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .list-actions .icon-btn:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
    }

    .list-actions .icon-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), #ffffff 60%);
    }

    .list-actions .icon-btn:active {
        transform: scale(0.97);
    }

.list-actions.menu.open > .icon-btn {
    background: var(--brand);
    color: #fff !important;
}

@media (max-width: 640px) {
    .list-header {
        align-items: center;
    }

    .list-title {
        font-size: 24px;
    }
}

.section-caption {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.page-sub--spaced {
    margin-top: 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.intro {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    max-width: 70ch;
    margin: 0;
}

.intro--clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.intro-more {
    margin-top: 6px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .28rem .56rem;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--brand);
    background: linear-gradient(135deg, rgba(107,124,255,.14), rgba(33,220,199,.14));
}

.price {
    color: var(--muted);
    font-weight: 600;
}

.likes {
    color: #ff6b6b;
    font-size: 12.5px;
    opacity: .85;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.badge-pro {
    background: var(--brand);
    color: #fff !important;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-ghost {
    background: color-mix(in oklab, var(--card), var(--text) 6%);
    color: var(--text);
    border-color: var(--border);
}

.stat-chip {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    min-width: 120px;
    text-align: left;
    text-decoration: none;
}

    .stat-chip .num {
        font-weight: 800;
        font-size: 18px;
        line-height: 1;
    }

    .stat-chip .label {
        color: var(--muted);
        font-weight: 600;
        font-size: 13px;
    }

.profile-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: center;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width:768px) {
    .profile-info {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-identity {
        justify-content: center;
    }

    .handle-under-avatar {
        margin-top: 6px;
        color: var(--muted);
        font-weight: 600;
    }
}

.profile-header--compact .profile-info {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: start;
}

.profile-header--compact .ph-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header--compact .handle-under-avatar {
    margin-top: 8px;
    font-size: 16px;
    color: var(--muted);
    text-align: center;
}

.profile-header--compact .ph-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.profile-header--compact .profile-identity {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.profile-header--compact .profile-name {
    margin: 0;
    line-height: 1.15;
}

.profile-header--compact .profile-bio {
    margin: 10px 0 0;
    max-width: 72ch;
}

.ph-stats {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-header--compact .ph-stats .stat-chip,
.profile-header--compact .ph-stats .stat-chip:link,
.profile-header--compact .ph-stats .stat-chip:visited {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
    color: var(--text);
}

    .profile-header--compact .ph-stats .stat-chip .num {
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        color: var(--brand);
    }

    .profile-header--compact .ph-stats .stat-chip .label {
        color: var(--muted);
        text-decoration: none;
        text-underline-offset: 2px;
    }

    .profile-header--compact .ph-stats .stat-chip:hover .label {
        color: var(--text);
    }

    .profile-header--compact .ph-stats .stat-chip:focus-visible {
        outline: 2px solid var(--brand);
        border-radius: 6px;
    }

.actions-bar {
    grid-column: 1/-1;
    margin-top: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.abtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
}

    .abtn.primary {
        background: var(--brand);
        color: #fff;
        border-color: transparent;
    }

.segbar {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 8px auto 16px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.seg {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: .2s;
}

    .chip:hover {
        background: color-mix(in oklab, var(--card), var(--text) 6%);
        color: var(--text);
    }

    .chip.active {
        background: var(--brand);
        color: #fff;
    }

.seg-actions {
    margin-left: auto;
    position: relative;
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.profile-actions.menu > .icon-btn, .list-actions.menu > .icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text);
    box-shadow: none;
    transition: all 0.2s ease;
}
    .profile-actions.menu > .icon-btn svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .profile-actions.menu > .icon-btn:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
    }

    .profile-actions.menu > .icon-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), #ffffff 60%);
    }

    .profile-actions.menu > .icon-btn:active {
        transform: scale(0.97);
    }

.menu {
    position: relative;
}

.menu-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(.98);
    transition: .15s;
}

.menu.open .menu-pop {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}

    .menu-item:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
    }

    .menu-item svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

.menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.menu-item-danger {
    color: #ef4444;
}

    .menu-item-danger:hover {
        background: rgba(239, 68, 68, 0.1);
    }

.seg-actions .menu > .icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 14px;
    background: var(--brand) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 6px 8px rgba(0,113,227,.10);
    position: relative;
    font-size: 0;
    display: inline-block;
    --plus-size: 14px;
    --plus-thickness: 2px;
}

    .seg-actions .menu > .icon-btn::before,
    .seg-actions .menu > .icon-btn::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: var(--plus-size);
        height: var(--plus-thickness);
        background: #fff;
        transform: translate(-50%,-50%);
        border-radius: 1px;
    }

    .seg-actions .menu > .icon-btn::after {
        transform: translate(-50%,-50%) rotate(90deg);
    }

    .seg-actions .menu > .icon-btn:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
    }

    .seg-actions .menu > .icon-btn:active {
        filter: none;
        transform: translateY(0);
    }

    .seg-actions .menu > .icon-btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), #ffffff 40%);
    }

.menu.open > .icon-btn {
    background: var(--brand) !important;
    color: #fff !important;
}

.fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    border: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

    .fab:hover {
        transform: scale(1.06) rotate(5deg);
        box-shadow: 0 8px 20px rgba(0,0,0,.35);
    }

@media (max-width:520px) {
    .profile-header--compact .ph-left {
        margin-left: -6px;
    }

    .profile-header--compact .ph-main {
        padding-left: 16px;
    }

    .profile-header--compact .handle-under-avatar {
        margin-top: 7px;
    }

    .profile-header--compact .profile-info {
        grid-template-columns: 72px 1fr;
        column-gap: 8px;
        gap: 8px 8px;
    }

    .profile-header--compact .profile-identity {
        gap: 6px;
    }

    .profile-header--compact .profile-bio {
        margin-top: 4px;
    }

    .profile-header--compact .ph-stats {
        display: inline-grid;
        grid-template-columns: repeat(2, max-content);
        gap: 6px 18px;
        justify-content: start;
        align-items: start;
        margin-top: 10px;
        text-align: center;
    }

        .profile-header--compact .ph-stats .stat-chip {
            display: grid;
            gap: 2px;
            padding: 0 !important;
            border: 0 !important;
            background: transparent !important;
            min-width: auto;
            box-shadow: none;
            text-align: left;
        }

            .profile-header--compact .ph-stats .stat-chip .num {
                font-weight: 600;
                font-size: 18px;
                line-height: 1;
                color: var(--brand);
            }

            .profile-header--compact .ph-stats .stat-chip .label {
                font-size: 12px;
                color: var(--muted);
                white-space: nowrap;
            }

    .wishlist-grid {
        gap: 8px;
    }

    .wishlist-card {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .wishlist-card-content {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        align-items: center;
    }

    .list-glyph {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
    }

        .list-glyph svg, .list-glyph img {
            width: 36px;
            height: 36px;
        }

    .wishlist-main {
        min-width: 0;
    }

    .wishlist-title {
        margin: 0;
        font-size: 16px;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wishlist-description {
        display: none;
    }

    .wishlist-aside {
        margin-left: 12px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        font-weight: 700;
    }

    .count {
        font-size: 14px;
        font-weight: 500;
        color: gray;
    }

    .privacy-badge {
        width: 18px;
        height: 18px;
        font-size: 14px;
        background: transparent;
    }
}

.profile-avatar,
.profile-avatar.sm {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    line-height: 0;
}

    .profile-avatar img,
    .profile-avatar.sm img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        margin: 0;
    }

.results {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 12px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row-link {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
}

    .row-link:hover {
        background: color-mix(in oklab,var(--card),var(--text) 4%);
    }

.avatar {
    width: 70px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    line-height: 0;
}

    .avatar img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.name {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.muted {
    color: var(--muted);
}

.tail {
    min-width: 0;
}

.create-list {
    max-width: 960px;
    margin: 24px auto 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-list__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.create-list__title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 600;
}

.create-list__subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
}

.create-list__preview {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 20px;
    align-items: center;
    padding: 24px;
}

.create-list__preview-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.create-list__preview-text {
    color: var(--muted);
}

.create-list__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.create-list__section {
    padding: 20px;
    border-radius: 16px;
}

.create-list__section-title {
    font-size: 16px;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.create-list__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

    .create-list__field:last-child {
        margin-bottom: 0;
    }

.create-list__input {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: color-mix(in oklab, var(--card), var(--text) 4%);
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .2s, background .2s;
    box-shadow: none;
}

    .create-list__input::placeholder {
        color: var(--muted);
    }

    .create-list__input:focus {
        outline: none;
        border-color: var(--text);
        background: var(--card);
        box-shadow: none;
    }

textarea.create-list__input {
    min-height: 100px;
    resize: vertical;
}

.create-list__hint {
    font-size: 13px;
    color: var(--muted);
}

.create-list__icon-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 4px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.create-list__color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 12px;
}

.create-list__icon-option,
.create-list__color-option {
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--card), var(--text) 4%);
    border-radius: 14px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.create-list__icon-option {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    scroll-snap-align: start;
}

    .create-list__icon-option:hover,
    .create-list__color-option:hover {
        border-color: var(--text);
        transform: translateY(-1px);
    }

    .create-list__icon-option.is-selected,
    .create-list__color-option.is-selected {
        border-color: var(--brand);
        box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand), #ffffff 60%);
    }

.create-list__color-option {
    position: relative;
    padding: 0;
    height: 48px;
    background: var(--swatch);
}

.create-list__option-grid {
    display: grid;
    gap: 12px;
}

.create-list__option-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 4px 12px;
    cursor: pointer;
    background: color-mix(in oklab, var(--card), var(--text) 4%);
    transition: border-color .2s, background .2s;
}

    .create-list__option-card:hover {
        border-color: var(--text);
    }

.create-list__option-input {
    margin-right: 8px;
    accent-color: var(--brand);
    grid-row: 1 / span 2;
    align-self: start;
}

.create-list__option-title {
    font-weight: 600;
}

.create-list__option-text {
    font-size: 13px;
    color: var(--muted);
}

.create-list__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in oklab, var(--card), var(--text) 4%);
}

.create-list__toggle-title {
    font-weight: 600;
}

.create-list__toggle-text {
    font-size: 13px;
    color: var(--muted);
}

.create-list__switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.create-list__switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.create-list__switch-slider {
    position: absolute;
    inset: 0;
    background: #c7c7c7;
    border-radius: 999px;
    transition: background .2s;
}

    .create-list__switch-slider::before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        top: 4px;
        left: 4px;
        transition: transform .2s;
    }

.create-list__switch-input:checked + .create-list__switch-slider {
    background: var(--brand);
}

    .create-list__switch-input:checked + .create-list__switch-slider::before {
        transform: translateX(20px);
    }

.create-list__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.create-list__mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .create-list {
        margin-top: 12px;
        padding-bottom: 40px;
    }

    .create-list__title {
        font-size: 26px;
    }

    .create-list__preview {
        display: none;
    }

    .create-list__desktop-only {
        display: none;
    }

    .create-list__mobile-only {
        display: block;
    }

    .create-list__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* ============================================
   ITEM FORM - ENHANCED STYLES
   ============================================ */

.item-form {
    max-width: 960px;
    margin: 24px auto 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-form__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-form__title {
    margin: 0;
    font-size: 34px;
    font-weight: 400;
    font-family: "Newsreader", "DM Sans", system-ui, -apple-system, sans-serif;
}

.item-form__subtitle {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
}

.item-form__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item-form__section {
    padding: 24px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.item-form__section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

    .item-form__field:last-child {
        margin-bottom: 0;
    }

    /* === КРИТИЧЕСКОЕ ИСПРАВЛЕНИЕ ШИРИНЫ === */
    .item-form .item-form__field .item-form__input,
    .item-form .item-form__field .form-control,
    .item-form .item-form__field .form-select,
    .item-form__field input.item-form__input,
    .item-form__field textarea.item-form__input,
    .item-form__field input.form-control,
    .item-form__field textarea.form-control {
        width: 100% !important;
        max-width: 100% !important;
    }

/* === БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ ПОЛЕЙ === */
.item-form__input,
.form-control.item-form__input,
.form-select {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in oklab, var(--card), var(--text) 3%);
    color: var(--text);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

    .item-form__input::placeholder,
    .form-control.item-form__input::placeholder {
        color: var(--muted);
        opacity: 0.7;
    }

    .item-form__input:focus,
    .form-control.item-form__input:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--link);
        background: var(--card);
        box-shadow: 0 0 0 3px color-mix(in oklab, var(--link), transparent 85%);
    }

textarea.item-form__input,
textarea.form-control.item-form__input {
    min-height: 100px;
    resize: vertical;
    padding: 12px 16px;
    line-height: 1.6;
    width: 100% !important;
}

/* === SELECT DROPDOWN === */
.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 44px;
    width: 100% !important;
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-select option {
    padding: 10px;
    background: var(--card);
    color: var(--text);
}

/* === LABELS === */
.form-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

/* === ПОЛЕ С КНОПКОЙ (URL + Вставить) === */
.item-form__input-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

    .item-form__input-row .item-form__input,
    .item-form__input-row .form-control {
        flex: 1 1 auto;
        min-width: 0;
        width: auto !important;
    }

.item-form__inline-btn {
    flex: 0 0 auto;
    min-width: 110px;
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 500;
    transition: all .2s ease;
}

/* === SPLIT INPUT ДЛЯ ВАЛЮТЫ + ЦЕНЫ === */
.price-input-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    width: 100%;
}

.price-currency {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    padding: 12px 8px;
}

.price-amount-field {
    /* Явные стили чтобы гарантировать применение */
    width: 100% !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
}

/* === ПОЛЕ С ПРЕФИКСОМ (₽) - DEPRECATED === */
.item-form__input-wrapper {
    position: relative;
    width: 100%;
}

.item-form__input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.item-form__input--with-prefix {
    padding-left: 36px !important;
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn-light {
    background: color-mix(in oklab, var(--card), var(--text) 4%);
    color: var(--text);
    border-color: var(--border);
}

    .btn-light:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
        border-color: var(--text);
    }

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 2px 8px color-mix(in oklab, var(--brand), transparent 70%);
}

    .btn-primary:hover {
        background: color-mix(in oklab, var(--brand), #fff 10%);
        box-shadow: 0 4px 12px color-mix(in oklab, var(--brand), transparent 50%);
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-sm {
    padding: 8px 14px;
    font-size: 14px;
}

.btn-dark {
    background: color-mix(in oklab, var(--text), transparent 10%);
    color: var(--card);
    border-color: transparent;
}

    .btn-dark:hover {
        background: var(--text);
    }

.item-form__hint {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.4;
}

/* === ЗАГРУЗКА ИЗОБРАЖЕНИЯ === */
.item-form__upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    background: color-mix(in oklab, var(--card), var(--text) 2%);
    transition: all .2s ease;
    position: relative;
}

    .item-form__upload:hover,
    .item-form__upload.is-hovered {
        border-color: var(--link);
        background: color-mix(in oklab, var(--card), var(--link) 4%);
    }

    .item-form__upload.is-hidden {
        display: none;
    }

.item-form__upload-icon {
    font-size: 40px;
    margin-bottom: 12px;
    line-height: 1;
}

.item-form__upload-text {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.item-form__upload-hint {
    color: var(--muted);
    font-size: 13px;
}

.item-form__file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 0.1px;
    height: 0.1px;
}

.item-form__preview {
    display: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

    .item-form__preview.is-active {
        display: block;
    }

    .item-form__preview img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: cover;
        display: block;
    }

.item-form__preview-actions {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

.item-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

/* === MOBILE === */
@media (max-width: 720px) {
    .item-form {
        margin: 16px auto 48px;
    }

    .item-form__section {
        padding: 20px 16px;
        border-radius: 14px;
    }

    .item-form__input-row {
        flex-direction: column;
        gap: 10px;
    }

    .item-form__inline-btn {
        min-width: 0;
        width: 100%;
    }

    .item-form__actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .item-form__actions .btn {
            width: 100%;
        }

    .item-form__upload {
        padding: 24px 16px;
    }

    /* Мобильная адаптация для валюты + цена */
    .price-input-group {
        grid-template-columns: 85px 1fr;
    }

    .price-currency {
        font-size: 16px;
    }
}

@media (max-width:520px) {
    .page-content {
        padding: 0 8px;
    }
    .row-link {
        grid-template-columns: 56px 1fr auto;
        gap: 10px;
        padding: 10px 12px;
    }

    .avatar {
        width: 56px;
    }

    .name {
        font-size: 16px;
    }

    .bio {
        -webkit-line-clamp: 1;
    }

    .create-list__actions {
        padding: 0 12px 0 4px;
    }

    .btn {
        width: auto;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 0 8px;
    }
    .btn {
        margin: 4px;
    }
    .results {
        padding: 0 8px;
    }
}

.nav-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    line-height: 0; /* чтобы SVG не давал baseline-отступ */
}

    .nav-bell--active {
        color: var(--brand);
        background: transparent;
    }

        .nav-bell--active:hover {
            color: var(--brand);
            background: transparent;
        }

    .nav-bell:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
    }

.nav-bell-icon {
    width: 22px;
    height: 22px;
    display: block; /* важно */
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    transform: none;
/*    transform: translate(50%, -50%);*/
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 800;
    background: #ef4444;
    color: #fff;
    z-index: 2;
    /* “ободок” под цвет шапки/фона, чтобы бейдж не сливался */
    box-shadow: 0 0 0 2px var(--bg, #fff);
}

.d-none {
    display: none !important;
}

@media (max-width: 576px) {
    .notif-actions .unread-pill {
        display: none;
    }
}

/* ===========================================
   Guest Code Submenu Styles
   =========================================== */

/* Submenu container */
.menu-submenu {
    display: flex;
    flex-direction: column;
}

.menu-submenu--expanded {
    background: color-mix(in oklab, var(--card), var(--text) 4%);
    border-radius: 10px;
    margin: 2px 0;
}

[data-theme="dark"] .menu-submenu--expanded {
    background: rgba(255, 255, 255, 0.04);
}

/* Expandable menu item */
.menu-item--expandable {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    transition: background-color 0.15s ease;
}

    .menu-item--expandable:hover {
        background: color-mix(in oklab, var(--card), var(--text) 8%);
    }

    .menu-item--expandable svg:first-of-type {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }

    /* Текст в expandable item */
    .menu-item--expandable span {
        flex: 1;
    }

/* Chevron icon */
.menu-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.menu-item--expandable[aria-expanded="true"] .menu-chevron {
    transform: rotate(180deg);
    opacity: 0.8;
}

/* Subitems panel */
.menu-subitems {
    display: flex;
    flex-direction: column;
    padding: 4px 0 4px 28px; /* отступ слева под иконку родителя */
    overflow: hidden;
}

    .menu-subitems[hidden] {
        display: none;
    }

    /* Subitem buttons - наследуют стили .menu-item */
    .menu-subitems .menu-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 14px;
        color: var(--text);
        text-align: left;
        text-decoration: none;
        border-radius: 10px;
        transition: background-color 0.15s ease;
    }

        .menu-subitems .menu-item:hover {
            background: color-mix(in oklab, var(--card), var(--text) 8%);
        }

        .menu-subitems .menu-item svg {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            opacity: 0.85;
        }

/* ═══════════════════════════════════════════════════════════════
   Additional styles for Event Edit & Settings pages
   Add these to create-event.css
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Responsive utility classes
   ───────────────────────────────────────────────────────────────── */
.create-list__desktop-only {
    display: block;
}

.create-list__mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .create-list__desktop-only {
        display: none;
    }

    .create-list__mobile-only {
        display: block;
    }
}

/* ─────────────────────────────────────────────────────────────────
   Navigation Link (like SwiftUI NavigationLink)
   ───────────────────────────────────────────────────────────────── */
.create-list__nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: -8px -16px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

    .create-list__nav-link:hover {
        background-color: var(--hover, rgba(0, 0, 0, 0.04));
    }

    .create-list__nav-link span {
        font-weight: 500;
    }

    .create-list__nav-link svg {
        color: var(--text-muted, #6b7280);
        flex-shrink: 0;
    }

/* ─────────────────────────────────────────────────────────────────
   Readonly Value (for edition-based events)
   ───────────────────────────────────────────────────────────────── */
.create-list__readonly-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-secondary, #f3f4f6);
    border-radius: 8px;
    color: var(--text);
}

    .create-list__readonly-value svg {
        color: var(--primary, #6B7CFF);
        flex-shrink: 0;
    }

/* ─────────────────────────────────────────────────────────────────
   Option Grid (for visibility, reservations cards)
   ───────────────────────────────────────────────────────────────── */
.create-list__option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.create-list__option-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: color-mix(in oklab, var(--card), var(--text) 4%);
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

    .create-list__option-card:hover {
        border-color: var(--primary-light, #a5b4fc);
        background: var(--hover, rgba(107, 124, 255, 0.04));
    }

    .create-list__option-card.is-selected {
        border-color: var(--primary, #6B7CFF);
        background: var(--primary-bg, rgba(107, 124, 255, 0.08));
    }

        .create-list__option-card.is-selected::after {
            content: '';
            position: absolute;
            top: 8px;
            right: 8px;
            width: 20px;
            height: 20px;
            background: var(--primary, #6B7CFF);
            border-radius: 50%;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
        }

.create-list__option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.create-list__option-icon {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
    transition: transform 0.15s ease;
}

.create-list__option-card.is-selected .create-list__option-icon {
    transform: scale(1.1);
}

.create-list__option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.create-list__option-text {
    font-size: 13px;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
}

/* ─────────────────────────────────────────────────────────────────
   Option Grid Compact (for settings page)
   ───────────────────────────────────────────────────────────────── */
.create-list__option-grid--compact {
    gap: 8px;
}

.create-list__option-card--compact {
    padding: 12px 16px;
}

    .create-list__option-card--compact .create-list__option-title {
        font-size: 14px;
    }

    .create-list__option-card--compact .create-list__option-text {
        font-size: 12px;
    }

/* ─────────────────────────────────────────────────────────────────
   Code Row (for access code display)
   ───────────────────────────────────────────────────────────────── */
.create-list__code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface-secondary, #f3f4f6);
    border-radius: 8px;
    margin-top: 12px;
}

.create-list__code-label {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
}

.create-list__code-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .create-list__code-value code {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        background: transparent;
        padding: 0;
    }

    .create-list__code-value .btn {
        padding: 6px 8px;
    }

/* ─────────────────────────────────────────────────────────────────
   Event Preview Image (when editing existing event)
   ───────────────────────────────────────────────────────────────── */
.event-preview-image {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ─────────────────────────────────────────────────────────────────
   Responsive adjustments
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .create-list__nav-link {
        margin: -4px -12px;
        padding: 12px;
    }

    .create-list__code-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .create-list__code-value {
        width: 100%;
        justify-content: space-between;
    }

    .create-list__option-grid--compact {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────
   Dark mode support
   ───────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    .create-list__nav-link:hover {
        background-color: rgba(255, 255, 255, 0.06);
    }

    .create-list__readonly-value {
        background: rgba(255, 255, 255, 0.08);
    }

    .create-list__code-row {
        background: rgba(255, 255, 255, 0.08);
    }

    .create-list__option-card:hover {
        background: rgba(107, 124, 255, 0.12);
    }

    .create-list__option-card.is-selected {
        background: rgba(107, 124, 255, 0.16);
    }
}

svg.lucide {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8px;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.create-list__quick-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

    .create-list__quick-option svg.lucide {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        opacity: .75;
        transform: translateY(0.5px); /* тонкая оптическая подстройка */
    }

.create-list__color-check {
    opacity: 0;
}

.create-list__color-option.is-selected .create-list__color-check {
    opacity: 1;
}