@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  color-scheme: dark;
  --bg: #08070a;
  --bg-soft: #0f0d11;
  --panel: #151217;
  --panel-2: #1b161c;
  --ink: #f8f3ee;
  --muted: #aba2a5;
  --muted-2: #7d7478;
  --wine: #7d1e31;
  --red: #c63850;
  --rose: #ec6b78;
  --gold: #d1a66f;
  --gold-soft: #efd0a4;
  --line: rgba(255, 255, 255, .095);
  --line-strong: rgba(209, 166, 111, .25);
  --success: #5ed1a0;
  --danger: #ee7582;
  --shadow: 0 30px 90px rgba(0, 0, 0, .46);
  --shadow-soft: 0 16px 45px rgba(0, 0, 0, .25);
  --radius: 22px;
  --radius-sm: 13px;
  --content: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(132, 30, 51, .19), transparent 29rem),
    radial-gradient(circle at 8% 60%, rgba(105, 65, 49, .1), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 'DM Sans', system-ui, sans-serif;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

button, input, textarea, select { font: inherit; }
button, .button-link, .upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  padding: 11px 21px;
  background: linear-gradient(135deg, var(--wine), var(--red));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}
button:hover:not(:disabled), .button-link:hover, .upload-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.secondary-button { background: rgba(255, 255, 255, .025); border-color: var(--line); color: var(--ink); }
.danger-button { background: rgba(125, 30, 49, .1); border-color: rgba(238, 117, 130, .32); color: #ffadb6; }
.text-link, .text-button { color: #ddd2d4; text-decoration: underline; text-decoration-color: rgba(209, 166, 111, .48); text-underline-offset: 5px; }
.text-button { min-height: auto; padding: 2px; border: 0; border-radius: 0; background: transparent; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 10px max(22px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(8, 7, 10, .82);
  backdrop-filter: blur(22px) saturate(130%);
}
.brand { display: inline-flex; flex: none; align-items: center; color: white; text-decoration: none; }
.brand img { width: clamp(150px, 14vw, 188px); height: auto; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(154, 37, 60, .34)); }
.site-header nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-header nav a { position: relative; padding: 10px 13px; border-radius: 999px; color: #b8afb2; font-size: 13px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.site-header nav a:hover, .site-header nav a.active { color: #fff; background: rgba(255, 255, 255, .055); }
.site-header nav a.active::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 9px; background: linear-gradient(90deg, var(--gold), var(--red)); }
.nav-live-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 5px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10px; }
.account-button { gap: 9px; min-height: 42px; margin-left: 14px; padding: 9px 15px; background: transparent; border-color: var(--line-strong); font-size: 13px; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(209, 166, 111, .09); }
.nav-toggle { display: none; width: 44px; min-height: 42px; margin-left: auto; padding: 10px; background: transparent; }
.nav-toggle span { display: block; width: 18px; height: 1px; margin: 3px auto; background: #fff; }

main { width: min(var(--content), calc(100% - 44px)); margin: 0 auto; }
.eyebrow, .section-kicker { margin: 0 0 12px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 24px; height: 1px; margin: 0 9px 3px 0; background: var(--gold); }

.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 4vw; padding: clamp(60px, 8vw, 110px) 0; }
.hero-copy { position: relative; z-index: 2; }
.hero h1, .page-hero h1, .access-gate h1 { margin: 0; font: 600 clamp(54px, 6.5vw, 90px)/.98 'Playfair Display', Georgia, serif; letter-spacing: -.045em; }
.hero h1 em { color: var(--rose); font-weight: inherit; }
.lead { max-width: 660px; margin: 28px 0 0; color: #c4babc; font-size: clamp(18px, 1.8vw, 22px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: var(--muted); font-size: 12px; }
.trust-row span { display: flex; align-items: center; gap: 7px; }
.trust-row span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.trust-row b { color: #f5ece8; font-weight: 700; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; isolation: isolate; }
.hero-visual > img { position: relative; z-index: 2; width: min(53vw, 720px); height: auto; filter: drop-shadow(0 45px 55px rgba(0, 0, 0, .48)); animation: emblem-float 6s ease-in-out infinite; }
.brand-aura { position: absolute; width: 88%; aspect-ratio: 1.75; border-radius: 50%; background: radial-gradient(ellipse, rgba(188, 47, 74, .27), rgba(125, 30, 49, .07) 48%, transparent 72%); filter: blur(14px); }
.hero-visual::before, .hero-visual::after { content: ''; position: absolute; width: 90%; aspect-ratio: 1.8; border: 1px solid rgba(209, 166, 111, .16); border-radius: 50%; transform: rotate(8deg) scaleY(.62); }
.hero-visual::after { width: 102%; transform: rotate(-10deg) scaleY(.48); border-color: rgba(198, 56, 80, .16); }
.visual-note { position: absolute; z-index: 3; min-width: 155px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 13, 17, .78); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.visual-note b { font-size: 12px; }
.note-top { top: 24%; right: -1%; }
.note-bottom { bottom: 24%; left: 0; }
@keyframes emblem-float { 50% { transform: translateY(-14px) rotate(.8deg); } }

.home-intro { display: grid; grid-template-columns: 1fr .78fr; gap: 9vw; padding: 100px 0 55px; border-top: 1px solid var(--line); }
.home-intro h2, .experience-band h2, .home-cta h2, .section-head h2, .safety-callout h2 { margin: 0; font: 600 clamp(35px, 4.5vw, 57px)/1.08 'Playfair Display', serif; letter-spacing: -.025em; }
.home-intro > p { margin: 27px 0 0; color: var(--muted); font-size: 18px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.value-grid article { min-height: 315px; display: flex; flex-direction: column; padding: 38px; }
.value-grid article + article { border-left: 1px solid var(--line); }
.value-grid h3 { margin: 0 0 10px; font: 600 31px 'Playfair Display', serif; }
.value-grid p { margin: 0; color: var(--muted); }
.value-grid a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); color: var(--gold-soft); font-size: 13px; font-weight: 700; text-decoration: none; }
.value-grid a span { transition: transform .2s ease; }
.value-grid a:hover span { transform: translateX(5px); }
.experience-band { display: grid; grid-template-columns: 1fr .9fr; gap: 10vw; align-items: center; margin: 100px 0; padding: clamp(36px, 6vw, 75px); border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 0 100%, rgba(125, 30, 49, .2), transparent 38%), linear-gradient(145deg, rgba(24, 20, 26, .95), rgba(11, 10, 13, .98)); box-shadow: var(--shadow-soft); }
.experience-copy > p:last-child { color: var(--muted); }
.journey-list { margin: 0; padding: 0; list-style: none; }
.journey-list li { position: relative; padding: 20px 0 20px 22px; border-bottom: 1px solid var(--line); }
.journey-list li:first-child { border-top: 1px solid var(--line); }
.journey-list li::before { content: ''; position: absolute; top: 28px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--red)); box-shadow: 0 0 0 5px rgba(198, 56, 80, .08); }
.journey-list b, .journey-list small { display: block; }
.journey-list b { font-size: 17px; }
.journey-list small { margin-top: 3px; color: var(--muted); }
.home-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin: 100px 0; padding: clamp(40px, 6vw, 72px); border: 1px solid var(--line-strong); border-radius: 28px; background: radial-gradient(circle at 86% 50%, rgba(198, 56, 80, .23), transparent 30%), var(--panel); }
.home-cta h2 { max-width: 780px; }

.app-page, .safety-page { min-height: calc(100vh - 82px); padding: 52px 0 100px; }
.page-hero { min-height: 245px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 58px; padding: 35px 0 42px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(52px, 7vw, 88px); }
.page-hero > div > p:last-child { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.live-page-hero { border-bottom-color: rgba(198, 56, 80, .25); }
.live-orb { position: relative; width: 160px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(238, 107, 120, .2); border-radius: 50%; background: radial-gradient(circle, rgba(198, 56, 80, .28), transparent 65%); color: #ff9fac; font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.live-orb span { position: absolute; width: 11px; height: 11px; margin-top: -42px; border-radius: 50%; background: #ff405b; box-shadow: 0 0 0 8px rgba(255, 64, 91, .1); animation: pulse 1.6s infinite; }
.workspace-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18, 15, 20, .78); box-shadow: var(--shadow-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.section-head.compact { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(31px, 4vw, 47px); }
.section-kicker { margin-bottom: 5px; color: var(--muted-2); }

label { display: grid; gap: 7px; }
label > span { color: #c1b7ba; font-size: 12px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid rgba(255, 255, 255, .11); border-radius: 11px; padding: 13px 14px; background: rgba(7, 6, 8, .72); color: var(--ink); transition: border-color .18s ease, background .18s ease; }
input:hover, textarea:hover, select:hover { border-color: rgba(209, 166, 111, .3); }
input:focus, textarea:focus, select:focus { background: #0c0a0e; border-color: rgba(209, 166, 111, .5); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6f666a; }
.filter-bar { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; margin-bottom: 25px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(4, 4, 5, .28); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.profile-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(155deg, rgba(27, 22, 28, .98), rgba(12, 10, 14, .98)); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); transition: transform .22s ease, border-color .22s ease; }
.profile-card:hover { transform: translateY(-4px); border-color: rgba(209, 166, 111, .28); }
.card-photo { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-radius: 0; background: #261820; }
.card-photo:hover { transform: none; }
.card-photo img, .card-photo .avatar { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.profile-card:hover .card-photo img { transform: scale(1.025); }
.avatar { display: grid; place-items: center; background: linear-gradient(145deg, #6d2b3a, #20151c); color: #f0cbc9; font: 700 72px 'Playfair Display', serif; }
.age-badge { position: absolute; right: 13px; bottom: 13px; min-width: 40px; padding: 7px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(7, 6, 8, .84); backdrop-filter: blur(8px); font-weight: 800; }
.card-body { padding: 22px; }
.card-body h3 { margin: 0; font: 600 30px 'Playfair Display', serif; }
.card-body > p:not(.eyebrow) { color: #bbb1b4; }
.card-meta { color: var(--gold) !important; font-size: 13px; }

.social-activity-card { min-height: 460px; }
.activity-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 30px; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 4, 6, .5); }
.activity-tab { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 52px; padding: 10px 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); }
.activity-tab:hover { transform: none; border-color: rgba(209, 166, 111, .18); color: #fff; }
.activity-tab.active { border-color: rgba(198, 56, 80, .42); background: linear-gradient(135deg, rgba(198, 56, 80, .22), rgba(125, 30, 49, .14)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025); }
.activity-tab b { min-width: 25px; padding: 3px 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--gold-soft); font-size: 10px; }
.activity-panel[hidden] { display: none; }
.activity-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.activity-intro h3 { margin: 0; font: 600 27px 'Playfair Display', serif; }
.activity-intro p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }
.activity-grid > .empty-state, .activity-grid > .loading, .activity-grid > .form-error { grid-column: 1 / -1; }
.activity-profile-card .card-body { display: grid; align-content: start; }
.activity-event { min-height: 42px; margin: 10px 0 18px; color: var(--muted) !important; font-size: 12px; }
.activity-actions { align-items: center; margin-top: auto; }
.activity-actions > button { flex: 1; min-width: 120px; }
.activity-liked-state { flex: 1; color: var(--rose); font-size: 12px; font-weight: 800; }

.panel, .chat-grid, .profile-form { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(25, 21, 27, .97), rgba(12, 10, 14, .98)); box-shadow: var(--shadow-soft); }
.panel { padding: 25px; }
.panel h3 { margin: 0; font: 600 26px 'Playfair Display', serif; }
.panel-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 21px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-heading p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; }
.chat-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 610px; overflow: hidden; }
.chat-grid aside { border-right: 1px solid var(--line); background: rgba(6, 5, 7, .28); }
.match-item { width: 100%; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; min-height: auto; padding: 15px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.match-item:hover, .match-item.active { transform: none; background: rgba(198, 56, 80, .1); }
.match-item span { min-width: 0; }
.match-item strong, .match-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-item small { margin-top: 3px; color: var(--muted); }
.match-avatar, .live-avatar { width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; font-size: 23px; }
.unread { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: var(--red); text-align: center; font-size: 11px; }
.chat-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.chat-heading { display: flex; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid var(--line); font-weight: 700; }
.messages { height: 490px; overflow-y: auto; padding: 24px; }
.message-row { display: flex; margin: 9px 0; }
.message-row.own { justify-content: flex-end; }
.message-bubble { max-width: min(75%, 580px); padding: 11px 14px 8px; border: 1px solid var(--line); border-radius: 15px 15px 15px 3px; background: #282128; overflow-wrap: anywhere; }
.message-row.own .message-bubble { border-color: rgba(255, 255, 255, .08); border-radius: 15px 15px 3px 15px; background: linear-gradient(135deg, #762032, #ad3047); }
.message-bubble time { display: block; margin-top: 4px; color: rgba(255, 255, 255, .56); font-size: 10px; text-align: right; }
.chat-panel form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px; border-top: 1px solid var(--line); }
.status-pill { padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; font-weight: 700; }
.status-pill.online { color: var(--success); border-color: rgba(94, 209, 160, .35); background: rgba(94, 209, 160, .06); }

.live-layout { display: grid; gap: 18px; }
.live-start-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 20px; }
.live-start-row label { margin: 0; }
.studio-actions { justify-content: flex-end; padding-bottom: 1px; }
.live-experience { min-width: 0; }
.live-video-column { position: relative; min-width: 0; display: flex; flex-direction: column; }
.live-stage { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr); gap: 14px; align-items: stretch; scroll-margin-top: 82px; }
.video-area { position: relative; z-index: 1; min-width: 0; min-height: 520px; flex: 1; display: grid; place-items: center; contain: layout paint; overflow: hidden; margin: 0 0 13px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(circle at 50% 35%, #171018, #050406 65%); }
.video-area::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(255, 255, 255, .045); border-radius: 11px; pointer-events: none; }
.video-area video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; background: #000; }
.video-area video.local-preview.is-mirrored { transform: scaleX(-1); }
.live-experience.is-viewer .video-area video,
.live-experience.is-viewer .video-area video:fullscreen,
.live-experience.is-viewer .video-area video:-webkit-full-screen,
.video-area video.viewer-mirrored { transform: scaleX(-1) !important; }
.video-area:fullscreen,
.video-area:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: #000; }
.video-area:fullscreen video.viewer-mirrored,
.video-area:-webkit-full-screen video.viewer-mirrored { transform: scaleX(-1) !important; }
.video-context-menu { position: absolute; z-index: 10000; min-width: 190px; padding: 6px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; background: rgba(18, 14, 19, .98); box-shadow: 0 18px 46px rgba(0, 0, 0, .52); backdrop-filter: blur(16px); }
.video-context-menu[hidden] { display: none; }
.video-context-menu button { width: 100%; min-height: 40px; justify-content: flex-start; padding: 9px 12px; border: 0; background: transparent; color: var(--ink); }
.video-context-menu button:hover { background: rgba(198, 56, 80, .16); transform: none; }
.video-area audio,
.video-area .remote-stream-audio { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.media-state-overlay { position: absolute; z-index: 4; inset: 0; display: grid; align-content: center; justify-items: center; gap: 9px; padding: 34px; background: radial-gradient(circle at 50% 42%, rgba(90, 26, 42, .28), transparent 45%), rgba(4, 3, 5, .9); text-align: center; backdrop-filter: blur(14px); }
.media-state-overlay strong { font: 600 clamp(27px, 4vw, 40px) 'Playfair Display', serif; }
.media-state-overlay > span:last-child { max-width: 470px; color: #c8bdc0; font-size: 14px; }
.connection-recovery-overlay { z-index: 6; background: radial-gradient(circle at 50% 42%, rgba(198, 56, 80, .2), transparent 48%), rgba(4, 3, 5, .93); }
.stream-paused-overlay { z-index: 5; background: radial-gradient(circle at 50% 42%, rgba(209, 166, 111, .17), transparent 46%), rgba(4, 3, 5, .92); }
.coffee-break-icon { width: 82px; height: 82px; display: grid; place-items: center; margin-bottom: 3px; color: #efc989; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .32)); }
.coffee-break-icon svg { width: 78px; height: 78px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.coffee-steam { transform-origin: center bottom; animation: coffee-steam 2.1s ease-in-out infinite; }
.coffee-steam.steam-two { animation-delay: -.7s; }
.coffee-steam.steam-three { animation-delay: -1.4s; }
@keyframes coffee-steam { 0%, 100% { opacity: .22; transform: translateY(3px); } 50% { opacity: 1; transform: translateY(-3px); } }
.connection-recovery-spinner { width: 54px; height: 54px; margin-bottom: 7px; border: 3px solid rgba(255, 255, 255, .16); border-top-color: var(--rose); border-radius: 50%; animation: connection-spin .85s linear infinite; }
@keyframes connection-spin { to { transform: rotate(360deg); } }
.media-state-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid rgba(236, 107, 120, .3); border-radius: 50%; background: rgba(198, 56, 80, .12); color: #ffabb5; }
.media-state-icon.small { width: 30px; height: 30px; margin: 0; }
.media-state-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.media-state-icon.small svg { width: 17px; height: 17px; }
.microphone-muted-overlay { position: absolute; z-index: 5; top: 72px; left: 50%; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 7px 12px 7px 7px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(8, 6, 9, .82); color: #f6e9ec; font-size: 12px; font-weight: 700; text-align: center; transform: translateX(-50%); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.live-label { position: absolute; z-index: 2; top: 15px; left: 15px; margin: 0; padding: 7px 11px; border-radius: 99px; background: rgba(0, 0, 0, .72); }
.stream-exit-button { position: absolute; z-index: 10; top: 12px; right: 12px; width: 42px; min-height: 42px; padding: 0; border-color: rgba(255, 118, 133, .34); border-radius: 50%; background: rgba(82, 14, 29, .84); color: #ffd9de; font-size: 25px; font-weight: 400; line-height: 1; backdrop-filter: blur(14px); }
.stream-exit-button span { display: block; transform: translateY(-1px); }
.stream-top-tools { position: absolute; z-index: 10; top: 12px; right: 64px; display: flex; align-items: center; gap: 7px; }
.stream-top-tools .viewer-count { min-height: 42px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(8, 6, 9, .72); color: #f4e9eb; box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.stream-top-tools .icon-control { width: 42px; min-height: 42px; background: rgba(8, 6, 9, .72); box-shadow: var(--shadow-soft); backdrop-filter: blur(14px); }
.live-interaction { min-width: 0; height: 620px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 6, 8, .64); }
.live-chat-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.live-chat-heading h3 { margin: 0; font-size: 21px; }
.live-chat-heading > .live-chat-tools { min-width: 70px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.mini-control { min-height: 30px; padding: 5px 10px; border-radius: 999px; background: rgba(198, 56, 80, .15); border-color: rgba(236, 107, 120, .28); color: #ffdce0; font-size: 10px; }
.icon-control { width: 32px; min-height: 32px; padding: 0; background: rgba(255, 255, 255, .065); border-color: rgba(255, 255, 255, .14); color: #f4e9eb; font-size: 17px; line-height: 1; }
.icon-control span { display: block; transform: translateY(-1px); }
.live-chat-kicker { display: block; margin-bottom: 2px; color: var(--rose); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.live-experience.is-host .live-chat-kicker { display: none; }
.viewer-count { display: inline-flex; align-items: center; gap: 5px; color: #d8cfd2; font-size: 11px; font-weight: 700; white-space: nowrap; }
.viewer-count::before { content: ''; width: 15px; height: 11px; flex: none; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M1 8s4-7 11-7 11 7 11 7-4 7-11 7S1 8 1 8Z' fill='none' stroke='%23d8cfd2' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='8' r='3' fill='%23d8cfd2'/%3E%3C/svg%3E"); }
.live-experience.is-active #liveChatStatus.online { display: none; }
.live-chat-messages { min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 14px; scrollbar-color: rgba(209, 166, 111, .35) transparent; }
.live-chat-messages > :first-child { margin-top: auto; }
.live-experience.is-active .live-chat-messages.has-overflow:not(.is-user-scrolling) { -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .08) 0, rgba(0, 0, 0, .44) 15%, #000 34%, #000 100%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .08) 0, rgba(0, 0, 0, .44) 15%, #000 34%, #000 100%); }
.live-chat-message { flex: 0 0 auto; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; margin-bottom: 12px; }
.live-chat-message.is-own { padding: 10px; border-radius: 12px; background: rgba(198, 56, 80, .08); }
.live-chat-avatar { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; font-size: 14px; }
.live-chat-body { min-width: 0; }
.live-chat-meta { display: flex; align-items: baseline; gap: 8px; line-height: 1.2; }
.live-chat-author { min-height: auto; max-width: 70%; overflow: hidden; padding: 0; border: 0; border-radius: 0; background: transparent; color: #f2ca62; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.live-chat-message.is-host-message .live-chat-author,
.live-chat-message.is-moderator-message .live-chat-author { color: #ff7788; }
.live-chat-author:hover:not(:disabled) { transform: none; color: #fff; }
.live-chat-author:disabled { opacity: 1; cursor: default; }
.live-role-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 5px; border: 1px solid rgba(255, 119, 136, .38); border-radius: 99px; color: #ff7788; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.live-role-badge.moderator { border-color: rgba(255, 119, 136, .42); background: rgba(198, 56, 80, .13); color: #ff8998; }
.live-chat-meta time { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.live-chat-message p { margin: 4px 0 0; color: #e9e0e2; font-size: 14px; line-height: 1.42; overflow-wrap: anywhere; white-space: pre-wrap; }
.live-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: rgba(14, 11, 15, .96); }
.live-chat-form input { min-width: 0; }
.live-chat-form button { min-height: 42px; padding-inline: 16px; }
.stream-ended-state { position: relative; z-index: 1; width: min(430px, calc(100% - 36px)); padding: 38px 28px; border: 1px solid rgba(236, 107, 120, .25); border-radius: 22px; background: radial-gradient(circle at 50% 0, rgba(198, 56, 80, .18), transparent 60%), rgba(12, 9, 13, .8); text-align: center; box-shadow: var(--shadow-soft); }
.stream-ended-state .stream-ended-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid rgba(236, 107, 120, .34); border-radius: 50%; background: rgba(198, 56, 80, .12); color: var(--rose); font-size: 18px; }
.stream-ended-state h3 { margin: 0 0 7px; font: 600 30px 'Playfair Display', serif; }
.stream-ended-state p { margin: 0; color: var(--muted); }
.stream-ended-message { min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 6px; padding: 28px 18px; text-align: center; }
.stream-ended-message::before { content: ''; width: 9px; height: 9px; margin-bottom: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 7px rgba(198, 56, 80, .1); }
.stream-ended-message strong { font: 600 24px 'Playfair Display', serif; }
.stream-ended-message span { max-width: 300px; color: var(--muted); font-size: 13px; }
.live-experience.is-ended .live-chat-form { opacity: .62; }
.live-list { display: grid; gap: 2px; }
.live-item { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.live-item strong, .live-item small { display: block; }
.live-item small { color: var(--muted); }
.live-item.is-own { margin-inline: -10px; padding-inline: 10px; border-radius: 12px; background: rgba(198, 56, 80, .08); }
.live-directory-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.live-directory-actions button { min-height: 40px; white-space: nowrap; }
.live-profile-avatar { width: 50px; min-height: 50px; height: 50px; overflow: hidden; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.live-profile-avatar:hover { transform: none; }
.live-profile-link { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #e8dadd; font-size: inherit; font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: rgba(209, 166, 111, .4); text-underline-offset: 3px; }
.live-profile-link:hover { color: #fff; transform: none; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ff4058; box-shadow: 0 0 0 5px rgba(255, 64, 88, .13); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 64, 88, 0); } }

.profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.photo-panel { position: static; max-height: none; display: block; overflow: visible; }
.photo-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 9px; overflow: visible; margin: 20px 0 14px; }
.own-photo { position: relative; min-width: 0; display: grid; grid-template-rows: auto auto; align-self: start; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0b0a0c; }
.own-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.own-photo figcaption { position: relative; z-index: 2; min-height: 68px; display: grid; align-content: start; gap: 5px; padding: 8px; border-top: 1px solid var(--line); background: rgba(17, 13, 18, .98); }
.own-photo figcaption span { color: var(--gold); font-size: 11px; }
.own-photo .text-button { font-size: 11px; text-align: left; }
.own-photo small { position: absolute; top: 7px; left: 7px; padding: 3px 6px; border-radius: 5px; background: #000c; }
#photoForm { display: grid; gap: 9px; }
.upload-button { display: grid; gap: 2px; text-align: center; background: transparent; border-color: var(--line); }
.upload-button small { color: var(--muted); font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-selection { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 11px; padding: 9px; border: 1px solid rgba(94, 209, 160, .26); border-radius: 12px; background: rgba(94, 209, 160, .05); }
.photo-selection img { width: 64px; height: 64px; border-radius: 9px; object-fit: cover; }
.photo-selection strong, .photo-selection small { display: block; }
.photo-selection strong { color: var(--success); font-size: 12px; }
.photo-selection small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.profile-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px; }
.profile-form h3, .profile-form .wide { grid-column: 1 / -1; }
.form-intro { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-intro h3 { margin: 0; }
.form-intro p { margin: 4px 0 0; color: var(--muted); }
.form-divider { margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.form-divider h3 { margin: 0 0 3px; }
.form-divider p { margin: 0; color: var(--muted); }
.profile-choice-section { display: grid; gap: 14px; padding: 18px; border: 1px solid rgba(209, 166, 111, .16); border-radius: 15px; background: rgba(6, 5, 7, .34); }
.profile-choice-section > div:first-child { display: grid; gap: 3px; }
.profile-choice-section > div:first-child strong { color: #f3e9eb; font: 600 20px 'Playfair Display', serif; }
.profile-choice-section > div:first-child small { color: var(--muted); }
.profile-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-choice { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.profile-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.profile-choice > span { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: rgba(255, 255, 255, .025); color: #bfb4b7; font-size: 11px; font-weight: 700; line-height: 1.2; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.profile-choice:hover > span { border-color: rgba(209, 166, 111, .35); color: #fff; transform: translateY(-1px); }
.profile-choice input:checked + span { border-color: rgba(224, 75, 99, .58); background: linear-gradient(135deg, rgba(198, 56, 80, .28), rgba(125, 30, 49, .2)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.profile-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.safety-hero { align-items: center; }
.safety-hero img { width: min(38vw, 440px); height: auto; filter: drop-shadow(0 30px 38px rgba(0, 0, 0, .42)); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.safety-grid article { min-height: 260px; padding: 36px; background: rgba(18, 15, 20, .65); }
.safety-grid article:nth-child(even) { border-left: 1px solid var(--line); }
.safety-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
.safety-grid h2 { margin: 0 0 10px; font: 600 30px 'Playfair Display', serif; }
.safety-grid p { color: var(--muted); }
.safety-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; margin-top: 55px; padding: clamp(35px, 6vw, 68px); border: 1px solid rgba(198, 56, 80, .25); border-radius: var(--radius); background: radial-gradient(circle at 90% 50%, rgba(125, 30, 49, .25), transparent 38%), var(--panel); }
.safety-callout p:last-child { color: #c3b9bc; }

.access-gate { min-height: calc(100vh - 82px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: center; padding: 70px 0; }
.access-gate > * { min-width: 0; }
.gate-logo { width: 100%; min-width: 0; display: grid; place-items: center; overflow: hidden; min-height: 420px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle, rgba(198, 56, 80, .17), transparent 58%), rgba(18, 15, 20, .55); }
.gate-logo img { width: min(82%, 460px); max-width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.access-gate h1 { font-size: clamp(44px, 5.5vw, 72px); }
.access-gate > div:last-child > p:not(.eyebrow) { max-width: 630px; color: var(--muted); font-size: 18px; }

footer { width: min(var(--content), calc(100% - 44px)); display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; margin: 0 auto; padding: 58px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand > p { max-width: 440px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.footer-links div { display: grid; align-content: start; gap: 8px; }
.footer-links b { margin-bottom: 6px; color: var(--ink); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.footer-links a, .footer-links button { min-height: auto; padding: 0; border: 0; background: none; color: var(--muted); font-weight: 500; text-align: left; text-decoration: none; }
.footer-links a:hover, .footer-links button:hover { color: #fff; transform: none; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

dialog { position: relative; width: min(520px, calc(100% - 28px)); max-height: min(90vh, 900px); max-height: min(90dvh, 900px); overflow-y: auto; overscroll-behavior: contain; padding: 30px; border: 1px solid rgba(209, 166, 111, .25); border-radius: var(--radius); background: #151217; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .8); backdrop-filter: blur(9px); }
dialog h2 { margin: 0; font: 600 34px 'Playfair Display', serif; }
.dialog-close { position: absolute; z-index: 3; top: 16px; right: 16px; width: 42px; min-height: 42px; padding: 0; border: 0; background: rgba(255, 255, 255, .035); font-size: 26px; }
.dialog-brand { display: grid; gap: 10px; margin-bottom: 23px; padding-right: 52px; }
.dialog-brand img { width: 178px; height: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .35)); }
.dialog-brand .eyebrow { margin-bottom: 3px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.tabs button.active { border-color: var(--red); background: rgba(198, 56, 80, .16); }
#authForm, #reportForm { display: grid; gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); }
.check input { width: auto; margin-top: 5px; }
.profile-dialog { width: min(740px, calc(100% - 28px)); }
.profile-dialog.live-profile-mode { width: min(1040px, calc(100% - 28px)); max-height: 92vh; max-height: 92dvh; padding: 22px; }
.profile-dialog.live-profile-mode .member-profile-card { box-shadow: none; }
.profile-dialog.live-profile-mode .member-profile-hero { height: min(56vh, 620px); }
.live-profile-loading { min-height: 320px; display: grid; place-items: center; }
.live-moderation-dialog { width: min(560px, calc(100% - 28px)); }
.moderator-panel-dialog { width: min(760px, calc(100% - 28px)); }
.moderator-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-right: 28px; }
.mod-role-chip { padding: 6px 10px; border: 1px solid rgba(94, 168, 255, .38); border-radius: 99px; background: rgba(64, 126, 211, .12); color: #a9d1ff; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.studio-settings { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; margin: 20px 0 14px; padding: 15px; border: 1px solid rgba(209, 166, 111, .2); border-radius: 14px; background: linear-gradient(135deg, rgba(125, 30, 49, .12), rgba(255, 255, 255, .02)); }
.studio-settings strong, .studio-settings small { display: block; }
.studio-settings small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.studio-settings .button-row { justify-content: flex-end; }
.studio-settings button { min-height: 38px; padding: 7px 12px; font-size: 11px; }
.moderator-identity-settings { border-color: rgba(255, 119, 136, .22); }
.moderator-visibility-toggle { display: inline-flex; align-items: center; gap: 9px; margin: 0; color: #f5e7ea; font-size: 12px; font-weight: 700; cursor: pointer; }
.moderator-visibility-toggle input { width: 19px; height: 19px; margin: 0; accent-color: var(--red); }
.moderator-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 14px; }
.moderator-summary span { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .018); color: var(--muted); font-size: 11px; text-align: center; }
.moderator-summary b { display: block; color: var(--ink); font-size: 21px; }
.moderator-panel-list { max-height: min(52vh, 520px); overflow-y: auto; padding-right: 4px; }
.moderator-member { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: auto; margin-bottom: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .018); text-align: left; }
.moderator-member:hover:not(:disabled) { transform: none; border-color: rgba(209, 166, 111, .28); background: rgba(198, 56, 80, .07); }
.moderator-member:disabled { opacity: .72; }
.moderator-member .live-chat-avatar { width: 38px; height: 38px; }
.moderator-member-copy, .moderator-member-copy > span { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.moderator-member-copy { align-items: flex-start; flex-direction: column; }
.moderator-member-copy strong { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.moderator-shield { width: 10px; height: 12px; display: inline-block; flex: none; margin-right: 3px; background: currentColor; clip-path: polygon(50% 0, 95% 18%, 84% 72%, 50% 100%, 16% 72%, 5% 18%); color: #ff7788; }
.member-manage { color: var(--gold-soft); font-size: 10px; }
.member-state { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.member-state.online { border-color: rgba(94, 209, 160, .3); color: var(--success); }
.member-state.moderator { border-color: rgba(255, 119, 136, .38); color: #ff8998; }
.member-state.muted, .member-state.banned { border-color: rgba(238, 117, 130, .34); color: #ff9eaa; }
.moderation-state { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
#liveModerationProfileLink { margin: 5px 0 2px; }
.moderation-actions { display: grid; gap: 9px; margin-top: 22px; }
.moderation-actions button { min-height: 70px; align-items: flex-start; flex-direction: column; padding: 13px 17px; border-radius: 14px; text-align: left; }
.moderation-actions button strong { font-size: 14px; }
.moderation-actions button small { color: var(--muted); font-size: 11px; font-weight: 500; }
.detail-hero { height: 350px; overflow: hidden; margin: -30px -30px 24px; border-radius: var(--radius) var(--radius) 0 0; background: #261721; }
.detail-photo { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .avatar { width: 100%; height: 100%; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.facts div, .intimate-box { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #0f0d11; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; }
.intimate-box { margin: 18px 0; }
.member-profile-navigation { margin: -24px 0 22px; }
.member-profile-shell { min-height: 360px; }
.member-profile-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, rgba(25, 21, 27, .98), rgba(10, 8, 12, .99)); box-shadow: var(--shadow); }
.member-profile-hero { position: relative; height: clamp(390px, 64vh, 720px); overflow: hidden; background: radial-gradient(circle at 50% 30%, #34212c, #09070a 70%); }
.member-profile-main-photo, .member-profile-hero .avatar { width: 100%; height: 100%; object-fit: contain; }
.member-profile-hero .avatar { font-size: clamp(90px, 16vw, 180px); }
.member-profile-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .35); }
.member-profile-gallery img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; }
.member-profile-content { display: grid; gap: 0; padding: 32px; }
.member-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.member-profile-heading h2 { margin: 2px 0 5px; font: 600 clamp(38px, 6vw, 62px) 'Playfair Display', serif; }
.member-profile-heading .card-meta { margin: 0; }
.member-profile-actions { justify-content: flex-end; }
.member-profile-section { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.member-profile-section h3 { margin: 0; font: 600 28px 'Playfair Display', serif; }
.member-profile-copy { margin: 0; color: #d2c7ca; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.member-profile-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.member-profile-intimate { margin-top: 4px; padding: 28px; border: 1px solid rgba(209, 166, 111, .16); border-radius: 18px; background: linear-gradient(140deg, rgba(125, 30, 49, .12), rgba(8, 7, 9, .55)); }
.member-profile-detail { display: grid; gap: 10px; }
.member-profile-detail > strong { color: #f1e6e8; font-size: 14px; }
.member-profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.member-profile-tags span { padding: 7px 10px; border: 1px solid rgba(209, 166, 111, .18); border-radius: 999px; background: rgba(255, 255, 255, .025); color: #cbbfc2; font-size: 11px; font-weight: 700; }
.member-profile-error { display: grid; justify-items: start; gap: 14px; }
.member-profile-error h2, .member-profile-error p { margin: 0; }

.muted, .empty-state, .loading { color: var(--muted); }
.empty-state { align-self: center; justify-self: center; max-width: 540px; padding: 35px; text-align: center; }
.empty-state.small { padding: 18px; font-size: 14px; }
.form-error { margin: 0; color: #ff929e; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: min(400px, calc(100% - 44px)); padding: 14px 18px; border: 1px solid rgba(94, 209, 160, .35); border-radius: 12px; background: #153327; color: #dcffef; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .22s ease; }
.toast[data-type='error'] { border-color: rgba(238, 117, 130, .45); background: #3c1820; color: #ffdce0; }
.toast.show { opacity: 1; transform: translateY(0); }
body[data-logged='0'] .auth-only, body[data-logged='1'] .guest-only { display: none !important; }

/* Wallet, protected profile galleries and administration */
.system-announcements { display: grid; gap: 12px; margin-bottom: 26px; }
.system-announcement { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px; border: 1px solid rgba(209, 166, 111, .22); border-radius: 18px; background: linear-gradient(135deg, rgba(209, 166, 111, .1), rgba(20, 15, 20, .96)); box-shadow: var(--shadow-soft); }
.system-announcement.is-important { border-color: rgba(225, 66, 88, .44); background: linear-gradient(135deg, rgba(198, 56, 80, .18), rgba(20, 15, 20, .96)); }
.system-announcement.is-maintenance { border-color: rgba(137, 117, 179, .4); }
.system-announcement-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(209, 166, 111, .3); border-radius: 15px; color: var(--gold); font: 700 22px 'Playfair Display', serif; background: rgba(0, 0, 0, .25); }
.system-announcement span, .gallery-state { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.system-announcement h2 { margin: 2px 0 5px; font: 600 23px 'Playfair Display', serif; }
.system-announcement p { margin: 0 0 8px; white-space: pre-line; color: #ddd4dc; }
.system-announcement time { color: var(--muted); font-size: 11px; }

.wallet-hero, .admin-hero { overflow: hidden; }
.wallet-hero-mark, .admin-shield { width: 112px; height: 112px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(209, 166, 111, .25); border-radius: 32px; color: var(--gold); font: 600 62px 'Playfair Display', serif; background: radial-gradient(circle at 35% 28%, rgba(209, 166, 111, .2), rgba(42, 25, 35, .72)); box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 20px 50px rgba(0, 0, 0, .35); transform: rotate(4deg); }
.wallet-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); gap: 18px; margin-bottom: 18px; }
.wallet-balance-card { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; overflow: hidden; border: 1px solid rgba(209, 166, 111, .28); border-radius: var(--radius); background: radial-gradient(circle at 90% 8%, rgba(209, 166, 111, .17), transparent 36%), linear-gradient(145deg, #24151e, #0c0a0e 75%); box-shadow: var(--shadow); }
.wallet-balance-card strong { display: block; margin: 5px 0 14px; color: #fff; font: 600 clamp(48px, 7vw, 78px) 'Playfair Display', serif; letter-spacing: -.04em; }
.wallet-balance-card p:last-child { max-width: 470px; margin: 0; color: var(--muted); }
.wallet-info { display: flex; flex-direction: column; justify-content: center; }
.wallet-info > p { color: var(--muted); line-height: 1.75; }
.wallet-feature-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.wallet-feature-list span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #e9dde6; font-size: 12px; }
.wallet-history { margin-top: 0; }
.wallet-transactions { display: grid; }
.wallet-transaction { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.wallet-transaction:first-child { border-top: 0; }
.wallet-transaction-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; font-weight: 900; }
.wallet-transaction-mark.credit { color: #9fe2b8; background: rgba(55, 155, 96, .15); }
.wallet-transaction-mark.debit { color: #ff9dae; background: rgba(198, 56, 80, .14); }
.wallet-transaction > div:nth-child(2) { min-width: 0; }
.wallet-transaction strong, .wallet-transaction small { display: block; }
.wallet-transaction small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.wallet-amount { text-align: right; }
.wallet-amount.credit strong { color: #9fe2b8; }
.wallet-amount.debit strong { color: #ff9dae; }

.gallery-manager-card { margin-top: 22px; }
.gallery-manager-card .section-head p { max-width: 660px; margin: 7px 0 0; color: var(--muted); }
.wallet-inline-link { color: var(--gold); font-size: 12px; font-weight: 800; text-decoration: none; }
.gallery-create-form { display: grid; grid-template-columns: 1fr 220px; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(7, 6, 8, .36); }
.gallery-create-form .wide { grid-column: 1 / -1; }
.gallery-create-form > button { justify-self: start; }
.gallery-manager { display: grid; gap: 16px; margin-top: 18px; }
.gallery-manager-item { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: rgba(8, 7, 9, .48); }
.gallery-manager-summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.gallery-manager-summary h3 { margin: 4px 0 2px; font: 600 25px 'Playfair Display', serif; }
.gallery-manager-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.gallery-manager-summary > strong { color: var(--gold); font: 600 24px 'Playfair Display', serif; white-space: nowrap; }
.gallery-manager-form { display: grid; grid-template-columns: minmax(170px, 1fr) 170px 190px; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.gallery-manager-form .wide { grid-column: 1 / -1; }
.gallery-manager-form > button { justify-self: start; }
.gallery-manager-photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 20px; }
.gallery-manager-photos figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0b090c; }
.gallery-manager-photos figure > button { width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.gallery-manager-photos img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.gallery-manager-photos figcaption { display: flex; justify-content: space-between; gap: 5px; padding: 7px; font-size: 9px; }
.gallery-manager-photos figcaption span { color: var(--muted); }
.gallery-manager-photos .text-button { min-height: 0; padding: 0; font-size: 9px; }
.gallery-upload-form { display: flex; align-items: end; gap: 10px; padding: 0 20px 20px; }
.gallery-upload-form .upload-button { flex: 1; }

.member-galleries { background: linear-gradient(140deg, rgba(209, 166, 111, .055), transparent 60%); }
.member-gallery-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.member-gallery-section-head h3 { margin-bottom: 0; }
.member-gallery-section-head > span { color: var(--muted); font-size: 11px; }
.member-gallery-list { display: grid; gap: 14px; }
.member-gallery-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(5, 4, 6, .45); }
.member-gallery-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 20px; }
.member-gallery-card h4 { margin: 4px 0; font: 600 26px 'Playfair Display', serif; }
.member-gallery-card header p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; }
.gallery-price { color: var(--gold); white-space: nowrap; }
.gallery-lock-panel { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .26); }
.gallery-lock-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(209, 166, 111, .25); border-radius: 50%; color: var(--gold); }
.gallery-lock-panel strong, .gallery-lock-panel small { display: block; }
.gallery-lock-panel small { margin-top: 3px; color: var(--muted); }
.profile-gallery-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; border-top: 1px solid var(--line); }
.profile-gallery-photo-grid button { min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 11px; background: #080709; }
.profile-gallery-photo-grid button:hover { transform: none; }
.profile-gallery-photo-grid img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; transition: transform .25s ease; }
.profile-gallery-photo-grid button:hover img { transform: scale(1.025); }
.gallery-viewer-dialog { width: min(1040px, calc(100% - 32px)); max-width: 1040px; padding: 12px; overflow: visible; background: #080709; }
.gallery-viewer-dialog img { width: 100%; max-height: 82vh; display: block; border-radius: 13px; object-fit: contain; background: #050405; }
.gallery-viewer-dialog #galleryViewerCaption { padding: 12px 6px 4px; color: var(--muted); text-align: center; }

.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.admin-shield { border-radius: 50% 50% 55% 55% / 35% 35% 65% 65%; color: var(--rose); }
.admin-form { display: grid; align-content: start; gap: 13px; }
.admin-form .form-intro { margin-bottom: 2px; }
.form-status { min-height: 18px; margin: 0; color: var(--gold); font-size: 12px; }
.admin-announcement-list { display: grid; gap: 10px; }
.admin-announcement-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(8, 7, 9, .38); }
.admin-announcement-item.is-inactive { opacity: .62; }
.admin-announcement-item h3 { margin: 4px 0; font-size: 18px; }
.admin-announcement-item p { margin: 0 0 7px; white-space: pre-line; color: var(--muted); }
.admin-announcement-item small { color: var(--muted); }
.admin-denied { margin-top: 0; }

@media (max-width: 1050px) {
  .brand img { width: 148px; }
  .site-header nav { gap: 1px; }
  .site-header nav a { padding-inline: 9px; }
  .hero { grid-template-columns: 1fr .9fr; }
  .hero-visual { min-height: 520px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-stage { grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); }
  .profile-layout { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .site-header { min-height: 74px; padding-inline: 18px; }
  .nav-toggle { display: inline-block; }
  .site-header nav { position: absolute; top: 74px; left: 14px; right: 14px; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(16, 13, 18, .98); box-shadow: var(--shadow); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 12px 14px; }
  .site-header nav a.active::after { display: none; }
  .account-button { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 75px; }
  .hero-visual { min-height: 420px; }
  .hero-visual > img { width: min(88vw, 670px); }
  .note-top { right: 2%; }
  .home-intro, .experience-band, .safety-callout, .access-gate { grid-template-columns: 1fr; gap: 38px; }
  .value-grid { grid-template-columns: 1fr; }
  .value-grid article { min-height: 270px; }
  .value-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  .home-cta { align-items: flex-start; flex-direction: column; }
  .page-hero { min-height: 210px; }
  .chat-grid { grid-template-columns: 1fr; }
  .chat-grid aside { max-height: 250px; overflow-y: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .messages { height: 410px; }
  .live-start-row { grid-template-columns: 1fr; }
  .studio-actions { justify-content: flex-start; }
  .live-stage { position: relative; display: block; }
  .video-area { width: 100%; height: min(72dvh, 680px); min-height: 460px; flex: none; }
  .live-interaction { height: min(68dvh, 590px); min-height: 460px; }
  .live-experience.is-active { --live-composer-height: calc(60px + env(safe-area-inset-bottom)); }
  .live-experience.is-active .video-area { position: absolute; inset: 0 0 var(--live-composer-height); width: 100%; height: auto; min-height: 0; margin: 0; }
  .live-experience.is-active .live-interaction { position: absolute; z-index: 5; right: 0; bottom: 0; left: 0; width: 100%; height: min(48dvh, 54%); min-height: 310px; border: 0; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, transparent 0, rgba(4, 3, 5, .28) 18%, rgba(7, 5, 8, .76) 72%, rgba(7, 5, 8, .98) 100%); box-shadow: inset 0 -1px rgba(255, 255, 255, .08); }
  .live-experience.is-active.is-host .live-interaction { background: linear-gradient(180deg, transparent 0, rgba(66, 22, 34, .12) 18%, rgba(45, 17, 26, .48) 64%, rgba(31, 12, 19, .94) 100%); }
  .live-experience.is-active .live-chat-heading { padding-top: 34px; border-bottom: 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18)); }
  .live-experience.is-active .live-chat-message p { color: #fff; text-shadow: 0 1px 3px #000; }
  .live-experience.is-active .live-chat-message.is-own { background: rgba(125, 30, 49, .32); backdrop-filter: blur(8px); }
  .live-experience.is-active .live-chat-form { border-top-color: rgba(255, 255, 255, .13); background: rgba(8, 6, 9, .88); backdrop-filter: blur(14px); }
  .live-experience.is-active.is-host .live-chat-form { background: rgba(29, 12, 18, .82); }
  #mediaControls { margin-top: 12px; }
  .profile-layout { grid-template-columns: 1fr; }
  .photo-panel { position: static; max-height: none; display: block; overflow: visible; }
  .photo-list { grid-template-columns: repeat(3, 1fr); overflow: visible; margin-right: 0; padding-right: 0; }
  .profile-dialog { position: fixed; inset: max(4px, env(safe-area-inset-top)) 4px max(4px, env(safe-area-inset-bottom)); width: auto; max-width: none; max-height: none; margin: 0; overflow-y: auto; }
  .safety-hero img { width: min(48vw, 380px); }
  .gate-logo { min-height: 300px; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  main, footer { width: min(var(--content), calc(100% - 24px)); }
  .site-header { padding-inline: 12px; }
  .brand img { width: 122px; height: auto; }
  .account-button { min-height: 38px; margin-left: 7px; padding: 8px 11px; font-size: 11px; }
  .hero h1, .page-hero h1, .access-gate h1 { font-size: 45px; }
  .hero { padding-top: 58px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .trust-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-visual { min-height: 340px; }
  .visual-note { min-width: 135px; padding: 9px 11px; }
  .note-top { top: 16%; }
  .note-bottom { bottom: 16%; }
  .home-intro { padding-top: 65px; }
  .experience-band { margin-block: 65px; padding: 28px 22px; }
  .home-cta { margin-block: 65px; padding: 32px 23px; }
  .app-page, .safety-page { padding-top: 26px; }
  .page-hero { align-items: flex-start; flex-direction: column; margin-bottom: 38px; }
  .live-orb { width: 100px; }
  .workspace-card, .panel, .profile-form { padding: 18px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filter-bar, .cards { grid-template-columns: 1fr; }
  .activity-tabs { gap: 4px; margin-inline: -6px; padding: 4px; }
  .activity-tab { min-height: 58px; flex-direction: column; gap: 4px; padding: 7px 4px; font-size: 10px; line-height: 1.15; text-align: center; }
  .activity-intro { align-items: flex-start; flex-direction: column; gap: 7px; }
  .activity-intro p { text-align: left; }
  .activity-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .activity-actions > button { min-width: 0; }
  .panel-heading { flex-direction: column; }
  .live-start-row { margin-bottom: 14px; }
  .live-experience { margin-inline: -7px; }
  .video-area { height: min(74dvh, 600px); min-height: 430px; border-radius: 13px; }
  .live-interaction { height: min(66dvh, 560px); min-height: 430px; border-radius: 13px; }
  .live-experience.is-active .live-interaction { height: min(50dvh, 57%); min-height: 300px; border-radius: 0 0 13px 13px; }
  .live-chat-heading { padding: 13px; }
  .live-chat-heading h3 { font-size: 17px; }
  .live-chat-messages { padding: 12px; }
  .live-chat-form { padding: 9px; }
  .live-chat-form input { padding: 10px 11px; }
  .live-chat-form button { min-height: 40px; padding-inline: 13px; }
  .moderator-panel-dialog { width: calc(100% - 12px); max-height: 92dvh; padding: 22px 16px; border-radius: 20px 20px 8px 8px; }
  .moderator-panel-head { padding-right: 20px; }
  .moderator-summary { gap: 5px; }
  .moderator-summary span { padding: 9px 5px; }
  .moderator-member { grid-template-columns: 34px minmax(0, 1fr); }
  .member-manage { display: none; }
  .messages { height: 360px; padding: 15px; }
  .profile-form { grid-template-columns: 1fr; }
  .profile-form > * { grid-column: 1 !important; }
  .photo-list { grid-template-columns: 1fr 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-grid article:nth-child(even) { border-left: 0; }
  .safety-grid article + article { border-top: 1px solid var(--line); }
  .safety-hero img { display: none; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .member-profile-navigation { margin-top: -12px; }
  .member-profile-hero { height: min(64dvh, 560px); }
  .member-profile-content { padding: 24px; }
  .member-profile-heading { flex-direction: column; }
  .member-profile-actions { justify-content: flex-start; }
  .member-profile-facts { grid-template-columns: 1fr 1fr; }
  .member-profile-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .live-item { grid-template-columns: 42px 1fr; }
  .live-item > button:not(.live-profile-avatar) { grid-column: 1 / -1; }
  .live-profile-avatar { width: 44px; min-height: 44px; height: 44px; }
}

/* Mobile polish: comfortable forms, sheet dialogs and an edge-to-edge live stage. */
@media (max-width: 820px) {
  .live-stage { scroll-margin-top: 74px; }
  .studio-panel.is-streaming .panel-heading { display: none; }
  .studio-panel.is-streaming .live-start-row { display: none; }
  .live-experience.is-active .live-stage { height: calc(100dvh - 74px); min-height: 520px; max-height: 920px; overflow: hidden; border-radius: 16px; background: #030304; isolation: isolate; }
  .live-experience.is-active .video-area { position: absolute; inset: 0 0 var(--live-composer-height); width: 100%; height: auto; min-height: 0; margin: 0; border-radius: 16px 16px 0 0; background: #000; }
  .live-experience.is-active .video-area::before { display: none; }
  .live-experience.is-active .video-area video { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #000; }
  .live-experience.is-active .live-interaction { height: min(43dvh, 47%); min-height: 270px; background: linear-gradient(180deg, transparent 0, rgba(4, 3, 5, .24) 16%, rgba(7, 5, 8, .74) 62%, rgba(7, 5, 8, .98) 100%); }
  .live-experience.is-active #mediaControls { position: absolute; z-index: 8; top: 10px; right: 10px; max-width: calc(100% - 20px); justify-content: flex-end; gap: 6px; margin: 0; }
  .live-experience.is-active #mediaControls button { min-height: 34px; padding: 6px 10px; border-color: rgba(255, 255, 255, .16); background: rgba(8, 6, 9, .72); font-size: 10px; backdrop-filter: blur(12px); }
}

@media (max-width: 580px) {
  body { line-height: 1.52; }
  button, .button-link, .upload-button { min-height: 48px; }
  input, textarea, select { min-width: 0; padding: 13px; font-size: 16px; }
  main, footer { width: calc(100% - 24px); }
  .site-header { gap: 5px; }
  .account-button { max-width: 96px; }
  .hero h1, .page-hero h1, .access-gate h1 { font-size: clamp(38px, 12vw, 45px); overflow-wrap: anywhere; }
  .lead, .home-intro > p, .access-gate > div:last-child > p:not(.eyebrow) { font-size: 16px; }
  .home-intro { grid-template-columns: 1fr; gap: 20px; padding-bottom: 38px; }
  .value-grid article { min-height: 0; padding: 30px 22px; }
  .value-grid a { margin-top: 28px; }
  .experience-band { gap: 24px; }
  .home-cta { gap: 24px; }
  .home-cta button, .home-cta .button-link { width: 100%; }
  .page-hero { min-height: 0; padding-top: 18px; }
  .section-head .button-row { width: 100%; }
  .section-head .button-row > button { flex: 1; }
  .workspace-card { margin-inline: -4px; }
  .filter-bar { padding: 12px; }
  .filter-bar button { width: 100%; }
  .card-body { padding: 18px; }
  .chat-grid { margin-inline: -4px; border-radius: 16px; }
  .match-item { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 12px; }
  .match-avatar, .live-avatar { width: 44px; height: 44px; }
  .chat-panel form { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 9px; }
  .chat-panel form button { min-height: 44px; padding-inline: 13px; }
  .profile-layout { margin-inline: -4px; }
  .profile-form, .photo-panel { border-radius: 17px; }
  .form-intro { gap: 10px; padding-bottom: 17px; }
  .photo-selection { grid-template-columns: 58px minmax(0, 1fr); }
  .photo-selection img { width: 58px; height: 58px; }
  .safety-grid article { min-height: 0; padding: 28px 22px; }
  .access-gate { padding-block: 36px 60px; }
  .gate-logo { min-height: 190px; padding: 26px 14px; }
  .gate-logo img { width: 100%; max-width: 420px; height: auto; }
  footer { gap: 34px; padding-top: 42px; }

  dialog,
  .profile-dialog,
  .live-moderation-dialog,
  .moderator-panel-dialog {
    width: calc(100% - 8px);
    max-width: none;
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - 8px);
    position: fixed;
    inset: auto 4px max(4px, env(safe-area-inset-bottom)) 4px;
    margin: 0;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 6px 6px;
  }
  dialog h2 { font-size: 28px; line-height: 1.08; }
  .dialog-close { position: sticky; float: none; top: 0; right: auto; display: flex; margin: -5px 0 -42px auto; background: rgba(28, 23, 29, .92); backdrop-filter: blur(12px); }
  .dialog-brand { gap: 7px; margin-bottom: 17px; padding-right: 46px; }
  .dialog-brand img { width: 148px; }
  .dialog-brand .eyebrow { margin-bottom: 0; }
  .tabs { gap: 6px; margin-bottom: 16px; }
  .tabs button { min-width: 0; min-height: 44px; padding: 9px 10px; }
  #authForm, #reportForm { gap: 14px; }
  #authForm > button, #reportForm > button { width: 100%; margin-top: 2px; }
  .check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
  .check input { width: 20px; height: 20px; margin: 2px 0 0; }
  .detail-hero { height: min(52dvh, 340px); margin: -20px -16px 20px; border-radius: 24px 24px 0 0; }
  .facts { grid-template-columns: 1fr; }
  .member-profile-page-hero { min-height: 180px; }
  .member-profile-card { border-radius: 17px; }
  .member-profile-hero { height: min(56dvh, 470px); }
  .member-profile-content { padding: 20px 16px; }
  .member-profile-heading { gap: 18px; padding-bottom: 22px; }
  .member-profile-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .member-profile-actions > :last-child { grid-column: 1 / -1; }
  .member-profile-actions .button-link { grid-column: 1 / -1; justify-content: center; }
  .member-profile-section { padding: 22px 0; }
  .member-profile-facts { grid-template-columns: 1fr; }
  .member-profile-intimate { padding: 20px 14px; }
  .moderator-panel-head { align-items: flex-start; flex-direction: column; gap: 10px; padding-right: 0; }
  .studio-settings { grid-template-columns: 1fr; gap: 12px; }
  .studio-settings .button-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .studio-settings button { min-width: 0; padding-inline: 7px; }
  .moderation-actions button { min-height: 64px; }
  .toast { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; max-width: none; }

  #live .studio-panel { margin-inline: -12px; border-inline: 0; border-radius: 0; }
  #live .studio-panel.is-streaming { padding-bottom: 0; }
  #live .studio-panel.is-streaming .live-experience { margin-inline: -18px; }
  .live-experience.is-active .live-stage { height: calc(100dvh - 74px); min-height: 500px; max-height: none; border-radius: 0; }
  .live-experience.is-active .video-area { border: 0; border-radius: 0; }
  .live-experience.is-active .live-interaction { height: min(44dvh, 48%); min-height: 258px; border-radius: 0; }
  .live-experience.is-active .live-chat-heading { padding: 28px 11px 7px; }
  .live-experience.is-active .live-chat-heading h3 { display: none; }
  .live-experience.is-active .live-chat-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
  .live-experience.is-active .live-chat-messages { padding: 8px 11px 3px; }
  .live-experience.is-active .live-chat-message { margin-bottom: 8px; }
  .live-experience.is-active .live-chat-form { gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .live-experience.is-active .live-chat-form input { min-height: 43px; }
  .live-experience.is-active .live-chat-form button { min-height: 43px; }
}

@media (max-width: 360px) {
  .brand img { width: 108px; }
  .account-button { max-width: 84px; padding-inline: 9px; }
  .hero h1, .page-hero h1, .access-gate h1 { font-size: 37px; }
  dialog, .profile-dialog, .live-moderation-dialog, .moderator-panel-dialog { padding-inline: 14px; }
  .dialog-brand img { width: 132px; }
  .live-chat-heading { gap: 7px; }
  .live-chat-form button { padding-inline: 10px; }
}

@media (max-width: 920px) and (orientation: landscape) {
  .live-experience.is-active .live-stage { height: calc(100dvh - 12px); min-height: 300px; display: block; }
  .live-experience.is-active .live-interaction { height: min(62dvh, 64%); min-height: 205px; border: 0; }
}

/* While a mobile stream is active, the live area behaves like a standalone app. */
@media (max-width: 820px) {
  html.live-immersive,
  body.live-immersive { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
  body.live-immersive .site-header,
  body.live-immersive > footer { display: none; }
  body.live-immersive > main { width: 100%; height: 100%; margin: 0; }
  body.live-immersive > main > section:not(#live) { display: none !important; }
  body.live-immersive #live { position: fixed; z-index: 70; inset: 0; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; display: block !important; overflow: hidden; margin: 0; padding: 0; background: #000; }
  body.live-immersive #live > .page-hero,
  body.live-immersive #live > .section-head,
  body.live-immersive #live .live-directory,
  body.live-immersive #live .panel-heading,
  body.live-immersive #live .live-start-row { display: none; }
  body.live-immersive #live .live-layout,
  body.live-immersive #live .studio-panel,
  body.live-immersive #live .live-experience,
  body.live-immersive #live .live-video-column,
  body.live-immersive #live .live-stage { width: 100%; height: 100%; min-height: 0; max-height: none; margin: 0 !important; padding: 0; border: 0; border-radius: 0; }
  body.live-immersive #live .studio-panel { box-shadow: none; background: #000; }
  body.live-immersive #live .live-stage { position: relative; display: block; overflow: hidden; }
  body.live-immersive #live .video-area { position: absolute; inset: 0 0 var(--live-composer-height); width: 100%; height: auto; min-height: 0; margin: 0; border: 0; border-radius: 0; background: #000; }
  body.live-immersive #live .video-area::before { display: none; }
  body.live-immersive #live .video-area video { width: 100%; height: 100%; max-height: none; object-fit: contain; background: #000; }
  body.live-immersive #live .media-state-overlay { padding: 28px 20px; }
  body.live-immersive #live .media-state-overlay > span:last-child { max-width: 340px; font-size: 13px; }
  body.live-immersive #live .microphone-muted-overlay { top: calc(62px + env(safe-area-inset-top)); }
  body.live-immersive #live .live-label { top: calc(10px + env(safe-area-inset-top)); left: 10px; max-width: calc(100% - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.live-immersive #live .live-experience.is-host .live-label { max-width: calc(100% - 190px); }
  body.live-immersive #live .stream-exit-button { top: calc(10px + env(safe-area-inset-top)); right: 10px; margin: 0; }
  body.live-immersive #live .stream-top-tools { top: calc(10px + env(safe-area-inset-top)); right: 61px; }
  body.live-immersive #live #mediaControls { position: absolute; z-index: 8; top: calc(56px + env(safe-area-inset-top)); right: 10px; left: auto; max-width: calc(100% - 20px); justify-content: flex-end; gap: 6px; margin: 0; }
  body.live-immersive #live #mediaControls button { min-height: 34px; padding: 6px 10px; border-color: rgba(255, 255, 255, .16); background: rgba(8, 6, 9, .72); font-size: 10px; backdrop-filter: blur(12px); }
  body.live-immersive #live .live-interaction { position: absolute; z-index: 5; right: 0; bottom: 0; left: 0; width: 100%; height: min(44dvh, 48%); min-height: 250px; border: 0; border-radius: 0; background: linear-gradient(180deg, transparent 0, rgba(4, 3, 5, .24) 14%, rgba(7, 5, 8, .74) 58%, rgba(7, 5, 8, .98) 100%); }
  body.live-immersive #live .live-experience.is-host .live-interaction { background: linear-gradient(180deg, transparent 0, rgba(66, 22, 34, .1) 18%, rgba(45, 17, 26, .46) 60%, rgba(31, 12, 19, .94) 100%); }
  body.live-immersive #live .live-chat-heading { min-height: 42px; align-items: center; padding: 20px 11px 5px; border: 0; background: transparent; }
  body.live-immersive #live .live-experience.is-host .live-chat-heading { min-height: 0; padding: 0; }
  body.live-immersive #live .live-chat-heading h3 { display: none; }
  body.live-immersive #live .live-chat-tools { flex-wrap: nowrap; }
  body.live-immersive #live .live-chat-messages { padding: 7px 11px 3px; }
  body.live-immersive #live .live-chat-message { margin-bottom: 7px; }
  body.live-immersive #live .live-chat-form { gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); border-color: rgba(255, 255, 255, .12); background: rgba(7, 5, 8, .94); }
  body.live-immersive #live .live-experience.is-host .live-chat-form { background: rgba(29, 12, 18, .82); }
  body.live-immersive #live #liveChatStatus.online { display: none; }
}

@media (max-width: 820px) and (orientation: landscape) {
  body.live-immersive #live .live-stage { display: block; }
  body.live-immersive #live .live-interaction { height: min(62dvh, 64%); min-height: 205px; border: 0; }
  body.live-immersive #live .live-chat-heading { padding-top: 10px; }
}

@media (max-width: 820px) {
  .wallet-layout, .admin-grid { grid-template-columns: 1fr; }
  .wallet-balance-card { min-height: 230px; }
  .gallery-manager-form { grid-template-columns: 1fr 1fr; }
  .gallery-manager-form .wide { grid-column: 1 / -1; }
  .gallery-manager-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .profile-gallery-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .wallet-hero-mark, .admin-shield { width: 72px; height: 72px; border-radius: 21px; font-size: 40px; }
  .wallet-balance-card { min-height: 205px; padding: 22px; }
  .wallet-balance-card strong { font-size: 48px; }
  .wallet-transaction { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .wallet-transaction-mark { width: 36px; height: 36px; }
  .wallet-amount { grid-column: 2; text-align: left; }
  .gallery-manager-card { margin-inline: -4px; padding: 18px; }
  .gallery-create-form, .gallery-manager-form { grid-template-columns: 1fr; padding: 15px; }
  .gallery-create-form .wide, .gallery-manager-form .wide { grid-column: auto; }
  .gallery-manager-summary { padding: 16px; }
  .gallery-manager-summary h3 { font-size: 22px; }
  .gallery-manager-summary > strong { font-size: 18px; }
  .gallery-manager-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 15px; }
  .gallery-upload-form { align-items: stretch; flex-direction: column; padding: 0 15px 15px; }
  .member-gallery-card > header { padding: 16px; }
  .member-gallery-card h4 { font-size: 23px; }
  .gallery-lock-panel { grid-template-columns: 42px minmax(0, 1fr); padding: 15px; }
  .gallery-lock-panel button { grid-column: 1 / -1; width: 100%; }
  .profile-gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-announcement { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 15px; }
  .system-announcement-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
  .admin-announcement-item { align-items: stretch; flex-direction: column; }
  .admin-announcement-item button { width: 100%; }
  .gallery-viewer-dialog { inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); width: auto; max-width: none; margin: auto; }
}

.control-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.control-stats article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(37, 28, 34, .96), rgba(14, 12, 15, .96)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.control-stats span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.control-stats b { display: block; margin-top: 6px; color: var(--gold); font: 600 30px 'Playfair Display', serif; }
.control-list { display: grid; gap: 10px; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; padding: 16px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,7,9,.38); }
.control-row > div { display: grid; min-width: 0; gap: 4px; }
.control-row strong, .control-row small { overflow-wrap: anywhere; }
.control-row small { color: var(--muted); }
.role-chip { display: inline-flex; width: max-content; padding: 4px 8px; border: 1px solid rgba(209,166,111,.28); border-radius: 999px; color: var(--gold); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.role-chip.is-owner, .role-chip.is-admin { border-color: rgba(198,56,80,.42); color: #ff748b; background: rgba(198,56,80,.1); }
.audit-warning, .audit-critical { border-color: rgba(198,56,80,.28); }
.staff-live-end { border-color: rgba(255, 105, 124, .48) !important; background: rgba(111, 18, 38, .86) !important; color: #ffdce1 !important; }
.staff-live-end:hover { background: rgba(157, 27, 52, .94) !important; }
.staff-live-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.staff-live-dialog form { display: grid; gap: 14px; margin-top: 20px; }
.member-directory-card { display: grid; gap: 17px; }
.member-directory-search { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; align-items: end; gap: 10px; }
.member-directory-search label { margin: 0; }
.member-directory-row .button-row { display: flex; flex: 0 0 auto; }
.member-email { width: fit-content; max-width: 100%; color: #f0c87e; overflow-wrap: anywhere; text-decoration-color: rgba(240, 200, 126, .38); text-underline-offset: 3px; }
.member-directory-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; }
.member-directory-pagination span { min-width: 120px; color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.mfa-required-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: rgba(209,166,111,.32); }
.mfa-dialog { width: min(560px, calc(100vw - 24px)); }
.mfa-setup-details { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.2); }
.mfa-setup-details code { display: block; overflow-wrap: anywhere; padding: 12px; border-radius: 10px; color: var(--gold); background: #0b090c; font-size: 16px; letter-spacing: .1em; }
.mfa-recovery { padding: 16px; border: 1px solid rgba(209,166,111,.32); border-radius: 14px; }
.mfa-recovery pre { padding: 15px; border-radius: 12px; color: #fff; background: #0b090c; font-size: 15px; line-height: 1.7; }
.live-role-badge.platform { border-color: rgba(198,56,80,.52); color: #ff7e92; background: rgba(198,56,80,.18); }
.live-role-badge.platform.owner { color: #ffd17d; border-color: rgba(255,209,125,.5); }

@media (max-width: 820px) {
  .control-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-stats article:last-child { grid-column: 1 / -1; }
  .control-row, .mfa-required-card { align-items: stretch; flex-direction: column; }
  .control-row button, .mfa-required-card button { width: 100%; }
  .live-directory-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-directory-actions button { width: 100%; white-space: normal; }
  .member-directory-search { grid-template-columns: 1fr 1fr; }
  .member-directory-search label { grid-column: 1 / -1; }
  .member-directory-pagination { justify-content: space-between; gap: 8px; }
  .member-directory-pagination button { min-width: 0; padding-inline: 12px; }
}

@media (max-width: 470px) {
  .control-stats { grid-template-columns: 1fr; }
  .control-stats article:last-child { grid-column: auto; }
  .mfa-dialog { inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); width: auto; max-width: none; margin: auto; }
  .live-directory-actions, .member-directory-search { grid-template-columns: 1fr; }
  .member-directory-search label { grid-column: auto; }
  .member-directory-pagination { display: grid; grid-template-columns: 1fr 1fr; }
  .member-directory-pagination span { grid-column: 1 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Ticket conversations: scoped to the dedicated dialog, independent of live pages. */
.ticket-detail-dialog { width: min(800px, calc(100vw - 24px)); max-height: min(92dvh, 920px); }
.ticket-detail-dialog #ticketDetailTitle { overflow-wrap: anywhere; padding-right: 35px; }
.ticket-event-list { display: grid; gap: 11px; max-height: 42dvh; overflow-y: auto; margin: 18px 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.ticket-event { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(6, 5, 7, .4); }
.ticket-event.is-internal { border-color: rgba(209,166,111,.35); background: rgba(209,166,111,.07); }
.ticket-event-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.ticket-event p { margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-reply-form { display: grid; gap: 12px; }
.ticket-reply-form textarea { min-width: 0; }
@media(max-width: 580px) {
  .ticket-detail-dialog { width: calc(100% - 8px); max-width: none; padding: 20px 16px; }
  .ticket-event-list { max-height: 36dvh; padding: 8px; }
  .ticket-event { padding: 11px; }
  .support-page .control-row { min-width: 0; }
  .support-page .control-row > button { width: 100%; }
}

/* Hilfe: eigenständige Mitglieder-Ticketansicht; Control Center bleibt unverändert. */
.support-page .admin-grid > *,
.support-page .member-ticket-workspace { min-width: 0; max-width: 100%; }
.support-page .member-ticket-workspace { margin-top: 20px; padding: clamp(18px, 3vw, 30px); scroll-margin-top: 96px; }
.support-page .member-ticket-workspace-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.support-page .member-ticket-workspace-header > div { min-width: 0; }
.support-page #memberTicketTitle { margin: 0; overflow-wrap: anywhere; font: 600 clamp(26px, 4vw, 37px)/1.15 'Playfair Display', Georgia, serif; }
.support-page #memberTicketMeta { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 12px; }
.support-page .member-ticket-events { display: flex; flex-direction: column; gap: 15px; max-height: min(58dvh, 620px); overflow-y: auto; overscroll-behavior: contain; margin: 20px 0; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--line); border-radius: 16px; background: rgba(5,4,6,.42); }
.support-page .member-ticket-event { width: min(90%, 670px); min-width: 0; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(27, 22, 28, .95); overflow-wrap: anywhere; }
.support-page .member-ticket-event.is-own { align-self: flex-end; border-color: rgba(198,56,80,.32); background: rgba(125,30,49,.24); }
.support-page .member-ticket-event.is-team { align-self: flex-start; border-color: rgba(209,166,111,.3); }
.support-page .member-ticket-event-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; }
.support-page .member-ticket-event-meta strong { color: var(--gold-soft); }
.support-page .member-ticket-event p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-page .member-ticket-reply-form { display: grid; gap: 13px; }
.support-page .member-ticket-reply-form textarea { min-width: 0; max-width: 100%; }
.support-page .open-member-ticket[aria-pressed="true"] { border-color: rgba(209,166,111,.65); }
@media(max-width:580px) {
  .support-page .member-ticket-workspace-header { flex-direction: column; }
  .support-page #memberTicketClose, .support-page .member-ticket-reply-form button { width: 100%; }
  .support-page .member-ticket-events { padding: 10px; }
  .support-page .member-ticket-event { width: min(96%, 670px); padding: 12px; }
}

/* Hilfe: Refresh-Button bleibt innerhalb der Ticket-Karte (nur diese Seite). */
.support-page .admin-grid > .panel { min-width: 0; }
.support-page .admin-grid > .panel > .form-intro { min-width: 0; }
.support-page .admin-grid > .panel > .form-intro > div { min-width: 0; }
.support-page .admin-grid > .panel > .form-intro > div h3 { overflow-wrap: anywhere; }
.support-page #refreshTickets { max-width: 100%; flex-shrink: 1; }
@media (max-width: 820px) {
  .support-page .admin-grid > .panel:nth-child(2) > .form-intro {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .support-page #refreshTickets { width: 100%; }
}

/* Velvet Live-Geschenke V1: static placeholder animation until uploadable assets are implemented. */
.live-stage { position: relative; }
.live-gift-overlay { position: absolute; z-index: 35; top: 12%; left: 4%; right: 4%; pointer-events: none; text-align: center; }
.live-gift-overlay[hidden], .live-gift-tools[hidden] { display:none !important; }
.live-gift-animation { display: grid; justify-items: center; gap: 8px; padding: 18px; border-radius: 18px; background: rgba(23,10,25,.7); color: #fff; text-shadow:0 2px 6px #000; animation: velvet-gift-pop .5s both; }
.live-gift-emoji { font-size: clamp(65px,15vw,150px); filter:drop-shadow(0 0 15px #f0b4b8); }
@keyframes velvet-gift-pop {from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
.live-gift-chat-entry { border:1px solid rgba(245,167,186,.55);border-radius:10px;margin:6px 0;padding:8px 10px;overflow-wrap:anywhere;font-size:.87rem; }
.live-gift-tools { padding: 7px 9px; }
.live-gift-dialog { border:1px solid #6f4658;border-radius:18px;padding:20px;max-width:min(94vw,520px);width:100%;background:#241923;color:#fff; }
.live-gift-dialog::backdrop { background:rgba(0,0,0,.7); }
.live-gift-catalog { display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:14px 0; }
.live-gift-option {display:grid;justify-items:center;gap:7px;padding:12px;border:1px solid #77505c;border-radius:12px;background:#3c2838;color:white;cursor:pointer;}
.live-gift-option span {font-size:38px;}

/* Velvet Geschenke 02: Shop im Chat statt Vollbild-Modal; Video bleibt sichtbar. */
.live-gift-chat-drawer[hidden] { display: none !important; }
.live-gift-chat-drawer {
  min-width: 0; max-width: 100%; max-height: min(280px, 35dvh); overflow-y: auto;
  overscroll-behavior: contain; padding: 10px 12px;
  border-top: 1px solid rgba(245,167,186,.4);
  background: rgba(25,14,28,.97); color: #fff;
}
.live-gift-drawer-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 8px; }
.live-gift-drawer-head button { min-height: 30px; padding: 5px 10px; font-size: .8rem; }
.live-gift-drawer-hint { margin: 6px 0 0; color: #decbd5; font-size: .78rem; }
.live-gift-chat-drawer .live-gift-catalog {
  display:flex; gap: 8px; max-width: 100%; overflow-x: auto;
  overscroll-behavior-x: contain; margin: 9px 0; padding: 0 0 3px;
}
.live-gift-chat-drawer .live-gift-option { flex: 0 0 96px; min-width: 0; padding: 8px 6px; gap: 3px; font-size: .8rem; }
.live-gift-chat-drawer .live-gift-option span { font-size: 27px; }
.live-gift-chat-drawer #liveGiftPurchaseStatus { margin: 4px 0 0; font-size: .78rem; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .live-gift-chat-drawer { max-height: min(230px, 32dvh); }
}

/* Velvet Geschenke 03: Gift effects belong to the video viewport, never the chat. */
#videoArea { isolation: isolate; }
#videoArea > .live-gift-overlay { position: absolute !important; inset: 0 !important; z-index: 25; width: 100%; height: 100%; overflow: hidden; clip-path: inset(0); pointer-events: none; background: transparent; }
#videoArea > .live-gift-overlay .live-gift-animation { position: absolute; left: 50%; top: 43%; transform: translate(-50%,-50%); width: min(85%, 360px); max-height: 86%; overflow: hidden; box-sizing: border-box; animation: velvet-gift-appear .4s ease-out both; }
#videoArea > .live-gift-overlay .live-gift-animation.is-top { top: 21%; }
#videoArea > .live-gift-overlay .live-gift-animation.is-tracked { left: var(--gift-x,50%); top: var(--gift-y,24%); width: min(50%, 240px); }
#videoArea > .live-gift-overlay .live-gift-emoji { font-size: clamp(35px, 9vw, 110px); line-height: 1.15; }
#videoArea > .live-gift-overlay strong { overflow-wrap: anywhere; font-size: clamp(10px, 1.3vw, 14px); }
@keyframes velvet-gift-appear { from { opacity:0; scale:.65; } to { opacity:1; scale:1; } }
@media (max-width: 580px) { #videoArea > .live-gift-overlay .live-gift-animation { padding: 8px; gap: 4px; } #videoArea > .live-gift-overlay .live-gift-animation.is-tracked { width: min(62%, 180px); } }
