/* CANON Collector Portal - Gallery First Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f0e0d;
    --bg-elevated: #171615;
    --bg-card: #1a1918;
    --bg-warm: #0d0c0b;
    --text: #f5f3f0;
    --text-dim: rgba(245,243,240,0.65);
    --text-muted: rgba(245,243,240,0.4);
    --border: rgba(245,243,240,0.08);
    --accent: #c9a227;
    --shadow-soft: rgba(0,0,0,0.4);
    --shadow-deep: rgba(0,0,0,0.7);
}

[data-theme="light"] {
    --bg: #f8f6f3;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-warm: #f2efe9;
    --text: #1a1816;
    --text-dim: rgba(26,24,22,0.65);
    --text-muted: rgba(26,24,22,0.4);
    --border: rgba(26,24,22,0.1);
    --accent: #8a6d1b;
    --shadow-soft: rgba(0,0,0,0.08);
    --shadow-deep: rgba(0,0,0,0.15);
}

html, body {
    height: 100%;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.app {
    min-height: 100vh;
}

/* ==========================================
   PORTFOLIO VIEW
   ========================================== */
#portfolio-view {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
}

/* ==========================================
   SPLIT LAYOUT (ported from landing page)
   ========================================== */
.split-layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.left-panel {
    width: 50%;
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}
[data-theme="light"] .left-panel { background: #ffffff; }
html:not([data-theme="light"]) .left-panel { background: #050505; }

.left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: -28px;
    bottom: 0;
    width: 44px;
    background: #ffffff;
    pointer-events: none;
    z-index: 6;
    clip-path: polygon(
        0 0, 62% 0%,
        92% 1.2%, 38% 2.4%, 84% 3.6%, 48% 4.8%, 96% 6%,
        42% 7.2%, 88% 8.4%, 52% 9.6%, 94% 10.8%, 36% 12%,
        90% 13.2%, 56% 14.4%, 86% 15.6%, 40% 16.8%, 98% 18%,
        46% 19.2%, 84% 20.4%, 58% 21.6%, 92% 22.8%, 34% 24%,
        88% 25.2%, 50% 26.4%, 96% 27.6%, 42% 28.8%, 86% 30%,
        54% 31.2%, 94% 32.4%, 38% 33.6%, 90% 34.8%, 48% 36%,
        82% 37.2%, 60% 38.4%, 96% 39.6%, 36% 40.8%, 88% 42%,
        52% 43.2%, 92% 44.4%, 44% 45.6%, 84% 46.8%, 58% 48%,
        98% 49.2%, 40% 50.4%, 86% 51.6%, 54% 52.8%, 94% 54%,
        36% 55.2%, 90% 56.4%, 48% 57.6%, 84% 58.8%, 62% 60%,
        96% 61.2%, 42% 62.4%, 88% 63.6%, 50% 64.8%, 92% 66%,
        38% 67.2%, 86% 68.4%, 56% 69.6%, 94% 70.8%, 40% 72%,
        90% 73.2%, 52% 74.4%, 84% 75.6%, 60% 76.8%, 98% 78%,
        34% 79.2%, 88% 80.4%, 48% 81.6%, 92% 82.8%, 44% 84%,
        86% 85.2%, 58% 86.4%, 96% 87.6%, 36% 88.8%, 90% 90%,
        50% 91.2%, 84% 92.4%, 62% 93.6%, 94% 94.8%, 40% 96%,
        88% 97.2%, 54% 98.4%, 92% 99.6%,
        62% 100%, 0 100%
    );
}
html:not([data-theme="light"]) .left-panel::after { background: #050505; }

.canon-stage {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.canon-stage.visible { opacity: 1; }

.canon-artwork {
    position: absolute;
    top: 65px; right: 65px; bottom: 65px; left: 65px;
    overflow: hidden;
}

.artwork-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.artwork-image img,
.artwork-image video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.artwork-nav-top {
    position: absolute;
    bottom: 0; right: 65px;
    height: 65px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.artwork-nav-top.visible { opacity: 1; }

.artwork-label {
    position: absolute;
    top: 0; left: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    z-index: 5;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1a1814;
    opacity: 0.6;
    pointer-events: none;
}
html:not([data-theme="light"]) .artwork-label { color: #f5f3f0; }

.artwork-strip {
    position: absolute;
    bottom: 0; left: 65px; right: 65px;
    height: 65px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #1a1814;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.artwork-strip.visible { opacity: 1; }
html:not([data-theme="light"]) .artwork-strip { color: #f5f3f0; }

.artwork-info { min-width: 0; flex: 1; }
.artwork-info .canon-artist {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: currentColor; opacity: 0.6; margin: 0 0 0.3rem; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.artwork-info .canon-title {
    font-size: 13px; letter-spacing: 0.02em; margin: 0; line-height: 1.25;
    color: currentColor; font-style: italic;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-soft {
    background: transparent; border: none;
    color: currentColor; opacity: 0.7;
    font-family: inherit; font-size: 1.1rem; line-height: 1;
    padding: 0.2rem 0.3rem; cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-soft:hover { opacity: 1; }

.right-panel {
    width: 50%; height: 100%;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 0 4rem 0 65px;
    background: #f5f2eb;
    position: relative;
}
html:not([data-theme="light"]) .right-panel { background: #050505; }

/* Right panel piece info */
.piece-info-content {
    max-width: 420px;
    padding: 0;
}
.piece-label {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 2rem; opacity: 0.6;
}
.piece-artist {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-dim); margin-bottom: 0.5rem;
}
.piece-title {
    font-size: 1.1rem; font-weight: 500; letter-spacing: 0.02em;
    margin: 0 0 0.5rem; line-height: 1.3; color: var(--text);
}
.piece-meta {
    font-size: 0.72rem; letter-spacing: 0.04em; color: var(--text-muted);
    margin: 0 0 1rem;
}
.piece-meta:empty { display: none; }
.piece-price {
    font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.2rem;
}
.piece-notes {
    font-size: 0.8rem; font-style: normal; color: var(--text-dim);
    line-height: 1.7; margin-bottom: 1.4rem;
    padding-left: 1rem; border-left: 2px solid var(--border);
}
.piece-notes:empty { display: none; }
.piece-marketplace {
    display: inline-block;
    font-family: inherit; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; text-decoration: none;
    padding: 0.6rem 1.2rem; margin-bottom: 2rem;
    background: none; border: 1px solid var(--border); color: var(--text-dim);
    transition: all 0.2s;
}
.piece-marketplace:hover {
    border-color: var(--text); color: var(--text);
}
.piece-description {
    font-size: 0.8rem; color: var(--text-dim); line-height: 1.8;
    margin-bottom: 2rem;
}
.piece-description:empty { display: none; }
.piece-actions {
    display: flex; gap: 0.8rem; margin-bottom: 2rem;
}
.piece-actions .action-btn {
    font-family: inherit; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 0.6rem 1.2rem;
    background: none; border: 1px solid var(--border);
    color: var(--text-dim); cursor: pointer; transition: all 0.2s;
    width: auto; height: auto; border-radius: 0;
    display: inline-block; backdrop-filter: none; box-shadow: none;
}
.piece-actions .action-btn:hover {
    border-color: var(--text); color: var(--text);
}
.piece-actions .action-btn.active {
    background: var(--text); color: var(--bg); border-color: var(--text);
}
.piece-actions .action-pass:hover {
    border-color: #c0392b; color: #c0392b;
}
.piece-counter {
    font-size: 10px; letter-spacing: 0.14em; color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.piece-secondary {
    display: flex; gap: 1.5rem;
}
.text-btn {
    font-family: inherit; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; background: none; border: none;
    color: var(--text-muted); cursor: pointer; padding: 0;
    border-bottom: 1px solid transparent; transition: all 0.2s;
}
.text-btn:hover {
    color: var(--text-dim); border-bottom-color: var(--text-dim);
}

/* Mobile split layout */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
    .left-panel {
        width: 100%; height: 60vh;
        border-bottom: 1px solid var(--border);
    }
    .left-panel::after { display: none; }
    .canon-artwork { top: 40px; right: 24px; bottom: 60px; left: 24px; }
    .artwork-label { left: 24px; height: 40px; }
    .artwork-strip { left: 24px; right: 24px; height: 60px; }
    .artwork-nav-top { right: 24px; height: 60px; }
    .right-panel {
        width: 100%; height: auto;
        padding: 2rem;
        justify-content: flex-start;
    }
    .piece-label { display: none; }
    .piece-info-content { max-width: 100%; }
    .page-shell { padding: 5rem 1.5rem 3rem; }
}

/* ==========================================
   HEADER
   ========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.logo {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 1;
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
    text-decoration: none;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
}

.header-profile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-profile img:hover {
    opacity: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-btn {
    font-size: 1.1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.theme-btn:hover {
    color: var(--text);
}

.hamburger-btn {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

/* ==========================================
   LOGIN
   ========================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 300px;
}

.login-label {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text);
    padding: 0.75rem 0;
    outline: none;
    transition: border-color 0.3s;
}

.input:focus {
    border-color: var(--text);
}

.input::placeholder {
    color: var(--text-muted);
}

.btn {
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text);
    cursor: pointer;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--text);
    color: var(--bg);
}

.btn.primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn.primary:hover {
    background: transparent;
    color: var(--text);
}

.login-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 1rem;
}

.login-status {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.8rem;
    min-height: 1.2em;
}
.login-status.error { color: #e74c3c; }

.login-sent-msg {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.login-sent-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.login-resend {
    font-family: inherit;
    font-size: 0.7rem;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}
.login-resend:hover {
    color: var(--text);
    border-bottom-color: var(--text-dim);
}
.login-join {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1rem;
}
.login-join a {
    color: var(--text-dim);
    text-decoration: underline;
}

/* Locked nav tab */
.nav-link.locked,
.mobile-menu-item.locked {
    opacity: 0.45;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}
.nav-link.locked:hover,
.mobile-menu-item.locked:hover {
    opacity: 0.75;
}
.nav-link.locked::after,
.mobile-menu-item.locked::after {
    content: '';
    display: inline-block;
    width: 8px; height: 10px;
    margin-left: 0.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='10' viewBox='0 0 8 10' fill='none' stroke='currentColor' stroke-width='1'%3E%3Crect x='0.5' y='4.5' width='7' height='5' rx='0.5'/%3E%3Cpath d='M2 4.5V3a2 2 0 0 1 4 0v1.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.back-link {
    display: inline-block;
    color: var(--text-dim);
    font-size: 12px;
    text-decoration: none;
    margin-top: 2.5rem;
}

.back-link:hover {
    color: var(--text);
}

/* (Landing state and immersive-view removed - replaced by split layout) */

/* (Gallery viewer, details section removed - replaced by split layout) */

.section-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* (Details info, actions, links, artist bio removed - replaced by right panel) */

/* (Back to artwork removed) */

/* ==========================================
   GRID VIEW
   ========================================== */

.immersive-grid {
    position: absolute;
    inset: 0;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    background: #f5f2eb;
}
html:not([data-theme="light"]) .immersive-grid { background: var(--bg); }

.grid-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.grid-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.grid-sort {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.grid-view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.view-toggle-btn {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--border);
}

.view-toggle-btn:hover {
    color: var(--text);
}

.view-toggle-btn.active {
    background: var(--text);
    color: var(--bg);
}

.grid-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.grid-back-btn:hover {
    color: var(--text);
}

.grid-count {
    font-size: 12px;
    color: var(--text-muted);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.grid-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.grid-container.list-view .grid-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
}

.grid-container.list-view .grid-item:hover {
    transform: none;
    background: var(--bg-card);
}

.grid-container.list-view .grid-item-media {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 4px;
    aspect-ratio: 1;
}

.grid-container.list-view .grid-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.grid-container.list-view .grid-item-text {
    flex: 1;
    min-width: 0;
}

.grid-container.list-view .grid-item-artist {
    font-size: 10px;
    margin-bottom: 0.15rem;
}

.grid-container.list-view .grid-item-title {
    font-size: 13px;
    margin-bottom: 0.15rem;
}

.grid-container.list-view .grid-item-price {
    font-size: 11px;
}

/* Grid Item */
.grid-item {
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.grid-item-media {
    aspect-ratio: 1;
    background: var(--bg-card);
    overflow: hidden;
}

.grid-item-media img,
.grid-item-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.grid-item-text {
    flex: 1;
    min-width: 0;
}

.grid-item-liked {
    color: var(--accent);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.grid-item-info {
    padding: 0.75rem;
}

.grid-item-artist {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.grid-item-title {
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-item-price {
    font-size: 11px;
    color: var(--text-muted);
}

/* Legacy List Item (can be removed if unused) */
.list-item {
    display: flex;
    align-items: center;
    background: var(--bg);
    padding: 1rem 1.25rem;
    gap: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.list-item:hover {
    background: var(--bg-elevated);
}

.list-item-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    background: var(--bg-elevated);
    overflow: hidden;
}

.list-item-image img,
.list-item-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.list-item-header {
    flex: 1;
    min-width: 0;
}

.list-item-artist {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.2rem;
}

.list-item-title {
    font-size: 14px;
    font-weight: 300;
    font-style: italic;
}

.list-item-collection {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.list-item-meta {
    text-align: right;
    flex-shrink: 0;
}

.list-item-meta .meta-value.price {
    font-size: 13px;
    color: var(--text);
}

/* ==========================================
   PAGE VIEW (Consign)
   ========================================== */

.page-view {
    min-height: 100vh;
    overflow-y: auto;
    background: #f5f2eb;
}
html:not([data-theme="light"]) .page-view { background: var(--bg); }

.page-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 7rem 4rem 4rem;
}

.page-header {
    margin-bottom: 2rem;
}
.page-header-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #1a1814;
    opacity: 0.5;
    margin-bottom: 0.6rem;
}
html:not([data-theme="light"]) .page-header-label { color: #f5f3f0; }
.page-header-sub {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.7;
    max-width: 400px;
}
html:not([data-theme="light"]) .page-header-sub { color: rgba(245,243,240,0.55); }

.collection-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
html:not([data-theme="light"]) .collection-section { border-bottom-color: var(--border); }
.collection-section:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }

.collection-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1a1814;
    opacity: 0.6;
    margin: 0 0 0.4rem;
}
html:not([data-theme="light"]) .collection-label { color: #f5f3f0; }

.collection-sub {
    font-size: 0.78rem;
    color: #888;
    margin: 0 0 1rem;
    line-height: 1.6;
}
html:not([data-theme="light"]) .collection-sub { color: rgba(245,243,240,0.4); }

.consigned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}


/* Special Editions */
.special-editions-view .page-content {
    max-width: 900px;
}

.special-editions-view .page-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.special-editions-view .page-intro {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.special-editions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.special-edition-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.special-edition-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--shadow-soft);
}

.special-edition-image {
    aspect-ratio: 1;
    background: var(--bg-card);
    overflow: hidden;
    position: relative;
}

.special-edition-image img,
.special-edition-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.special-edition-card:hover .special-edition-image img,
.special-edition-card:hover .special-edition-image video {
    transform: scale(1.02);
}

.special-edition-info {
    padding: 1.25rem;
}

.special-edition-artist {
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.special-edition-title {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.special-edition-note {
    font-size: 12px;
    color: var(--text-dim);
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    line-height: 1.5;
}

.special-edition-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    transition: color 0.2s;
}

.special-edition-link:hover {
    color: var(--accent);
}

.special-edition-link svg {
    opacity: 0.7;
}

/* Acquired Works */
.acquired-view .page-content {
    max-width: 900px;
}

.acquired-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.acquired-view .page-title {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.acquired-view .page-intro {
    font-size: 13px;
    color: var(--text-dim);
}

.btn-download-collection {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: inherit;
    font-size: 11px;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-download-collection:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-download-collection.generating {
    opacity: 0.6;
    pointer-events: none;
}

/* Acquired — editorial list layout */
.acquired-grid {
    display: flex;
    flex-direction: column;
}

.acquired-card {
    display: flex;
    gap: 1.8rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: opacity 0.2s;
}
html:not([data-theme="light"]) .acquired-card { border-bottom-color: var(--border); }
.acquired-card:first-child { padding-top: 0; }
.acquired-card:last-child { border-bottom: none; }
.acquired-card:hover { opacity: 0.85; }

.acquired-image {
    width: 140px;
    flex-shrink: 0;
    overflow: hidden;
}

.acquired-image img,
.acquired-image video {
    width: 100%;
    display: block;
    object-fit: contain;
}

.acquired-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.acquired-artist {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1a1814;
    opacity: 0.6;
    margin-bottom: 0.4rem;
}
html:not([data-theme="light"]) .acquired-artist { color: #f5f3f0; }

.acquired-title {
    font-size: 0.95rem;
    font-style: italic;
    color: #1a1814;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
html:not([data-theme="light"]) .acquired-title { color: var(--text); }

.acquired-date {
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 0.6rem;
}
html:not([data-theme="light"]) .acquired-date { color: var(--text-muted); }

.acquired-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}
.acquired-link:hover { color: #1a1814; }
html:not([data-theme="light"]) .acquired-link:hover { color: var(--text); }
.acquired-link svg { opacity: 0.5; }

.acquired-placeholder {
    opacity: 0.4;
    pointer-events: none;
}

@media (max-width: 600px) {
    .acquired-card { flex-direction: column; gap: 1rem; }
    .acquired-image { width: 100%; }
}

/* Consign form */
.consign-form-section {
    margin-bottom: 3rem;
}

.consign-input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.consign-input {
    flex: 1;
    font-family: inherit;
    font-size: 0.82rem;
    padding: 0.7rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    color: #1a1814;
    outline: none;
    transition: border-color 0.2s;
}
html:not([data-theme="light"]) .consign-input {
    border-bottom-color: var(--border);
    color: var(--text);
}
.consign-input:focus { border-bottom-color: #1a1814; }
html:not([data-theme="light"]) .consign-input:focus { border-bottom-color: var(--text-dim); }
.consign-input::placeholder { color: #aaa; }
html:not([data-theme="light"]) .consign-input::placeholder { color: var(--text-muted); }

.consign-btn {
    font-family: inherit;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    background: none;
    border: 1px solid rgba(0,0,0,0.2);
    color: #1a1814;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
html:not([data-theme="light"]) .consign-btn {
    border-color: var(--border);
    color: var(--text-dim);
}
.consign-btn:hover { border-color: #1a1814; }
html:not([data-theme="light"]) .consign-btn:hover { border-color: var(--text); color: var(--text); }
.consign-btn.primary { background: #1a1814; color: #f5f2eb; border-color: #1a1814; }
html:not([data-theme="light"]) .consign-btn.primary { background: var(--text); color: var(--bg); }

.consign-search { margin-bottom: 1rem; }

.consign-existing {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}
html:not([data-theme="light"]) .consign-existing { border-top-color: var(--border); }

.wallet-loading {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.wallet-search {
    margin-bottom: 1rem;
}

.wallet-nft-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.wallet-nft-list:empty {
    display: none;
}

.wallet-nft-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-nft-item:last-child {
    border-bottom: none;
}

.wallet-nft-item:hover {
    background: var(--bg-card);
}

.wallet-nft-item:has(.nft-checkbox:checked) {
    background: rgba(201, 162, 39, 0.08);
}

.nft-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.wallet-nft-price {
    margin-left: auto;
    flex-shrink: 0;
}

.nft-price-input {
    width: 70px;
    padding: 0.4rem 0.5rem;
    font-family: inherit;
    font-size: 12px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}

.nft-price-input::placeholder {
    text-align: center;
    color: var(--text-muted);
}

.nft-price-input:focus {
    border-color: var(--accent);
    outline: none;
}

.consign-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
}

.consign-selected-count {
    font-size: 12px;
    color: var(--text-dim);
}


.wallet-nft-image {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.wallet-nft-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-nft-image .placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
}

.wallet-nft-info {
    flex: 1;
    min-width: 0;
}

.wallet-nft-name {
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-nft-collection {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.consign-manual {
    margin-bottom: 1.5rem;
}

.consign-success {
    color: #2ecc71;
    font-size: 12px;
}

.consign-error {
    color: #e74c3c;
    font-size: 12px;
}

.my-consignments {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.consignment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consignment-item {
    display: flex;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--bg-elevated);
    border-radius: 4px;
    position: relative;
}

.consignment-image {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
}

.consignment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.consignment-info {
    flex: 1;
}

.consignment-title {
    font-size: 13px;
    margin-bottom: 0.2rem;
}

.consignment-price {
    font-size: 11px;
    color: var(--text-dim);
}

.consignment-status {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.35rem;
}

.consignment-status.pending { color: #f5a623; }
.consignment-status.approved { color: #10b981; }

.consignment-remove {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
}

.consignment-item:hover .consignment-remove {
    opacity: 1;
}

/* Gallery View Modal (in-situ) */
.gallery-view-card {
    background: var(--bg); border: 1px solid var(--border);
    max-width: 800px; width: 90%; position: relative;
}
.gallery-view-tabs {
    display: flex; gap: 0; border-bottom: 1px solid var(--border);
}
.gv-tab {
    flex: 1; font-family: inherit; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; padding: 0.8rem; background: none; border: none;
    color: var(--text-muted); cursor: pointer; transition: all 0.2s;
}
.gv-tab.active { color: var(--text); background: var(--bg-elevated); }
.gv-tab:hover { color: var(--text-dim); }
.gallery-view-stage {
    position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden;
    background: #1a1a1a;
}
.gv-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.gv-artwork {
    position: absolute; top: 15%; left: 25%; width: 50%; height: 60%;
    object-fit: contain;
}
.gallery-view-stage.env-room .gv-artwork {
    top: 20%; left: 22%; width: 56%; height: 50%;
}
.gallery-view-stage.env-node .gv-artwork {
    top: 20%; left: 35%; width: 30%; height: 50%;
    border-radius: 50%; object-fit: cover;
}

.empty-state {
    font-size: 0.78rem;
    color: #aaa;
    font-style: italic;
    padding: 1.5rem 0;
}
html:not([data-theme="light"]) .empty-state { color: var(--text-muted); }

.empty-state.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* ==========================================
   MODALS
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    padding: 2rem;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem;
}

.modal-card.settings-modal {
    max-width: 400px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text);
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

/* Settings */
.settings-group {
    margin-bottom: 1.25rem;
}

.settings-label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}

.settings-actions {
    margin-top: 1.5rem;
}

.settings-success {
    color: #2ecc71;
    font-size: 12px;
    margin-top: 0.75rem;
}

.settings-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 0.75rem;
}

/* Settings Avatar */
.settings-avatar-group {
    margin-bottom: 1.5rem;
}

.settings-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.settings-avatar-placeholder {
    color: var(--text-muted);
}

.settings-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-small {
    font-family: inherit;
    font-size: 11px;
    padding: 0.4rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-small:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.btn-small.btn-text {
    background: none;
    border: none;
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.btn-small.btn-text:hover {
    color: var(--text-dim);
}

/* Settings select */
.settings-group select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
}

/* Offer Form */
.offer-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.offer-input-row {
    display: flex;
    gap: 0.5rem;
}

.offer-amount {
    flex: 1;
}

.offer-currency {
    width: 70px;
    background: var(--bg-elevated);
}

.offer-message {
    resize: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-message {
    font-size: 12px;
    color: var(--text);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 200;
}

.mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: var(--bg-card);
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 201;
    overflow-y: auto;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
    font-size: 13px;
    font-weight: 500;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 20px;
}

.mobile-menu-items {
    padding: 0.75rem 0;
}

.mobile-menu-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.mobile-menu-item:hover,
.mobile-menu-item.active {
    color: var(--text);
    background: var(--bg-elevated);
}

.mobile-menu-footer {
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
    .header {
        padding: 1rem;
    }

    .header-nav {
        display: none;
    }

    .header-right {
        display: none;
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    /* Grid */
    .immersive-grid {
        padding: 5rem 1rem 2rem;
    }

    .list-item {
        padding: 0.75rem 1rem;
        gap: 1rem;
    }

    .list-item-image {
        width: 60px;
        height: 60px;
    }

    .list-item-artist {
        font-size: 9px;
    }

    .list-item-title {
        font-size: 13px;
    }

    /* Page View */
    .page-view {
        padding: 5rem 1.5rem 2rem;
    }
}

/* (480px gallery-specific media queries removed) */

@media (min-width: 901px) {
    .hamburger-btn,
    .mobile-menu,
    .mobile-menu-overlay {
        display: none;
    }
}

/* (Gallery viewer scrollbar styles removed) */

/* ==========================================
   SPECIAL EDITION GALLERY MODAL
   ========================================== */

.se-gallery-modal {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.se-gallery-modal.visible {
    display: flex;
}

.se-gallery-capture {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.se-gallery-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    z-index: 0;
}

.se-gallery-stage {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 22%;
    max-height: 38%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.se-gallery-artwork,
.se-gallery-video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.se-gallery-info {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.se-gallery-artist {
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.se-gallery-title {
    font-size: 12px;
    color: var(--text-dim);
}

.se-gallery-actions {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.se-gallery-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.se-gallery-btn:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.2);
}

/* Make special edition cards clickable */
.special-edition-card {
    cursor: pointer;
}

.special-edition-card .special-edition-view-hint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.special-edition-card:hover .special-edition-view-hint {
    opacity: 1;
}

.special-edition-view-hint span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

/* (Viewer scroll hint removed) */

/* ============ Login alternatives (password / magic / reset) ============ */
.login-alt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.25rem;
}
.login-alt .text-btn {
    color: var(--text-muted);
}
.login-alt .text-btn:hover {
    color: var(--text-dim);
    border-bottom-color: var(--text-dim);
}
.settings-password-group .btn-small {
    cursor: pointer;
}

/* ============ Club tier — unlock / upgrade ============ */
.upgrade-link {
    color: var(--accent);
    border-bottom-color: transparent;
}
.upgrade-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.modal-card.upgrade-modal {
    max-width: 420px;
}

.upgrade-eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.upgrade-title {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-bottom: 0.6rem;
}

.upgrade-features {
    list-style: none;
    margin: 1.5rem 0 0.5rem;
    padding: 0;
}
.upgrade-features li {
    padding: 0.85rem 0;
    border-top: 1px solid var(--border);
}
.upgrade-features li:last-child {
    border-bottom: 1px solid var(--border);
}
.upgrade-feature-name {
    display: block;
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.upgrade-feature-desc {
    display: block;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.upgrade-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    margin-top: 1.75rem;
}
.upgrade-actions .btn.primary {
    width: 100%;
}
.upgrade-actions .text-btn {
    align-self: center;
}
