:root {
    --bg: #0f0f11;
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.08);
    /* Same surface as dashboard / creator-lab panels */
    --dashboard-panel: rgba(38, 40, 50, 0.94);
    --dashboard-panel-hover: rgba(50, 52, 64, 0.98);
    --dashboard-panel-border: rgba(255, 255, 255, 0.1);
    --text: #e9e8ed;
    --muted: #b3b0ba;
    --accent: #c53c4f;
    --accent-2: #e04a5f;
    --accent-3: #f472b6;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --radius: 18px;
    /* Shared with Live route headline strip + landing hero card */
    --surface-head-bg: linear-gradient(180deg, rgba(52, 18, 28, 0.98) 0%, rgba(26, 10, 16, 0.99) 100%);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
    font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(160deg, #120708 0%, #1c0e12 45%, #0f0608 100%);
    color: var(--text);
    min-height: 100%;
    overflow-x: hidden;
}

body {
    position: relative;
    line-height: 1.5;
}

.page-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-home main {
    flex: 1;
}

.page-home .footer {
    margin-top: auto;
}

.glow-mode {
    background:
      radial-gradient(ellipse 100% 65% at 16% 10%, rgba(244, 114, 182, 0.22), transparent 52%),
      radial-gradient(ellipse 95% 58% at 85% 12%, rgba(224, 74, 95, 0.2), transparent 50%),
      radial-gradient(ellipse 120% 85% at 50% 100%, rgba(197, 60, 79, 0.16), transparent 58%),
      #0f080a;
}

.glow-mode .orb-1,
.glow-mode .orb-2 {
    opacity: 0.58;
    filter: blur(70px) saturate(155%);
}

.glow-mode .panel,
.glow-mode .cta-banner {
    border-color: rgba(224, 74, 95, 0.35);
}

.glow-mode .nav {
    border-bottom-color: rgb(232, 90, 108);
}

.rose-bg{
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background:
      radial-gradient(ellipse 140% 55% at 50% -8%, rgba(58, 14, 22, 0.94), transparent 58%),
      radial-gradient(ellipse 95% 75% at 15% 100%, rgba(72, 18, 28, 0.58), transparent 54%),
      radial-gradient(ellipse 95% 75% at 85% 100%, rgba(62, 14, 24, 0.55), transparent 54%),
      linear-gradient(168deg, #0c0406 0%, #180c10 42%, #0a0406 100%);
}
.rose-bg::after{
    content:""; position:absolute; inset:-50vh -50vw; opacity:.08; mix-blend-mode:soft-light;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect filter='url(%23n)' width='100%25' height='100%25' opacity='0.6'/%3E%3C/svg%3E");
    animation:grain 9s linear infinite;
}
@keyframes grain{to{transform:translate(10px,6px)}}
.rose-scene{
    position:absolute; left:50%; top:60%;
    transform:translate(-50%,-50%);
    perspective:1200px; transform-style:preserve-3d;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.55));
}
.rose{
    position:relative; width:640px; height:640px;
    transform-style:preserve-3d; will-change:transform;
    --yaw: 8deg; --pitch: 56deg;
    animation:sway 9s ease-in-out infinite alternate;
    transform: rotateX(var(--pitch)) rotateZ(var(--yaw));
}
@keyframes sway{
    0%   { transform: rotateX(calc(var(--pitch) + 2deg)) rotateZ(calc(var(--yaw) - 2deg)); }
    100% { transform: rotateX(calc(var(--pitch) - 2deg)) rotateZ(calc(var(--yaw) + 2deg)); }
}
.rose-petal{
    position:absolute; left:50%; top:50%;
    width:var(--w); height:var(--h);
    transform-style:preserve-3d; backface-visibility:hidden; contain:paint;
    transform:
      translate(-50%, -85%)
      rotateZ(var(--a))
      translateX(var(--r))
      rotateZ(calc(-1 * var(--a)))
      rotateX(var(--tilt))
      rotateY(var(--curl))
      translateZ(var(--z));
    filter: brightness(calc(0.78 + (var(--hl,.25)*.45))) saturate(1.05);
}
.rose-petal::before{
    content:""; position:absolute; inset:0; border-radius:52% 52% 46% 46% / 64% 64% 40% 40%;
    background:
      radial-gradient(60% 38% at 50% 18%, rgba(255,255,255,.16), transparent 55%),
      radial-gradient(120% 120% at 50% 75%, rgba(0,0,0,.38), transparent 58%),
      linear-gradient(180deg, #b10c1e 0%, #8e0a1b 65%, #5e0614 100%),
      linear-gradient(180deg, #c61627, #7d0616);
    box-shadow: inset 0 -10px 16px rgba(0,0,0,.35), inset 0 12px 18px rgba(255,255,255,.05), 0 10px 22px rgba(0,0,0,.45);
}
.rose-petal::after{
    content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none;
    background:
      conic-gradient(from 210deg at 50% 35%, rgba(255,255,255,.35), transparent 18% 82%, rgba(255,255,255,.12)),
      radial-gradient(130% 140% at 50% 110%, rgba(0,0,0,.48), transparent 60%),
      radial-gradient(100% 100% at 50% 0%, rgba(0,0,0,.25), transparent 35%);
    mix-blend-mode:overlay; opacity:.55;
}
.rose-occlu{
    position:absolute; left:50%; top:50%;
    width:calc(var(--w) * .64); height:calc(var(--h) * .42);
    transform:
      translate(-50%, -60%)
      rotateZ(var(--a))
      translateX(calc(var(--r) - 6px))
      rotateZ(calc(-1 * var(--a)))
      rotateX(calc(var(--tilt) + 2deg))
      rotateY(var(--curl))
      translateZ(calc(var(--z) - 4px));
    border-radius:50%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.32), transparent 65%);
    filter: blur(5px);
}
.rose-bud{
    position:absolute; left:50%; top:50%; width:180px; height:180px; transform:translate(-50%,-50%) translateZ(34px) rotateX(10deg); border-radius:50%;
    background:
      radial-gradient(110% 90% at 50% 62%, rgba(0,0,0,.55), transparent 50%),
      radial-gradient(80% 60% at 50% 28%, rgba(255,255,255,.10), transparent 40%),
      conic-gradient(from 200deg, #8a0a1b, #b40f22 40%, #e81f2c 75%, #9d0c1e 100%);
    box-shadow: inset 0 12px 22px rgba(255,255,255,.08), inset 0 -16px 30px rgba(0,0,0,.5), 0 20px 40px rgba(0,0,0,.55);
}
.rose-leaf{position:absolute; left:50%; top:76%; width:240px; height:150px; transform:translate(-50%,-50%) rotateX(28deg) translateZ(-60px); filter: drop-shadow(0 12px 20px rgba(0,0,0,.45))}
.rose-leaf i{
    position:absolute; inset:0; border-radius:60% 15% 60% 15% / 80% 20% 80% 20%;
    background:
      radial-gradient(120% 90% at 60% 30%, rgba(255,255,255,.1), transparent 40%),
      linear-gradient(180deg, #1b6f45, #0f4f32);
    box-shadow: inset 0 -10px 18px rgba(0,0,0,.35), inset 0 10px 18px rgba(255,255,255,.05);
}
.rose-leaf .l1{transform:translate(-40%, -10%) rotateZ(-36deg)}
.rose-leaf .l2{transform:translate( 40%, -10%) rotateZ( 36deg)}
.rose-stem{
    position:absolute; left:50%; top:78%; width:14px; height:360px; transform:translate(-50%,-50%) rotateX(60deg) translateZ(-110px);
    background:
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 18%),
      linear-gradient(180deg, #0c3b27, #145235 60%, #0e3e2a);
    border-radius:8px; box-shadow: inset 0 -12px 18px rgba(0,0,0,.45), 0 22px 40px rgba(0,0,0,.55);
}
.rose-fall{
    position:absolute; top:-10vh; width:10px; height:14px; border-radius:8px 8px 60% 60%/50% 50% 80% 80%;
    background: radial-gradient(80% 60% at 50% 30%, rgba(255,255,255,.18), transparent 40%), linear-gradient(180deg, #c61527, #7d0616);
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    animation:fallRose var(--dur) linear infinite, spinRose var(--dur) ease-in-out infinite; opacity:.7;
}
@keyframes fallRose{from{transform: translate3d(var(--x), -12vh, 0) rotateZ(0)} to{transform: translate3d(calc(var(--x) + var(--dx)), 112vh, 0) rotateZ(360deg)}}
@keyframes spinRose{50%{transform: translate3d(calc(var(--x) + calc(var(--dx)/2)), 50vh, 0) rotateZ(180deg)}}

.bg-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: var(--noise);
    opacity: 0.4;
    mix-blend-mode: soft-light;
    z-index: 0;
}

.bg-roses {
    position: fixed;
    inset: 0;
    pointer-events: none;
    /* Red-forward ambient mesh */
    background:
      radial-gradient(ellipse 100% 72% at 6% 20%, rgba(240, 78, 98, 0.38), transparent 58%),
      radial-gradient(ellipse 90% 68% at 94% 16%, rgba(210, 48, 68, 0.34), transparent 56%),
      radial-gradient(ellipse 115% 58% at 50% 110%, rgba(150, 36, 52, 0.3), transparent 60%),
      radial-gradient(ellipse 125% 92% at 45% 38%, rgba(255, 110, 128, 0.18), transparent 64%),
      radial-gradient(ellipse 80% 50% at 72% 72%, rgba(200, 44, 62, 0.16), transparent 58%);
    mix-blend-mode: screen;
    opacity: 0.64;
    z-index: 0;
}

.orb {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.44;
    z-index: 0;
}

.orb-1 {
    top: -160px;
    left: -80px;
    background: radial-gradient(circle at 30% 30%, #e04a5f, transparent 58%);
}

.orb-2 {
    bottom: -160px;
    right: -120px;
    background: radial-gradient(circle at 70% 70%, #ff5c72, transparent 58%);
}

main {
    position: relative;
    z-index: 2;
    padding: 120px clamp(20px, 5vw, 72px) 80px;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 18px clamp(16px, 3vw, 42px);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(36, 14, 20, 0.97) 0%, rgba(16, 8, 11, 0.99) 100%);
    border-bottom: 3px solid rgb(197, 60, 79);
    box-shadow:
        inset 0 -1px 0 rgba(255, 140, 155, 0.35),
        0 8px 28px rgba(0, 0, 0, 0.45);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: inherit;
    text-decoration: none;
}

.logo:hover,
.logo:focus-visible,
.logo:active,
.logo:visited {
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: grid;
    place-items: center;
    color: #0b0c0f;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

/* ----- Mobile hamburger (enhanced in JS: .nav-bar-start, .nav-burger, overlay) ----- */
.nav-bar-start {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

.nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(197, 60, 79, 0.45);
    border-radius: 12px;
    background: rgba(22, 10, 14, 0.9);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 180ms ease, border-color 180ms ease;
}

.nav-burger:hover,
.nav-burger:focus-visible {
    background: rgba(197, 60, 79, 0.22);
    border-color: rgba(255, 150, 165, 0.55);
    outline: none;
}

.nav-burger-bars,
.nav-burger-bars::before,
.nav-burger-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 1px;
    background: var(--text);
}

.nav-burger-bars {
    position: relative;
}

.nav-burger-bars::before,
.nav-burger-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-burger-bars::before {
    top: -7px;
}

.nav-burger-bars::after {
    top: 7px;
}

.nav-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.nav-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 2, 4, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-mobile-sheet {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    margin-top: min(8vh, 48px);
    max-height: min(84vh, 720px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(197, 60, 79, 0.45);
    background: linear-gradient(180deg, rgba(36, 14, 22, 0.98), rgba(14, 6, 10, 0.99));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 150, 165, 0.12);
    overflow: hidden;
}

.nav-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(197, 60, 79, 0.28);
    flex-shrink: 0;
}

.nav-mobile-title {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.nav-mobile-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.nav-mobile-close:hover,
.nav-mobile-close:focus-visible {
    background: rgba(197, 60, 79, 0.25);
    border-color: rgba(197, 60, 79, 0.45);
    outline: none;
}

.nav-mobile-body {
    padding: 14px 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-mobile-body .nav-links {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    justify-content: flex-start;
}

.nav-mobile-body .nav-actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    justify-content: flex-start;
    padding-top: 4px;
    border-top: 1px solid rgba(197, 60, 79, 0.2);
}

.nav-mobile-body .nav-links .ghost,
.nav-mobile-body .nav-actions .ghost,
.nav-mobile-body .nav-actions .primary {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.nav-mobile-body .user-chip {
    max-width: none;
    width: 100%;
    justify-content: center;
}

body.nav-mobile-open {
    overflow: hidden;
}

@media screen and (max-width: 720px) {
    header.nav.nav-mobile-ready {
        grid-template-columns: 1fr !important;
        row-gap: 0 !important;
        align-items: center;
    }

    header.nav.nav-mobile-ready .nav-burger {
        display: inline-flex;
    }

    header.nav.nav-mobile-ready > .nav-links,
    header.nav.nav-mobile-ready > .nav-actions {
        display: none !important;
    }

    header.nav.nav-mobile-ready .nav-bar-start {
        width: 100%;
        justify-content: space-between;
    }

    header.nav.nav-mobile-ready .logo {
        min-width: 0;
    }
}

@media screen and (min-width: 721px) {
    header.nav.nav-mobile-ready {
        grid-template-columns: auto 1fr auto !important;
    }
}

button, .route {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 180ms ease, color 180ms ease, box-shadow 220ms ease, background 220ms ease;
}

button:focus-visible, .route:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
    border-radius: 12px;
}

.primary {
    background: linear-gradient(135deg, #c53c4f, #e04a5f);
    color: #0f0f11;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(197, 60, 79, 0.45);
    text-decoration: none;
}

.ghost {
    background: var(--dashboard-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 11px 16px;
    border-radius: 14px;
    color: var(--text);
    border: 1px solid var(--dashboard-panel-border);
    text-decoration: none;
}

.primary:hover,
.primary:focus-visible,
.primary:active,
.primary:visited,
.ghost:hover,
.ghost:focus-visible,
.ghost:active,
.ghost:visited {
    text-decoration: none;
}

.primary:hover, .ghost:hover {
    transform: translateY(-1px);
}

.ghost:hover,
.ghost:focus-visible {
    background: var(--dashboard-panel-hover);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(24px, 5vw, 48px);
    align-items: center;
}

.hero-centered {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
}

/* Landing (home): same red “headline surface” as Live route */
.page-home:not(.page-live) .hero.hero-centered {
    width: 100%;
}

.page-home:not(.page-live) .hero-landing-card {
    width: 100%;
    max-width: min(760px, 94vw);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px) clamp(20px, 4vw, 30px);
    border-radius: var(--radius);
    background: var(--surface-head-bg);
    border: 1px solid rgba(197, 60, 79, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 150, 165, 0.14),
        0 8px 32px rgba(0, 0, 0, 0.28);
}

.page-home:not(.page-live) .hero-landing-card .hero-text {
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(36px, 6vw, 64px);
    margin: 12px 0;
    line-height: 1.05;
}

.hero-text .lede {
    color: var(--muted);
    max-width: 580px;
    margin: 0 0 28px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
}

.cta-row {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.cta-centered {
    justify-content: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stat-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 16px;
    border-radius: 14px;
    display: grid;
    gap: 4px;
}

.stat-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--muted);
    font-size: 14px;
}

/* Live route: one panel — headline strip + actions; stat cards match headline surface */
.page-live main {
    gap: 32px;
    max-width: min(940px, 96vw);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-top: clamp(72px, 11vh, 108px);
    padding-bottom: clamp(56px, 9vh, 80px);
}

.page-live .live-panel {
    gap: 16px;
}

.page-live .live-panel:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 60, 79, 0.42);
    background: rgba(255, 255, 255, 0.045);
}

.page-live .live-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(16px, 3vw, 24px);
    padding: 16px 18px 18px;
    border-radius: 14px;
    background: var(--surface-head-bg);
    border: 1px solid rgba(197, 60, 79, 0.38);
    box-shadow:
        inset 0 1px 0 rgba(255, 150, 165, 0.14),
        0 4px 20px rgba(0, 0, 0, 0.25);
}

.page-live .live-panel-intro {
    flex: 1 1 240px;
    min-width: 0;
    display: grid;
    gap: 6px;
}

.page-live .live-panel-intro h2 {
    margin: 0;
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    line-height: 1.15;
}

.page-live .live-panel-intro .eyebrow {
    margin: 0;
}

.page-live .live-panel-intro .muted {
    margin: 0;
    max-width: 52ch;
}

.page-live .live-panel-actions {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.page-live .live-stats {
    margin-top: 4px;
}

.page-live .live-stats .stat-card {
    background: var(--surface-head-bg);
    border-color: rgba(197, 60, 79, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 150, 165, 0.08);
}

@media (max-width: 640px) {
    .page-live .live-panel-actions {
        width: 100%;
        justify-content: stretch;
    }

    .page-live .live-panel-actions .primary,
    .page-live .live-panel-actions .ghost {
        flex: 1 1 140px;
    }
}

.hero-visual {
    position: relative;
    min-height: 360px;
}

.floating-card {
    position: absolute;
    background: var(--panel-strong);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    width: 240px;
    transition: transform 180ms ease, border-color 200ms ease;
}

.floating-card.depth-1 { top: 16%; left: 6%; }
.floating-card.depth-2 { bottom: 10%; right: 12%; width: 220px; }
.floating-card.depth-3 { top: 54%; left: 38%; width: 180px; }

.floating-card .card-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.card-graph {
    height: 120px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.45), rgba(6, 182, 212, 0.15));
    position: relative;
    overflow: hidden;
}

.card-graph::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, transparent 0, transparent 48%, rgba(255, 255, 255, 0.22) 50%, transparent 52%, transparent 100%);
    animation: shine 2.6s infinite;
}

.card-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}

.pill {
    background: rgba(139, 92, 246, 0.2);
    color: #d9c7ff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.pill-amber { background: rgba(251, 191, 36, 0.16); color: #fbbf24; border-color: rgba(251, 191, 36, 0.45); }
.pill-pink { background: rgba(244, 114, 182, 0.16); color: #f472b6; border-color: rgba(244, 114, 182, 0.45); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.chip {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.emoji {
    font-size: 28px;
}

.spark-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 10px;
}

.spark-grid span {
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(244, 114, 182, 0.55));
    border-radius: 6px;
    opacity: 0.35;
    animation: spark 2.8s infinite;
}

.spark-grid span:nth-child(2),
.spark-grid span:nth-child(5),
.spark-grid span:nth-child(8) { animation-delay: 0.4s; }
.spark-grid span:nth-child(3),
.spark-grid span:nth-child(6),
.spark-grid span:nth-child(9) { animation-delay: 0.8s; }

.spark-grid span.pop {
    animation: none;
    transform: scale(1.18);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.45);
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
    transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.panel:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 12px var(--accent-2);
}

.text-link {
    color: var(--accent-2);
    padding: 0;
    background: none;
}

.cta-banner {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: clamp(18px, 4vw, 26px);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow);
}

.cta-text h2 {
    margin: 6px 0 0 0;
    font-size: clamp(24px, 4vw, 34px);
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer {
    padding: 10px clamp(20px, 5vw, 72px) 15px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.lede { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 320ms ease, transform 320ms ease;
}

[data-reveal].visible {
    opacity: 1;
    transform: translateY(0);
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-lab {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    padding: 22px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    width: 100%;
}

.blog-form {
    display: grid;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-form .full {
    grid-column: 1 / -1;
}

@media screen and (min-width: 1200px) {
    .blog-form {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}

@media screen and (min-width: 1400px) {
    .blog-form {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

.blog-form .full {
    grid-column: 1 / -1;
}

.field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.field label {
    font-weight: 600;
}

/* Dashboard: Theme column — keep label, selector, and preview visually tight */
.dashboard .creator-lab .blog-form .field:nth-child(2) {
    gap: 4px;
}
.dashboard .creator-lab .blog-form .field:nth-child(2) label {
    margin-bottom: 0;
    line-height: 1.25;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}

.field textarea { resize: vertical; }

.field small.muted {
    font-size: 12px;
    margin-top: -4px;
    display: block;
}

#desc-char-count {
    text-align: right;
    font-weight: 500;
    margin-top: 4px;
}

.select-wrap {
    position: relative;
}

.theme-preview-wrap {
    margin-top: 0;
    display: grid;
    gap: 4px;
    align-items: center;
}

.theme-preview {
    height: 64px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    background: var(--panel);
    transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.flash-save {
    animation: flashSave 0.8s ease;
}

@keyframes flashSave {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
}

.theme-preview-label {
    color: var(--muted);
    font-size: 13px;
}

.theme-preview[data-theme="nature"] {
    background: linear-gradient(135deg, #0f1f0f, #153515);
}
.theme-preview[data-theme="christmas"] {
    background: repeating-linear-gradient(45deg, #fff 0 10px, #c9132c 10px 20px);
}
.theme-preview[data-theme="wonderland"] {
    background: linear-gradient(135deg, #f9f0ff, #f6fbff);
}
.theme-preview[data-theme="pirates"] {
    background: linear-gradient(135deg, #0b1020, #1a2235);
}
.theme-preview[data-theme="paradise"] {
    background: linear-gradient(180deg, #0e2d37 0, #1a6b7d 50%, #fac570 100%);
}
.theme-preview[data-theme="cyber"] {
    background: radial-gradient(circle at 30% 30%, rgba(0,255,198,0.35), transparent 50%), #04060b;
}
.theme-preview[data-theme="aurora-skies"] {
    background: linear-gradient(135deg, #0a0f19, #12304a 60%, #1bd9c4);
}
.theme-preview[data-theme="clockwork-harbor"] {
    background: linear-gradient(135deg, #0b1013, #1c252d 60%, #caa35a);
}
.theme-preview[data-theme="desert-mirage"] {
    background: linear-gradient(135deg, #1a120c, #3a2814 60%, #f7b26f);
}
.theme-preview[data-theme="glacier-drift"] {
    background: linear-gradient(135deg, #081015, #0f2433 60%, #9fe6ff);
}
.theme-preview[data-theme="sakura-bloom"] {
    background: linear-gradient(135deg, #140d14, #2b1024 60%, #ff9dc3);
}
.theme-preview[data-theme="vaporwave-arcade"] {
    background: linear-gradient(135deg, #10091a, #241547 60%, #ff7bd8);
}
.theme-preview[data-theme="velvet-gothic"] {
    background: linear-gradient(135deg, #0c0810, #1c1027 60%, #dcb36e);
}
.theme-preview[data-theme="nebula-dreams"] {
    background: linear-gradient(135deg, #090b12, #131e35 60%, #9fd5ff);
}
.theme-preview[data-theme="jungle-temple"] {
    background: linear-gradient(135deg, #0b110c, #123820 60%, #7fe676);
}
.theme-preview[data-theme="paper-ink"] {
    background: linear-gradient(135deg, #fffaf0, #f1e2c8);
    border-color: #e8d8bd;
}

.select-dark {
    appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    padding-right: 36px;
    border-radius: 12px;
}

.select-dark option,
.select-dark optgroup {
    background: #0f172a;
    color: #e5e7eb;
}

.select-dark option:checked {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(6, 182, 212, 0.24));
    color: #0b0c0f;
}

.select-wrap::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 12px;
    pointer-events: none;
}

.link-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
}

.remove-link {
    border-radius: 10px;
    background: rgba(244, 114, 182, 0.14);
    color: #f472b6;
    padding: 8px 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.auth-callout {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.hero-uploader {
    display: grid;
    grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
}

.hero-preview {
    width: 100%;
    max-width: 220px;
    height: 220px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    justify-self: start;
}

.hero-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-placeholder {
    color: var(--muted);
    font-weight: 600;
}

.upload-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    width: 100%;
    max-width: 220px;
    align-self: start;
    overflow: visible;
}

/* Hidden native file input — single "Upload" button opens the picker */
.hero-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.upload-actions .hero-upload-btn.ghost {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* When the image field is narrow (multi-column form), stack preview + controls so buttons aren’t clipped */
.field:has(.hero-uploader) {
    container-type: inline-size;
    container-name: hero-uploader-field;
}

@container hero-uploader-field (max-width: 520px) {
    .hero-uploader {
        grid-template-columns: 1fr;
    }

    .hero-preview {
        max-width: min(220px, 100%);
        height: auto;
        aspect-ratio: 1;
        max-height: 220px;
    }

    .upload-actions {
        max-width: min(220px, 100%);
    }
}

.link-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.link-share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.link-share .muted {
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    word-break: break-all;
}

.is-hidden {
    display: none !important;
}

.icon-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.link-icon-preview {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.hero-image-shell {
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 10px;
    display: grid;
    gap: 6px;
    place-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.hero-image-shell img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    object-fit: contain;
}

.badge.note {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.3);
    color: #9ee8ff;
}

.dashboard {
    position: relative;
    z-index: 2;
    padding: 12px clamp(16px, 4vw, 48px) 40px;
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: min(94vw, 900px);
    margin-left: auto;
    margin-right: auto;
    justify-items: stretch;
}

/* Single title strip: lighter than .nav so content is easier to read */
.dashboard-page-head {
    width: 100%;
    max-width: 100%;
    padding: 10px 16px 12px;
    border-radius: 14px;
    display: grid;
    gap: 6px;
    background: var(--dashboard-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--dashboard-panel-border);
    box-shadow: none;
}

.dashboard-page-head .eyebrow {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.16em;
}

.dashboard-page-head h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.6vw, 1.55rem);
    line-height: 1.2;
    font-weight: 700;
}

.dashboard-page-head p.muted {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.35;
    max-width: 62ch;
}

/* One panel only: lighter surface; inner .blog-form is not a second card */
.dashboard .creator-lab {
    background: var(--dashboard-panel);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--dashboard-panel-border);
    box-shadow: none;
    padding: 18px 20px;
}

.dashboard .creator-lab .blog-form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

@media screen and (min-width: 1200px) {
    .dashboard {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 12px;
    }
    .dashboard > * {
        width: 100%;
        max-width: 100%;
    }
}

/* Optimize for 16:9 and wider aspect ratios - split layout */
@media screen and (min-aspect-ratio: 16/9) and (min-width: 1400px) {
    .dashboard {
        padding: 24px clamp(16px, 4vw, 48px) 30px;
        max-width: min(94vw, 900px);
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
        justify-items: stretch;
    }
    
    .dashboard-page-head {
        max-width: 100%;
        width: 100%;
        margin-bottom: 0;
        padding: 12px 16px;
    }
    
    .dashboard-page-head h2 {
        font-size: 1.5rem;
    }
    
    .dashboard-page-head p.muted {
        font-size: 0.85rem;
    }
    
    .dashboard .creator-lab {
        max-width: 100%;
        width: 100%;
        display: block;
        padding: 16px;
    }
    
    .dashboard .creator-lab .blog-form {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-auto-rows: min-content !important;
        gap: 0 8px !important;
        background: transparent;
        border: none;
        padding: 0;
        align-items: stretch;
        justify-content: center;
    }
    
    /* Reset all fields first */
    .dashboard .creator-lab .blog-form .field {
        grid-column: auto !important;
        grid-row: auto !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Left column: Username, Theme, Image, Image Alt, Ego */
    .dashboard .creator-lab .blog-form .field:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(2) {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(3) {
        grid-column: 1 !important;
        grid-row: 3 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 4 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(5) {
        grid-column: 1 !important;
        grid-row: 5 !important;
        margin-bottom: 0 !important;
    }
    
    /* Right column: Description Label, Description Text, Personalities, Links */
    .dashboard .creator-lab .blog-form .field:nth-child(6) {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(7) {
        grid-column: 2 !important;
        grid-row: 2 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(8) {
        grid-column: 2 !important;
        grid-row: 3 !important;
        margin-bottom: 0 !important;
    }
    .dashboard .creator-lab .blog-form .field:nth-child(9) {
        grid-column: 2 !important;
        grid-row: 4 !important;
        margin-bottom: 0 !important;
    }
    
    /* Form actions span both columns at bottom */
    .dashboard .creator-lab .form-actions {
        grid-column: 1 / -1 !important;
        grid-row: 6 !important;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .dashboard .creator-lab .blog-form .field {
        display: grid;
        gap: 4px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 0;
        padding: 12px;
        width: 100%;
        min-height: fit-content;
        margin: 0 !important;
    }
    
    .dashboard .creator-lab .blog-form .field label {
        margin-bottom: 2px;
        display: block;
    }
    
    .dashboard .creator-lab .blog-form .field input {
        margin-top: 0;
        display: block;
    }
    
    /* First field in each column - top rounded */
    .dashboard .creator-lab .blog-form .field:nth-child(1),
    .dashboard .creator-lab .blog-form .field:nth-child(6) {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    
    /* Last field in each column - bottom rounded */
    .dashboard .creator-lab .blog-form .field:nth-child(5),
    .dashboard .creator-lab .blog-form .field:nth-child(9) {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    
    /* Middle fields - no border radius, remove top/bottom borders where they touch */
    .dashboard .creator-lab .blog-form .field:nth-child(2),
    .dashboard .creator-lab .blog-form .field:nth-child(3),
    .dashboard .creator-lab .blog-form .field:nth-child(4),
    .dashboard .creator-lab .blog-form .field:nth-child(7),
    .dashboard .creator-lab .blog-form .field:nth-child(8) {
        border-top: none;
        border-radius: 0;
    }
    
    /* Add border back to first middle field */
    .dashboard .creator-lab .blog-form .field:nth-child(2),
    .dashboard .creator-lab .blog-form .field:nth-child(7) {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    .dashboard .creator-lab .blog-form .field label {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    .dashboard .creator-lab .blog-form .field input,
    .dashboard .creator-lab .blog-form .field textarea,
    .dashboard .creator-lab .blog-form .field select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .dashboard .creator-lab .blog-form .field textarea {
        min-height: 140px;
        resize: vertical;
    }
    
    .dashboard .creator-lab .hero-uploader {
        gap: 10px;
        min-width: 0;
    }
    
    .dashboard .creator-lab .hero-preview {
        max-height: 140px;
        width: 100%;
        max-width: 220px;
    }
    
    .dashboard .creator-lab .blog-form .field:nth-child(2) {
        gap: 3px;
    }
    .dashboard .creator-lab .theme-preview-wrap {
        margin-top: 0;
    }
    
    .dashboard .creator-lab .theme-preview {
        height: 55px;
    }
}

.contact-page {
    position: relative;
    z-index: 2;
    padding: 120px clamp(20px, 5vw, 72px) 80px;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

/* Same red “surface” system as home / Live */
.contact-page .contact-channels {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(197, 60, 79, 0.24);
}

.contact-page .contact-channel-card {
    gap: 8px;
    background: var(--surface-head-bg);
    border-color: rgba(197, 60, 79, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 150, 165, 0.08);
}

.contact-page .contact-channel-card:hover {
    transform: translateY(-2px);
    border-color: rgba(197, 60, 79, 0.45);
    background: var(--surface-head-bg);
}

/* Contact: single-screen layout — fit hero + channels + footer without scrolling */
.page-contact-fit {
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.page-contact-fit .nav {
    flex-shrink: 0;
    padding: 10px clamp(12px, 2.5vw, 28px);
}

.page-contact-fit .nav-links {
    gap: 6px;
}

.page-contact-fit .nav-links .ghost {
    padding: 8px 11px;
    font-size: 13px;
    border-radius: 12px;
}

.page-contact-fit .nav-actions .ghost,
.page-contact-fit .nav-actions .primary {
    padding: 8px 14px;
    font-size: 13px;
}

.page-contact-fit .user-chip {
    gap: 8px;
    padding: 6px 10px;
    max-width: min(200px, 42vw);
}

.page-contact-fit .user-chip .avatar {
    width: 28px;
    height: 28px;
}

.page-contact-fit .user-chip strong {
    font-size: 13px;
    line-height: 1.2;
}

.page-contact-fit .user-chip .muted.small {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.page-contact-fit main.contact-page {
    flex: 1 1 auto;
    min-height: 0;
    padding: clamp(6px, 1.2vh, 14px) clamp(12px, 3vw, 28px) clamp(6px, 1.2vh, 12px);
    gap: clamp(8px, 1.2vh, 14px);
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.page-contact-fit .footer {
    flex-shrink: 0;
    padding: 6px clamp(14px, 3vw, 36px) 10px;
    gap: 2px;
}

.page-contact-fit .footer .logo-img {
    width: 28px;
    height: 28px;
}

.page-contact-fit .footer p {
    font-size: 12px;
    line-height: 1.25;
}

.page-contact-fit .hero {
    gap: 0;
}

.page-contact-fit .hero-landing-card {
    padding: clamp(10px, 1.8vh, 18px) clamp(12px, 2.5vw, 20px);
}

.page-contact-fit .hero-text h1 {
    font-size: clamp(20px, 4.2vw, 30px);
    margin: 0 0 4px;
    line-height: 1.1;
}

.page-contact-fit .hero-text .lede {
    font-size: clamp(12px, 2.1vw, 15px);
    margin: 0;
    line-height: 1.3;
    max-width: none;
}

.page-contact-fit .contact-channels.panel {
    padding: 10px 12px;
}

.page-contact-fit .contact-channels .panel-grid {
    gap: 10px;
}

.page-contact-fit .contact-channel-card {
    padding: 8px 10px;
}

.page-contact-fit .contact-channel-card .eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 2px;
}

.page-contact-fit .contact-channel-card h3 {
    font-size: clamp(14px, 2.6vw, 17px);
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.page-contact-fit .contact-channel-card .muted {
    font-size: 11px;
    line-height: 1.25;
    margin: 0;
}

@media screen and (max-height: 520px) {
    .page-contact-fit .nav {
        padding: 6px 10px;
    }

    .page-contact-fit .ghost,
    .page-contact-fit .primary {
        padding: 8px 12px;
        font-size: 13px;
    }

    .page-contact-fit main.contact-page {
        gap: 6px;
    }

    .page-contact-fit .footer p {
        display: none;
    }
}

.donate-frame {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(139, 92, 246, 0.08));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.donate-copy {
    display: grid;
    gap: 10px;
}

/* Mobile + tall portrait (9:16) tweaks */
@media screen and (max-width: 1024px) {
    .nav:not(.nav-mobile-ready) { grid-template-columns: 1fr; row-gap: 12px; }
    .nav-links { justify-content: flex-start; flex-wrap: wrap; }
    .nav-actions { justify-content: flex-start; }
    .hero { grid-template-columns: 1fr; }
    .hero-visual { min-height: 260px; }
    .floating-card { position: relative; inset: unset; margin-bottom: 12px; width: 100%; }
    .creator-lab { grid-template-columns: 1fr; }
    .link-row { grid-template-columns: 1fr; }
    .hero-uploader { grid-template-columns: 1fr; }
}

@media screen and (max-width: 720px) {
    main { padding-top: 96px; gap: 72px; }
    .cta-banner { grid-template-columns: 1fr; }
    .nav { position: sticky; top: 0; }
    .hero-text h1 { font-size: clamp(32px, 9vw, 44px); }
    .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .creator-lab { grid-template-columns: 1fr; }
    .link-row { grid-template-columns: 1fr; }
}

@media screen and (max-width: 540px) {
    .nav { padding: 14px 16px; }
    .nav-links { gap: 6px; }
    .ghost, .primary { width: auto; }
    .panel-grid { gap: 12px; }
}

@media screen and (max-aspect-ratio: 9/16) {
    body { font-size: 15px; }
    main { padding: 70px 12px 50px; gap: 44px; }
    .hero { gap: 12px; grid-template-columns: 1fr; }
    .hero-visual { min-height: 200px; }
    .floating-card { padding: 12px; width: 100%; position: relative; inset: unset; }
    .cta-row { flex-direction: column; }
    .cta-row button { width: 100%; }
    .nav:not(.nav-mobile-ready) { grid-template-columns: 1fr; }
    .nav:not(.nav-mobile-ready) .nav-actions { width: 100%; flex-wrap: wrap; }
    .panel, .cta-banner { padding: 12px; }
}

/* Portrait-first tuning (9:16 and tighter) for dashboard */
@media screen and (max-aspect-ratio: 9/16) {
    .dashboard { padding: 12px 12px 32px; }
    .creator-lab { width: 100%; grid-template-columns: 1fr; padding: 14px; gap: 14px; }
    .blog-form { width: 100%; padding: 12px; gap: 12px; }
    .blog-form .field,
    .blog-form .full { width: 100%; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions .primary,
    .form-actions .ghost,
    .form-actions button { width: 100%; text-align: center; }
}

/* Standard landscape (16:9) optimization */
@media screen and (min-aspect-ratio: 16/9) and (max-aspect-ratio: 21/9) {
    .dashboard {
        padding: 24px clamp(32px, 8vw, 120px) 40px;
    }
    
    .creator-lab {
        grid-template-columns: 1.3fr 1fr;
        gap: 36px;
        padding: 32px;
    }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(120%); }
}

@keyframes spark {
    0%, 100% { opacity: 0.25; transform: scale(1); }
    40% { opacity: 0.9; transform: scale(1.06); }
}

/* Blog detail page */
.blog-body {
    min-height: 100vh;
    padding: 40px clamp(16px, 5vw, 72px);
    background: var(--blog-bg, var(--bg));
    color: var(--blog-text, var(--text));
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.blog-content {
    display: grid;
    gap: 18px;
}

.blog-description,
.blog-links {
    background: var(--blog-panel, var(--panel));
    border: 1px solid var(--blog-border, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

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

.link-card {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 12px;
    background: var(--blog-card, rgba(255, 255, 255, 0.04));
    color: var(--blog-text, var(--text));
    text-decoration: none;
    border: 1px solid var(--blog-border, rgba(255, 255, 255, 0.06));
    box-shadow: var(--blog-card-shadow, var(--shadow));
}

.link-card .label { font-weight: 700; }
.link-card .url { color: var(--blog-muted, var(--muted)); word-break: break-all; }

.theme-shell {
    background: var(--blog-bg, var(--bg));
}

/* Personality Dropdown */
.personalities-dropdown-wrapper {
    position: relative;
    width: 100%;
}

.personalities-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.personalities-trigger:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
}

.personalities-trigger.active {
    background: rgba(255,255,255,0.06);
    border-color: rgba(244,114,182,0.4);
    box-shadow: 0 0 0 2px rgba(244,114,182,0.1);
}

.trigger-text {
    flex: 1;
    color: var(--text);
}

.trigger-count {
    color: var(--accent-3);
    font-weight: 600;
}

.trigger-icon {
    color: var(--muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.personalities-trigger.active .trigger-icon {
    transform: rotate(180deg);
}

.personalities-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(15,15,17,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.personalities-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.personalities-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.personality-item {
    --c: #ff5ad5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.personality-item:hover:not(.disabled) {
    background: rgba(255,255,255,0.05);
}

.personality-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.personality-checkbox-wrapper {
    position: relative;
    flex-shrink: 0;
}

.personality-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.personality-checkbox-custom {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.02);
    transition: all 0.15s ease;
    position: relative;
}

.personality-item input[type="checkbox"]:checked + .personality-checkbox-custom {
    background: color-mix(in srgb, var(--c) 90%, transparent);
    border-color: var(--c);
}

.personality-item input[type="checkbox"]:checked + .personality-checkbox-custom::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    border-radius: 1px;
}

.personality-item input[type="checkbox"]:disabled + .personality-checkbox-custom {
    opacity: 0.4;
    cursor: not-allowed;
}

.personality-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: radial-gradient(12px 12px at 30% 30%, rgba(255,255,255,.35), transparent 60%),
                linear-gradient(145deg, color-mix(in srgb, var(--c) 92%, #000 8%), color-mix(in srgb, var(--c) 70%, #000 30%));
    box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 8px 18px rgba(0,0,0,.35);
    flex-shrink: 0;
}

.personality-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.personality-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.personality-desc {
    font-size: 12px;
    color: var(--muted);
    margin-left: auto;
    text-align: right;
    max-width: 200px;
}

.personalities-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.personalities-hint {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

@media (max-width: 640px) {
    .personality-desc {
        display: none;
    }
}

/* Showcase Modal */
/* =========================================================
   Showcase Modal + Live Preview (CLEAN + FIXED)
   - No iframe inset/padding wars
   - No object-fit: contain
   - No max-height clamp chains (-350px etc.)
   - Phone frame keeps 9:16 and iframe fills edge-to-edge
========================================================= */

.showcase-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}

.showcase-modal[aria-hidden="false"],
.showcase-modal:not([aria-hidden="true"]){
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.showcase-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
}

.showcase-content{
  position: relative;
  z-index: 1;
  width: min(92vw, 920px);
  max-height: min(94vh, 920px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15,15,17,.98), rgba(22,18,25,.98));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.60);
  transform: scale(.98);
  transition: transform .25s ease;
}

.showcase-modal[aria-hidden="false"] .showcase-content{
  transform: scale(1);
}

.showcase-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--dashboard-panel-border);
  background: var(--dashboard-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 10px;
  color: var(--text);
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  z-index: 10;
}

/* Same surface as .primary / “Start Creating Now” — explicit colors so blog-theme.css :root --accent (#6cc0ff) does not override */
.showcase-close:hover{
  background: linear-gradient(135deg, #c53c4f, #e04a5f);
  border-color: rgba(255, 255, 255, 0.22);
  color: #0f0f11;
  box-shadow: 0 8px 24px rgba(197, 60, 79, 0.4);
  transform: scale(1.05);
}

.showcase-header{
  display: none; /* Hidden to give more space to phone frame */
}

.showcase-header h2,
.showcase-header p{
  display: none;
}

/* Close btn is position:absolute — flex children are live-preview + footer only */
.showcase-live-preview{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 48px 18px 10px;
  overflow: hidden;
}

.showcase-preview-header{
  display: none; /* Hidden to give more space to phone frame */
}

.showcase-preview-header h3,
.showcase-theme-indicator,
.theme-current-name,
.theme-counter{
  display: none;
}

.showcase-preview-container{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Phone + sticky-note: centered as a pair (1fr | phone column | note | 1fr) so nothing hugs the left edge */
.showcase-preview-cluster{
  display: grid;
  grid-template-columns: minmax(8px, 1fr) auto auto minmax(8px, 1fr);
  align-items: center;
  column-gap: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Phone + rotating feature lines share one column so text centers on the handset */
.showcase-phone-column{
  grid-column: 2;
  justify-self: end;
  margin-right: clamp(10px, 2.5vw, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(220px, 58vw);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 8px;
}

/*
  Smaller, clearly portrait 9:16 phone. Width drives size; max-height is loose enough
  that it does not squash the frame into a “wide short” box (that was the squat look).
*/
.showcase-phone-frame{
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(62vh, calc(100dvh - 240px), calc(100vh - 240px));
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 18px 54px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.10) inset;
}

/* Optional "notch" indicator */
.showcase-phone-frame::before{
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  z-index: 3;
}

/* Inner edge highlight (no padding needed) */
.showcase-phone-frame::after{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.10) inset,
    0 0 0 1px rgba(0,0,0,.55) inset;
  z-index: 2;
}

/* IFRAME: fill the frame edge-to-edge (THIS is the fix) */
.showcase-iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  display: block;
  background: var(--bg);
  opacity: 1;
  pointer-events: none;

  /* IMPORTANT: kill "contain" behavior */
  object-fit: unset;
}

/* Sticky-note URL — centered in the area to the right of the phone, vertically aligned with the handset */
.showcase-url-note{
  position: relative;
  grid-column: 3;
  justify-self: start;
  align-self: center;
  /* Wide enough for https://papalove.me/yourname on one line at typical font sizes */
  max-width: min(400px, 100%);
  width: max-content;
  padding: 20px 16px 14px;
  margin: 0;
  border-radius: 3px 14px 14px 4px;
  background:
    linear-gradient(155deg, #fffbeb 0%, #fef08a 42%, #fde047 100%);
  color: #3f2e1f;
  box-shadow:
    0 10px 24px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.75) inset,
    0 0 0 1px rgba(180, 140, 40, .25);
  transform: rotate(-1.5deg);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.showcase-url-note-pin{
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f472b6, #c53c4f 55%, #8b1530);
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
}

.showcase-url-note-text{
  margin: 0;
  font-size: clamp(11px, 2.6vw, 14px);
  font-weight: 600;
  line-height: 1.45;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.showcase-url-prefix{
  color: #4b5563;
  font-weight: 500;
}

.showcase-url-highlight{
  display: inline;
  padding: 2px 5px;
  margin: 0 1px;
  border-radius: 5px;
  background: linear-gradient(120deg, #facc15 0%, #eab308 55%, #ca8a04 100%);
  color: #422006;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(161, 98, 7, .35);
}

@media (max-width: 400px){
  .showcase-preview-cluster{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    row-gap: 14px;
    column-gap: 0;
  }
  .showcase-phone-column{
    grid-column: auto;
    justify-self: center;
    margin-right: 0;
    width: min(220px, 58vw);
  }
  .showcase-url-note{
    grid-column: auto;
    justify-self: center;
    max-width: min(400px, calc(100vw - 48px));
    min-width: 0;
    width: max-content;
    transform: rotate(0deg);
  }
}

/* Feature lines: same width as phone, centered on the phone’s horizontal axis */
.showcase-features{
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.showcase-features-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.showcase-features-list li{
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  /* One line only; smaller type so it fits the phone column */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(8px, 2.8vw, 11px);
  line-height: 1.35;
  color: var(--muted);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.showcase-features-list li.active{
  opacity: 1;
  transform: translateY(0);
}

.showcase-features-list li::before{
  content: "✨ ";
  font-size: 0.95em;
  margin-right: 0;
}

.showcase-controls{
  flex-shrink: 0;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;

  margin-top: 8px;
  padding: 10px 0 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(15,15,17,.96);
}

.showcase-prev-btn,
.showcase-next-btn{
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--dashboard-panel-border);
  background: var(--dashboard-panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.showcase-prev-btn:hover,
.showcase-next-btn:hover{
  background: var(--dashboard-panel-hover);
  border-color: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

.showcase-theme-dots{
  display: flex;
  gap: 8px;
}

.showcase-theme-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  cursor: pointer;
  transition: all .18s ease;
}

.showcase-theme-dot.active{
  background: var(--accent-3);
  width: 24px;
  border-radius: 6px;
}

.showcase-footer{
  flex: 0 0 auto;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 12px;
  justify-content: center;
  background: rgba(255,255,255,.02);
}

.showcase-footer .primary,
.showcase-footer .ghost{
  min-width: 160px;
}

@media (max-width: 768px){
  .showcase-content{
    width: min(96vw, 920px);
    max-height: min(96vh, 900px);
  }
  .showcase-live-preview{ padding: 44px 12px 8px; }
  .showcase-phone-frame{
    width: min(200px, 56vw);
    max-height: min(58vh, calc(100dvh - 230px), calc(100vh - 230px));
    min-height: 0;
    border-radius: 20px;
  }
  .showcase-phone-frame::before{ width: 38px; top: 10px; height: 3px; }
  .showcase-footer{ padding: 14px 12px; flex-direction: column; }
  .showcase-footer .primary,
  .showcase-footer .ghost{ width: 100%; min-width: unset; }
}

@media (max-width: 480px){
  .showcase-phone-frame{
    width: min(180px, 54vw);
    max-height: min(54vh, calc(100dvh - 220px), calc(100vh - 220px));
    min-height: 0;
  }
}

.showcase-blog-wrapper {
    position: absolute;
    inset: 0;
    padding: 20px;
    overflow-y: auto;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
}

.showcase-blog-wrapper.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.showcase-blog-wrapper.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.showcase-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-blog-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.showcase-blog-brand .logo-img {
    width: 24px;
    height: 24px;
}

.showcase-blog-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-transform: capitalize;
}

.showcase-blog-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.showcase-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(6, 182, 212, 0.3));
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.showcase-profile-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.showcase-profile-tagline {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.showcase-about-section,
.showcase-links-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-section-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.showcase-about-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.showcase-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.showcase-link-card {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    color: var(--text);
}


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

.theme-preview-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.theme-preview-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-preview-header {
    margin-bottom: 12px;
}

.theme-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
}

.theme-preview-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-preview-avatar {
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.2), rgba(6, 182, 212, 0.2));
    border-radius: 8px;
    position: relative;
}

.theme-preview-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.theme-preview-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.theme-preview-desc {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.4;
}

/* Theme-specific preview colors */
.theme-preview-card[data-theme="nature"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.3));
}

.theme-preview-card[data-theme="christmas"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(34, 197, 94, 0.3));
}

.theme-preview-card[data-theme="wonderland"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(168, 85, 247, 0.3));
}

.theme-preview-card[data-theme="pirates"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.3), rgba(55, 65, 81, 0.3));
}

.theme-preview-card[data-theme="paradise"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(6, 182, 212, 0.3));
}

.theme-preview-card[data-theme="cyber"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
}

.theme-preview-card[data-theme="aurora-skies"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
}

.theme-preview-card[data-theme="clockwork-harbor"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.3), rgba(59, 130, 246, 0.3));
}

.theme-preview-card[data-theme="desert-mirage"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 146, 60, 0.3));
}

.theme-preview-card[data-theme="glacier-drift"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.3), rgba(191, 219, 254, 0.3));
}

.theme-preview-card[data-theme="sakura-bloom"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(251, 113, 133, 0.3), rgba(244, 114, 182, 0.3));
}

.theme-preview-card[data-theme="vaporwave-arcade"] .theme-preview-avatar {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.3), rgba(59, 130, 246, 0.3));
}

.about-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.about-example-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.about-example-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-example-card h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.about-example-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}


