:root {
    --bg: #08090c;
    --bg-soft: #0d0f14;
    --surface: #12141b;
    --surface-2: #181b24;
    --surface-3: #20232d;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);
    --text: #f6f3f2;
    --muted: #9ea1aa;
    --muted-2: #737780;
    --red: #d50026;
    --red-dark: #99001c;
    --red-soft: rgba(213, 0, 38, .14);
    --gold: #c8ad7f;
    --green: #39c487;
    --danger: #ff5368;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .36);
    --header-height: 76px;
    --container: 1240px;
    --font: Inter, Manrope, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 75% -10%, rgba(213, 0, 38, .13), transparent 32rem),
        radial-gradient(circle at -10% 25%, rgba(200, 173, 127, .06), transparent 30rem),
        var(--bg);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

main {
    min-height: calc(100vh - var(--header-height));
}

a {
    color: inherit;
}

img,
video {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(213, 0, 38, .35);
    outline-offset: 3px;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--gold);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.section-heading h1,
.section-heading h2,
.section-heading p {
    margin: 0;
}

.section-heading h1,
.section-heading h2 {
    max-width: 760px;
    font-size: clamp(2rem, 5vw, 3.65rem);
    line-height: 1.02;
    letter-spacing: -.055em;
}

.section-heading > p {
    max-width: 480px;
    color: var(--muted);
    line-height: 1.65;
}

.site-header {
    position: sticky;
    z-index: 80;
    top: 0;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(8, 9, 12, .82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 40px), var(--container));
    height: 100%;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    text-decoration: none;
}

.brand__name {
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.06em;
}

.brand__name span {
    color: var(--red);
}

.brand small {
    align-self: end;
    margin: 0 0 1px -4px;
    color: var(--muted-2);
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .06em;
}

.brand__signal {
    display: flex;
    align-items: end;
    gap: 2px;
    width: 20px;
    height: 21px;
}

.brand__signal i {
    display: block;
    width: 4px;
    border-radius: 5px;
    background: var(--red);
}

.brand__signal i:nth-child(1) { height: 9px; opacity: .5; }
.brand__signal i:nth-child(2) { height: 20px; }
.brand__signal i:nth-child(3) { height: 14px; opacity: .75; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, .055);
}

.site-nav a.is-active {
    box-shadow: inset 0 -2px var(--red);
}

.site-nav .button--primary {
    color: #fff;
    background: var(--red);
    box-shadow: none;
}

.site-nav__divider {
    width: 1px;
    height: 22px;
    margin: 0 5px;
    background: var(--line);
}

.nav-signout {
    color: var(--muted-2) !important;
}

.nav-signout-form {
    display: inline-flex;
    margin: 0;
}

.nav-signout-form .nav-signout {
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--text);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #e1002a, var(--red-dark));
    box-shadow: 0 14px 36px rgba(213, 0, 38, .22);
}

.button--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, .025);
}

.button--soft {
    border-color: rgba(213, 0, 38, .2);
    color: #ff8095;
    background: var(--red-soft);
}

.button--small {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: .82rem;
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text);
    background: var(--surface-2);
    cursor: pointer;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(25, 28, 37, .92), rgba(15, 17, 23, .94));
    box-shadow: 0 14px 45px rgba(0, 0, 0, .16);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 132px) 0 96px;
}

.hero::after {
    position: absolute;
    z-index: -1;
    top: 3%;
    right: -14%;
    width: 48vw;
    height: 48vw;
    border: 1px solid rgba(213, 0, 38, .12);
    border-radius: 50%;
    box-shadow:
        0 0 0 50px rgba(213, 0, 38, .025),
        0 0 0 110px rgba(213, 0, 38, .018);
    content: "";
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
    align-items: center;
    gap: clamp(44px, 8vw, 104px);
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.7rem);
    font-weight: 820;
    line-height: .9;
    letter-spacing: -.075em;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero__lead {
    max-width: 630px;
    margin: 28px 0 0;
    color: #b7bac2;
    font-size: clamp(1rem, 1.8vw, 1.22rem);
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted-2);
    font-size: .82rem;
}

.live-preview {
    position: relative;
    min-height: 510px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 30%),
        #101219;
    box-shadow: var(--shadow);
}

.live-preview::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(213, 0, 38, .18), transparent 35%);
    content: "";
}

.live-preview__top,
.live-preview__bottom {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid rgba(57, 196, 135, .18);
    border-radius: 999px;
    color: #8ce4bb;
    background: rgba(57, 196, 135, .09);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.live-pill i,
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(57, 196, 135, .1);
}

.preview-clock {
    color: var(--muted);
    font-size: .82rem;
}

.preview-talk {
    position: relative;
    z-index: 1;
    display: grid;
    width: 230px;
    height: 230px;
    margin: 68px auto 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, #f23b59, transparent 25%),
        linear-gradient(145deg, #d60027, #840017);
    box-shadow:
        0 30px 70px rgba(213, 0, 38, .3),
        inset 0 2px 1px rgba(255, 255, 255, .24);
}

.preview-talk::before,
.preview-talk::after {
    position: absolute;
    border: 1px solid rgba(213, 0, 38, .24);
    border-radius: 50%;
    content: "";
}

.preview-talk::before { inset: -19px; }
.preview-talk::after { inset: -39px; opacity: .55; }

.preview-talk svg {
    width: 62px;
    height: 62px;
}

.preview-talk span {
    position: absolute;
    bottom: 46px;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.preview-avatars {
    display: flex;
}

.preview-avatar {
    display: grid;
    width: 37px;
    height: 37px;
    margin-left: -8px;
    place-items: center;
    border: 3px solid #101219;
    border-radius: 50%;
    color: var(--text);
    background: var(--surface-3);
    font-size: .72rem;
    font-weight: 850;
}

.preview-avatar:first-child {
    margin-left: 0;
    background: var(--red);
}

.live-preview__bottom small {
    color: var(--muted);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stat {
    padding: 26px 22px;
    text-align: center;
}

.stat + .stat {
    border-left: 1px solid var(--line);
}

.stat strong {
    display: block;
    font-size: 1.85rem;
    letter-spacing: -.045em;
}

.stat span {
    color: var(--muted);
    font-size: .8rem;
}

.home-section {
    padding: 96px 0;
}

.home-section--muted {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .018);
}

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

.feature-card {
    min-height: 250px;
    padding: 26px;
}

.feature-card__number {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 54px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--red);
    background: var(--red-soft);
    font-size: .8rem;
    font-weight: 900;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    letter-spacing: -.025em;
}

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

.gallery-teaser {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    grid-template-rows: 210px 210px;
    gap: 12px;
}

.gallery-teaser a {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-2);
}

.gallery-teaser a:first-child {
    grid-row: 1 / 3;
}

.gallery-teaser a:last-child {
    grid-column: 2 / 4;
}

.gallery-teaser img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-teaser a:hover img {
    transform: scale(1.045);
}

.gallery-teaser__empty {
    display: grid;
    min-height: 360px;
    place-items: center;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(34px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(213, 0, 38, .24);
    border-radius: 30px;
    background:
        radial-gradient(circle at 90% 30%, rgba(213, 0, 38, .28), transparent 32%),
        linear-gradient(135deg, #171017, #101218 60%);
}

.cta-panel h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 4rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.cta-panel p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - var(--header-height));
    place-items: center;
    padding: 60px 20px 90px;
}

.auth-layout {
    display: grid;
    width: min(100%, 980px);
    grid-template-columns: .85fr 1.15fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-intro {
    display: flex;
    min-height: 610px;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px;
    background:
        linear-gradient(180deg, rgba(213, 0, 38, .12), transparent 55%),
        #0c0e13;
}

.auth-intro h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: .95;
    letter-spacing: -.06em;
}

.auth-intro p {
    color: var(--muted);
    line-height: 1.65;
}

.auth-form {
    padding: 44px;
}

.auth-form h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.auth-form > p {
    margin: 0 0 28px;
    color: var(--muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: #c8cad0;
    font-size: .78rem;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--text);
    background: #0e1016;
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #60636d;
}

.field-hint {
    color: var(--muted-2);
    font-size: .72rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
}

.form-switch {
    color: var(--muted);
    font-size: .84rem;
}

.form-switch a {
    color: #ff879b;
}

.form-errors {
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 83, 104, .24);
    border-radius: 12px;
    color: #ffadb9;
    background: rgba(255, 83, 104, .08);
    font-size: .84rem;
    line-height: 1.55;
}

.page-shell {
    padding: 52px 0 100px;
}

.page-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.page-title h1 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    letter-spacing: -.055em;
}

.page-title p {
    margin: 0;
    color: var(--muted);
}

.room-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 20px;
}

.room-stage {
    min-width: 0;
}

.room-card {
    position: relative;
    min-height: 620px;
    padding: clamp(24px, 4vw, 44px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 42%, rgba(213, 0, 38, .14), transparent 28%),
        linear-gradient(145deg, #13151c, #0d0f14);
    box-shadow: var(--shadow);
}

.room-card__header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.room-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.room-identity__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(213, 0, 38, .18);
    border-radius: 14px;
    color: #ff8a9e;
    background: var(--red-soft);
}

.room-identity h2 {
    margin: 0;
    font-size: 1rem;
}

.room-identity small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.connection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}

.connection.is-offline .status-dot {
    background: var(--danger);
    box-shadow: 0 0 0 5px rgba(255, 83, 104, .1);
}

.walkie-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 42px 0 32px;
}

.waveform {
    display: flex;
    height: 46px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 28px;
}

.waveform i {
    display: block;
    width: 4px;
    height: 12px;
    border-radius: 5px;
    background: #6b6e77;
    transition: .2s;
}

.waveform i:nth-child(2),
.waveform i:nth-child(8) { height: 22px; }
.waveform i:nth-child(3),
.waveform i:nth-child(7) { height: 32px; }
.waveform i:nth-child(4),
.waveform i:nth-child(6) { height: 42px; }

.is-transmitting .waveform i,
.is-receiving .waveform i {
    background: var(--red);
    animation: waveform .75s ease-in-out infinite alternate;
}

.waveform i:nth-child(2n) { animation-delay: .12s; }
.waveform i:nth-child(3n) { animation-delay: .24s; }

@keyframes waveform {
    to { transform: scaleY(.35); opacity: .55; }
}

.talk-button {
    position: relative;
    display: grid;
    width: clamp(210px, 28vw, 270px);
    height: clamp(210px, 28vw, 270px);
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle at 36% 24%, #f44461, transparent 25%),
        linear-gradient(145deg, #da0028, #8e001a);
    box-shadow:
        0 32px 80px rgba(213, 0, 38, .28),
        inset 0 2px 1px rgba(255, 255, 255, .27),
        inset 0 -12px 24px rgba(72, 0, 13, .28);
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}

.talk-button::before,
.talk-button::after {
    position: absolute;
    border: 1px solid rgba(213, 0, 38, .26);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.talk-button::before { inset: -18px; }
.talk-button::after { inset: -38px; opacity: .48; }

.talk-button:active,
.is-transmitting .talk-button {
    transform: scale(.96);
    filter: saturate(1.2) brightness(1.08);
}

.talk-button:disabled {
    filter: grayscale(.8);
    opacity: .52;
    cursor: not-allowed;
}

.talk-button__content {
    display: grid;
    place-items: center;
}

.talk-button svg {
    width: 56px;
    height: 56px;
    margin-bottom: 13px;
}

.talk-button strong {
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.talk-button small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .68);
    font-size: .66rem;
}

.room-status {
    min-height: 24px;
    margin: 48px 0 0;
    color: var(--muted);
    font-size: .88rem;
    text-align: center;
}

.room-status strong {
    color: #fff;
}

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

.room-action {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    color: #d7d8dc;
    background: rgba(255, 255, 255, .025);
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.room-action svg {
    width: 20px;
    height: 20px;
}

.room-action.is-active {
    border-color: rgba(57, 196, 135, .22);
    color: #8ce4bb;
    background: rgba(57, 196, 135, .08);
}

.room-sidebar {
    display: grid;
    gap: 16px;
}

.sidebar-card {
    padding: 20px;
}

.sidebar-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.sidebar-card__head h3 {
    margin: 0;
    font-size: .96rem;
}

.count-badge {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #ff91a4;
    background: var(--red-soft);
    font-size: .75rem;
    font-weight: 900;
}

.presence-list,
.schedule-list {
    display: grid;
    gap: 8px;
}

.presence-item,
.schedule-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .027);
}

.presence-avatar {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #343844, #20232c);
    font-size: .76rem;
    font-weight: 900;
}

.presence-avatar::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 8px;
    height: 8px;
    border: 2px solid #15171e;
    border-radius: 50%;
    background: var(--green);
    content: "";
}

.presence-copy,
.schedule-copy {
    min-width: 0;
    flex: 1;
}

.presence-copy strong,
.schedule-copy strong {
    display: block;
    overflow: hidden;
    font-size: .79rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.presence-copy small,
.schedule-copy small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: .68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-date {
    display: grid;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--gold);
    background: rgba(200, 173, 127, .07);
    font-size: .66rem;
    font-weight: 900;
    text-align: center;
}

.empty-state {
    padding: 20px 10px;
    color: var(--muted-2);
    font-size: .78rem;
    line-height: 1.5;
    text-align: center;
}

.photo-rail {
    margin-top: 20px;
    padding: 18px;
}

.photo-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.photo-rail__head h3 {
    margin: 0;
    font-size: .9rem;
}

.photo-rail__head a {
    color: #ff8ca0;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.photo-rail__items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.photo-rail__item {
    width: 100px;
    height: 100px;
    flex: 0 0 100px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-2);
    scroll-snap-align: start;
}

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

.photo-rail__empty {
    width: 100%;
    padding: 22px;
    color: var(--muted-2);
    font-size: .78rem;
    text-align: center;
}

.modal-shell[hidden] {
    display: none;
}

.modal-shell {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    padding: 18px;
    place-items: center;
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.modal-card {
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    padding: 24px;
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: #12141b;
    box-shadow: var(--shadow);
}

.modal-card--camera {
    width: min(100%, 760px);
}

.modal-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.modal-card__head h2 {
    margin: 0;
    font-size: 1.3rem;
}

.camera-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: #050608;
}

.camera-stage video,
.camera-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.camera-stage video.is-front {
    transform: scaleX(-1);
}

.camera-controls,
.preview-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.monetize-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid rgba(200, 173, 127, .18);
    border-radius: 12px;
    color: #dbc79f;
    background: rgba(200, 173, 127, .06);
    font-size: .77rem;
    font-weight: 800;
}

.toast-stack {
    position: fixed;
    z-index: 300;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(calc(100% - 40px), 360px);
    gap: 10px;
}

.toast {
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    color: #fff;
    background: #1b1e27;
    box-shadow: var(--shadow);
    font-size: .82rem;
    animation: toast-in .25s ease;
}

.toast--error {
    border-color: rgba(255, 83, 104, .28);
}

@keyframes toast-in {
    from { transform: translateY(10px); opacity: 0; }
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.room-select {
    min-height: 44px;
    padding: 0 38px 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface);
}

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

.album-card {
    position: relative;
    padding: 0;
    color: inherit;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-2);
    cursor: pointer;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.album-card:hover img {
    transform: scale(1.045);
}

.album-card__overlay {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .74));
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #f1deb6;
    background: rgba(19, 16, 10, .76);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--muted);
    background: var(--surface);
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
}

.pagination span.is-active {
    border-color: var(--red);
    color: #fff;
    background: var(--red);
}

.viewer {
    position: fixed;
    z-index: 220;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    background: rgba(4, 5, 7, .98);
}

.viewer[hidden] {
    display: none;
}

.viewer__stage {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 62px;
    place-items: center;
}

.viewer__image {
    max-width: 100%;
    max-height: calc(100vh - 124px);
    border-radius: 10px;
    object-fit: contain;
}

.viewer__close,
.viewer__nav {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 20, 27, .82);
    cursor: pointer;
}

.viewer__close {
    top: 20px;
    left: 20px;
}

.viewer__nav {
    top: 50%;
    transform: translateY(-50%);
}

.viewer__nav--prev { left: 20px; }
.viewer__nav--next { right: 20px; }

.viewer__side {
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-left: 1px solid var(--line);
    background: #0e1015;
}

.viewer__side h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.viewer__side p {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.55;
}

.viewer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 22px;
}

.viewer-action {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}

.viewer-action.is-active {
    border-color: rgba(213, 0, 38, .3);
    color: #ff8599;
    background: var(--red-soft);
}

.viewer-action--wide {
    grid-column: 1 / -1;
}

.viewer-action strong {
    font-size: .78rem;
}

.viewer-action span {
    font-size: .72rem;
}

.viewer__counter {
    margin-top: auto;
    padding-top: 20px;
    color: var(--muted-2);
    font-size: .73rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.metric-card {
    padding: 22px;
}

.metric-card span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
}

.metric-card strong {
    display: block;
    margin-top: 10px;
    font-size: 1.9rem;
    letter-spacing: -.045em;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    gap: 18px;
}

.panel-card {
    padding: 24px;
}

.panel-card h2 {
    margin: 0 0 18px;
    font-size: 1.2rem;
}

.data-list {
    display: grid;
    gap: 9px;
}

.data-row {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .027);
}

.data-row img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.data-row__copy {
    min-width: 0;
}

.data-row__copy strong {
    display: block;
    overflow: hidden;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-row__copy span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

.status-badge {
    display: inline-flex;
    padding: 6px 8px;
    border-radius: 999px;
    color: #8ce4bb;
    background: rgba(57, 196, 135, .08);
    font-size: .65rem;
    font-weight: 900;
}

.status-badge--pending {
    color: #e5c58e;
    background: rgba(200, 173, 127, .08);
}

.groups-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 20px;
}

.group-list {
    display: grid;
    gap: 12px;
}

.group-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 20px;
}

.group-card__icon {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    place-items: center;
    border: 1px solid rgba(213, 0, 38, .18);
    border-radius: 17px;
    color: #ff879b;
    background: var(--red-soft);
}

.group-card__copy {
    min-width: 0;
    flex: 1;
}

.group-card__copy h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.group-card__copy p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .77rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-box {
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, .02);
    font-size: .73rem;
    word-break: break-all;
}

.flash-stack {
    position: fixed;
    z-index: 260;
    top: calc(var(--header-height) + 14px);
    right: 18px;
    width: min(calc(100% - 36px), 390px);
}

.flash {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #191c24;
    box-shadow: var(--shadow);
    font-size: .84rem;
}

.flash--success {
    border-color: rgba(57, 196, 135, .25);
    color: #9deac5;
}

.flash--error {
    border-color: rgba(255, 83, 104, .25);
    color: #ffacb8;
}

.site-footer {
    display: grid;
    width: min(calc(100% - 40px), var(--container));
    grid-template-columns: 1fr auto;
    gap: 24px;
    margin-inline: auto;
    padding: 54px 0 calc(36px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
}

.brand--footer {
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
    color: var(--muted-2);
    font-size: .75rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
}

.site-footer__links a {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}

.site-footer__legal {
    grid-column: 1 / -1;
}

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

    .room-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        padding: 24px 20px;
        background: rgba(8, 9, 12, .98);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 15px;
        font-size: 1rem;
    }

    .nav-signout-form,
    .nav-signout-form .nav-signout {
        width: 100%;
    }

    .nav-signout-form .nav-signout {
        padding: 15px;
        text-align: left;
    }

    .site-nav__divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    .hero__grid,
    .auth-layout,
    .groups-layout {
        grid-template-columns: 1fr;
    }

    .hero__copy {
        text-align: center;
    }

    .hero__copy .eyebrow,
    .hero__actions {
        justify-content: center;
    }

    .hero__lead {
        margin-inline: auto;
    }

    .hero__note {
        justify-content: center;
    }

    .live-preview {
        width: min(100%, 540px);
        margin-inline: auto;
    }

    .room-layout {
        grid-template-columns: 1fr;
    }

    .room-sidebar {
        grid-template-columns: 1fr 1fr;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    :root {
        --header-height: 66px;
    }

    .container,
    .site-header__inner,
    .site-footer {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand small {
        display: none;
    }

    .hero {
        padding: 66px 0 72px;
    }

    .hero h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .hero::after {
        width: 100vw;
        height: 100vw;
    }

    .live-preview {
        min-height: 430px;
        padding: 20px;
        border-radius: 28px;
    }

    .preview-talk {
        width: 185px;
        height: 185px;
        margin: 58px auto 42px;
    }

    .preview-talk span {
        bottom: 34px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
    }

    .stat + .stat {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .home-section {
        padding: 72px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .feature-card__number {
        margin-bottom: 32px;
    }

    .gallery-teaser {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 270px 150px;
    }

    .gallery-teaser a:first-child {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .gallery-teaser a:last-child {
        grid-column: auto;
    }

    .cta-panel {
        align-items: start;
        flex-direction: column;
    }

    .auth-page {
        padding: 24px 14px 60px;
    }

    .auth-intro {
        min-height: auto;
        padding: 30px;
    }

    .auth-intro__bottom {
        display: none;
    }

    .auth-form {
        padding: 30px 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field--full {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .page-shell {
        padding: 34px 0 72px;
    }

    .page-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .room-card {
        min-height: 565px;
        padding: 22px 16px;
        border-radius: 23px;
    }

    .room-card__header {
        align-items: flex-start;
    }

    .walkie-core {
        padding-top: 42px;
    }

    .talk-button {
        width: min(58vw, 230px);
        height: min(58vw, 230px);
    }

    .room-actions {
        grid-template-columns: 1fr 1fr;
    }

    .room-action {
        min-height: 58px;
    }

    .room-sidebar {
        grid-template-columns: 1fr;
    }

    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .album-card {
        border-radius: 13px;
    }

    .viewer {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .viewer__stage {
        padding: 58px 10px 10px;
    }

    .viewer__image {
        max-height: calc(100vh - 310px);
    }

    .viewer__nav {
        top: 55%;
        width: 42px;
        height: 42px;
    }

    .viewer__nav--prev { left: 10px; }
    .viewer__nav--next { right: 10px; }

    .viewer__side {
        min-height: 230px;
        padding: 18px;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .viewer__side p {
        display: none;
    }

    .viewer__counter {
        margin-top: 12px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card {
        padding: 17px;
    }

    .metric-card strong {
        font-size: 1.45rem;
    }

    .panel-card {
        padding: 18px;
    }

    .data-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .data-row img {
        width: 52px;
        height: 52px;
    }

    .data-row > :last-child:not(.data-row__copy) {
        grid-column: 1 / -1;
    }

    .group-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .group-card .button {
        width: 100%;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer__links {
        flex-direction: column;
        gap: 12px;
    }

    .site-footer__legal {
        grid-column: auto;
    }
}

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