﻿/* Perfume Club - Studio, profiles, explore (ported + themed) */

body.site-page.club-body {
 --bg: #ffffff;
 --surface: #fafafa;
 --text: #000000;
 --text-muted: #5c5c5c;
 --border: #e8e8e8;
 --primary: #b20000;
 --primary-dark: #8f0000;
 --brand: #b20000;
 --bg-blush: #fafafa;
 --radius: 14px;
 --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
 background: radial-gradient(ellipse 80% 40% at 50% -5%, rgba(178, 0, 0, 0.06), transparent), var(--bg);
 color: var(--text);
}

body.site-page .container {
 width: min(960px, calc(100% - 2rem));
 margin-inline: auto;
}

body.site-page .section {
 padding: 2rem 0 4rem;
}

body.club-body {
 background: var(--bg);
}

/* - - Hero / landing - - */
.club-banner {
 position: relative;
 overflow: hidden;
 color: #fff;
 padding: clamp(3rem, 8vw, 5rem) 0;
 background:
  radial-gradient(ellipse 80% 60% at 20% 20%, rgba(178, 0, 0, 0.18), transparent 55%),
  radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255, 255, 255, 0.08), transparent 50%),
  linear-gradient(145deg, #000000 0%, #1a1a1a 42%, #b20000 100%);
}

.club-banner::after {
 content: '';
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.12));
 pointer-events: none;
}

.club-banner .container {
 position: relative;
 z-index: 1;
}

.club-banner h1 {
 font-family: var(--font-display);
 font-size: clamp(2.2rem, 5vw, 3.4rem);
 margin: 0 0 0.75rem;
 letter-spacing: -0.02em;
 line-height: 1.1;
}

.club-banner p {
 margin: 0;
 max-width: 36rem;
 font-size: clamp(1rem, 2.2vw, 1.15rem);
 line-height: 1.65;
 opacity: 0.94;
}

.club-steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1rem;
 margin-top: 2rem;
}

.club-step {
 background: rgba(255, 255, 255, 0.1);
 backdrop-filter: blur(12px);
 border: 1px solid rgba(255, 255, 255, 0.18);
 border-radius: 16px;
 padding: 1.1rem 1.15rem;
}

.club-step-num {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 1.75rem;
 height: 1.75rem;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.22);
 font-size: 0.8rem;
 font-weight: 800;
 margin-bottom: 0.5rem;
}

.club-step h4 {
 margin: 0 0 0.35rem;
 font-size: 1rem;
}

.club-step p {
 margin: 0;
 font-size: 0.88rem;
 opacity: 0.88;
 max-width: none;
}

.feature-card {
 border-radius: 20px;
 border: 1px solid var(--border);
 background: var(--surface);
 padding: 1.35rem 1.4rem;
 box-shadow: 0 4px 24px rgba(25, 25, 25, 0.04);
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
 transform: translateY(-3px);
 box-shadow: var(--shadow);
}

.feature-card .feature-icon {
 width: 2.75rem;
 height: 2.75rem;
 border-radius: 14px;
 display: grid;
 place-items: center;
 font-size: 1.35rem;
 background: linear-gradient(135deg, rgba(184, 122, 143, 0.14), rgba(54, 101, 243, 0.1));
 margin-bottom: 0.85rem;
}

.feature-card h3 {
 margin: 0 0 0.45rem;
 font-size: 1.08rem;
}

.feature-card p {
 margin: 0;
 color: var(--text-muted);
 font-size: 0.92rem;
 line-height: 1.55;
}

/* - - Nav helpers - - */
.club-nav-status {
 font-size: 0.88rem;
 font-weight: 600;
 display: flex;
 align-items: center;
 gap: 0.65rem;
 flex-wrap: wrap;
}

.btn-sm {
 padding: 0.5rem 0.95rem !important;
 font-size: 0.86rem !important;
 min-height: 2.5rem;
}

.link-btn {
 background: none;
 border: none;
 color: var(--primary);
 font-weight: 600;
 cursor: pointer;
 padding: 0.35rem 0;
 font-size: inherit;
 font-family: inherit;
 min-height: 2.75rem;
}

.viewer-badge {
 display: inline-flex;
 align-items: center;
 gap: 0.4rem;
 background: var(--surface);
 border: 1px solid var(--border);
 color: var(--text);
 font-size: 0.86rem;
 font-weight: 600;
 padding: 0.55rem 1rem;
 border-radius: 999px;
 box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.viewer-badge--member {
 background: color-mix(in srgb, var(--success) 10%, white);
 border-color: color-mix(in srgb, var(--success) 35%, var(--border));
}

/* - - Explore grid - - */
.member-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
 gap: 1.15rem;
}

.member-card {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: 20px;
 overflow: hidden;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
 box-shadow: 0 4px 20px rgba(25, 25, 25, 0.04);
}

.member-card:hover {
 transform: translateY(-4px);
 box-shadow: var(--shadow);
}

.member-card a {
 text-decoration: none;
 color: inherit;
 display: block;
}

.member-card-top {
 height: 88px;
 background: linear-gradient(135deg, var(--card-bg, var(--bg-blush)), color-mix(in srgb, var(--card-accent, var(--brand)) 40%, white));
}

.member-card-body {
 padding: 0 1.1rem 1.15rem;
 margin-top: -28px;
}

.member-avatar {
 width: 56px;
 height: 56px;
 border-radius: 16px;
 border: 3px solid var(--surface);
 background: var(--chip-bg, #eee);
 display: grid;
 place-items: center;
 font-weight: 800;
 font-size: 1.1rem;
 color: var(--brand-dark);
 overflow: hidden;
 box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

.member-card h3 {
 margin: 0.65rem 0 0.1rem;
 font-size: 1.05rem;
}

.member-card .member-handle {
 margin: 0;
 font-size: 0.82rem;
 color: var(--text-muted);
}

.member-card .member-tagline {
 margin: 0.45rem 0 0;
 font-size: 0.88rem;
 color: var(--text-muted);
 line-height: 1.45;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

/* - - Member public profile (Studio page) - - */
.pro-page {
 --font-display: "Playfair Display", Georgia, serif;
 --font-body: "DM Sans", system-ui, sans-serif;
 --pro-bg: #ffffff;
 --pro-accent: #b20000;
 --pro-text: #1a1518;
 --pro-text-muted: #5e5660;
 --pro-surface: #ffffff;
 --pro-border: #e8e4e6;
 --pro-chip-bg: #f9eef2;
 --pro-brand-dark: #8e5a6f;
 --text: var(--pro-text);
 --text-muted: var(--pro-text-muted);
 --surface: var(--pro-surface);
 --bg: var(--pro-bg);
 --border: var(--pro-border);
 --brand: var(--pro-accent);
 --brand-dark: var(--pro-brand-dark);
 --chip-bg: var(--pro-chip-bg);
 --primary: var(--pro-accent);
 --primary-dark: var(--pro-brand-dark);
 --success: #2d8a4e;
 min-height: 100vh;
 font-family: var(--font-body);
 color: var(--pro-text);
 background: var(--pro-bg);
}

.pro-page a {
 color: var(--pro-accent);
}

.pro-page .btn-primary {
 background: var(--pro-accent);
 color: #fff;
}

.pro-page .btn-primary:hover {
 background: var(--pro-brand-dark);
 color: #fff;
}

.pro-page .btn-secondary {
 background: var(--pro-surface);
 color: var(--pro-text);
 border-color: var(--pro-border);
}

.pro-page .btn-secondary:hover {
 border-color: color-mix(in srgb, var(--pro-accent) 40%, var(--pro-border));
 color: var(--pro-accent);
}

.pro-page .muted,
.pro-page .hint {
 color: var(--pro-text-muted);
}

.pro-page .viewer-badge {
 background: var(--pro-surface);
 border-color: var(--pro-border);
 color: var(--pro-text);
 box-shadow: 0 2px 12px rgba(25, 25, 25, 0.06);
}

.pro-page .viewer-badge--member {
 background: color-mix(in srgb, var(--success) 12%, var(--pro-surface));
 border-color: color-mix(in srgb, var(--success) 35%, var(--pro-border));
}

.pro-site-header.site-header {
 position: sticky;
 top: 0;
 z-index: 100;
}

.pro-studio-hub {
 position: sticky;
 top: 3.35rem;
 z-index: 45;
 width: 100%;
 background: color-mix(in srgb, var(--pro-bg, #fff) 94%, transparent);
 backdrop-filter: blur(16px) saturate(1.15);
 -webkit-backdrop-filter: blur(16px) saturate(1.15);
 border-bottom: 1px solid color-mix(in srgb, var(--pro-accent, #b20000) 16%, var(--border));
 box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.pro-studio-hub[hidden] {
 display: none !important;
}

.pro-studio-hub-inner {
 width: min(960px, calc(100% - 1.5rem));
 margin: 0 auto;
 padding: 0.95rem 0 0.8rem;
}

.pro-studio-identity {
 display: flex;
 align-items: center;
 gap: 0.85rem;
 margin-bottom: 0.75rem;
}

.pro-studio-avatar {
 width: 3.25rem;
 height: 3.25rem;
 border-radius: 16px;
 overflow: hidden;
 flex-shrink: 0;
 display: grid;
 place-items: center;
 font-weight: 800;
 font-size: 1.15rem;
 color: #fff;
 background: linear-gradient(135deg, var(--pro-accent, var(--brand)), color-mix(in srgb, var(--pro-accent, var(--brand)) 55%, #fff));
 border: 2px solid color-mix(in srgb, var(--pro-accent) 35%, #fff);
 box-shadow: 0 8px 20px color-mix(in srgb, var(--pro-accent) 25%, transparent);
}

.pro-studio-avatar img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.pro-studio-name {
 margin: 0;
 font-size: 1.05rem;
 font-weight: 800;
 letter-spacing: -0.02em;
}

.pro-studio-handle {
 margin: 0.12rem 0 0;
 font-size: 0.78rem;
 color: var(--pro-text-muted, var(--muted));
}

.pro-studio-nav {
 display: flex;
 gap: 0.45rem;
 overflow-x: auto;
 -webkit-overflow-scrolling: touch;
 scrollbar-width: none;
 padding-bottom: 0.1rem;
}

.pro-studio-nav::-webkit-scrollbar {
 display: none;
}

.pro-studio-nav-link {
 flex-shrink: 0;
 display: inline-flex;
 align-items: center;
 min-height: 2.1rem;
 padding: 0.4rem 0.95rem;
 border-radius: 999px;
 font-size: 0.82rem;
 font-weight: 700;
 text-decoration: none;
 color: var(--pro-text, var(--text));
 border: 1px solid color-mix(in srgb, var(--pro-accent) 20%, var(--pro-border, var(--border)));
 background: color-mix(in srgb, var(--pro-surface, var(--surface)) 90%, transparent);
 transition: background 0.15s ease, border-color 0.15s ease;
}

.pro-studio-nav-link:hover,
.pro-studio-nav-link.is-active {
 color: var(--pro-accent, var(--brand));
 border-color: color-mix(in srgb, var(--pro-accent) 45%, var(--border));
 background: color-mix(in srgb, var(--pro-accent) 10%, var(--pro-surface, var(--surface)));
 text-decoration: none;
}

.pro-top8-picks-hint {
 font-size: 0.84rem;
 margin: 0 0 0.75rem;
}

.pro-nav.site-header,
.pro-nav {
 position: sticky;
 top: 0;
 z-index: 50;
 backdrop-filter: blur(20px) saturate(1.2);
 -webkit-backdrop-filter: blur(20px) saturate(1.2);
 background: color-mix(in srgb, var(--pro-bg, #fff) 90%, transparent);
 border-bottom: 1px solid color-mix(in srgb, var(--pro-accent, #b20000) 14%, var(--border));
 padding: 0.55rem 0;
 box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.pro-nav .container {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 1rem;
 flex-wrap: wrap;
 max-width: 1100px;
 margin-inline: auto;
 padding-inline: 1.25rem;
}

.pro-nav-back {
 display: inline-flex;
 align-items: center;
 gap: 0.35rem;
 min-height: 2.15rem;
 padding: 0.4rem 0.9rem;
 border-radius: 999px;
 color: var(--pro-text, var(--text));
 font-weight: 600;
 font-size: 0.875rem;
 text-decoration: none;
 border: 1px solid color-mix(in srgb, var(--pro-accent) 18%, var(--pro-border, var(--border)));
 background: color-mix(in srgb, var(--pro-surface, var(--surface)) 88%, transparent);
 transition: background 0.15s ease, border-color 0.15s ease;
}

.pro-hero-card:has(+ .pro-member-actions) {
 border-radius: 0;
 padding-bottom: 1rem;
 box-shadow: none;
}

.pro-nav-back:hover {
 color: var(--pro-accent, var(--brand));
 background: color-mix(in srgb, var(--pro-accent) 10%, var(--pro-surface, var(--surface)));
 text-decoration: none;
}

.pro-nav-actions {
 display: flex;
 align-items: center;
 gap: 0.5rem;
 flex-wrap: wrap;
}

.pro-nav-actions .viewer-badge {
 font-size: 0.78rem;
 padding: 0.35rem 0.7rem;
 border-radius: 999px;
}

.pro-nav-actions .btn-sm {
 border-radius: 999px;
 padding-inline: 0.95rem;
}

.pro-nav-inner {
 display: flex;
 justify-content: space-between;
 align-items: center;
 gap: 1rem;
 flex-wrap: wrap;
}

.pro-layout {
 width: min(960px, calc(100% - 1.5rem));
 margin: 0 auto 3rem;
 padding-top: 1rem;
}

.pro-hero {
 position: relative;
 margin-bottom: 1.25rem;
 overflow: visible;
}

.pro-cover {
 height: 152px;
 border-radius: 24px 24px 0 0;
 position: relative;
 z-index: 0;
 background: linear-gradient(
  120deg,
  color-mix(in srgb, var(--pro-accent, var(--brand)) 88%, #fff),
  color-mix(in srgb, var(--pro-accent, var(--brand)) 50%, #fff)
 );
}

.pro-hero-card {
 display: grid;
 grid-template-columns: auto 1fr;
 gap: 1.15rem;
 align-items: start;
 position: relative;
 z-index: 1;
 margin-top: -48px;
 padding: 1rem 1.25rem 1.35rem;
 background: var(--pro-surface, var(--surface));
 border-radius: 0 0 24px 24px;
 border: 1px solid var(--pro-border, var(--border));
 border-top: none;
 box-shadow: 0 12px 40px rgba(25, 25, 25, 0.06);
 overflow: visible;
}

.pro-avatar-stage {
 margin-top: -76px;
 position: relative;
 z-index: 3;
 flex-shrink: 0;
}

.pro-avatar {
 width: 132px;
 height: 132px;
 border-radius: 26px;
 border: 4px solid var(--pro-surface, var(--surface));
 background: color-mix(in srgb, var(--pro-accent) 12%, white);
 display: grid;
 place-items: center;
 font-size: 2.6rem;
 font-weight: 800;
 color: var(--pro-accent);
 overflow: hidden;
 flex-shrink: 0;
 box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.pro-hero-info {
 padding-top: 0.35rem;
 min-width: 0;
}

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

.pro-name {
 margin: 0;
 font-family: var(--font-display);
 font-size: clamp(1.5rem, 4vw, 2rem);
 color: var(--pro-text, var(--text));
 letter-spacing: -0.02em;
}

.pro-tagline {
 margin: 0.2rem 0 0.65rem;
 font-size: 1rem;
 color: var(--pro-text-muted, var(--text-muted));
 line-height: 1.5;
}

.pro-intro-block {
 margin-bottom: 0.35rem;
}

.pro-intro-display {
 display: flex;
 flex-wrap: wrap;
 align-items: flex-start;
 gap: 0.5rem 0.75rem;
}

.pro-intro-display .pro-tagline {
 margin: 0;
 flex: 1 1 12rem;
}

.pro-inline-edit {
 border: none;
 background: transparent;
 color: var(--pro-accent, var(--accent));
 font: inherit;
 font-size: 0.82rem;
 font-weight: 600;
 cursor: pointer;
 padding: 0.15rem 0;
 text-decoration: underline;
 text-underline-offset: 0.15em;
}

.pro-inline-edit:hover {
 opacity: 0.85;
}

.pro-card-head .pro-inline-edit {
 margin-left: auto;
 text-decoration: none;
}

.pro-card-head .pro-inline-edit:hover {
 text-decoration: underline;
}

.pro-inline-form {
 margin-top: 0.5rem;
 display: grid;
 gap: 0.45rem;
}

.pro-inline-form label {
 font-size: 0.82rem;
 font-weight: 600;
 color: var(--pro-text-muted, var(--text-muted));
}

.pro-inline-form input,
.pro-inline-form textarea {
 width: 100%;
 font: inherit;
}

.pro-inline-form-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
 margin-top: 0.25rem;
}

.pro-about-form textarea {
 min-height: 7rem;
 resize: vertical;
}

.pro-inline-status.msg-error {
 color: var(--accent);
}

.pro-chips {
 display: flex;
 flex-wrap: wrap;
 gap: 0.45rem;
}

.pro-chip {
 font-size: 0.8rem;
 font-weight: 600;
 padding: 0.35rem 0.75rem;
 border-radius: 999px;
 background: color-mix(in srgb, var(--pro-accent) 10%, var(--pro-surface, white));
 color: var(--pro-text, var(--text));
 border: 1px solid color-mix(in srgb, var(--pro-accent) 22%, var(--pro-border, var(--border)));
}

.pro-bento {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 1rem;
}

.pro-card {
 background: var(--pro-surface, var(--surface));
 border: 1px solid var(--pro-border, var(--border));
 border-radius: 20px;
 overflow: hidden;
 box-shadow: 0 4px 20px rgba(25, 25, 25, 0.04);
}

.pro-card--wide {
 grid-column: 1 / -1;
}

.pro-card-head {
 padding: 0.85rem 1.15rem;
 border-bottom: 1px solid var(--pro-border, var(--border));
 display: flex;
 align-items: baseline;
 justify-content: space-between;
 gap: 0.5rem;
 background: color-mix(in srgb, var(--pro-accent) 6%, var(--pro-surface, var(--surface)));
}

.pro-card-head h2 {
 margin: 0;
 font-size: 0.95rem;
 font-weight: 800;
 letter-spacing: -0.01em;
 color: var(--pro-accent);
}

.pro-card-head span {
 font-size: 0.78rem;
 color: var(--pro-text-muted, var(--text-muted));
 font-weight: 600;
}

.pro-card-body {
 padding: 1.1rem 1.15rem 1.2rem;
}

.pro-card-body p {
 margin: 0;
 line-height: 1.6;
 color: var(--pro-text, var(--text));
}

.pro-card-body p + p {
 margin-top: 0.75rem;
}

/* Legacy panel classes (fallback) */
.pro-topbar { display: none; }
.pro-wrap { display: none; }
.pro-header,
.pro-panel { display: none; }

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

.shelf-slot {
 border-radius: 16px;
 min-height: 120px;
 padding: 0.75rem;
 font-size: 0.78rem;
 display: flex;
 flex-direction: column;
 gap: 0.25rem;
 background: color-mix(in srgb, var(--pro-accent) 6%, var(--pro-bg, var(--bg)));
 border: 1px solid color-mix(in srgb, var(--pro-accent) 18%, var(--pro-border, var(--border)));
 box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.shelf-name {
 color: var(--pro-text-muted, var(--text-muted));
 font-size: 0.76rem;
}

.shelf-notes-block {
 grid-column: 1 / -1;
 display: grid;
 gap: 0.35rem;
 margin-top: 0.15rem;
}

.shelf-notes-preview {
 padding: 0.55rem 0.65rem;
 border-radius: 10px;
 background: color-mix(in srgb, var(--accent) 6%, var(--surface));
 border: 1px solid color-mix(in srgb, var(--border) 90%, var(--accent) 10%);
}

.shelf-slot-photo {
 width: 100%;
 aspect-ratio: 1;
 object-fit: cover;
 border-radius: 10px;
 margin-bottom: 0.15rem;
 background: color-mix(in srgb, var(--pro-accent) 8%, white);
}

.shelf-slot.filled strong {
 font-size: 0.82rem;
 color: var(--pro-text, var(--text));
}

.shelf-slot.empty {
 color: var(--pro-text-muted, var(--text-muted));
 align-items: center;
 justify-content: center;
 text-align: center;
 border-style: dashed;
 background: transparent;
}

.shelf-kind {
 font-size: 0.62rem;
 text-transform: uppercase;
 letter-spacing: 0.06em;
 color: var(--pro-accent);
 font-weight: 800;
}

.top8-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 0.65rem;
}

.top8-slot {
 border-radius: 16px;
 min-height: 112px;
 padding: 0.65rem 0.5rem;
 font-size: 0.78rem;
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 0.25rem;
 text-align: center;
 text-decoration: none;
 color: inherit;
 background: color-mix(in srgb, var(--pro-accent) 5%, var(--pro-bg, var(--bg)));
 border: 1px solid color-mix(in srgb, var(--pro-accent) 15%, var(--pro-border, var(--border)));
 transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.top8-slot.filled:hover {
 transform: translateY(-2px);
 box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.top8-slot.empty {
 color: var(--pro-text-muted, var(--text-muted));
 justify-content: center;
 border-style: dashed;
 background: transparent;
}

.top8-avatar {
 width: 52px;
 height: 52px;
 border-radius: 14px;
 background: var(--pro-chip-bg, var(--chip-bg));
 display: grid;
 place-items: center;
 font-weight: 800;
 color: var(--pro-accent);
 overflow: hidden;
}

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

.scent-moments-grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 0.75rem;
}

.scent-moment-card {
 border-radius: 16px;
 overflow: hidden;
 border: 1px solid color-mix(in srgb, var(--pro-accent) 15%, var(--pro-border, var(--border)));
 background: color-mix(in srgb, var(--pro-accent) 4%, var(--pro-bg, var(--bg)));
}

.scent-moment-card img {
 display: block;
 width: 100%;
 aspect-ratio: 3 / 4;
 object-fit: cover;
}

.scent-moment-card figcaption {
 padding: 0.55rem 0.65rem 0.7rem;
 font-size: 0.82rem;
 color: var(--pro-text-muted, var(--text-muted));
 line-height: 1.4;
}

.scent-policy {
 padding: 0.65rem 0.75rem;
 border-radius: 12px;
 background: color-mix(in srgb, var(--primary) 8%, var(--surface));
 border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border));
}

.scent-policy a {
 color: var(--primary);
}

.studio-visibility {
 margin-top: 1.5rem;
 padding: 0.85rem 0.9rem;
 border-radius: 14px;
 border: 1px solid var(--border);
 background: color-mix(in srgb, var(--surface) 90%, var(--bg));
}

.studio-visibility-check {
 color: var(--text);
}

.scent-moments-editor {
 display: grid;
 gap: 1rem;
 margin-top: 0.75rem;
}

.scent-moment-row {
 display: grid;
 grid-template-columns: auto 1fr;
 gap: 0.85rem;
 padding: 0.85rem;
 border-radius: 14px;
 border: 1px solid var(--border);
 background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.scent-moment-photo {
 width: 88px;
 height: 110px;
 border-radius: 12px;
 border: 2px dashed var(--border);
 background: var(--chip-bg);
 display: grid;
 place-items: center;
 font-size: 1.25rem;
 color: var(--text-muted);
 overflow: hidden;
 flex-shrink: 0;
}

.scent-moment-photo img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.scent-moment-fields {
 display: flex;
 flex-direction: column;
 gap: 0.45rem;
 min-width: 0;
}

.scent-moment-fields input[type='text'] {
 width: 100%;
}

.scent-friendly-check {
 display: flex;
 align-items: flex-start;
 gap: 0.5rem;
 font-size: 0.82rem;
 line-height: 1.45;
 color: var(--text-muted);
 cursor: pointer;
}

.scent-friendly-check input {
 margin-top: 0.2rem;
 flex-shrink: 0;
}

.pro-card-footnote {
 margin: 0.75rem 0 0;
 font-size: 0.78rem;
 color: var(--pro-text-muted, var(--text-muted));
}

.pro-card-footnote a {
 color: var(--pro-accent);
}

.shoutout {
 padding: 0.85rem 0;
 border-bottom: 1px solid var(--pro-border, var(--border));
}

.shoutout:last-child {
 border-bottom: none;
 padding-bottom: 0;
}

.shoutout header {
 font-size: 0.82rem;
 color: var(--pro-text-muted, var(--text-muted));
 margin-bottom: 0.35rem;
}

.shoutout p {
 color: var(--pro-text, var(--text));
}

.shoutout-form {
 display: grid;
 gap: 0.65rem;
 margin-top: 1rem;
 padding-top: 1rem;
 border-top: 1px solid var(--pro-border, var(--border));
}

.shoutout-form.disabled {
 opacity: 0.7;
 pointer-events: none;
}

.shoutout-form textarea {
 width: 100%;
 min-height: 88px;
 border: 1px solid var(--pro-border, var(--border));
 border-radius: 14px;
 padding: 0.85rem 1rem;
 font-family: inherit;
 font-size: 1rem;
 resize: vertical;
 background: var(--pro-surface, var(--surface));
 color: var(--pro-text, var(--text));
}

.shoutout-form label {
 font-weight: 600;
 font-size: 0.9rem;
 color: var(--pro-text, var(--text));
}

.muted {
 color: var(--text-muted);
 font-size: 0.92rem;
}

.hint {
 font-size: 0.86rem;
 color: var(--text-muted);
 margin: 0.25rem 0 0;
 line-height: 1.5;
}

/* - - Studio (member editor) - - */
.studio-hero {
 margin-bottom: 1.5rem;
}

.studio-hero h1 {
 margin: 0 0 0.35rem;
}

.studio-hero p {
 margin: 0;
 color: var(--text-muted);
 max-width: 40rem;
 font-size: 1.02rem;
}

.studio-hero-links {
 margin: 0.65rem 0 0;
 font-size: 0.92rem;
}

.studio-hero-links a {
 font-weight: 700;
}

.studio-save-status {
 margin: 0.5rem 0 0;
 font-size: 0.9rem;
 color: var(--success);
 font-weight: 600;
}

.studio-save-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.65rem;
 margin-top: 1.5rem;
}

.studio-save-bar {
 display: none;
 position: fixed;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 40;
 gap: 0.5rem;
 padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
 background: color-mix(in srgb, var(--surface) 92%, transparent);
 border-top: 1px solid var(--border);
 backdrop-filter: blur(10px);
 box-shadow: 0 -8px 24px rgba(25, 25, 25, 0.08);
}

.studio-save-bar .btn {
 flex: 1 1 0;
 min-height: 2.85rem;
}

.studio-save-actions .btn-primary {
 flex: 1 1 12rem;
}

.upload-status--error,
.studio-save-status.upload-status--error {
 color: var(--accent);
}

.shelf-upload-status.upload-status--error,
#avatar-upload-status.upload-status--error {
 color: var(--accent);
 font-weight: 600;
}

.studio-layout {
 display: grid;
 grid-template-columns: 1fr min(300px, 32%);
 gap: 1.5rem;
 align-items: start;
}

.studio-panel {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: 20px;
 padding: 1.25rem 1.35rem;
 box-shadow: 0 4px 24px rgba(25, 25, 25, 0.04);
}

.studio-tabs {
 display: flex;
 flex-wrap: wrap;
 gap: 0.45rem;
 margin-bottom: 1.25rem;
}

.studio-tab {
 border: 1px solid var(--border);
 background: var(--bg);
 border-radius: 999px;
 padding: 0.55rem 1rem;
 font: inherit;
 font-size: 0.88rem;
 font-weight: 700;
 cursor: pointer;
 color: var(--text-muted);
 min-height: 2.75rem;
}

.studio-tab[aria-selected='true'] {
 background: var(--primary);
 border-color: var(--primary);
 color: #fff;
}

.studio-section[hidden] {
 display: none !important;
}

.studio-form label,
.studio-form .field-label {
 display: block;
 font-weight: 700;
 font-size: 0.9rem;
 margin: 1rem 0 0.35rem;
}

.studio-form label:first-child,
.studio-form .field-label:first-child {
 margin-top: 0;
}

.studio-form input,
.studio-form textarea,
.studio-form select {
 width: 100%;
 border: 1px solid var(--border);
 border-radius: 12px;
 padding: 0.75rem 0.9rem;
 font: inherit;
 font-size: 1rem;
 min-height: 2.75rem;
}

.studio-form textarea {
 min-height: 120px;
 resize: vertical;
}

.studio-form input:focus,
.studio-form textarea:focus,
.studio-form select:focus {
 outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
 border-color: var(--primary);
}

.theme-picker {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 0.55rem;
 margin-top: 0.5rem;
 align-items: stretch;
}

@media (max-width: 420px) {
 .theme-picker {
  grid-template-columns: repeat(2, minmax(0, 1fr));
 }
}

.theme-option {
 position: relative;
 display: flex;
 min-width: 0;
 height: 100%;
}

.theme-option input {
 position: absolute;
 opacity: 0;
 pointer-events: none;
}

.theme-swatch {
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 width: 100%;
 min-height: 4.75rem;
 border-radius: 14px;
 border: 2px solid var(--border);
 padding: 0.55rem 0.5rem 0.6rem;
 text-align: center;
 font-size: 0.78rem;
 font-weight: 700;
 line-height: 1.2;
 cursor: pointer;
 box-sizing: border-box;
 transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-swatch span {
 display: block;
 width: 100%;
 flex: 1 1 auto;
 min-height: 2rem;
 border-radius: 8px;
 margin-bottom: 0.4rem;
}

.theme-option input:checked + .theme-swatch {
 border-color: var(--primary);
 transform: scale(1.02);
}

.studio-preview {
 position: sticky;
 top: 5.5rem;
 border-radius: 20px;
 border: 1px solid var(--border);
 overflow: hidden;
 background: var(--surface);
 box-shadow: var(--shadow);
}

.studio-preview-label {
 padding: 0.65rem 1rem;
 font-size: 0.78rem;
 font-weight: 800;
 text-transform: uppercase;
 letter-spacing: 0.06em;
 color: var(--text-muted);
 border-bottom: 1px solid var(--border);
}

.studio-preview-body {
 padding: 1rem;
 background: var(--preview-bg, #ffffff);
}

.studio-preview-mini {
 border-radius: 14px;
 background: #fff;
 border: 1px solid var(--border);
 overflow: hidden;
}

.studio-preview-cover {
 height: 48px;
 background: var(--preview-accent, var(--brand));
}

.studio-preview-inner {
 padding: 0.65rem 0.75rem 0.85rem;
 margin-top: -22px;
}

.studio-preview-avatar {
 width: 52px;
 height: 52px;
 border-radius: 12px;
 border: 2px solid #fff;
 background: color-mix(in srgb, var(--preview-accent) 15%, white);
 display: grid;
 place-items: center;
 font-weight: 800;
 font-size: 0.9rem;
 color: var(--preview-accent);
 overflow: hidden;
}

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

.avatar-upload-row {
 display: flex;
 align-items: center;
 gap: 1rem;
 margin-bottom: 0.5rem;
}

.avatar-upload-preview {
 width: 108px;
 height: 108px;
 border-radius: 22px;
 border: 2px solid var(--border);
 background: var(--chip-bg);
 display: grid;
 place-items: center;
 font-weight: 800;
 font-size: 1.75rem;
 color: var(--brand);
 overflow: hidden;
 flex-shrink: 0;
}

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

.avatar-upload-actions {
 display: flex;
 flex-direction: column;
 align-items: flex-start;
 gap: 0.35rem;
}

.avatar-upload-btn {
 cursor: pointer;
}

.studio-preview-name {
 margin: 0.45rem 0 0.15rem;
 font-weight: 800;
 font-size: 0.9rem;
}

.studio-preview-tag {
 margin: 0;
 font-size: 0.72rem;
 color: var(--text-muted);
}

.top8-editor,
.shelf-editor {
 display: grid;
 gap: 0.85rem;
}

.top8-editor-row {
 display: grid;
 grid-template-columns: 40px 1fr;
 gap: 0.5rem;
 align-items: start;
}

.top8-editor-row .slot-label {
 font-weight: 800;
 color: var(--brand);
 padding-top: 0.75rem;
 font-size: 0.85rem;
}

.shelf-editor-row {
 display: grid;
 grid-template-columns: 40px 88px 1fr 1fr;
 gap: 0.5rem;
 align-items: end;
 padding: 0.75rem;
 border-radius: 14px;
 background: var(--bg);
 border: 1px solid var(--border);
}

.shelf-editor-row .slot-label {
 font-weight: 800;
 color: var(--brand);
 padding-bottom: 0.75rem;
 align-self: start;
 padding-top: 0.35rem;
}

.shelf-photo-cell {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 0.3rem;
 grid-row: 1 / span 4;
 align-self: start;
}

.shelf-photo-preview {
 width: 72px;
 height: 72px;
 border-radius: 12px;
 border: 1px dashed var(--border);
 background: var(--surface);
 display: grid;
 place-items: center;
 font-size: 1.35rem;
 overflow: hidden;
}

.shelf-photo-preview img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.shelf-photo-btn {
 font-size: 0.72rem;
 font-weight: 700;
 color: var(--brand);
 cursor: pointer;
 text-align: center;
}

.shelf-upload-status {
 font-size: 0.68rem;
 margin: 0;
 text-align: center;
 line-height: 1.3;
}

.shelf-editor-row input[name$="_note"] {
 grid-column: 3 / -1;
}

.shelf-editor-row .shelf-notes-block {
 grid-column: 3 / -1;
 align-self: start;
}

.shelf-editor-row select {
 grid-column: 3 / -1;
}

.top8-results {
 grid-column: 2;
 border: 1px solid var(--border);
 border-radius: 12px;
 background: var(--surface);
 padding: 0.35rem;
 display: grid;
 gap: 0.25rem;
 max-height: 180px;
 overflow: auto;
}

.top8-result {
 border: none;
 background: var(--chip-bg);
 border-radius: 10px;
 padding: 0.6rem 0.7rem;
 text-align: left;
 cursor: pointer;
 font: inherit;
 min-height: 2.75rem;
}

.top8-result:hover {
 background: color-mix(in srgb, var(--brand) 12%, white);
}

/* Join / fees */
.fee-total {
 display: flex;
 justify-content: space-between;
 align-items: baseline;
 font-size: 1.1rem;
 margin-bottom: 0.75rem;
}

.fee-total strong {
 font-size: 1.8rem;
 color: var(--brand-dark);
}

.fee-intro {
 color: var(--text-muted);
 margin: 0 0 1rem;
}

.fee-table {
 width: 100%;
 border-collapse: collapse;
 font-size: 0.9rem;
}

.fee-table th,
.fee-table td {
 border: 1px solid var(--border);
 padding: 0.65rem 0.75rem;
 text-align: left;
 vertical-align: top;
}

.fee-table th {
 background: var(--chip-bg);
}

.fee-total-row td {
 font-weight: 700;
 background: var(--bg-blush);
}

.auth-card {
 max-width: 420px;
 margin: 2rem auto;
}

.auth-card label {
 display: block;
 font-weight: 600;
 font-size: 0.85rem;
 margin: 0.75rem 0 0.25rem;
}

.auth-card input {
 width: 100%;
 border: 1px solid var(--border);
 border-radius: 12px;
 padding: 0.75rem 0.9rem;
 font: inherit;
 min-height: 2.75rem;
}

@media (max-width: 900px) {
 .studio-layout {
  grid-template-columns: 1fr;
 }

 .studio-preview {
  position: static;
  order: -1;
 }

 .studio-save-bar {
  display: flex;
 }

 body.club-body:has(.studio-save-bar) main.section {
  padding-bottom: 5rem;
 }
}

@media (max-width: 640px) {
 .pro-studio-hub {
  top: 3.1rem;
 }

 .pro-studio-hub-inner {
  width: 100%;
  padding: 1rem 1rem 0.85rem;
 }

 .pro-studio-identity {
  margin-bottom: 0.85rem;
 }

 .pro-studio-avatar {
  width: 3.5rem;
  height: 3.5rem;
 }

 .pro-studio-name {
  font-size: 1.12rem;
 }

 .pro-studio-nav-link {
  min-height: 2.35rem;
  padding-inline: 1rem;
  font-size: 0.84rem;
 }

 .pro-layout {
  width: calc(100% - 1rem);
  padding-top: 0.65rem;
 }

 .pro-hero-card {
  grid-template-columns: 1fr;
  text-align: center;
  padding-top: 0.5rem;
 }

 .pro-avatar-stage {
  margin: -72px auto 0;
 }

 .pro-hero-info {
  padding-top: 0.85rem;
 }

 .pro-chips {
  justify-content: center;
 }

 .pro-bento {
  grid-template-columns: 1fr;
 }

 .shelf-grid,
 .top8-grid,
 .scent-moments-grid {
  grid-template-columns: repeat(2, 1fr);
 }

 .scent-moment-row {
  grid-template-columns: 1fr;
 }

 .scent-moment-photo {
  margin: 0 auto;
 }

 .shelf-editor-row {
  grid-template-columns: 1fr 1fr;
 }

 .shelf-editor-row .slot-label {
  grid-column: 1 / -1;
  padding-bottom: 0;
 }

 .shelf-photo-cell {
  grid-row: auto;
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
 }

 .shelf-editor-row input[name$="_note"],
 .shelf-editor-row .shelf-notes-block,
 .shelf-editor-row select {
  grid-column: 1 / -1;
 }

 .pro-member-actions {
  justify-content: center;
 }
}

/* - - Member profile actions - - */
.pro-member-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
 margin-top: -0.35rem;
 padding: 1rem 1.25rem 1.25rem;
 position: relative;
 z-index: 1;
 border: 1px solid var(--pro-border, var(--border));
 border-top: 1px solid color-mix(in srgb, var(--pro-accent) 20%, var(--pro-border, var(--border)));
 border-radius: 0 0 24px 24px;
 background: var(--pro-surface, var(--surface));
 box-shadow: 0 12px 40px rgba(25, 25, 25, 0.04);
 width: 100%;
}

.pro-member-status {
 flex: 1 1 100%;
 margin: 0.25rem 0 0;
 font-size: 0.85rem;
}

.pro-action-muted {
 color: var(--text-muted);
}

/* - - Club inbox / messages - - */
.club-inbox-layout {
 display: grid;
 gap: 1.25rem;
}

.club-inbox-panel {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: 18px;
 padding: 1.15rem 1.25rem;
}

.club-inbox-panel h2 {
 margin: 0 0 0.85rem;
 font-size: 1.05rem;
}

.club-request-list,
.club-convo-list {
 display: grid;
 gap: 0.65rem;
}

.club-request-row,
.club-convo-row {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 padding: 0.65rem 0.75rem;
 border-radius: 14px;
 background: var(--bg);
 border: 1px solid var(--border);
}

.club-convo-row {
 text-decoration: none;
 color: inherit;
 transition: border-color 0.15s ease;
}

.club-convo-row:hover {
 border-color: var(--primary);
}

.club-request-copy,
.club-convo-copy {
 flex: 1;
 min-width: 0;
}

.club-convo-copy p {
 margin: 0.15rem 0 0;
 font-size: 0.88rem;
 color: var(--text-muted);
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.club-fav-list {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
}

.club-fav-chip {
 display: inline-flex;
 align-items: center;
 gap: 0.45rem;
 padding: 0.4rem 0.75rem 0.4rem 0.4rem;
 border-radius: 999px;
 background: var(--bg);
 border: 1px solid var(--border);
 text-decoration: none;
 color: inherit;
 font-weight: 600;
 font-size: 0.88rem;
}

.club-fav-chip .member-avatar {
 width: 1.75rem;
 height: 1.75rem;
 font-size: 0.75rem;
}

.club-thread {
 background: var(--surface);
 border: 1px solid var(--border);
 border-radius: 18px;
 overflow: hidden;
}

.club-thread-head {
 padding: 1rem 1.15rem;
 border-bottom: 1px solid var(--border);
}

.club-thread-peer {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 margin-top: 0.75rem;
 flex-wrap: wrap;
}

.club-thread-peer .member-avatar {
 width: 2.5rem;
 height: 2.5rem;
}

.club-thread-messages {
 max-height: min(55vh, 28rem);
 overflow-y: auto;
 padding: 1rem 1.15rem;
 display: grid;
 gap: 0.65rem;
 background: var(--bg);
}

.club-msg {
 max-width: 85%;
 padding: 0.65rem 0.85rem;
 border-radius: 14px;
 background: var(--surface);
 border: 1px solid var(--border);
}

.club-msg--mine {
 margin-left: auto;
 background: color-mix(in srgb, var(--primary) 12%, var(--surface));
 border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.club-msg p {
 margin: 0;
 line-height: 1.45;
}

.club-msg time {
 display: block;
 margin-top: 0.35rem;
 font-size: 0.72rem;
 color: var(--text-muted);
}

.club-thread-compose {
 display: grid;
 gap: 0.65rem;
 padding: 1rem 1.15rem;
 border-top: 1px solid var(--border);
}

.club-thread-compose textarea {
 width: 100%;
 border: 1px solid var(--border);
 border-radius: 12px;
 padding: 0.75rem 0.9rem;
 font: inherit;
 resize: vertical;
 min-height: 4.5rem;
}