/* =========================================================
   BioMu Design System
   Tokens: color, type, spacing. Components below.
   ========================================================= */

:root {
    /* Color */
    --ink: #14131F;
    --ink-soft: #35334A;
    --muted: #6B6B7B;
    --bg: #FAFAFC;
    --surface: #FFFFFF;
    --border: #E7E7F0;

    --primary: #5B5BD6;
    --primary-deep: #2E2A72;
    --primary-tint: #EFEEFC;
    --accent: #FFB800;

    --success: #16A34A;

    /* Type */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --container: 1160px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(20, 19, 31, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 19, 31, 0.08);
    --shadow-lg: 0 24px 60px rgba(46, 42, 114, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 12px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 22px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--primary-deep); box-shadow: var(--shadow-md); }

.btn--ghost {
    background: transparent;
    color: var(--ink);
}
.btn--ghost:hover { background: var(--primary-tint); }

.btn--outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--border);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }

.btn--lg { padding: 15px 28px; font-size: 16px; }

.btn--block { width: 100%; }

/* =========================================================
   Nav
   ========================================================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(250, 250, 252, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
}

.nav__logo {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    flex-shrink: 0;
}

.nav__logo--img {
    background: none;
    object-fit: cover;
}

.nav__links {
    display: flex;
    gap: 28px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
}

.nav__links a { text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--primary); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
}
.nav__toggle span {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
}

/* =========================================================
   Hero
   ========================================================= */

.hero { padding: 72px 24px 40px; }

.hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.hero__title {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero__title-accent {
    color: var(--primary);
    font-style: italic;
}

.hero__tagline {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 46ch;
}

.hero__services {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__service-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 7px 13px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.hero__service-chip svg {
    width: 15px;
    height: 15px;
    color: var(--primary);
    flex-shrink: 0;
}

.claim {
    margin-top: 32px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.claim__field {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 4px 4px 14px;
    flex: 1 1 320px;
    box-shadow: var(--shadow-sm);
}

.claim__prefix {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}

.claim__input {
    border: none;
    outline: none;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 6px;
    width: 100%;
    min-width: 0;
    flex: 1;
    background: transparent;
    color: var(--ink);
}

.claim__hint {
    margin-top: 12px;
    font-size: 13px;
    color: var(--muted);
}

.hero__audience {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__audience span {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-deep);
    background: var(--primary-tint);
    padding: 6px 12px;
    border-radius: 999px;
}

/* ---- Hero visual: signature identity-card element ---- */

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.id-card {
    position: relative;
    width: 320px;
    aspect-ratio: 1.586 / 1;
    background: linear-gradient(155deg, var(--primary-deep) 0%, var(--primary) 65%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: #fff;
    padding: 22px 24px;
    transform: rotate(-6deg);
    overflow: hidden;
    animation: card-float 6s ease-in-out infinite;
}

@keyframes card-float {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-10px); }
}

.id-card__stripe {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 34%;
    background: rgba(255, 255, 255, 0.06);
}

.id-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.id-card__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

.id-card__mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

.id-card__avatar {
    margin-top: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.id-card__name {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
}

.id-card__handle {
    font-family: var(--font-mono);
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.id-card__tags { margin-top: 10px; }
.id-card__tags span {
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: 999px;
}

.id-card__footer {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.85;
}

.id-card__hologram {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, var(--accent), #fff, var(--accent));
    opacity: 0.9;
}

.hero__badge {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hero__badge strong { font-family: var(--font-display); font-size: 18px; }
.hero__badge span { font-size: 11px; color: var(--muted); }

.hero__badge--views { top: 6%; right: -4%; }
.hero__badge--link { bottom: 10%; left: -6%; }

/* =========================================================
   Audience strip
   ========================================================= */

.strip {
    max-width: var(--container);
    margin: 0 auto;
    padding: 32px 24px 8px;
    text-align: center;
}

.strip__label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.strip__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.strip__chips span {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
}

/* =========================================================
   Section shared
   ========================================================= */

.section-head {
    max-width: 620px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    margin-top: 8px;
}

.section-lede {
    margin-top: 12px;
    color: var(--muted);
    font-size: 16px;
}

/* =========================================================
   Features
   ========================================================= */

.features {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px 24px;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.feature-card {
    flex: 1 1 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-grid .feature-card:nth-child(odd):hover {
    transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-8px);
}
.feature-grid .feature-card:nth-child(even):hover {
    transform: perspective(900px) rotateX(3deg) rotateY(4deg) translateY(-8px);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 16px;
}

.feature-card__badge-new {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #E0574C;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 4px;
    animation: biomuNewBadgePulse 2s ease-in-out infinite;
}
@keyframes biomuNewBadgePulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .feature-card__badge-new { animation: none; }
}

.feature-card p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--primary-tint);
    position: relative;
}

.feature-card__icon::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 11px;
    right: 11px;
    bottom: 11px;
    border-radius: 4px;
    background: var(--primary);
}

.feature-card__icon--products::after { border-radius: 50%; }
.feature-card__icon--theme::after { border-radius: 4px 4px 4px 0; transform: rotate(45deg); top: 13px; left: 13px; right: 13px; bottom: 13px; }
.feature-card__icon--analytics::after { clip-path: polygon(0 100%, 30% 40%, 55% 65%, 100% 0, 100% 100%); }
.feature-card__icon--media::after { clip-path: polygon(30% 15%, 30% 85%, 85% 50%); }

/* =========================================================
   Steps (how it works)
   ========================================================= */

.steps {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px 24px;
}

.steps__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.steps__item {
    padding: 24px 4px;
    border-top: 2px solid var(--border);
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.steps__item:hover {
    border-top-color: var(--primary);
    transform: translateY(-6px);
}

.steps__index {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12), 0 6px 14px rgba(91, 91, 214, 0.25);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.steps__item:hover .steps__index {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 7px 0 rgba(0, 0, 0, 0.12), 0 10px 20px rgba(91, 91, 214, 0.32);
}

.steps__item h3 { font-size: 16px; font-weight: 600; }
.steps__item p { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
    .steps__item, .steps__index { transition: none; }
    .steps__item:hover { transform: none; }
    .steps__item:hover .steps__index { transform: none; }
}

/* =========================================================
   Theme Showcase (Pro themes gallery, landing page)
   Auto-scrolling single-row carousel — content is duplicated
   once in the DOM (see home/index.php) so translateX(-50%)
   loops seamlessly with no visible seam or jump.
   ========================================================= */

.theme-showcase-section {
    max-width: var(--container);
    margin: 96px auto 0;
    padding: 0 24px;
}

.theme-showcase-track-wrap {
    margin-top: 40px;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.theme-showcase-gallery {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 24px;
    animation: biomuThemeScroll 34s linear infinite;
}

.theme-showcase-track-wrap:hover .theme-showcase-gallery {
    animation-play-state: paused;
}

@keyframes biomuThemeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.theme-showcase-card {
    flex: 0 0 auto;
    width: 200px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    border-radius: var(--radius-lg);
}
.theme-showcase-card:hover {
    transform: perspective(900px) rotateX(3deg) translateY(-8px);
}
.theme-showcase-card:hover .theme-showcase-card__image-wrap {
    box-shadow: var(--shadow-lg);
}

.theme-showcase-card__image-wrap {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}
.theme-showcase-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.theme-showcase-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #5B5BD6, #2E2A72);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(46, 42, 114, 0.4);
}

.theme-showcase-card__name {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 640px) {
    .theme-showcase-card { width: 130px; }
    .theme-showcase-gallery { gap: 14px; animation-duration: 40s; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-showcase-gallery { animation: none; }
    .theme-showcase-card { transition: none; }
    .theme-showcase-card:hover { transform: none; }
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.price-card:hover {
    transform: perspective(1000px) rotateX(3deg) translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.price-card h3 { font-size: 18px; font-weight: 600; }

.price-card__price {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
}
.price-card__price span { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); }

.price-card__list {
    margin: 24px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    flex: 1;
}

.price-card__list li { padding-left: 22px; position: relative; }
.price-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.price-card--featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}
.price-card--featured:hover {
    transform: perspective(1000px) rotateX(3deg) translateY(-16px);
}

.price-card__badge {
    position: absolute;
    top: -13px;
    left: 26px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 999px;
}
.price-card__badge--promo {
    background: #E0574C;
    animation: biomuPromoPulse 2s ease-in-out infinite;
}
@keyframes biomuPromoPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .price-card__badge--promo { animation: none; }
}

.price-card__price-original {
    display: block;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}
.price-card__price--promo { color: #E0574C; }

/* =========================================================
   Final CTA
   ========================================================= */

.cta {
    position: relative;
    margin: 96px 24px 0;
    padding: 72px 24px;
    background: linear-gradient(155deg, var(--primary-deep), var(--primary));
    border-radius: var(--radius-lg);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.cta::before,
.cta::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}
.cta::before {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.18);
    top: -60px;
    left: -40px;
    animation: biomuCtaOrbDrift 9s ease-in-out infinite;
}
.cta::after {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.14);
    bottom: -50px;
    right: -30px;
    animation: biomuCtaOrbDrift 11s ease-in-out infinite reverse;
}
@keyframes biomuCtaOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(20px, 16px) scale(1.12); }
}

.cta__inner { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }

.cta h2 { font-size: clamp(26px, 3.4vw, 34px); color: #fff; }

.cta p { margin-top: 12px; opacity: 0.85; font-size: 16px; }

.cta .btn--primary {
    margin-top: 28px;
    background: #fff;
    color: var(--primary-deep);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
}
.cta .btn--primary:hover {
    background: var(--accent);
    color: var(--primary-deep);
    transform: translateY(-4px);
    box-shadow: 0 12px 0 rgba(0, 0, 0, 0.14), 0 16px 24px rgba(0, 0, 0, 0.2);
}
.cta .btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .cta::before, .cta::after { animation: none; }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
    margin-top: 96px;
    border-top: 1px solid var(--border);
    padding: 32px 24px 48px;
}

.footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
}

.footer__note { font-size: 13px; color: var(--muted); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .steps__list { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .price-card--featured { transform: none; }
}

@media (max-width: 860px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { order: -1; margin-bottom: 16px; }
    .id-card { width: 280px; }
    .nav__links { display: none; }
    .nav__toggle { display: flex; }

    .nav.nav--open .nav__links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; }
    .steps__list { grid-template-columns: 1fr; }
    .nav__actions .btn--ghost { display: none; }
    .hero { padding-top: 40px; }
}

/* =========================================================
   Flash messages
   ========================================================= */

.flash {
    max-width: var(--container);
    margin: 16px auto 0;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.flash--success {
    background: #ECFDF3;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.flash--error {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.flash--note {
    background: #FFFBEB;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.nav__greeting {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
}

.nav__logout-form { display: inline-flex; }

/* =========================================================
   Auth pages (login / register)
   ========================================================= */

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
}

.auth-body--gradient {
    background: linear-gradient(-45deg, #2E2A72, #5B5BD6, #7B5FE0, #2E2A72);
    background-size: 400% 400%;
    animation: biomuGradientShift 16s ease infinite;
}

.auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    padding: 40px 36px;
}

.auth-card__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-card__logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.auth-card__logo-fallback {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.auth-card h1 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 6px;
}

.auth-card__lede {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
}

.auth-card .flash { margin: 20px 0 0; max-width: none; }

.auth-card__footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}

.auth-card__footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.auth-card__footer a:hover { text-decoration: underline; }

/* =========================================================
   Form components
   ========================================================= */

.form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.form-input {
    font-family: var(--font-body);
    font-size: 15px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}

.form-prefix-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 4px 0 14px;
    background: var(--surface);
    max-width: 100%;
}

.form-prefix-field span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.form-input--plain {
    border: none;
    padding: 11px 8px;
    box-shadow: none !important;
    flex: 1;
    min-width: 0;
}
.form-input--plain:focus { box-shadow: none; }

.form-error {
    font-size: 12px;
    color: #B91C1C;
    margin: 0;
}

/* =========================================================
   Dashboard app shell
   ========================================================= */

.app-shell {
    margin: 0;
    display: flex;
    min-height: 100vh;
    background: var(--bg);
    font-family: var(--font-body);
    color: var(--ink);
}

.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.app-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    color: var(--ink);
    padding: 0 8px;
    margin-bottom: 28px;
}

.app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    position: relative;
}

.app-sidebar__link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
}
.app-sidebar__link:hover svg,
.app-sidebar__link.is-active svg { opacity: 1; }

.app-sidebar__label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-sidebar__badge-count {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}
.app-sidebar__link.is-active .app-sidebar__badge-count { background: #fff; color: var(--primary-deep); }

.app-sidebar__link:hover { background: var(--primary-tint); color: var(--primary-deep); }

.app-sidebar__link.is-active {
    background: var(--primary-tint);
    color: var(--primary-deep);
    font-weight: 600;
}

.app-sidebar__link--soon {
    color: var(--muted);
    cursor: default;
}
.app-sidebar__link--soon:hover { background: transparent; color: var(--muted); }

.app-sidebar__link--soon em {
    font-style: normal;
    font-size: 10px;
    font-family: var(--font-mono);
    background: var(--border);
    color: var(--muted);
    padding: 2px 6px;
    border-radius: 999px;
}

.app-sidebar__logout { margin-top: 16px; }

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 64px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
}

.app-topbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
}
.app-topbar__toggle span { display: block; width: 16px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

.app-topbar__spacer { flex: 1; }

.app-topbar__user { font-size: 14px; font-weight: 600; color: var(--ink-soft); }

.app-content {
    flex: 1;
    padding: 32px 28px 60px;
    max-width: 960px;
    width: 100%;
}

/* ---- Dashboard content components ---- */

.dash-welcome__title {
    font-size: 26px;
    font-weight: 600;
    margin-top: 6px;
}

.dash-url {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-url code {
    font-family: var(--font-mono);
    font-size: 14px;
    background: var(--primary-tint);
    color: var(--primary-deep);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
}

.dash-url__note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.stat-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-card__label { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-card__value { font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.stat-card__value--sm { font-size: 18px; font-family: var(--font-body); }

.dash-panel {
    margin-top: 40px;
}

.dash-panel__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.empty-state {
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    text-align: center;
    color: var(--muted);
}
.empty-state p { margin: 0; }
.empty-state__hint { font-size: 13px; margin-top: 6px !important; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.quick-action:hover { border-color: var(--primary); transform: translateY(-2px); }

.quick-action--soon {
    color: var(--muted);
    cursor: default;
}
.quick-action--soon:hover { border-color: var(--border); transform: none; }
.quick-action--soon em {
    font-style: normal;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
}

.quick-action__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quick-action__icon svg { width: 17px; height: 17px; }

/* =========================================================
   Content summary (user dashboard)
   ========================================================= */

.content-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.content-summary__item {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.content-summary__item:hover { border-color: var(--primary); transform: translateY(-2px); }

.content-summary__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.content-summary__icon svg { width: 18px; height: 18px; }

.content-summary__item strong { display: block; font-size: 18px; font-family: var(--font-display); }
.content-summary__item span { display: block; font-size: 12px; color: var(--muted); }

.content-summary__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}
.content-summary__bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 0 0 0 var(--radius-md);
}

.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

textarea.form-input { resize: vertical; font-family: var(--font-body); }

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 50;
        transition: left 0.2s ease;
        box-shadow: var(--shadow-lg);
    }
    .app-shell--sidebar-open .app-sidebar { left: 0; }
    .app-topbar__toggle { display: flex; }
    .app-content { padding: 24px 18px 48px; }
}

@media (max-width: 560px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
}

/* =========================================================
   Badges (status indicators)
   ========================================================= */

.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}
.badge--success { background: #ECFDF3; color: #15803D; }
.badge--muted { background: var(--border); color: var(--muted); }
.badge--warning { background: #FFFBEB; color: #92400E; }
.badge--danger { background: #FEF2F2; color: #B91C1C; }
.badge--animated { background: linear-gradient(135deg, #FCE7F3, #DBEAFE); color: #7C3AED; }

/* =========================================================
   Publish panel (dashboard)
   ========================================================= */

.publish-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}

.publish-panel__status { font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.publish-panel__url { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 0; }

.publish-panel__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.publish-panel__actions form { display: inline-flex; }

/* =========================================================
   Public Bio Page
   ========================================================= */

.public-body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg) 0%, var(--primary-tint) 100%);
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.public-draft-banner {
    background: #FFFBEB;
    color: #92400E;
    border-bottom: 1px solid #FDE68A;
    text-align: center;
    font-size: 13px;
    padding: 10px 16px;
}
.public-draft-banner a { color: #92400E; font-weight: 700; text-decoration: underline; margin-left: 6px; }

.public-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.public-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 28px;
    text-align: center;
    position: relative;
    animation: biomuCardEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Gentle entrance animation for ALL themes, including Free — a soft
   fade + rise on page load, no JS/scroll-observer needed. Separate
   from the Pro-exclusive reveal-on-scroll/hover effects elsewhere. */
@keyframes biomuCardEntrance {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .public-card { animation: none; }
}

/* Custom photo background (Pro themes): let the card show a soft hint
   of the background image behind it instead of being fully opaque.
   Uses rgba() with separate --surface-rgb components rather than
   color-mix() — much more broadly supported across browsers. */
/* YouTube video background (Pro themes) — fixed layer behind all
   content, scaled via the classic 16:9 cover technique so the iframe
   always fills the viewport without letterboxing or distortion. */
.public-body__video-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.public-body__video-wrap iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    border: none;
}
.public-body__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.7));
}

.public-body--custom-bg .public-card {
    background: rgba(var(--surface-rgb, 255, 255, 255), 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.public-avatar {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-avatar--img {
    background: none;
    object-fit: cover;
    display: block;
}

.public-name {
    margin-top: 20px;
    font-size: 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.public-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1D9BF0;
    box-shadow: 0 0 0 3px color-mix(in srgb, #1D9BF0 18%, transparent);
    animation: biomuVerifiedPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
.public-verified-badge svg { width: 12px; height: 12px; }

@keyframes biomuVerifiedPop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .public-verified-badge { animation: none; }
}

.public-handle {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

.public-tagline {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-deep);
}

.public-bio {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.public-links-empty {
    margin-top: 28px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-size: 13px;
    color: var(--muted);
}
.public-links-empty p { margin: 0; }

.public-footer {
    margin-top: 24px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}
.public-footer strong { color: var(--ink-soft); }

.public-footer-cta {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}
.public-footer-cta a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed color-mix(in srgb, var(--primary) 50%, transparent);
    transition: opacity 0.15s ease;
}
.public-footer-cta a:hover { opacity: 0.75; }

/* =========================================================
   Link management (dashboard)
   ========================================================= */

.link-quota {
    float: right;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    font-family: var(--font-mono);
}

.btn--sm { padding: 7px 14px; font-size: 13px; }

.btn--danger { color: #B91C1C; border-color: #FECACA; }
.btn--danger:hover { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }

.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    flex-wrap: wrap;
}

.link-row__order {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-row__order form { display: inline-flex; }

.link-row__order-btn {
    width: 22px;
    height: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 4px;
    font-size: 9px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}
.link-row__order-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.link-row__order-btn:disabled { opacity: 0.3; cursor: default; }

.link-row__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 180px;
    gap: 2px;
}
.link-row__info strong { font-size: 14px; }
.link-row__info span { font-size: 12px; color: var(--muted); word-break: break-all; }
.link-row__meta { font-family: var(--font-mono); }

.link-row__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.link-row__actions form { display: inline-flex; }

/* =========================================================
   Public link buttons (Bio Page)
   ========================================================= */

.public-links {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.public-link-btn {
    display: block;
    background: var(--primary-tint);
    color: var(--primary-deep);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, transform 0.15s ease;
}
.public-link-btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

/* Gentle entrance for Free themes only — Pro themes use .reveal
   (scroll-triggered via JS) instead, so :not(.reveal) here prevents
   this animation's final opacity:1 from overriding .reveal's
   opacity:0 and breaking the existing scroll-reveal mechanism. */
.public-link-btn:not(.reveal) {
    animation: biomuLinkEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes biomuLinkEntrance {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.public-links .public-link-btn:not(.reveal):nth-child(1) { animation-delay: 0.15s; }
.public-links .public-link-btn:not(.reveal):nth-child(2) { animation-delay: 0.20s; }
.public-links .public-link-btn:not(.reveal):nth-child(3) { animation-delay: 0.25s; }
.public-links .public-link-btn:not(.reveal):nth-child(4) { animation-delay: 0.30s; }
.public-links .public-link-btn:not(.reveal):nth-child(5) { animation-delay: 0.35s; }
.public-links .public-link-btn:not(.reveal):nth-child(n+6) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .public-link-btn { animation: none; }
}

/* =========================================================
   Theme picker (dashboard)
   ========================================================= */

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.theme-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
}

.theme-card--current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

.theme-card__preview {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.theme-card__swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.theme-card__swatch--sm { width: 18px; height: 18px; }

.theme-card__body { padding: 14px; }

.theme-card__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-card__locked {
    pointer-events: none;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .theme-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Theme effects — fixed, predefined classes only.
   Theme config (from DB) only ever toggles these class names on/off;
   it never injects arbitrary CSS/JS. Keeps theming data-driven without
   turning the database into an executable stylesheet source.
   ========================================================= */

/* ---- Animated gradient background ---- */
.public-body.theme-bg-animated {
    background: linear-gradient(-45deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4));
    background-size: 400% 400%;
    animation: biomuGradientShift 14s ease infinite;
}

@keyframes biomuGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Glassmorphism card ---- */
.public-card.theme-card-glass {
    background: color-mix(in srgb, var(--surface) 22%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, white 22%, transparent);
    box-shadow: var(--shadow-lg);
}

/* ---- Glowing avatar ring ---- */
.public-avatar.theme-avatar-glow {
    animation: biomuAvatarPulse 2.6s ease-in-out infinite;
}

@keyframes biomuAvatarPulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent),
            0 0 20px 4px color-mix(in srgb, var(--primary) 35%, transparent);
    }
    50% {
        box-shadow:
            0 0 0 6px color-mix(in srgb, var(--primary) 45%, transparent),
            0 0 32px 10px color-mix(in srgb, var(--primary) 55%, transparent);
    }
}

/* ---- Button: gradient fill ---- */
.public-link-btn.theme-btn-gradient {
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, white));
    color: #fff;
}
.public-link-btn.theme-btn-gradient:hover {
    filter: brightness(1.08);
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, white));
    color: #fff;
}

/* ---- Button: shine sweep ---- */
.public-link-btn.theme-btn-shine {
    position: relative;
    overflow: hidden;
}
.public-link-btn.theme-btn-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: biomuShineSweep 3.4s ease-in-out infinite;
}

@keyframes biomuShineSweep {
    0%   { left: -150%; }
    55%  { left: 150%; }
    100% { left: 150%; }
}

/* ---- Button: playful bounce on hover ---- */
.public-link-btn.theme-btn-bounce:hover {
    animation: biomuBtnBounce 0.5s ease;
}

@keyframes biomuBtnBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    30%      { transform: translateY(-6px) scale(1.03); }
    60%      { transform: translateY(0) scale(0.98); }
}

/* ---- Button: universal touch/hover feedback for every Pro theme ---- */
.public-link-btn.theme-btn-touch {
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}
/* Skip hover-lift when btn-bounce is also present (it already owns :hover) —
   the :active press feedback below still applies either way. */
.public-link-btn.theme-btn-touch:not(.theme-btn-bounce):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.public-link-btn.theme-btn-touch:active {
    transform: scale(0.96) translateY(0);
    transition-duration: 0.08s;
}

/* ---- No-card theme: content floats directly on the page background.
   Padding is intentionally kept (only the base .public-card rule's
   padding) so content doesn't touch the viewport edges. ---- */
.public-card.theme-no-card {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.public-card.theme-no-card .public-name,
.public-card.theme-no-card .public-handle,
.public-card.theme-no-card .public-tagline,
.public-card.theme-no-card .public-bio {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.public-card.theme-no-card .public-links-empty {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ---- 3D floating buttons: layered shadow gives a raised, pressable
   feel; a slow idle float adds soft movement without being distracting.
   Animation pauses on hover/active so it never fights the interaction
   transform. ---- */
.public-link-btn.theme-btn-3d {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 18px rgba(0, 0, 0, 0.3);
    animation: biomuBtn3dFloat 3.2s ease-in-out infinite;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.public-link-btn.theme-btn-3d:hover {
    animation-play-state: paused;
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-4px);
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 16px 26px rgba(0, 0, 0, 0.4);
}
.public-link-btn.theme-btn-3d:active {
    animation-play-state: paused;
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.3);
    transition-duration: 0.06s;
}
@keyframes biomuBtn3dFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
    .public-link-btn.theme-btn-3d { animation: none; }
}

/* =========================================================
   Distinct decorative backgrounds per Pro theme — pure CSS
   blurred shapes (no external images), each theme gets its own
   palette and drift animation. Sits behind content via ::before.
   ========================================================= */

.public-body[class*="theme-bg-"] { isolation: isolate; }
.public-body[class*="theme-bg-"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}
.public-page { position: relative; z-index: 1; }

/* Midnight — soft starfield + single indigo glow */
.theme-bg-midnight::before {
    background-image:
        radial-gradient(circle, #F4F4F7 1px, transparent 1.5px),
        radial-gradient(circle, #818CF8 1.5px, transparent 2px),
        radial-gradient(ellipse 320px 320px at 80% 10%, rgba(129,140,248,0.25), transparent 70%);
    background-size: 90px 90px, 140px 140px, 100% 100%;
    background-position: 0 0, 40px 60px, 0 0;
    animation: biomuStarDrift 40s linear infinite;
}
@keyframes biomuStarDrift {
    from { background-position: 0 0, 40px 60px, 0 0; }
    to   { background-position: -180px 90px, -280px 150px, 0 0; }
}

/* Ocean — calm layered wave blobs */
.theme-bg-ocean::before {
    background-image:
        radial-gradient(ellipse 380px 220px at 15% 15%, rgba(8,145,178,0.18), transparent 70%),
        radial-gradient(ellipse 300px 300px at 90% 80%, rgba(103,232,249,0.25), transparent 70%);
    animation: biomuBlobDrift1 18s ease-in-out infinite;
}

/* Aurora — extra glow bands layered atop the animated gradient body */
.theme-bg-aurora::before {
    background-image:
        radial-gradient(ellipse 400px 200px at 20% 20%, rgba(125,211,252,0.28), transparent 70%),
        radial-gradient(ellipse 350px 250px at 85% 75%, rgba(27,75,107,0.35), transparent 70%);
    animation: biomuBlobDrift2 16s ease-in-out infinite;
}

/* Glam Rose — soft pink/purple bokeh circles */
.theme-bg-rose::before {
    background-image:
        radial-gradient(circle 130px at 12% 20%, rgba(255,79,160,0.35), transparent 70%),
        radial-gradient(circle 170px at 88% 30%, rgba(108,42,166,0.4), transparent 70%),
        radial-gradient(circle 110px at 70% 85%, rgba(178,58,158,0.35), transparent 70%);
    animation: biomuBlobDrift1 14s ease-in-out infinite;
}

/* Emerald Noir — subtle gold sparkle dots, luxury feel */
.theme-bg-emerald::before {
    background-image:
        radial-gradient(circle, #D4AF37 1.5px, transparent 2px),
        radial-gradient(ellipse 300px 300px at 85% 15%, rgba(212,175,55,0.18), transparent 70%);
    background-size: 110px 110px, 100% 100%;
    background-position: 20px 20px, 0 0;
    animation: biomuStarDrift 50s linear infinite;
}

/* Spectrum Pop — playful multicolor blurred blobs */
.theme-bg-spectrum::before {
    background-image:
        radial-gradient(circle 150px at 10% 15%, rgba(124,58,237,0.3), transparent 70%),
        radial-gradient(circle 170px at 90% 20%, rgba(236,72,153,0.28), transparent 70%),
        radial-gradient(circle 140px at 25% 90%, rgba(245,158,11,0.28), transparent 70%);
    animation: biomuBlobDrift2 12s ease-in-out infinite;
}

/* Transparent theme — rich layered mesh gradient carries the whole
   page's visual interest since there's no card background underneath. */
.theme-bg-mesh::before {
    background-image:
        radial-gradient(circle 320px at 12% 18%, rgba(117,151,222,0.55), transparent 70%),
        radial-gradient(circle 360px at 88% 12%, rgba(74,37,116,0.6), transparent 70%),
        radial-gradient(circle 340px at 18% 88%, rgba(43,16,85,0.55), transparent 70%),
        radial-gradient(circle 300px at 92% 82%, rgba(117,151,222,0.45), transparent 70%),
        radial-gradient(circle 260px at 50% 50%, rgba(255,255,255,0.06), transparent 60%);
    animation: biomuMeshDrift 22s ease-in-out infinite;
}
@keyframes biomuMeshDrift {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50%      { transform: scale(1.12) translate(-16px, 12px); }
}

@keyframes biomuBlobDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-18px, 14px) scale(1.05); }
}
@keyframes biomuBlobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(16px, -18px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .public-body[class*="theme-bg-"]::before { animation: none !important; }
    .public-link-btn.theme-btn-touch { transition: none; }
}

/* =========================================================
   Analytics — CSS-only bar chart, no JS/chart library
   ========================================================= */

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    padding-top: 12px;
}

.bar-chart--compact { height: 100px; }

.bar-chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.bar-chart__track {
    flex: 1;
    width: 100%;
    max-width: 32px;
    display: flex;
    align-items: flex-end;
    background: var(--primary-tint);
    border-radius: 6px;
    overflow: hidden;
}

.bar-chart__bar {
    width: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-deep));
    border-radius: 6px 6px 0 0;
    min-height: 3px;
    transition: height 0.3s ease;
}

.bar-chart__label {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
}

.analytics-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ref-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ref-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.ref-row span { color: var(--ink-soft); word-break: break-all; }
.ref-row strong { font-family: var(--font-mono); color: var(--primary-deep); flex-shrink: 0; margin-left: 12px; }

.device-split {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.device-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.device-row span { width: 90px; flex-shrink: 0; }
.device-row strong { width: 40px; text-align: right; font-family: var(--font-mono); flex-shrink: 0; }

.device-row__track {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.device-row__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-deep));
    border-radius: 999px;
}

@media (max-width: 760px) {
    .analytics-split { grid-template-columns: 1fr; }
}

/* =========================================================
   Subscription / plan comparison (dashboard)
   ========================================================= */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.plan-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
}

.plan-card--current {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.plan-card h3 { font-size: 16px; font-weight: 600; }

.plan-card__price {
    margin-top: 6px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}
.plan-card__price span { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); }

.plan-card__features {
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.plan-card__features li {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-soft);
}

.feature-yes { color: #16A34A; font-weight: 700; }
.feature-no { color: var(--muted); }

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

/* =========================================================
   Public: social icons row
   ========================================================= */

.public-social-row {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.public-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.public-social-icon svg { width: 18px; height: 18px; }
.public-social-icon:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow-md); }

/* =========================================================
   Public: product grid
   ========================================================= */

.public-products {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    text-align: left;
}

.public-product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
}

.public-product-card__image-wrap {
    position: relative;
    overflow: hidden;
}

.public-product-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.public-product-card__body {
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.public-product-card__body strong {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.public-product-card__body span {
    font-size: 11px;
    font-weight: 300;
    color: var(--muted);
}

.public-product-card__btn {
    margin-top: 6px;
    text-align: center;
    padding: 7px;
    font-size: 11px;
}

/* ---- Product shine sweep — draws attention on premium themes ---- */
.theme-product-shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: biomuProductShineSweep 3.4s ease-in-out infinite;
}
.public-products > *:nth-child(2) .theme-product-shine::after { animation-delay: 0.5s; }
.public-products > *:nth-child(3) .theme-product-shine::after { animation-delay: 1s; }

@keyframes biomuProductShineSweep {
    0%   { left: -60%; }
    45%  { left: 140%; }
    100% { left: 140%; }
}

@media (prefers-reduced-motion: reduce) {
    .theme-product-shine::after { animation: none; display: none; }
}

@media (max-width: 380px) {
    .public-products { grid-template-columns: 1fr; }
}

/* =========================================================
   Scroll-reveal (landing page)
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =========================================================
   Hero decorative gradient orbs
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.hero__orb--1 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    top: -120px;
    right: -80px;
    animation: orbDrift1 16s ease-in-out infinite;
}

.hero__orb--2 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    bottom: -100px;
    left: -60px;
    animation: orbDrift2 20s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 40px) scale(1.08); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(30px, -30px) scale(1.1); }
}

.hero__inner { position: relative; z-index: 1; }

/* =========================================================
   Testimonials (landing page)
   ========================================================= */

.testimonials {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px 24px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.testimonial-grid .testimonial-card:nth-child(3n+1):hover { transform: perspective(900px) rotateY(-3deg) translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial-grid .testimonial-card:nth-child(3n+2):hover { transform: perspective(900px) translateY(-8px); box-shadow: var(--shadow-md); }
.testimonial-grid .testimonial-card:nth-child(3n+3):hover { transform: perspective(900px) rotateY(3deg) translateY(-6px); box-shadow: var(--shadow-md); }

.testimonial-card__stars {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-card__quote {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-soft);
    flex: 1;
}

.testimonial-card__author {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
}

.testimonial-card__author strong { display: block; font-size: 13px; }
.testimonial-card__author span { display: block; font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .testimonial-grid { grid-template-columns: 1fr; }
    .hero__orb { display: none; }
}

/* =========================================================
   Hero: 3D tilt + parallax setup
   ========================================================= */

.hero__visual {
    perspective: 1200px;
}

#hero-card {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

/* When JS parallax is driving transform via inline style, pause the
   ambient CSS float animation so the two don't fight over the same
   property — JS re-applies an equivalent bob via translateY itself. */
.hero__visual.is-tilting #hero-card {
    animation-play-state: paused;
}

/* =========================================================
   FAQ accordion — native <details>/<summary>, zero JS required
   ========================================================= */

.faq {
    max-width: 760px;
    margin: 0 auto;
    padding: 96px 24px 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item[open] {
    border-color: var(--primary);
}

.faq-item__question {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::after {
    content: "+";
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__question::after {
    transform: rotate(135deg);
}

.faq-item__answer {
    padding: 0 22px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    animation: faqOpen 0.25s ease;
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Platform showcase (landing page — generic social icons)
   ========================================================= */

.platform-showcase {
    max-width: var(--container);
    margin: 40px auto 0;
    padding: 64px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-tint) 0%, #fff 55%, color-mix(in srgb, var(--accent) 12%, white) 100%);
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 20px;
    max-width: 720px;
    margin: 0 auto;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 84px;
}

.platform-badge__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.platform-badge__icon svg { width: 26px; height: 26px; }

.platform-badge:hover .platform-badge__icon {
    transform: perspective(600px) rotateX(12deg) translateY(-6px) rotate(-6deg) scale(1.1);
    box-shadow: var(--shadow-md);
}

.platform-badge__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
}

/* =========================================================
   Product showcase (landing page)
   ========================================================= */

.product-showcase {
    max-width: var(--container);
    margin: 96px auto 0;
    padding: 0 24px;
}

.product-gallery {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.product-mock {
    position: relative;
    width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: productFloat 5s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.product-gallery .product-mock:nth-child(2) { animation-delay: 0.6s; }
.product-gallery .product-mock:nth-child(3) { animation-delay: 1.2s; }
.product-mock:hover {
    animation-play-state: paused;
    transform: perspective(900px) rotateX(4deg) rotateY(-6deg) translateY(-10px) scale(1.03);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

@keyframes productFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.product-mock__ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.product-mock__image {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    overflow: hidden;
}

.product-mock__image--apparel { background: linear-gradient(135deg, #FF9F6B, #E0574C); }
.product-mock__image--digital { background: linear-gradient(135deg, #5B5BD6, #2E2A72); }
.product-mock__image--craft   { background: linear-gradient(135deg, #34C99B, #1C8C6C); }

.product-mock__icon {
    width: 52px;
    height: 52px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.product-mock__shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: productShineSweep 3.5s ease-in-out infinite;
}

@keyframes productShineSweep {
    0%   { left: -60%; }
    50%  { left: 140%; }
    100% { left: 140%; }
}

.product-mock__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-mock__body strong { font-size: 14px; }

.product-mock__price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary-deep);
    font-weight: 600;
}

.product-mock__btn {
    margin-top: 6px;
    text-align: center;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px;
    border-radius: 999px;
}

@media (max-width: 860px) {
    .product-gallery { gap: 20px; }
}

@media (max-width: 640px) {
    .product-gallery {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .product-mock {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
    }
    .product-mock__icon { width: 30px; height: 30px; }
    .product-mock__ribbon {
        top: 6px;
        left: 6px;
        font-size: 8px;
        padding: 2px 7px;
    }
    .product-mock__body {
        padding: 8px 8px 10px;
        gap: 3px;
    }
    .product-mock__body strong {
        font-size: 11px;
        line-height: 1.25;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .product-mock__price { font-size: 11px; }
    .product-mock__btn {
        font-size: 10px;
        padding: 6px 4px;
        margin-top: 2px;
    }
}

@media (max-width: 480px) {
    .platform-badge { width: 72px; }
    .platform-badge__icon { width: 48px; height: 48px; }
}

/* =========================================================
   Soft gradient backgrounds — additional visual rhythm
   ========================================================= */

.strip {
    background: linear-gradient(180deg, transparent, var(--primary-tint) 50%, transparent);
    border-radius: var(--radius-lg);
}

.steps {
    position: relative;
}
.steps::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 100%;
    background: radial-gradient(ellipse at top, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.testimonials {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
    border-radius: var(--radius-lg);
}

/* =========================================================
   Admin panel — soft-color sidebar + modern touches
   Literal color values used throughout (not color-mix()) since
   this is a structural, always-visible element — same lesson
   learned from the login page background.
   ========================================================= */

.admin-sidebar {
    background: linear-gradient(180deg, #F6F5FD 0%, #FBFAFF 100%);
    border-right: 1px solid #EAE7F7;
}

.admin-shell .app-topbar {
    background: #FBFAFF;
    border-bottom: 1px solid #EAE7F7;
}

/* =========================================================
   Admin dashboard — modern stat cards with icon chips
   ========================================================= */

.admin-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.admin-stat-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-stat-card__icon svg { width: 20px; height: 20px; }

.admin-stat-card__icon--indigo { background: #EEEDFC; color: #5B4FD6; }
.admin-stat-card__icon--green  { background: #E8F8EE; color: #15A05A; }
.admin-stat-card__icon--amber  { background: #FEF3E2; color: #C77D14; }
.admin-stat-card__icon--rose   { background: #FCEAF0; color: #C4306B; }
.admin-stat-card__icon--blue   { background: #E7F1FE; color: #1F6FD6; }

.admin-stat-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-stat-card__label { font-size: 12px; color: var(--muted); font-weight: 500; }
.admin-stat-card__value { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.admin-stat-card__value--sm { font-size: 16px; font-family: var(--font-body); }

.admin-stat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.admin-stat-grid > * { flex: 1 1 220px; }

/* =========================================================
   Admin plan editor
   ========================================================= */

.theme-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.plan-feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.plan-feature-row:last-child { border-bottom: none; }

.plan-feature-row__key {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-soft);
    width: 160px;
    flex-shrink: 0;
}

.plan-feature-row__input { flex: 1; min-width: 0; }

/* =========================================================
   Sidebar — profile header, search, collapse, footer toggle
   All literal colors (not color-mix()) for structural elements —
   same lesson learned from the login page background.
   ========================================================= */

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-profile__avatar-link {
    position: relative;
    flex-shrink: 0;
}

.sidebar-profile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
}

.sidebar-profile__avatar--img { background: none; object-fit: cover; }

.sidebar-profile__status {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22C55E;
    border: 2px solid var(--surface);
}

.sidebar-profile__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sidebar-profile__info strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-profile__info span {
    font-size: 11px;
    color: var(--muted);
}

.sidebar-collapse-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}
.sidebar-collapse-btn:hover { background: var(--primary-tint); color: var(--primary-deep); }
.sidebar-collapse-btn svg { width: 14px; height: 14px; }

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    margin-bottom: 14px;
}
.sidebar-search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.sidebar-search input {
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: var(--ink);
    width: 100%;
    font-family: var(--font-body);
}
.sidebar-search input::placeholder { color: var(--muted); }

.app-sidebar__divider {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 14px 12px 4px;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.theme-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
}

.theme-toggle__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.theme-toggle__btn svg { width: 14px; height: 14px; }

.theme-toggle__btn.is-active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* =========================================================
   Nav theme toggle — compact icon-only light/dark switch for
   the marketing/landing header and auth pages (the dashboard
   sidebar keeps its own larger .theme-toggle segmented control
   above; both read/write the same "biomu_theme" localStorage
   key so the preference stays in sync across the whole app).
   ========================================================= */

.nav-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.nav-theme-toggle:hover { background: var(--primary-tint); color: var(--primary); transform: translateY(-1px); }
.nav-theme-toggle svg { width: 18px; height: 18px; }
.nav-theme-toggle__icon--dark { display: none; }
html[data-theme="dark"] .nav-theme-toggle__icon--light { display: none; }
html[data-theme="dark"] .nav-theme-toggle__icon--dark { display: block; }

/* =========================================================
   Sidebar — collapsed (icon-only) mode, desktop only
   ========================================================= */

@media (min-width: 761px) {
    html[data-sidebar="collapsed"] .app-sidebar { width: 76px; padding-left: 12px; padding-right: 12px; }
    html[data-sidebar="collapsed"] .sidebar-profile__info,
    html[data-sidebar="collapsed"] .sidebar-search,
    html[data-sidebar="collapsed"] .app-sidebar__label,
    html[data-sidebar="collapsed"] .app-sidebar__badge-count,
    html[data-sidebar="collapsed"] .app-sidebar__divider,
    html[data-sidebar="collapsed"] .theme-toggle__btn span,
    html[data-sidebar="collapsed"] .sidebar-footer .btn--outline,
    html[data-sidebar="collapsed"] .app-sidebar__logout span,
    html[data-sidebar="collapsed"] .sidebar-footer form span {
        display: none;
    }
    html[data-sidebar="collapsed"] .app-sidebar__logout button,
    html[data-sidebar="collapsed"] .sidebar-footer form button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    html[data-sidebar="collapsed"] .app-sidebar__logout svg,
    html[data-sidebar="collapsed"] .sidebar-footer form svg {
        margin-right: 0 !important;
    }
    html[data-sidebar="collapsed"] .sidebar-profile { justify-content: center; }
    html[data-sidebar="collapsed"] .sidebar-collapse-btn { transform: rotate(180deg); }
    html[data-sidebar="collapsed"] .app-sidebar__link { justify-content: center; }
    html[data-sidebar="collapsed"] .theme-toggle { flex-direction: column; }
    html[data-sidebar="collapsed"] .theme-toggle__btn { padding: 8px; }

    /* Tooltip on hover when collapsed */
    html[data-sidebar="collapsed"] [data-tooltip] { position: relative; }
    html[data-sidebar="collapsed"] [data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 10px;
        background: var(--ink);
        color: var(--bg);
        font-size: 12px;
        font-weight: 500;
        padding: 6px 10px;
        border-radius: 6px;
        white-space: nowrap;
        z-index: 50;
        pointer-events: none;
    }
}

/* =========================================================
   Dark mode — token overrides for the app shell (dashboard,
   admin, marketing/landing header and auth pages).
   Scoped to html[data-theme="dark"] so the public Bio Page (which
   has its own independent, per-page theme system — including
   several already-dark theme options such as Midnight and
   Emerald Noir — chosen by the page owner) is never affected by
   this site-wide toggle.
   ========================================================= */

html[data-theme="dark"] {
    --bg: #14131F;
    --surface: #1E1D2E;
    --ink: #F2F1F7;
    --ink-soft: #D2D0DE;
    --muted: #928FA3;
    --border: #322F42;
    --primary-tint: #26234A;
}

html[data-theme="dark"] .admin-sidebar {
    background: linear-gradient(180deg, #1A1830 0%, #17162A 100%);
    border-right: 1px solid #2C2A44;
}
html[data-theme="dark"] .admin-sidebar__badge { background: #2C2A50; color: #A9A2F5; }
html[data-theme="dark"] .admin-shell .app-topbar { background: #17162A; border-color: #2C2A44; }

/* Marketing/landing sticky nav: was a hardcoded light rgba(), so
   it needs an explicit dark equivalent (matches --bg #14131F). */
html[data-theme="dark"] .nav { background: rgba(20, 19, 31, 0.85); }

/* Flash messages, form errors and status badges used light pastel
   backgrounds with dark text, hand-picked for the light palette —
   contrast-checked (WCAG AA, >= 4.5:1) equivalents for dark below. */
html[data-theme="dark"] .flash--success { background: #123524; color: #6EE7B7; border-color: #1D5A3D; }
html[data-theme="dark"] .flash--error { background: #3A1E22; color: #F87171; border-color: #5C2A2E; }
html[data-theme="dark"] .flash--note { background: #3A2E14; color: #FBBF24; border-color: #5C4A1E; }
html[data-theme="dark"] .form-error { color: #F87171; }
html[data-theme="dark"] .btn--danger { color: #F87171; border-color: #5C2A2E; }
html[data-theme="dark"] .btn--danger:hover { background: #3A1E22; border-color: #5C2A2E; color: #F87171; }
html[data-theme="dark"] .badge--success { background: #123524; color: #6EE7B7; }
html[data-theme="dark"] .badge--warning { background: #3A2E14; color: #FBBF24; }
html[data-theme="dark"] .badge--danger { background: #3A1E22; color: #F87171; }
html[data-theme="dark"] .badge--animated { background: linear-gradient(135deg, #3A2350, #1E2A50); color: #C4B5FD; }

/* Admin dashboard stat-card icon chips (pastel light chips on a
   dark surface would look washed out — deepen the tint, keep hue). */
html[data-theme="dark"] .admin-stat-card__icon--indigo { background: #26234A; color: #A9A2F5; }
html[data-theme="dark"] .admin-stat-card__icon--green  { background: #123524; color: #6EE7B7; }
html[data-theme="dark"] .admin-stat-card__icon--amber  { background: #3A2E14; color: #FBBF24; }
html[data-theme="dark"] .admin-stat-card__icon--rose   { background: #3A1E30; color: #F4A8CB; }
html[data-theme="dark"] .admin-stat-card__icon--blue   { background: #17223E; color: #7FB3F5; }

/* =========================================================
   Public bio page: share button + share modal (Pro themes only)
   Colors use theme CSS variables (--surface, --ink, --primary,
   etc.) so the popup automatically matches whichever theme the
   visitor is viewing — not a fixed white/black look.
   ========================================================= */

.public-page { position: relative; }

.public-share-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(3px);
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.18s ease;
}
.public-share-btn svg { width: 17px; height: 17px; }
.public-share-btn:hover { background: rgba(0, 0, 0, 0.55); transform: translateY(-2px) scale(1.05); }
.public-share-btn:active { transform: scale(0.94); }

.public-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.public-share-modal[hidden] { display: none; }

.public-share-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(4px);
    animation: biomuShareBackdropIn 0.3s ease;
}

@keyframes biomuShareBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.public-share-modal__card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: biomuShareModalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes biomuShareModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.public-share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.public-share-modal__header h2 { font-size: 17px; font-weight: 700; margin: 0; color: var(--ink); }

.public-share-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    display: flex;
    border-radius: 50%;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.public-share-modal__close svg { width: 18px; height: 18px; }
.public-share-modal__close:hover { color: var(--ink); background: var(--primary-tint); transform: rotate(90deg); }

.public-share-modal__body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.public-share-modal__qr {
    border-radius: 12px;
    border: 1px solid var(--border);
    animation: biomuShareItemIn 0.3s ease 0.08s both;
}

.public-share-modal__options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.public-share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, transform 0.15s ease;
    animation: biomuShareItemIn 0.3s ease both;
}
.public-share-modal__options .public-share-option:nth-child(1) { animation-delay: 0.12s; }
.public-share-modal__options .public-share-option:nth-child(2) { animation-delay: 0.16s; }
.public-share-modal__options .public-share-option:nth-child(3) { animation-delay: 0.20s; }
.public-share-modal__options .public-share-option:nth-child(4) { animation-delay: 0.24s; }

.public-share-option:hover { background: var(--primary-tint); transform: translateX(3px); }

@keyframes biomuShareItemIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.public-share-option__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.public-share-option__icon svg { width: 16px; height: 16px; }

.public-share-modal__copy {
    width: 100%;
    display: flex;
    gap: 8px;
    animation: biomuShareItemIn 0.3s ease 0.28s both;
}
.public-share-modal__copy input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
}
.public-share-modal__copy button {
    flex-shrink: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.public-share-modal__copy button:hover { opacity: 0.9; transform: translateY(-1px); }
.public-share-modal__copy button.is-copied { background: #16A34A; }

@media (prefers-reduced-motion: reduce) {
    .public-share-modal__backdrop,
    .public-share-modal__card,
    .public-share-modal__qr,
    .public-share-option,
    .public-share-modal__copy {
        animation: none;
    }
}

@media (max-width: 420px) {
    .public-share-modal__card { max-width: 100%; }
}

/* ==========================================================================
   PWA — "Install App" floating button (injected by assets/js/pwa.js only
   when the browser actually fires beforeinstallprompt — hidden otherwise,
   so it never shows on unsupported browsers or once already installed).
   ========================================================================== */
.pwa-install-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--primary, #5B5BD6);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.18));
    transition: transform 0.15s ease, background 0.15s ease;
}
.pwa-install-btn:hover { background: var(--primary-deep, #4a4ac2); transform: translateY(-2px); }
.pwa-install-btn svg { flex-shrink: 0; }

@media (max-width: 480px) {
    .pwa-install-btn span { display: none; }
    .pwa-install-btn { padding: 12px; }
}

html[data-theme="dark"] .pwa-install-btn {
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}
