/**
 * Subly — dark premium / glass / motion
 */

:root {
    --bg-deep: #0a0a0a;
    --bg: #0f0f0f;
    --bg-raised: #121212;
    --bg-card: rgba(255, 255, 255, 0.035);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --purple: #7c3aed;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --glow-purple: rgba(124, 58, 237, 0.55);
    --glow-blue: rgba(59, 130, 246, 0.45);
    --font: "Inter", system-ui, sans-serif;
    --font-display: "Poppins", var(--font);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --container: 72rem;
    --header-h: 4.25rem;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --reveal-duration: 0.85s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100%;
    z-index: 2000;
    padding: 0.5rem 1rem;
    background: var(--purple);
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
}

.skip-link:focus {
    top: 1rem;
}

/* ——— Glass ——— */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 24px 80px -32px rgba(0, 0, 0, 0.85);
}

.text-gradient {
    background: linear-gradient(120deg, #fff 0%, #c4b5fd 35%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ——— Header ——— */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition:
        background 0.45s var(--ease-out),
        border-color 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out);
}

.site-header.is-scrolled {
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--border);
    box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.9);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    z-index: 2;
}

.logo__mark {
    background: linear-gradient(135deg, #fff 0%, #e9d5ff 40%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo--footer {
    -webkit-text-fill-color: unset;
    background: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 800;
}

.nav-toggle {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 1.25rem;
    height: 2px;
    margin-inline: auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav {
    position: fixed;
    inset: 0;
    top: var(--header-h);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
    padding: 2rem 1.5rem 2.5rem;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.4s var(--ease-out),
        opacity 0.35s,
        visibility 0.35s;
}

.nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.65rem 0;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.2s;
}

.nav-link:hover {
    color: var(--text);
    transform: translateX(4px);
}

.header-cta {
    margin-top: auto;
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }

    .nav {
        position: static;
        flex-direction: row;
        align-items: center;
        padding: 0;
        background: transparent;
        backdrop-filter: none;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        gap: 2rem;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .nav-link {
        padding: 0.5rem 0;
        font-size: 0.9375rem;
    }

    .nav-link:hover {
        transform: none;
    }

    .header-cta {
        margin-top: 0;
    }
}

/* ——— Buttons ——— */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    padding: 0.7rem 1.35rem;
    border-radius: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.2s var(--ease-out),
        box-shadow 0.35s var(--ease-out),
        border-color 0.25s,
        background 0.25s;
}

.btn:active {
    transform: scale(0.97);
}

.btn__label {
    position: relative;
    z-index: 1;
}

.btn__glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 0%, transparent 55%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    pointer-events: none;
}

.btn:hover .btn__glow {
    opacity: 1;
    transform: scale(1);
}

.btn--sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    border-radius: 12px;
}

.btn--lg {
    padding: 0.9rem 1.65rem;
    font-size: 1rem;
    border-radius: 14px;
}

.btn--xl {
    padding: 1.05rem 2.1rem;
    font-size: 1.0625rem;
    border-radius: 16px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--purple) 0%, #6366f1 50%, var(--blue) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 32px -8px var(--glow-purple),
        0 4px 24px -12px var(--glow-blue);
}

.btn--primary:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 12px 48px -8px var(--glow-purple),
        0 8px 40px -10px var(--glow-blue);
    transform: translateY(-2px) scale(1.02);
}

.btn--cta {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 8px 32px -8px var(--glow-purple),
        0 4px 24px -12px var(--glow-blue);
}

.btn--cta:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 12px 48px -8px var(--glow-purple),
        0 8px 40px -10px var(--glow-blue);
    transform: translateY(-2px) scale(1.02);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 24px -8px rgba(124, 58, 237, 0.35);
    transform: translateY(-2px);
}

@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ——— Hero ——— */
.hero {
    position: relative;
    min-height: min(100vh, 900px);
    padding: calc(var(--header-h) + 3.5rem) 0 5rem;
    overflow: hidden;
    --mx: 50%;
    --my: 38%;
}

.hero__aurora {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 70%;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 58, 237, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 15% 30%, rgba(34, 211, 238, 0.12) 0%, transparent 45%);
    filter: blur(2px);
    animation: aurora-pulse 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora-pulse {
    0% {
        opacity: 0.85;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1.05) translateY(2%);
    }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    will-change: transform;
}

.hero__orb--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: 10%;
    right: -5%;
    background: var(--purple);
}

.hero__orb--2 {
    width: min(320px, 55vw);
    height: min(320px, 55vw);
    bottom: 15%;
    left: -8%;
    background: var(--blue);
    opacity: 0.35;
}

.hero__orb--3 {
    width: min(200px, 40vw);
    height: min(200px, 40vw);
    top: 45%;
    left: 35%;
    background: var(--cyan);
    opacity: 0.2;
}

.hero__spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background: radial-gradient(
        600px circle at var(--mx, 50%) var(--my, 40%),
        rgba(124, 58, 237, 0.14) 0%,
        rgba(59, 130, 246, 0.06) 35%,
        transparent 55%
    );
    transition: opacity 0.3s;
}

@media (hover: none) {
    .hero__spotlight {
        opacity: 0.25;
        background: radial-gradient(ellipse at 50% 20%, rgba(124, 58, 237, 0.2), transparent 60%);
    }
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 0 16px var(--glow-purple);
}

.hero__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.1rem, 4vw + 1.2rem, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero__subtitle {
    margin: 0 0 2rem;
    max-width: 34rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__visual {
    position: relative;
    min-height: 320px;
}

.hero-panel {
    padding: 1.35rem 1.5rem 1.5rem;
    border-radius: var(--radius-lg);
}

.hero-panel__top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-panel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.hero-panel__dot:nth-child(1) {
    background: #fb7185;
}

.hero-panel__dot:nth-child(2) {
    background: #fbbf24;
}

.hero-panel__dot:nth-child(3) {
    background: #34d399;
}

.hero-panel__tag {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.hero-panel__metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.hero-panel__label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.hero-panel__value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.hero-panel__chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 120px;
    margin-bottom: 1.25rem;
}

.hero-panel__bar {
    flex: 1;
    height: var(--h);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    transition: height 1s var(--ease-out);
}

.hero-panel__bar--hot {
    background: linear-gradient(180deg, var(--purple), var(--blue));
    box-shadow: 0 8px 24px -6px var(--glow-purple);
}

.hero-panel__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-panel__pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.hero-panel__pill--ok {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.hero-float {
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    animation: float-y 5s ease-in-out infinite;
    box-shadow: 0 16px 48px -20px rgba(124, 58, 237, 0.45);
}

.hero-float__icon {
    display: flex;
    color: #86efac;
}

@keyframes float-y {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ——— Reveal (scroll) ——— */
.reveal {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    filter: blur(6px);
    transition:
        opacity var(--reveal-duration) var(--ease-out),
        transform var(--reveal-duration) var(--ease-out),
        filter var(--reveal-duration) var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.no-js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ——— Sections ——— */
.section {
    position: relative;
    padding: clamp(4rem, 10vw, 6.5rem) 0;
}

.section__head {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 3.5rem;
}

.section__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 2vw + 1.25rem, 2.5rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

.section--how {
    background: linear-gradient(180deg, var(--bg) 0%, #101018 50%, var(--bg) 100%);
}

/* ——— Benefits ——— */
.benefits-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition:
        transform 0.45s var(--ease-out),
        box-shadow 0.45s var(--ease-out),
        border-color 0.35s;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.15) inset,
        0 28px 80px -40px rgba(124, 58, 237, 0.35);
}

.benefit-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 14px;
    color: #e9d5ff;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.25), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.benefit-card__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ——— Timeline ——— */
.timeline {
    position: relative;
    max-width: 44rem;
    margin-inline: auto;
    padding-left: 0;
}

.timeline__line {
    position: absolute;
    left: 1.15rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.timeline__line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--purple), var(--blue));
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.2s var(--ease-out);
}

.timeline.is-line-active .timeline__line::after {
    transform: scaleY(1);
}

.timeline__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline__step {
    position: relative;
    padding-left: 3.75rem;
}

.timeline__marker {
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 8px 28px -6px var(--glow-purple);
    z-index: 1;
}

.timeline__content {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-md);
}

.timeline__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.timeline__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

@media (min-width: 768px) {
    .timeline__line {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline__step {
        width: 50%;
        padding-left: 0;
    }

    .timeline__step:nth-child(odd) {
        padding-right: 2.75rem;
        text-align: right;
    }

    .timeline__step:nth-child(even) {
        margin-left: 50%;
        padding-left: 2.75rem;
    }

    .timeline__step:nth-child(odd) .timeline__marker {
        left: auto;
        right: -1.4rem;
    }

    .timeline__step:nth-child(even) .timeline__marker {
        left: -1.1rem;
    }

    .timeline__step:nth-child(odd) .timeline__content {
        margin-left: auto;
    }
}

/* ——— Features ——— */
.features-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    position: relative;
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        transform 0.45s var(--ease-out),
        border-color 0.35s,
        box-shadow 0.45s var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 24px 64px -32px rgba(59, 130, 246, 0.25);
}

.feature-card--wide {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .feature-card--wide {
        grid-column: span 2;
    }
}

.feature-card--shine::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 70%
    );
    transform: translateX(-120%) skewX(-12deg);
    transition: transform 0.85s var(--ease-out);
    pointer-events: none;
}

.feature-card--shine:hover::before {
    transform: translateX(120%) skewX(-12deg);
}

.feature-card__icon {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.feature-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-card__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ——— CTA ——— */
.cta-final {
    position: relative;
    padding: clamp(4.5rem, 12vw, 7rem) 0;
    overflow: hidden;
}

.cta-final__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 80% at 50% 100%, rgba(124, 58, 237, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, #0c0c12 100%);
    animation: aurora-pulse 18s ease-in-out infinite alternate;
}

.cta-final__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 40px 100px -48px rgba(124, 58, 237, 0.45);
}

.cta-final__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.cta-final__text {
    margin: 0 auto 2rem;
    max-width: 32rem;
    font-size: 1.0625rem;
    color: var(--text-muted);
}

/* ——— Footer ——— */
.site-footer {
    padding: 3rem 0 2.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .footer-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
    margin: 0;
    font-size: 0.8125rem;
    color: #71717a;
}

/* ——— Auth (login / registro) ——— */
body.page-auth {
    min-height: 100vh;
}

body.page-auth #main-content {
    min-height: calc(100vh - var(--header-h));
}

.auth-layout {
    position: relative;
    padding: calc(var(--header-h) + 2.5rem) 0 4rem;
    min-height: calc(100vh - var(--header-h));
    overflow: hidden;
}

.auth-layout__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -20%, rgba(124, 58, 237, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.auth-layout__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    opacity: 0.4;
    pointer-events: none;
}

.auth-layout__orb--1 {
    width: min(360px, 70vw);
    height: min(360px, 70vw);
    top: 15%;
    right: -10%;
    background: var(--purple);
}

.auth-layout__orb--2 {
    width: min(280px, 55vw);
    height: min(280px, 55vw);
    bottom: 10%;
    left: -15%;
    background: var(--blue);
    opacity: 0.3;
}

.auth-panel {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    margin-inline: auto;
}

.auth-card {
    padding: clamp(1.75rem, 4vw, 2.25rem);
    border-radius: var(--radius-lg);
}

.auth-card__head {
    margin-bottom: 1.75rem;
    text-align: center;
}

.auth-card__title {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.auth-field--inline {
    flex-direction: row;
    align-items: center;
}

.auth-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.auth-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cyan);
    transition: opacity 0.2s;
}

.auth-link:hover {
    opacity: 0.85;
    color: var(--cyan);
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.auth-input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 5.25rem;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.auth-input-wrap .auth-input {
    border-radius: 14px;
}

.auth-input::placeholder {
    color: #71717a;
}

.auth-input:hover {
    border-color: var(--border-strong);
}

.auth-input:focus {
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.auth-input:invalid:not(:placeholder-shown) {
    border-color: rgba(248, 113, 113, 0.5);
}

.auth-toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition:
        color 0.2s,
        background 0.2s,
        border-color 0.2s;
}

.auth-toggle-pass:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.auth-toggle-pass:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.auth-toggle-pass .auth-toggle-pass__hide {
    display: none;
}

.auth-toggle-pass.is-visible .auth-toggle-pass__show {
    display: none;
}

.auth-toggle-pass.is-visible .auth-toggle-pass__hide {
    display: inline;
}

.auth-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #71717a;
    line-height: 1.4;
}

.auth-hint--error {
    color: #fca5a5;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.45;
}

.auth-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-check__box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.3);
    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;
}

.auth-check input:focus-visible + .auth-check__box {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.auth-check input:checked + .auth-check__box {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-color: transparent;
    box-shadow: 0 4px 12px -4px var(--glow-purple);
}

.auth-check input:checked + .auth-check__box::after {
    content: "✓";
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.auth-inline-link {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-inline-link:hover {
    color: #67e8f9;
}

.auth-actions {
    margin-top: 0.25rem;
}

.btn--block {
    width: 100%;
}

.auth-submit.btn {
    padding: 0.9rem 1.25rem;
}

.auth-footer-msg {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    color: #e9d5ff;
}

.auth-footer-msg[data-state="error"] {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.auth-switch {
    margin: 1.75rem 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.auth-switch__link {
    margin-left: 0.35rem;
    font-weight: 600;
    color: var(--cyan);
}

.auth-switch__link:hover {
    color: #a5f3fc;
}

@media (max-width: 480px) {
    .auth-input {
        padding-right: 4.75rem;
    }

    .auth-toggle-pass {
        font-size: 0.6875rem;
        padding: 0.35rem 0.5rem;
    }
}

/* ——— Utilidades ——— */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-alert {
    margin: 0 0 1.25rem;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.auth-alert--error {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

/* ——— App header (dashboard) ——— */
.site-header--app {
    background: rgba(15, 15, 15, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.site-header--app.is-scrolled {
    background: rgba(10, 10, 10, 0.94);
}

/* Cabecera app: más ancho útil y logo / centro / nav pegados a los lados */
.site-header--app .app-header__inner.container {
    max-width: min(100%, 100rem);
    padding-inline: clamp(0.65rem, 2vw, 1.25rem);
}

.app-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    width: 100%;
    min-height: var(--header-h);
    padding-block: 0.65rem;
}

.app-header__logo {
    flex-shrink: 0;
}

.app-header__search-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

@media (max-width: 1099px) {
    .app-header__inner > .app-header__logo {
        order: 1;
    }

    .nav-toggle--app {
        order: 2;
        margin-left: auto;
    }

    .app-header__search-wrap {
        order: 3;
        flex: 1 1 100%;
        justify-content: stretch;
    }

    .app-header__search-wrap .app-header__search {
        max-width: none;
    }

    .nav--app {
        order: 4;
    }
}

.app-header__search {
    position: relative;
    width: 100%;
    max-width: 22rem;
    min-width: 0;
    flex: 0 1 22rem;
}

.app-header__search-input {
    width: 100%;
    padding: 0.65rem 2.75rem 0.65rem 1rem;
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.app-header__search-input:focus {
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.app-header__search-input::placeholder {
    color: #71717a;
}

.app-header__search-submit {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.22);
    color: #c4b5fd;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, transform 0.2s;
}

.app-header__search-submit:hover {
    color: #fff;
    background: rgba(124, 58, 237, 0.4);
}

.app-header__search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    transform: none;
    pointer-events: none;
    color: inherit;
}

.nav--app {
    flex: 1 1 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    top: auto;
    inset: 0;
    padding: 1.5rem;
    background: rgba(12, 12, 12, 0.98);
}

.nav--app.is-open {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    z-index: 999;
}

.nav-list--app {
    flex-direction: column;
    gap: 0.25rem;
}

/** Ítem activo del menú app (p. ej. Inicio en home.php) */
.nav--app .nav-link--active {
    color: var(--purple) !important;
    font-weight: 600;
}

.nav--app .nav-link--active:hover {
    color: #c4b5fd !important;
}

.app-header__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.app-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.app-icon-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.app-icon-btn__dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #f43f5e;
    border-radius: 50%;
    border: 2px solid var(--bg);
}

.app-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border: 1px solid var(--border-strong);
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px -8px var(--glow-purple);
}

.app-header__logout {
    flex-shrink: 0;
}

.nav-toggle--app {
    flex-shrink: 0;
}

@media (min-width: 1100px) {
    .nav-toggle--app {
        display: none;
    }

    .app-header__inner {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .nav--app {
        position: static;
        flex: 0 0 auto;
        order: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 1rem 1.35rem;
        padding: 0;
        margin-left: 0.35rem;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
    }

    .nav-list--app {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
        justify-content: flex-end;
    }

    .app-header__actions {
        margin-top: 0;
        margin-left: 0;
        flex-shrink: 0;
    }
}

body.page-app {
    background: var(--bg);
}

body.page-app--fullscreen {
    min-height: 100vh;
}

/* Compensa header position:fixed en todas las páginas con layout app */
.app-main {
    padding-top: var(--header-h);
}

.app-page--fullscreen {
    min-height: calc(100vh - var(--header-h));
    padding-bottom: clamp(2rem, 5vw, 4rem);
}

.app-dashboard__bg--fullscreen {
    height: min(520px, 55vh);
}

.app-hero--fullscreen {
    margin-top: clamp(1rem, 3vw, 1.75rem);
    min-height: min(420px, calc(100vh - var(--header-h) - 4rem));
    display: flex;
    align-items: center;
}

.app-hero--fullscreen .app-hero__inner {
    width: 100%;
}

.app-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--purple);
}

.app-hero__cta--pulse {
    animation: app-cta-pulse 2.8s var(--ease-out) infinite;
}

@keyframes app-cta-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.35);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(124, 58, 237, 0);
    }
}

.app-section__title--center {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
}

.app-section--inicio-tips .app-tips {
    max-width: 48rem;
    margin-inline: auto;
}

.app-tips--compact .app-tip {
    padding: 1rem 1.2rem;
}

.app-page-head {
    padding: clamp(1.25rem, 3vw, 2rem) 0 1rem;
}

.app-page-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.app-page-lead {
    margin: 0;
    max-width: 40rem;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.55;
}

.app-suscripciones-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
}

.app-suscripcion-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    align-items: center;
}

@media (min-width: 720px) {
    .app-suscripcion-card {
        grid-template-columns: 1fr auto auto;
    }
}

.app-suscripcion-card__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.app-suscripcion-card__name {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.app-suscripcion-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}

.app-suscripcion-card__label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.app-suscripcion-card__now {
    font-size: 1.15rem;
    font-weight: 700;
}

.app-suscripcion-card__opt {
    font-size: 1.15rem;
    font-weight: 800;
    color: #86efac;
}

.app-suscripcion-card__arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.app-suscripcion-card__btn {
    justify-self: stretch;
}

@media (min-width: 720px) {
    .app-suscripcion-card__btn {
        justify-self: end;
        min-width: 11rem;
    }
}

.app-market-toolbar {
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.app-market-toolbar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.app-market-toolbar__search {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.65rem 1rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
}

.app-market-toolbar__search:focus {
    border-color: rgba(124, 58, 237, 0.45);
}

.app-market-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-mp-section-tabs a.app-pill {
    text-decoration: none;
}

.app-market-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
    padding-bottom: 2rem;
}

@media (min-width: 900px) {
    .app-market-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-market-card--large {
    padding: clamp(1.5rem, 3vw, 2rem);
    min-height: 280px;
}

.app-market-card__desc {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
}

.app-market-card__price--lg {
    font-size: 1.35rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #e9d5ff;
}

.app-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}

.app-grupos-notice {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.5rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(34, 211, 238, 0.06);
}

.app-grupos-notice__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.app-grupos-notice__body strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.app-grupos-notice__text {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-group-card__stars-num {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.app-perfil-grid {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .app-perfil-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-perfil-panel--wide {
        grid-column: 1 / -1;
    }
}

.app-perfil-panel {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
}

.app-perfil-panel__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.app-perfil-panel__text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.app-perfil-panel__meta {
    margin: -0.25rem 0 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.app-perfil-panel__hint {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-perfil-panel__hint a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-perfil-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.2);
    color: #e9d5ff;
    vertical-align: middle;
}

.app-perfil-form .app-field {
    margin-bottom: 1rem;
}

.app-field {
    display: block;
}

.app-field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.app-field__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
}

.app-field__input:focus {
    border-color: rgba(124, 58, 237, 0.45);
}

.app-field__textarea {
    min-height: 8rem;
    resize: vertical;
    line-height: 1.5;
}

.app-ayuda-layout {
    display: grid;
    gap: 2rem;
    padding-bottom: 3rem;
}

@media (min-width: 960px) {
    .app-ayuda-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.app-faq-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.app-faq-item {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
}

.app-faq-q {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.app-faq-a {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.app-ayuda-contact .app-help-form .app-field {
    margin-bottom: 1rem;
}

.app-alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.app-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.app-alert--error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.app-muted-link {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.app-muted {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-form-page {
    margin-bottom: 1.5rem;
}

.app-panel-form {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
}

.app-form-hint {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.app-grupos-head__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
}

.app-grupos-head__row .btn {
    flex-shrink: 0;
}

.app-fieldset {
    border: none;
    margin: 0 0 1rem;
    padding: 0;
}

.app-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 0.35rem;
}

.app-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    cursor: pointer;
}

.app-inline-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.app-field--inline {
    flex: 1 1 10rem;
    min-width: 0;
    margin-bottom: 0;
}

.app-field--inline .app-field__input,
.app-field--inline select.app-field__input {
    width: 100%;
}

.app-group-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin-top: 0.5rem;
}

.app-badge--muted {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border-color: var(--border);
}

.app-suscripcion-card__del {
    justify-self: stretch;
}

@media (min-width: 720px) {
    .app-suscripcion-card__del {
        justify-self: end;
    }
}

.app-grupo-detail {
    padding-bottom: 3rem;
    max-width: 40rem;
}

.app-grupo-meta {
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.app-grupo-meta__line {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.app-grupo-meta__line:last-child {
    margin-bottom: 0;
}

.app-cred-box {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.app-cred-list {
    margin: 0;
}

.app-cred-list div {
    margin-bottom: 1rem;
}

.app-cred-list dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.app-cred-list dd {
    margin: 0;
}

.app-cred-code {
    display: block;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    word-break: break-all;
}

.app-danger-form,
.app-join-form {
    margin-top: 1rem;
}

.app-market-empty {
    border-radius: var(--radius-lg);
    padding: 0.5rem 0 1.5rem;
}

.app-mp-filter-label {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.app-mp-seller {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-mp-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
}

.app-mp-secondary-link {
    font-size: 0.875rem;
    text-align: center;
}

.app-mp-detail {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.app-mp-detail__body {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.app-mp-platform-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.app-mp-count {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9em;
}

.app-mp-platform-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.app-mp-platform-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
}

.app-mp-platform-item--current {
    border: 1px solid rgba(124, 58, 237, 0.45);
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.app-mp-platform-item__main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 12rem;
}

.app-mp-platform-item__main strong {
    font-size: 0.95rem;
}

/* ——— Dashboard ——— */
.app-dashboard {
    position: relative;
    padding-bottom: 4rem;
}

.app-dashboard__bg {
    position: absolute;
    inset: 0 0 auto 0;
    height: 420px;
    background:
        radial-gradient(ellipse 80% 70% at 50% -30%, rgba(124, 58, 237, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.app-hero {
    position: relative;
    z-index: 1;
    margin: 1.5rem auto 0;
    max-width: calc(var(--container) - 2.5rem);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.app-hero__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .app-hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.app-hero__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw + 0.75rem, 2.15rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.app-hero__lead {
    margin: 0 0 1.5rem;
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.app-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.app-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.app-stat__value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
}

.app-hero__visual {
    position: relative;
    min-height: 200px;
}

.app-hero__orb {
    position: absolute;
    inset: -10% -5%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 65%);
    filter: blur(40px);
    border-radius: 50%;
}

.app-hero__card {
    position: relative;
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

.app-hero__card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-hero__bars {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 100px;
    margin: 1rem 0;
}

.app-hero__bar {
    flex: 1;
    height: var(--h);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.app-hero__bar--hot {
    background: linear-gradient(180deg, var(--purple), var(--blue));
    box-shadow: 0 8px 24px -8px var(--glow-purple);
}

.app-hero__card-foot {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.app-section {
    position: relative;
    z-index: 1;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.app-section--muted {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.app-section--tips {
    padding-bottom: 2rem;
}

.app-section__head {
    margin-bottom: 1.75rem;
    max-width: 40rem;
}

.app-section__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.5vw + 1rem, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-section__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.app-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    padding: 0.25rem;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.app-table th,
.app-table td {
    padding: 1rem 1.15rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.app-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.app-table tbody tr:last-child td {
    border-bottom: none;
}

.app-table__good {
    color: #86efac;
    font-weight: 600;
}

.app-table__btn {
    white-space: nowrap;
}

.app-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    color: #e9d5ff;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.app-card-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .app-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.app-card-grid--market {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .app-card-grid--market {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .app-card-grid--market {
        grid-template-columns: repeat(4, 1fr);
    }
}

.app-group-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.app-group-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -28px rgba(124, 58, 237, 0.35);
}

.app-group-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.app-group-card__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4), rgba(59, 130, 246, 0.3));
    border: 1px solid var(--border);
}

.app-group-card__host {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

.app-group-card__trust {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-group-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.app-group-card__price {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.app-group-card__price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.app-group-card__slots {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.app-group-card__stars {
    margin: 0;
    color: #fbbf24;
    font-size: 0.9rem;
}

.app-group-card__ok {
    margin: 0;
    font-size: 0.8125rem;
    color: #86efac;
}

.app-group-card__btn {
    margin-top: auto;
}

.app-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.app-pill {
    padding: 0.45rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.app-pill:hover,
.app-pill--active {
    border-color: rgba(124, 58, 237, 0.45);
    color: var(--text);
    background: rgba(124, 58, 237, 0.12);
}

.app-market-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 100%;
}

.app-market-card__tag {
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.25);
}

.app-market-card__tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.app-market-card__tags-row .app-market-card__tag {
    align-self: center;
}

.app-market-card__tag--official {
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.app-market-card__tag--community {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.app-badge--official {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.app-badge--community {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.app-mp-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.app-market-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.app-market-card__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.app-market-card__price {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #e9d5ff;
}

.app-tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-tip {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-md);
}

@media (min-width: 640px) {
    .app-tip {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.app-tip__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.app-profile {
    max-width: 32rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.app-profile p {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.app-profile__hint {
    margin-top: 1rem !important;
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
}

.site-footer--app .footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0 0 1rem;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social__link:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

/* ——— Header FAB (+) ——— */
.app-header-fab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition:
        transform 0.35s var(--ease-out),
        border-color 0.25s,
        background 0.25s,
        box-shadow 0.35s;
}

.app-header-fab:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(124, 58, 237, 0.2),
        0 12px 36px -16px rgba(124, 58, 237, 0.55);
    transform: translateY(-3px) scale(1.06);
}

.app-header-fab__ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.25)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    animation: cg-fab-ring 4s ease-in-out infinite;
    pointer-events: none;
}

.app-header-fab__plus {
    position: relative;
    z-index: 1;
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
    color: #a1a1aa;
    margin-top: -2px;
    transition: color 0.25s, transform 0.35s var(--ease-out);
}

.app-header-fab:hover .app-header-fab__plus {
    color: #e4e4e7;
    transform: rotate(90deg) scale(1.05);
}

@keyframes cg-fab-ring {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.08);
    }
}

/* ——— Hub acciones (+) ——— */
.page-acciones-hub .app-main {
    display: flex;
    flex-direction: column;
}

.app-acciones {
    position: relative;
    flex: 1;
    min-height: calc(100vh - var(--header-h) - 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 3rem) 0;
    overflow: hidden;
}

.app-acciones__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -20%, rgba(124, 58, 237, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
        radial-gradient(ellipse 40% 35% at 0% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.app-acciones__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 36rem;
}

.app-acciones__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
}

.app-acciones__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #fff 0%, #e9d5ff 40%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-acciones__lead {
    margin: 0 0 2.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.app-acciones__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.app-acciones__back {
    margin: 2.5rem 0 0;
}

.app-acciones-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: clamp(2rem, 5vw, 2.75rem) 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 48px -32px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(124, 58, 237, 0.15);
    transform-style: preserve-3d;
    transform: perspective(900px) rotateX(4deg) translateZ(0);
    transition:
        transform 0.5s var(--ease-out),
        box-shadow 0.5s var(--ease-out),
        border-color 0.35s;
    animation: cg-tile-float 5s ease-in-out infinite;
}

.app-acciones-tile:hover {
    transform: perspective(900px) rotateX(0deg) translateY(-8px) translateZ(12px);
    border-color: rgba(124, 58, 237, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 32px 64px -28px rgba(124, 58, 237, 0.45),
        0 0 60px -20px rgba(59, 130, 246, 0.35);
}

.app-acciones-tile__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(125deg, transparent 30%, rgba(255, 255, 255, 0.12) 45%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.app-acciones-tile:hover .app-acciones-tile__shine {
    opacity: 1;
}

.app-acciones-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e9d5ff;
    box-shadow: 0 12px 28px -14px rgba(124, 58, 237, 0.6);
    transform: translateZ(20px);
    transition: transform 0.5s var(--ease-out);
}

.app-acciones-tile:hover .app-acciones-tile__icon {
    transform: translateZ(28px) scale(1.05);
}

.app-acciones-tile__label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    transform: translateZ(8px);
}

.app-acciones-tile__hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 18rem;
    line-height: 1.45;
    transform: translateZ(4px);
}

@keyframes cg-tile-float {
    0%,
    100% {
        transform: perspective(900px) rotateX(4deg) translateY(0) translateZ(0);
    }
    50% {
        transform: perspective(900px) rotateX(4deg) translateY(-6px) translateZ(0);
    }
}

.app-acciones-tile:hover {
    animation: none;
}

/* ——— Crear grupo 3D ——— */
.page-crear-grupo .cg-page,
.page-mp-publicar .cg-page {
    position: relative;
    padding-bottom: 4rem;
    overflow-x: hidden;
}

.cg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: cg-orb-drift 18s ease-in-out infinite;
}

.cg-orb--a {
    width: min(50vw, 420px);
    height: min(50vw, 420px);
    top: -10%;
    left: -15%;
    background: rgba(124, 58, 237, 0.35);
}

.cg-orb--b {
    width: min(40vw, 320px);
    height: min(40vw, 320px);
    bottom: 10%;
    right: -10%;
    background: rgba(59, 130, 246, 0.22);
    animation-delay: -6s;
}

.cg-orb--c {
    width: min(35vw, 280px);
    height: min(35vw, 280px);
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(34, 211, 238, 0.12);
    animation-delay: -12s;
}

@keyframes cg-orb-drift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(4%, 6%) scale(1.05);
    }
    66% {
        transform: translate(-3%, 4%) scale(0.95);
    }
}

.cg-head,
.cg-layout {
    position: relative;
    z-index: 1;
}

.cg-back {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
}

.cg-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.cg-sub {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 32rem;
}

.cg-sub__hl {
    color: #c4b5fd;
    font-weight: 600;
}

.cg-alert {
    margin-bottom: 1.25rem;
}

.cg-scene {
    perspective: 1400px;
    perspective-origin: 50% 0%;
}

.cg-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 38rem;
    margin-inline: auto;
}

.cg-card {
    position: relative;
    border-radius: calc(var(--radius-lg) + 4px);
    transform-style: preserve-3d;
    transform: rotateX(2.5deg) translateZ(0);
    transition: transform 0.6s var(--ease-out);
}

.cg-card:hover {
    transform: rotateX(0deg) translateY(-4px) translateZ(8px);
}

.cg-card__edge {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.55), rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
}

.cg-card__edge--vault {
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.35), rgba(124, 58, 237, 0.35), rgba(59, 130, 246, 0.2));
}

.cg-card__inner {
    position: relative;
    margin: 1px;
    padding: clamp(1.35rem, 3vw, 1.85rem);
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, rgba(22, 22, 24, 0.96) 0%, rgba(12, 12, 14, 0.98) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 28px 56px -36px rgba(0, 0, 0, 0.9),
        0 0 80px -40px rgba(124, 58, 237, 0.25);
}

.cg-card__head {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}

.cg-step-badge {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(145deg, var(--purple), #5b21b6);
    box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.7);
    transform: translateZ(12px);
}

.cg-step-badge--vault {
    background: linear-gradient(145deg, var(--cyan), var(--blue));
    box-shadow: 0 8px 24px -8px rgba(34, 211, 238, 0.4);
}

.cg-card__title {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.cg-card__desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.cg-field {
    display: block;
    margin-bottom: 1.1rem;
}

.cg-field:last-child {
    margin-bottom: 0;
}

.cg-field--half {
    flex: 1 1 8rem;
    min-width: 0;
    margin-bottom: 0;
}

.cg-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cg-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a1a1aa;
}

.cg-input,
.cg-textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    outline: none;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35) inset,
        0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.3s,
        box-shadow 0.35s,
        transform 0.25s var(--ease-out);
}

.cg-input--mono {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
}

.cg-input:hover,
.cg-textarea:hover {
    border-color: rgba(124, 58, 237, 0.25);
}

.cg-input:focus,
.cg-textarea:focus {
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.4) inset,
        0 0 0 3px rgba(124, 58, 237, 0.18);
    transform: translateY(-1px);
}

.cg-textarea {
    min-height: 5.5rem;
    resize: vertical;
    line-height: 1.5;
}

.cg-input--readonly {
    opacity: 0.92;
    cursor: default;
    background: rgba(0, 0, 0, 0.25);
}

.cg-catalog-price-summary {
    margin: 0.65rem 0 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #c4b5fd;
    background: rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.cg-fieldset {
    border: none;
    margin: 0 0 1.1rem;
    padding: 0;
}

.cg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cg-pill {
    cursor: pointer;
    margin: 0;
}

.cg-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.cg-pill__face {
    display: block;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition:
        transform 0.3s var(--ease-out),
        border-color 0.25s,
        background 0.25s,
        box-shadow 0.35s;
}

.cg-pill input:focus-visible + .cg-pill__face {
    outline: 2px solid var(--purple);
    outline-offset: 2px;
}

.cg-pill input:checked + .cg-pill__face {
    border-color: rgba(124, 58, 237, 0.6);
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.25), rgba(59, 130, 246, 0.12));
    box-shadow: 0 8px 28px -12px rgba(124, 58, 237, 0.55);
    transform: translateY(-2px) scale(1.02);
}

.cg-pill:hover .cg-pill__face {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.cg-pill--blocked {
    cursor: not-allowed;
    opacity: 0.52;
}

.cg-pill--blocked .cg-pill__face {
    border-style: dashed;
}

.cg-pill--blocked:hover .cg-pill__face {
    transform: none;
}

.cg-blocked-banner {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}

.cg-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.cg-legal {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
    max-width: 32rem;
    margin-inline: auto;
}

.cg-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 38rem;
    margin-inline: auto;
    padding: 1.1rem 1.5rem;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    background: linear-gradient(145deg, #7c3aed, #4f46e5, #2563eb);
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(4deg) translateZ(0);
    transition: transform 0.45s var(--ease-out);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 20px 40px -16px rgba(124, 58, 237, 0.65);
}

.cg-submit:hover {
    transform: perspective(800px) rotateX(0deg) translateY(-4px) translateZ(10px);
}

.cg-submit:active {
    transform: perspective(800px) rotateX(6deg) translateY(0) translateZ(-4px);
}

.cg-submit__depth {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.cg-submit__glow {
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(59, 130, 246, 0.3));
    opacity: 0.5;
    filter: blur(12px);
    z-index: -1;
    animation: cg-submit-pulse 2.8s ease-in-out infinite;
}

.cg-submit__label {
    position: relative;
    z-index: 1;
}

@keyframes cg-submit-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(1.03);
    }
}

/* ——— Panel administración ——— */
/* Cabecera admin en flujo (sticky): no recorta contenido ni barra de dos filas */
.site-header.site-header--admin {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: auto;
    min-height: var(--header-h);
    align-items: center;
}

body.page-admin {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.page-admin .app-main--admin {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.admin-header-inner {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(1rem, 2.5vw, 1.75rem);
    box-sizing: border-box;
}

.app-header__inner--admin {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
}

.site-footer--admin .footer-inner--fluid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(1rem, 2.5vw, 1.75rem);
    box-sizing: border-box;
}

.admin-header-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.25);
    color: #ddd6fe;
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.15));
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text, #f1f5f9);
    cursor: pointer;
    flex-shrink: 0;
}

.admin-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar-toggle .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    border-radius: 1px;
}

@media (max-width: 899px) {
    .admin-sidebar-toggle {
        display: inline-flex;
    }
}

@media (max-width: 899px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 220;
        width: min(17.5rem, 88vw);
        max-height: 100vh;
        overflow-y: auto;
        margin: 0;
        border-radius: 0 14px 14px 0;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: none;
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(0, 0, 0, 0.55), 0 0 0 9999px rgba(0, 0, 0, 0.45);
    }

    body.admin-sidebar-open {
        overflow: hidden;
    }
}

/* Botón flotante administración (solo área app, no dentro del header) */
.admin-fab {
    position: fixed;
    z-index: 48;
    left: max(1rem, env(safe-area-inset-left, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem 0.55rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f5f3ff;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.95), rgba(79, 70, 229, 0.92));
    border: 1px solid rgba(196, 181, 253, 0.45);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-fab:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(91, 33, 182, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.admin-fab:focus-visible {
    outline: 2px solid #c4b5fd;
    outline-offset: 3px;
}

.admin-fab__icon {
    display: flex;
    line-height: 0;
}

.admin-fab__label {
    padding-right: 0.15rem;
}

@media (max-width: 380px) {
    .admin-fab__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-fab {
        padding: 0.65rem;
        border-radius: 50%;
    }
}

.admin-shell {
    display: grid;
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
    min-height: 0;
}

@media (min-width: 900px) {
    .admin-shell {
        grid-template-columns: minmax(15.5rem, 17.5rem) minmax(0, 1fr);
    }
}

.admin-sidebar {
    padding: 1.25rem 1.1rem 1.5rem;
    align-self: stretch;
    margin: 0;
}

@media (min-width: 900px) {
    .admin-sidebar {
        position: sticky;
        top: var(--header-h);
        max-height: calc(100dvh - var(--header-h));
        min-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        border-radius: 0;
        border-right: 1px solid var(--border, rgba(255, 255, 255, 0.08));
        border-bottom: none;
    }
}

.admin-sidebar__title {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-snav {
    display: block;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.admin-snav:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.admin-snav--active {
    color: #e9d5ff;
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.admin-snav--muted {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.admin-shell__body {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2.5vw, 2rem) clamp(2rem, 4vw, 3rem);
    border-radius: 0;
    min-height: 12rem;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .admin-shell__body {
        min-height: calc(100dvh - var(--header-h));
    }
}

@media (max-width: 899px) {
    .admin-shell {
        display: block;
    }

    .admin-shell__body {
        width: 100%;
        min-height: calc(100dvh - var(--header-h) - 2rem);
    }
}

.admin-page-head {
    margin-bottom: 1.5rem;
}

.admin-page-title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-page-lead {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.admin-page-lead a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-alert {
    margin-bottom: 1rem;
}

.admin-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    margin-bottom: 1.5rem;
}

.admin-stat {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.admin-stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    color: #e9d5ff;
}

.admin-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.admin-card {
    padding: 1.25rem 1.4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.admin-card--cat {
    margin-bottom: 1.5rem;
}

.admin-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.admin-code {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-subtitle {
    margin: 1rem 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-plat-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.admin-plat-list__item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.admin-inline-form {
    display: inline;
}

.admin-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}

.admin-form--plat {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.admin-table-wrap {
    overflow-x: auto;
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table--compact {
    margin-bottom: 1rem;
}

.admin-platform-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-platform-block:last-of-type {
    border-bottom: none;
}

.admin-platform-block__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-form--grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    align-items: end;
}

.admin-form__actions {
    grid-column: 1 / -1;
}

.admin-form-section-title {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.admin-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.admin-pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.admin-pill:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.admin-pill--active {
    color: #ede9fe;
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(167, 139, 250, 0.4);
}

.admin-form__row--wrap {
    flex-wrap: wrap;
}

.admin-form--inline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.admin-form--inline-row--sm {
    gap: 0.35rem;
}

.admin-input--inline {
    min-width: 8rem;
    flex: 1 1 10rem;
}

.admin-select--compact {
    min-width: 7rem;
    max-width: 14rem;
    font-size: 0.8125rem;
    padding: 0.4rem 0.55rem;
}

.admin-table--vtop th,
.admin-table--vtop td {
    vertical-align: top;
}

.admin-table--spaced {
    margin-bottom: 1rem;
}

.admin-table-wrap--flush {
    padding-left: 0;
    padding-right: 0;
}

.admin-cell-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 18rem;
}

.admin-cell-strong {
    font-weight: 600;
}

.admin-micro-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.admin-muted {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-muted-link {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 500;
}

.admin-muted-link:hover {
    text-decoration: underline;
}

.admin-row--highlight {
    background: rgba(124, 58, 237, 0.1);
}

.admin-card--focus .admin-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.admin-table--users .admin-input--table {
    min-width: 6.5rem;
    max-width: 14rem;
    width: 100%;
    font-size: 0.8125rem;
    padding: 0.4rem 0.55rem;
    box-sizing: border-box;
}

.admin-table--users td:nth-child(2) .admin-input--table {
    max-width: 18rem;
}

.admin-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.admin-users-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-top: 1.25rem;
}

.admin-users-pagination__meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.35rem;
}

.admin-users-pagination__ellipsis {
    padding: 0 0.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-users-page-link {
    min-width: 2.25rem;
    padding: 0.4rem 0.65rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-users-page-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.admin-users-page-link--active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.35));
    border-color: rgba(167, 139, 250, 0.5);
}

.admin-btn--danger {
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #fecaca !important;
}

.admin-breadcrumb {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-breadcrumb a {
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
}

.admin-breadcrumb a:hover {
    text-decoration: underline;
}

.admin-breadcrumb__sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.admin-mp-cat-picker {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.admin-mp-cat-picker__link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.15rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.admin-mp-cat-picker__link:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 139, 250, 0.45);
    background: rgba(124, 58, 237, 0.08);
}

.admin-mp-cat-picker__title {
    font-weight: 700;
    font-size: 1rem;
}

.admin-mp-cat-picker__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-card__list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.admin-card__list a {
    color: var(--blue);
}

.site-footer--admin .footer-social {
    display: none;
}

.cg-plan-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
}

.cg-screens-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #c4b5fd;
}

/* ——— Ficha grupo (Together-style, tema oscuro) ——— */
.tp-grupo {
    padding-bottom: 3rem;
    max-width: 72rem;
}

.tp-grupo__back {
    margin: 0 0 1rem;
}

.tp-grupo__grid {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .tp-grupo__grid {
        grid-template-columns: minmax(260px, 300px) 1fr;
    }
}

.tp-admin-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 0 0 1.35rem;
}

.tp-admin-card__banner {
    height: 4.25rem;
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.85), rgba(236, 72, 153, 0.55), rgba(59, 130, 246, 0.45));
}

.tp-admin-card__profile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0 1.25rem;
    margin-top: -2.25rem;
}

.tp-admin-card__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tp-admin-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--purple), #6366f1);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    border: 3px solid var(--bg-raised);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tp-admin-card__dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #71717a;
    border: 2px solid var(--bg-raised);
}

.tp-admin-card__dot--on {
    background: #22c55e;
}

.tp-admin-card__badge-admin {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
}

.tp-admin-card__headline {
    flex: 1;
    min-width: 0;
    padding-top: 2.5rem;
}

.tp-admin-card__shield {
    float: right;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tp-admin-card__name {
    margin: 0 0 0.25rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
}

.tp-admin-card__stars {
    margin: 0;
    font-size: 0.9rem;
    color: #fbbf24;
}

.tp-verify-list {
    list-style: none;
    margin: 1rem 1.25rem 0;
    padding: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tp-verify-list__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.tp-verify-list__item--ok {
    color: #86efac;
}

.tp-verify-list__icon {
    width: 1.1rem;
    text-align: center;
    font-weight: 700;
}

.tp-trust-block {
    margin: 1.15rem 1.25rem 0;
}

.tp-trust-block__label {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.tp-trust-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tp-trust-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), #ec4899);
    transition: width 0.5s var(--ease-out);
}

.tp-trust-block__value {
    margin: 0.35rem 0 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.tp-trust-block__hint {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tp-admin-activity {
    margin: 1.25rem 1.25rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.tp-admin-activity__title {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.tp-admin-activity__dl {
    margin: 0;
}

.tp-admin-activity__dl > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tp-admin-activity__dl dt {
    margin: 0;
    color: var(--text-muted);
}

.tp-admin-activity__dl dd {
    margin: 0;
    text-align: right;
}

.tp-admin-activity__dd--accent {
    color: #c4b5fd;
    font-weight: 600;
}

.tp-grupo__main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tp-grupo__chat-row {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 900px) {
    .tp-grupo__chat-row--with-members {
        grid-template-columns: minmax(260px, 340px) 1fr;
    }
}

.tp-grupo__chat-col {
    min-width: 0;
}

.tp-grupo__members-col {
    min-width: 0;
}

@media (min-width: 900px) {
    .tp-grupo__members-col .tp-members-admin,
    .tp-grupo__members-col .tp-members-public {
        max-height: min(72vh, 36rem);
        overflow-y: auto;
        position: sticky;
        top: calc(var(--header-h) + 0.75rem);
    }
}

.tp-admin-cred-wrap {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-admin-cred-btn {
    width: 100%;
}

.tp-admin-cred-hint {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.tp-admin-cred-hint--muted {
    opacity: 0.85;
}

.tp-cred-modal {
    max-width: min(26rem, calc(100vw - 2rem));
    width: 100%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: var(--surface-elevated, #1a1724);
    color: var(--text, #f4f4f5);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.tp-cred-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.tp-cred-modal__inner {
    position: relative;
    padding: 1.35rem 1.35rem 1.25rem;
}

.tp-cred-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.tp-cred-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.tp-cred-modal__title {
    margin: 0 2rem 0.35rem 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.tp-cred-modal__sub {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tp-cred-modal__dl {
    margin: 0;
}

.tp-cred-modal__dl > div {
    margin-bottom: 0.85rem;
}

.tp-cred-modal__dl dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.tp-cred-modal__dl dd {
    margin: 0;
}

.tp-cred-modal__code {
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.88rem;
}

.tp-cred-password:not(.tp-cred-password--revealed) {
    filter: blur(10px);
    user-select: none;
    cursor: pointer;
}

.tp-cred-password--revealed {
    filter: none;
    user-select: text;
}

.tp-cred-password__hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tp-cred-modal__notes {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e4e4e7;
}

.tp-cred-status {
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    line-height: 1.45;
}

.tp-cred-status--neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-cred-status--ok {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.tp-cred-status--fail {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.tp-cred-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tp-stripe-lead {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 0.85rem;
}

.tp-stripe-err {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #fecaca;
}

.tp-stripe-modal {
    max-width: min(28rem, calc(100vw - 2rem));
    width: 100%;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    background: var(--surface-elevated, #1a1724);
    color: var(--text, #f4f4f5);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.tp-stripe-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.tp-stripe-modal__inner {
    position: relative;
    padding: 1.35rem 1.35rem 1.25rem;
}

.tp-stripe-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.tp-stripe-modal__title {
    margin: 0 2rem 0.5rem 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.tp-stripe-modal__sub {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tp-stripe-element-mount {
    margin-bottom: 1rem;
    min-height: 2rem;
}

.tp-stripe-modal__msg {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    color: #c4b5fd;
}

.tp-stripe-modal__err {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    color: #fecaca;
}

.tp-stripe-submit {
    width: 100%;
}

.tp-owner-edit {
    padding: 1.2rem 1.35rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.tp-owner-edit__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-owner-edit__hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.tp-owner-edit__readonly {
    margin: 0 0 1.1rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 0.5rem;
}

.tp-owner-edit__readonly > div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.5rem;
    font-size: 0.82rem;
}

@media (max-width: 520px) {
    .tp-owner-edit__readonly > div {
        grid-template-columns: 1fr;
    }
}

.tp-owner-edit__readonly dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.tp-owner-edit__readonly dd {
    margin: 0;
    color: #e4e4e7;
}

.tp-owner-edit__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tp-owner-edit__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.tp-owner-edit__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.tp-members-public {
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius-lg);
}

.tp-members-public__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-members-public__hint {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tp-members-public__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tp-members-public__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.tp-members-public__avatar-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-members-public__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tp-members-public__avatar-fallback {
    font-weight: 700;
    font-size: 1rem;
    color: #ddd6fe;
}

.tp-members-public__body {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.tp-members-public__name {
    font-size: 0.92rem;
}

.tp-members-public__pill {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.2);
    color: #ddd6fe;
}

.tp-offer-card {
    padding: 1.35rem 1.5rem;
    border-radius: var(--radius-lg);
}

.tp-offer-card__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.tp-offer-card__title {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
}

.tp-offer-card__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tp-offer-card__slots {
    text-align: right;
}

.tp-offer-card__slots strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #e9d5ff;
}

.tp-offer-card__slots span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tp-offer-meta {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.875rem;
}

.tp-offer-meta li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
}

.tp-offer-meta__k {
    color: var(--text-muted);
}

.tp-offer-meta__v {
    font-weight: 600;
    text-align: right;
}

.tp-offer-meta__status {
    margin: 0 0 1rem;
}

.tp-offer-price {
    padding: 1rem 1.15rem;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    margin-bottom: 1rem;
}

.tp-offer-price__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.tp-offer-price__num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #d8b4fe;
}

.tp-offer-price__split {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(124, 58, 237, 0.22);
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 400;
}

.tp-offer-price__split strong {
    color: #e9d5ff;
    font-weight: 600;
}

.tp-refund {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.tp-refund__icon {
    flex-shrink: 0;
}

.tp-cta-form {
    margin: 0 0 0.75rem;
}

.tp-cta-btn {
    width: 100%;
    justify-content: center;
}

.tp-member-banner {
    margin: 0 0 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    font-size: 0.9rem;
}

.tp-page-lead {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
}

.tp-how {
    margin: 0;
    font-size: 0.85rem;
}

.tp-how a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tp-tpassword {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
}

.tp-tpassword__head {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tp-tpassword__key {
    font-size: 1.5rem;
    line-height: 1;
}

.tp-tpassword__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-tpassword__sub {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tp-tpassword__notes {
    margin: 1rem 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tp-chat {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
}

.tp-chat__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.tp-chat__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-chat__avatars {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row-reverse;
}

.tp-chat__avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin-left: -0.5rem;
    background: linear-gradient(135deg, #4f46e5, var(--purple));
    border: 2px solid rgba(18, 18, 18, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.tp-chat__kbd-hint {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.tp-chat__kbd-hint kbd {
    display: inline-block;
    font-size: 0.68rem;
    font-family: var(--font);
    padding: 0.12rem 0.4rem;
    margin: 0 0.05rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-muted);
}

.tp-chat__ajax-err {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    color: #fecaca;
}

.tp-chat__locked {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tp-chat__log {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.35rem;
}

.tp-chat__empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.tp-chat__msg {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
}

.tp-chat__msg--mine {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.1);
}

.tp-chat__msg-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.tp-chat__msg-meta strong {
    color: var(--text);
    font-size: 0.78rem;
}

.tp-chat__msg-body {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.tp-chat__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 560px) {
    .tp-chat__form {
        flex-direction: row;
        align-items: flex-end;
    }

    .tp-chat__input {
        flex: 1;
    }
}

.tp-chat__input {
    width: 100%;
    resize: vertical;
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.tp-chat__input:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.app-group-card__host-block {
    flex: 1;
    min-width: 0;
}

.app-group-card__stars-inline {
    margin: 0.15rem 0 0.4rem;
    font-size: 0.8rem;
    color: #fbbf24;
}

.app-group-card__trustbar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.app-group-card__trustbar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), #ec4899);
}

.app-group-card__trustpct {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tp-members-admin {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
}

.tp-members-admin__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.tp-members-admin__hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tp-members-admin__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tp-members-admin__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
}

.tp-members-admin__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.tp-members-admin__avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    display: block;
}

.tp-members-admin__avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--purple), #6366f1);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    border: 2px solid var(--border-strong);
}

.tp-members-admin__online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid rgba(18, 18, 18, 0.95);
}

.tp-members-admin__body {
    flex: 1;
    min-width: 12rem;
}

.tp-members-admin__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tp-members-admin__name {
    font-size: 0.95rem;
}

.tp-members-admin__pill {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.tp-members-admin__email {
    margin: 0.2rem 0 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    word-break: break-all;
}

.tp-members-admin__meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tp-members-admin__kick {
    margin-left: auto;
    align-self: center;
}

.tp-members-admin__kick-btn {
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #fecaca !important;
}

.tp-chat__avatar--img {
    padding: 0;
    overflow: hidden;
}

.tp-chat__avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.app-perfil-avatar-preview {
    margin-bottom: 1rem;
}

.app-perfil-avatar-preview__img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
}

.app-perfil-avatar-preview__fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--purple), #6366f1);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--border-strong);
}

.app-perfil-form--avatar {
    margin-top: 0.5rem;
}

/* ——— TMDB (entretenimiento + ficha) ——— */
.page-tmdb .app-page-title {
    margin-bottom: 0.35rem;
}

.tmdb-head {
    padding-bottom: 0.5rem;
}

.tmdb-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.65rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg, 14px);
}

.tmdb-tab {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted, #94a3b8);
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.tmdb-tab:hover {
    color: var(--text, #e2e8f0);
    background: rgba(255, 255, 255, 0.06);
}

.tmdb-tab--active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(99, 102, 241, 0.25));
    border-color: rgba(167, 139, 250, 0.45);
}

.tmdb-toolbar {
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-lg, 14px);
}

.tmdb-toolbar__form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.75rem 1rem;
    align-items: end;
}

.tmdb-toolbar__note {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 42rem;
}

.tmdb-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0;
}

.tmdb-field__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #94a3b8);
}

.tmdb-field__input {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    background: rgba(15, 23, 42, 0.65);
    color: var(--text, #f1f5f9);
    font-size: 0.9rem;
}

.tmdb-field__input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.6);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.tmdb-grid-wrap {
    padding-bottom: 2.5rem;
}

.tmdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem 1rem;
}

@media (min-width: 640px) {
    .tmdb-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem 1.15rem;
    }
}

.tmdb-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tmdb-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.tmdb-card__poster {
    aspect-ratio: 2 / 3;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    overflow: hidden;
}

.tmdb-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tmdb-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 10rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tmdb-card__title {
    margin: 0.5rem 0.35rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tmdb-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.75rem;
}

.tmdb-page-link {
    min-width: 2.25rem;
    padding: 0.4rem 0.65rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-muted);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.tmdb-page-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.tmdb-page-link--active {
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(99, 102, 241, 0.35));
    border-color: rgba(167, 139, 250, 0.5);
}

/* Ficha detalle */
.tmdb-detail__hero {
    position: relative;
    margin: 0 calc(50% - 50vw) 0;
    width: 100vw;
    max-width: 100vw;
    min-height: 14rem;
    background-color: #0f172a;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.92) 100%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.25) 100%),
        var(--tmdb-backdrop, none);
    background-size: cover;
    background-position: center top;
}

.tmdb-detail__hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.65) 70%, var(--bg-deep, #0b1020) 100%);
    pointer-events: none;
}

.tmdb-detail__hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 0.5rem;
    padding-bottom: 1.75rem;
}

.tmdb-detail__back {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
}

.tmdb-detail__hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 120px) 1fr;
    gap: 1rem 1.25rem;
    align-items: end;
}

@media (min-width: 640px) {
    .tmdb-detail__hero-grid {
        grid-template-columns: minmax(0, 200px) 1fr;
        gap: 1.5rem 2rem;
    }

    .tmdb-detail__hero {
        min-height: 22rem;
    }
}

.tmdb-detail__poster {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    display: block;
}

.tmdb-detail__kind {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 240, 0.75);
}

.tmdb-detail__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 4vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.tmdb-detail__original,
.tmdb-detail__tagline {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.85);
}

.tmdb-detail__tagline {
    font-style: italic;
    opacity: 0.9;
}

.tmdb-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.tmdb-detail__votes small {
    font-weight: 400;
    opacity: 0.8;
}

.tmdb-detail__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmdb-detail__genres li {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tmdb-detail__body {
    padding-top: 0.5rem;
    padding-bottom: 3rem;
}

.tmdb-block {
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg, 14px);
}

.tmdb-block__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.tmdb-block__sub {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tmdb-block__text {
    font-size: 0.95rem;
    line-height: 1.55;
}

.tmdb-subh {
    margin: 1rem 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.tmdb-subh:first-child {
    margin-top: 0;
}

.tmdb-trailer {
    position: relative;
    width: 100%;
    max-width: 720px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
}

.tmdb-trailer__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tmdb-cast {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.75rem 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmdb-cast__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
}

.tmdb-cast__img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.tmdb-cast__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.tmdb-cast__name {
    font-weight: 600;
}

.tmdb-cast__char {
    color: var(--text-muted);
    line-height: 1.3;
}

.tmdb-reviews {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmdb-reviews__item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.tmdb-reviews__item:last-child {
    border-bottom: 0;
}

.tmdb-reviews__item p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(241, 245, 249, 0.92);
}

.tmdb-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmdb-providers--compact {
    gap: 0.35rem 0.75rem;
    font-size: 0.88rem;
}

.tmdb-providers__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    font-weight: 500;
}

.tmdb-providers__item img {
    border-radius: 6px;
}

.tmdb-splitlyo-match {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.tmdb-alert {
    margin-bottom: 0.75rem;
}

.tmdb-others-note {
    margin-top: 0.5rem;
}

.tmdb-integrated-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmdb-integrated-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

.tmdb-integrated-list img {
    border-radius: 6px;
}

.tmdb-groups-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tmdb-groups-list__item {
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.tmdb-groups-list__item:last-child {
    border-bottom: 0;
}

.tmdb-groups-list__item a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.tmdb-groups-list__item a:hover {
    opacity: 0.88;
}

.tmdb-groups-list__item strong {
    display: block;
    margin-bottom: 0.2rem;
}

/* ——— Reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .hero__aurora,
    .cta-final__bg,
    .btn--primary,
    .btn--cta {
        animation: none;
    }

    .hero-float {
        animation: none;
    }

    .hero__spotlight {
        opacity: 0.2;
    }

    .timeline__line::after {
        transform: scaleY(1);
        transition: none;
    }

    .app-hero__cta--pulse {
        animation: none;
    }

    .app-header-fab__ring,
    .app-acciones-tile,
    .cg-orb,
    .cg-submit__glow {
        animation: none;
    }

    .app-acciones-tile {
        transform: none;
    }

    .app-acciones-tile:hover {
        transform: translateY(-4px);
    }

    .cg-card,
    .cg-submit {
        transform: none;
    }

    .cg-card:hover,
    .cg-submit:hover {
        transform: translateY(-2px);
    }

    .tp-trust-bar__fill,
    .app-group-card__trustbar-fill {
        transition: none;
    }

    .const-show__browser,
    .const-show__browser:hover {
        transform: none;
    }
}

/* ——— Página “en construcción” (vista previa real) ——— */
.page-construction {
    --const-browser-radius: 14px;
}

.page-construction .const-header-badge {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c4b5fd;
}

.page-construction .hero {
    padding-bottom: clamp(3rem, 8vw, 5rem);
}

.const-show {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 6rem);
}

.const-show__grid {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 7vw, 5rem);
}

.const-show__item {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

@media (min-width: 900px) {
    .const-show__item {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }

    .const-show__item--reverse {
        direction: rtl;
    }

    .const-show__item--reverse > * {
        direction: ltr;
    }
}

.const-show__eyebrow {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a78bfa;
}

.const-show__copy h3 {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.const-show__copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.const-show__visual {
    position: relative;
    perspective: 1400px;
}

.const-show__glow {
    position: absolute;
    inset: -12% -8% -8% -12%;
    background: radial-gradient(ellipse at 50% 50%, rgba(124, 58, 237, 0.22) 0%, transparent 62%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.const-show__browser {
    position: relative;
    z-index: 1;
    border-radius: calc(var(--const-browser-radius) + 6px);
    padding: 1px;
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.45), rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.12));
    box-shadow:
        0 32px 64px -28px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transform: perspective(1200px) rotateX(7deg) rotateY(-5deg) translateZ(0);
    transform-style: preserve-3d;
    transition: transform 0.65s var(--ease-out), box-shadow 0.5s ease;
}

.const-show__item:hover .const-show__browser,
.const-show__item:focus-within .const-show__browser {
    transform: perspective(1200px) rotateX(2deg) rotateY(2deg) translateY(-6px) translateZ(12px);
    box-shadow:
        0 40px 72px -24px rgba(124, 58, 237, 0.35),
        0 32px 64px -28px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.const-show__browser-inner {
    border-radius: var(--const-browser-radius);
    overflow: hidden;
    background: rgba(10, 10, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.const-show__browser-chrome {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.const-show__browser-dots {
    display: flex;
    gap: 0.35rem;
}

.const-show__browser-dots span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.const-show__browser-dots span:nth-child(1) {
    background: #f87171;
}

.const-show__browser-dots span:nth-child(2) {
    background: #fbbf24;
}

.const-show__browser-dots span:nth-child(3) {
    background: #4ade80;
}

.const-show__browser-url {
    flex: 1;
    min-width: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-family: ui-monospace, monospace;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.const-show__browser-viewport {
    position: relative;
    line-height: 0;
    background: #000;
}

.const-show__browser-viewport img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.const-show__item--accent .const-show__glow {
    background: radial-gradient(ellipse at 40% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
}

.const-cta-strip {
    text-align: center;
    padding: 0 0 3rem;
}

.const-cta-strip p {
    margin: 0 auto 1.25rem;
    max-width: 36rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.const-footer {
    padding: 2rem 0 2.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #71717a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
