:root {
    --bg: #f6f3ef;
    --surface: #ffffff;
    --surface-strong: #111111;
    --text: #171717;
    --muted: #6f6f6f;
    --line: #e5ddd4;
    --accent: #d94f45;
    --accent-dark: #b83d35;
    --gold: #c99a2e;
    --gold-soft: #fff3c7;
    --ok: #18845d;
    --danger: #a82d25;
    --danger-dark: #7d1f1a;
    --surface-muted: #f0ebe5;
    --surface-soft: #fffaf7;
    --surface-accent: #fff1ef;
    --surface-danger: #fff6f4;
    --surface-ok: #e8f6ef;
    --input-bg: #ffffff;
    --media-bg: #d7d0c8;
    --empty-bg: rgba(255, 255, 255, 0.55);
    --header-bg: rgba(246, 243, 239, 0.94);
    --header-border: rgba(229, 221, 212, 0.9);
    --nav-bg: rgba(255, 255, 255, 0.96);
    --sticky-bg: rgba(246, 243, 239, 0.92);
    --filter-fade: linear-gradient(to top, #fff 82%, rgba(255, 255, 255, 0));
    --shadow: 0 16px 45px rgba(17, 17, 17, 0.10);
    --bottom-nav-height: 74px;
    --bottom-nav-viewport-offset: 0px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #101011;
        --surface: #18181a;
        --surface-strong: #2a2a2f;
        --text: #f4f1ee;
        --muted: #aaa4a0;
        --line: #343236;
        --accent: #e35457;
        --accent-dark: #ff8b8c;
        --gold: #d6a83d;
        --gold-soft: #3b2d10;
        --ok: #54c493;
        --danger: #ff8b80;
        --danger-dark: #b83d35;
        --surface-muted: #262429;
        --surface-soft: #211c1b;
        --surface-accent: #2d1c1d;
        --surface-danger: #321b19;
        --surface-ok: #123425;
        --input-bg: #111113;
        --media-bg: #252329;
        --empty-bg: rgba(255, 255, 255, 0.06);
        --header-bg: rgba(16, 16, 17, 0.94);
        --header-border: rgba(255, 255, 255, 0.08);
        --nav-bg: rgba(20, 20, 22, 0.96);
        --sticky-bg: rgba(16, 16, 17, 0.92);
        --filter-fade: linear-gradient(to top, #18181a 82%, rgba(24, 24, 26, 0));
        --shadow: 0 16px 45px rgba(0, 0, 0, 0.34);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #101011;
    --surface: #18181a;
    --surface-strong: #2a2a2f;
    --text: #f4f1ee;
    --muted: #aaa4a0;
    --line: #343236;
    --accent: #e35457;
    --accent-dark: #ff8b8c;
    --gold: #d6a83d;
    --gold-soft: #3b2d10;
    --ok: #54c493;
    --danger: #ff8b80;
    --danger-dark: #b83d35;
    --surface-muted: #262429;
    --surface-soft: #211c1b;
    --surface-accent: #2d1c1d;
    --surface-danger: #321b19;
    --surface-ok: #123425;
    --input-bg: #111113;
    --media-bg: #252329;
    --empty-bg: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(16, 16, 17, 0.94);
    --header-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(20, 20, 22, 0.96);
    --sticky-bg: rgba(16, 16, 17, 0.92);
    --filter-fade: linear-gradient(to top, #18181a 82%, rgba(24, 24, 26, 0));
    --shadow: 0 16px 45px rgba(0, 0, 0, 0.34);
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + var(--bottom-nav-viewport-offset));
    min-width: 0;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    min-width: 0;
}

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

.app-shell,
.form-panel,
.dashboard-panel,
.field,
.checkbox-line,
.panel-title,
.bottom-nav,
.app-header__inner {
    max-width: 100%;
}

.app-shell > *,
.form-grid > *,
.dashboard-panel > *,
.panel-title > *,
.field-row > *,
.dashboard-social-grid > *,
.creator-gallery__actions > * {
    min-width: 0;
}

.app-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.app-shell--narrow {
    width: min(620px, calc(100% - 24px));
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding-top: env(safe-area-inset-top);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    backdrop-filter: blur(14px);
}

.app-header__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.app-header__inner > .brand {
    flex: 0 0 auto;
    margin-right: auto;
}

.brand img {
    display: block;
    height: 46px;
    width: auto;
}

:root[data-theme="dark"] .brand img {
    content: url("../imagens/logo-heart-dark.svg");
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand img {
        content: url("../imagens/logo-heart-dark.svg");
    }
}

.header-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.app-main {
    padding-bottom: 40px;
}

.search-hero {
    padding: 18px 0 10px;
}

.search-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.search-card__heading,
.section-heading,
.search-card__footer,
.field-row,
.profile-card__title,
.profile-card__actions,
.reel-item__overlay,
.reel-profile,
.reel-actions {
    display: flex;
    align-items: center;
}

.search-card__heading,
.section-heading,
.search-card__footer {
    justify-content: space-between;
    gap: 16px;
}

.search-card__footer {
    margin-top: 14px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.15;
}

h3 {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.2;
}

.field-row {
    margin-top: 18px;
    gap: 10px;
}

.gender-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.gender-filter label {
    position: relative;
    min-width: 0;
}

.gender-filter input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gender-filter span {
    min-height: 44px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-weight: 850;
    text-align: center;
}

.gender-filter input:focus-visible + span {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 79, 69, 0.14);
}

.gender-filter input:checked + span {
    border-color: rgba(217, 79, 69, 0.55);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(217, 79, 69, 0.22);
}

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

.field--grow {
    flex: 1;
}

.city-autocomplete {
    position: relative;
    display: block;
}

.city-autocomplete input {
    width: 100%;
}

.city-autocomplete__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 22px 55px rgba(22, 19, 18, 0.18);
}

.city-autocomplete__panel[hidden] {
    display: none !important;
}

.city-autocomplete__panel button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 10px 12px;
    color: var(--text);
    font: inherit;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
}

.city-autocomplete__panel button:last-child {
    border-bottom: 0;
}

.city-autocomplete__panel button:hover,
.city-autocomplete__panel button.is-active {
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.city-autocomplete__panel small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 950;
}

.city-autocomplete__panel mark {
    border-radius: 4px;
    background: color-mix(in srgb, var(--gold) 28%, transparent);
    color: inherit;
    padding: 0 1px;
}

.field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.field .city-autocomplete {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.field .city-autocomplete__panel span {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 850;
}

.field input,
.field textarea,
.field select {
    min-height: 48px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    padding: 0 13px;
    outline: none;
}

.field textarea {
    min-height: 118px;
    padding-top: 12px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 79, 69, 0.14);
}

::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.btn,
.icon-button,
.text-button {
    border: 0;
    cursor: pointer;
}

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 800;
    white-space: nowrap;
    max-width: 100%;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-muted {
    background: var(--surface-muted);
    color: var(--text);
}

.btn-danger {
    background: var(--danger-dark);
    color: #fff;
}

.btn:disabled,
.btn.is-disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    pointer-events: none;
}

.icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-strong);
    color: #fff;
}

.icon-button--whats {
    background: var(--ok);
}

.icon-button--danger {
    background: var(--danger-dark);
}

.icon-button--light {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}

.text-button--accent {
    color: var(--accent-dark);
}

.filter-toggle {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 12px;
    color: var(--text);
}

.filter-toggle strong {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
}

.segmented-group {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.segmented-group::-webkit-scrollbar {
    display: none;
}

.segmented-group label {
    flex: 0 0 auto;
}

.segmented-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-group span {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 14px;
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
    max-width: 100%;
}

.segmented-group input:checked + span {
    border-color: var(--accent);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.segmented-group--full {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
}

.segmented-group--full label {
    min-width: 0;
    flex: 1 1 auto;
}

.segmented-group--full span {
    width: 100%;
    min-height: 48px;
    gap: 8px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
}

.advanced-panel {
    display: block;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.advanced-panel[hidden] {
    display: none !important;
}

.filter-sheet__header,
.filter-sheet__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-sheet__header {
    margin-bottom: 14px;
}

.filter-sheet__header span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.filter-sheet__header strong {
    display: block;
    margin-top: 2px;
    font-size: 1.08rem;
}

.filter-block {
    margin-bottom: 14px;
}

.filter-block h3 {
    margin: 0 0 8px;
    font-size: 0.88rem;
}

.filter-block .segmented-group {
    margin-top: 0;
}

.filter-sheet__actions {
    position: sticky;
    bottom: 0;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    background: var(--filter-fade);
}

.age-range {
    display: grid;
    gap: 12px;
}

.age-range__header,
.age-range__ticks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.age-range__header span,
.age-range__ticks {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.age-range__header strong {
    color: var(--accent-dark);
    font-size: 1rem;
}

.range-slider {
    --range-min: 18;
    --range-max: 46;
    --min: 18;
    --max: 46;
    position: relative;
    min-height: 44px;
    display: grid;
    align-items: center;
}

.range-slider::before,
.range-slider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 7px;
    border-radius: 999px;
    pointer-events: none;
}

.range-slider::before {
    background: var(--surface-muted);
}

.range-slider::after {
    left: calc((var(--min) - var(--range-min)) / (var(--range-max) - var(--range-min)) * 100%);
    right: calc(100% - ((var(--max) - var(--range-min)) / (var(--range-max) - var(--range-min)) * 100%));
    background: var(--accent);
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.range-slider input[data-age-min] {
    z-index: 2;
}

.range-slider input[data-age-max] {
    z-index: 3;
}

.range-slider input[type="range"]:focus {
    z-index: 4;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 7px;
    background: transparent;
}

.range-slider input[type="range"]::-moz-range-track {
    height: 7px;
    background: transparent;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -8px;
    appearance: none;
    border: 3px solid var(--surface);
    border-radius: 999px;
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.22);
    cursor: grab;
    pointer-events: auto;
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 19px;
    height: 19px;
    border: 3px solid var(--surface);
    border-radius: 999px;
    background: var(--accent-dark);
    box-shadow: 0 4px 12px rgba(17, 17, 17, 0.22);
    cursor: grab;
    pointer-events: auto;
}

.stories-strip,
.profiles-section,
.reels-section {
    padding: 22px 0;
}

.result-count,
.mini-link {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.mini-link {
    color: var(--accent-dark);
}

.story-row-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.story-row-arrow {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.story-row-arrow:hover {
    color: var(--accent-dark);
    border-color: rgba(217, 79, 69, 0.32);
    transform: translateY(-1px);
}

.story-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
}

.story-row::-webkit-scrollbar {
    display: none;
}

.story-avatar {
    width: 78px;
    flex: 0 0 78px;
    display: grid;
    justify-items: center;
    gap: 7px;
    text-align: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.story-avatar span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-avatar img {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid var(--gold);
    background: var(--media-bg);
    box-shadow: 0 8px 18px rgba(17, 17, 17, 0.10);
}

.empty-inline {
    width: 100%;
    padding: 16px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--empty-bg);
    font-weight: 700;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.profile-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.profile-card--prime {
    border-color: rgba(201, 154, 46, 0.72);
    box-shadow: 0 14px 40px rgba(201, 154, 46, 0.18), var(--shadow);
}

.profile-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.13);
}

.profile-card--prime:hover {
    border-color: rgba(201, 154, 46, 0.88);
    box-shadow: 0 18px 48px rgba(201, 154, 46, 0.24), 0 18px 48px rgba(17, 17, 17, 0.10);
}

.profile-card__media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    min-height: 0;
    overflow: hidden;
    background: var(--media-bg);
}

.profile-card__media-track {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.profile-card__media-track::-webkit-scrollbar {
    display: none;
}

.profile-card__media-slide {
    position: relative;
    min-width: 100%;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--media-bg);
}

.profile-card__media-slide--video {
    background: #050505;
}

.profile-card__media img,
.profile-card__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    margin: auto;
}

.profile-card__media video {
    z-index: 1;
    background: #050505;
}

.profile-card__media video:fullscreen,
.profile-card__media-slide:fullscreen video,
.profile-card__media video:-webkit-full-screen,
.profile-card__media-slide:-webkit-full-screen video {
    object-fit: contain;
}

.profile-card__media-arrow,
.profile-card__open-profile,
.profile-card__video-play,
.profile-card__video-fullscreen {
    position: absolute;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    backdrop-filter: blur(10px);
}

.profile-card__media-arrow {
    top: 50%;
    width: 34px;
    height: 34px;
    border: 0;
    transform: translateY(-50%);
    cursor: pointer;
}

.profile-card__media-arrow--prev {
    left: 8px;
}

.profile-card__media-arrow--next {
    right: 8px;
}

.profile-card__open-profile {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    text-decoration: none;
}

.profile-card__video-fullscreen {
    top: 54px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    cursor: pointer;
}

.profile-card__video-play {
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 58px;
    height: 58px;
    border: 0;
    background: rgba(0, 0, 0, 0.44);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.profile-card__video-play i {
    margin-left: 3px;
    font-size: 1.1rem;
}

.profile-card__media-slide--video.is-playing .profile-card__video-play {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.profile-card__media-slide--video:not(.is-playing) .profile-card__video-play:hover,
.profile-card__media-slide--video:not(.is-playing) .profile-card__video-play:focus-visible {
    background: rgba(0, 0, 0, 0.58);
    transform: translate(-50%, -50%) scale(1.04);
}

.profile-card__media-dots {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
}

.profile-card__media-dots button {
    width: 6px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    padding: 0;
    pointer-events: auto;
}

.profile-card__media-dots button[aria-current="true"] {
    width: 18px;
    background: #fff;
}

.prime-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 9px;
    background: rgba(17, 17, 17, 0.78);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.profile-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 20px);
    pointer-events: none;
}

.profile-card__badges .prime-badge,
.public-profile__badges .prime-badge {
    position: static;
    top: auto;
    left: auto;
}

.profile-status-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 9px;
    background: rgba(17, 17, 17, 0.82);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 950;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.profile-status-badge--verified {
    background: rgba(18, 124, 75, 0.92);
    border-color: rgba(255, 255, 255, 0.24);
}

.profile-status-badge--pending {
    background: rgba(17, 17, 17, 0.86);
}

.profile-status-badge--td {
    background: rgba(29, 78, 216, 0.92);
    border-color: rgba(255, 255, 255, 0.24);
}

.prime-badge--gold {
    background: var(--gold-soft);
    color: #6f4a00;
    border: 1px solid rgba(201, 154, 46, 0.45);
    box-shadow: 0 8px 18px rgba(201, 154, 46, 0.18);
}

.prime-badge--pending {
    background: rgba(168, 45, 37, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
}

:root[data-theme="dark"] .prime-badge--gold {
    color: #f3d37e;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .prime-badge--gold {
        color: #f3d37e;
    }
}

.profile-card__body {
    padding: 13px;
}

.profile-card__title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.profile-card__title-main {
    min-width: 0;
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.profile-card__identity {
    min-width: 0;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card__identity h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-nationality-flag {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 16px rgba(15, 15, 16, 0.08);
    font-size: 0.88rem;
    line-height: 1;
}

.profile-card__identity .profile-nationality-flag {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.78rem;
}

.profile-nationality-flag--profile {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 1rem;
}

:root[data-theme="dark"] .profile-nationality-flag {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(24, 24, 26, 0.84);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .profile-nationality-flag {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(24, 24, 26, 0.84);
    }
}

.profile-card__avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    aspect-ratio: 1 / 1;
    flex: 0 0 38px;
    position: relative;
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: var(--line);
    padding: 2px;
    color: inherit;
    isolation: isolate;
    line-height: 0;
}

button.profile-card__avatar {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font: inherit;
}

.profile-card__avatar img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    display: block;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--surface-accent);
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-card__avatar--story {
    background: conic-gradient(from 210deg, #f5d77c, #d94f45, #c99a2e, #f5d77c);
    box-shadow: 0 0 0 2px rgba(201, 154, 46, 0.12), 0 10px 22px rgba(201, 154, 46, 0.24);
}

.profile-card__avatar--story::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--gold);
    z-index: 3;
    box-shadow: 0 3px 10px rgba(201, 154, 46, 0.32);
}

.profile-card__avatar--story:hover,
.profile-card__avatar--story:focus-visible {
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.24), 0 10px 22px rgba(201, 154, 46, 0.28);
}

.profile-card__title span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-card__quick-info {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    padding-left: 0;
}

.profile-card__quick-info span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-accent);
    color: var(--muted);
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.profile-card__quick-info .profile-card__price {
    border-color: rgba(201, 154, 46, 0.32);
    background: color-mix(in srgb, var(--gold) 13%, var(--surface));
    color: #6f4a00;
    box-shadow: none;
}

.profile-card__quick-info .profile-card__price i {
    font-size: 0.7rem;
}

:root[data-theme="dark"] .profile-card__quick-info .profile-card__price {
    color: #f1d37d;
    background: color-mix(in srgb, var(--gold) 20%, var(--surface));
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .profile-card__quick-info .profile-card__price {
        color: #f1d37d;
        background: color-mix(in srgb, var(--gold) 20%, var(--surface));
    }
}

.profile-card__title .profile-card__avatar {
    flex: 0 0 38px;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.profile-card__meta,
.profile-card__desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-weight: 800;
}

.profile-card__distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 9%, var(--surface-accent));
    color: var(--accent-dark);
    padding: 3px 8px;
    font-size: 0.78rem;
    font-weight: 950;
    white-space: nowrap;
}

.profile-card__presence {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.profile-card__presence span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9ca3af;
}

.profile-card__presence.is-online {
    color: #15803d;
}

.profile-card__presence.is-online span {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.profile-card__actions {
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.profile-feed-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.profile-feed-actions[hidden] {
    display: none;
}

.profile-feed-actions [data-profile-feed-status] {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-card__actions .btn {
    flex: 1;
}

.favorite-button {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--muted);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.10);
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.favorite-button:hover {
    transform: translateY(-1px);
    color: var(--accent-dark);
    border-color: rgba(217, 79, 69, 0.35);
}

.favorite-button.is-favorited {
    border-color: rgba(217, 79, 69, 0.38);
    background: var(--surface-accent);
    color: var(--accent);
}

.favorite-button--small {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    box-shadow: none;
}

.favorite-button--profile {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
}

.favorite-button--story {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.34);
    color: #fff;
    backdrop-filter: blur(12px);
}

.favorite-button--story.is-favorited {
    background: rgba(217, 79, 69, 0.22);
    color: #ff5b68;
}

.favorite-burst {
    position: absolute;
    inset: auto auto 54% 54%;
    pointer-events: none;
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 900;
    transform: translate(-50%, -50%);
    animation: favoriteBurst 0.72s ease-out forwards;
}

@keyframes favoriteBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -35%) scale(0.55);
    }
    38% {
        opacity: 1;
        transform: translate(-50%, -82%) scale(1.15);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -135%) scale(1.55);
    }
}

.empty-state,
.notice {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 22px;
}

.empty-state p {
    color: var(--muted);
    line-height: 1.55;
}

.site-footer {
    margin-top: 18px;
    padding: 30px 0 calc(34px + var(--bottom-nav-height) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent),
        var(--surface-soft);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.45fr) auto;
    align-items: center;
    gap: 22px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(217, 79, 69, 0.22));
}

.site-footer__brand strong,
.site-footer__brand span {
    display: block;
}

.site-footer__brand strong {
    font-size: 1rem;
}

.site-footer__brand span,
.site-footer__about p,
.site-footer__legal {
    color: var(--muted);
}

.site-footer__about {
    display: grid;
    gap: 10px;
}

.site-footer__about p {
    margin: 0;
    max-width: 720px;
    line-height: 1.65;
    font-size: 0.94rem;
}

.site-footer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer__badges span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(217, 79, 69, 0.22);
    border-radius: 999px;
    background: var(--surface-accent);
    padding: 0 10px;
    color: var(--accent-dark);
    font-size: 0.75rem;
    font-weight: 900;
}

.site-footer__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.site-footer__links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 12px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
}

.site-footer__links a:hover {
    border-color: rgba(217, 79, 69, 0.38);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.site-footer__legal {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    line-height: 1.45;
}

.notice-error {
    border-color: rgba(217, 79, 69, 0.25);
    background: var(--surface-accent);
    color: var(--accent-dark);
    font-weight: 800;
}

.reels-feed {
    display: grid;
    gap: 18px;
}

.reel-item {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    border-radius: 8px;
    background: #080808;
    scroll-snap-align: start;
    cursor: pointer;
    user-select: none;
}

.reel-item__media,
.reel-item__media img,
.reel-item__media video {
    width: 100%;
    height: 100%;
    min-height: 70vh;
}

.reel-item__media {
    position: relative;
    background: #070707;
}

.reel-item__media--video {
    background: #050505;
}

.reel-item__media.is-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    background: url("../imagens/logo-mark.svg") center / contain no-repeat;
    filter: drop-shadow(0 14px 28px rgba(217, 79, 69, 0.28));
    animation: heartLoaderBeat 1.42s cubic-bezier(.22, .61, .36, 1) infinite;
}

.reel-item__media.is-loading::after {
    content: none;
}

.reel-item__media img,
.reel-item__media video {
    display: block;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
}

.reel-item__media.has-reel-fallback {
    display: grid;
    place-items: center;
}

.reel-item__media.has-reel-fallback img.reel-video-fallback {
    width: 48px;
    height: 48px;
    min-height: 0;
    max-width: 48px;
    object-fit: contain;
    opacity: 0.82;
    filter: drop-shadow(0 12px 26px rgba(217, 79, 69, 0.26));
    animation: heartLoaderBeat 1.42s cubic-bezier(.22, .61, .36, 1) infinite;
}

.reel-item__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.reel-profile {
    gap: 10px;
    min-width: 0;
    font-weight: 900;
}

.reel-profile-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reel-profile {
    color: #fff;
}

.reel-profile img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.reel-actions {
    gap: 8px;
}

.reel-feedback {
    width: 86px;
    height: 86px;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.78);
    animation: reelFeedbackPop 0.72s ease forwards;
    backdrop-filter: blur(10px);
}

.reel-feedback--heart {
    background: rgba(217, 79, 69, 0.18);
    color: #ff4f61;
}

.reel-feedback svg {
    width: 46px;
    height: 46px;
    fill: currentColor;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34));
}

.reel-like {
    min-height: 52px;
    height: auto;
    grid-auto-flow: row;
    gap: 2px;
    padding: 7px 0;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.reel-like span {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.reel-like.is-liked {
    background: #f2445a;
}

@keyframes reelFeedbackPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.78);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.12);
    }
}

.no-more {
    text-align: center;
    color: var(--muted);
    font-weight: 800;
    padding: 18px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes heartLoaderPulse {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.78;
    }

    45% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes heartLoaderBreathe {
    0%,
    100% {
        transform: translateY(0) scale(0.96);
        opacity: 0.72;
    }

    50% {
        transform: translateY(-2px) scale(1);
        opacity: 1;
    }
}

@keyframes heartLoaderBeat {
    0%,
    100% {
        transform: scale(0.96);
        opacity: 0.78;
    }

    18% {
        transform: scale(1.04);
        opacity: 1;
    }

    32% {
        transform: scale(0.98);
        opacity: 0.9;
    }

    48% {
        transform: scale(1.025);
        opacity: 1;
    }

    68% {
        transform: scale(0.96);
        opacity: 0.82;
    }
}

@keyframes reelLoaderTrack {
    0% {
        background:
            linear-gradient(90deg, rgba(217, 79, 69, 0.94), rgba(245, 196, 77, 0.92)) 0 0 / 0% 100% no-repeat,
            rgba(255, 255, 255, 0.17);
    }

    55% {
        background:
            linear-gradient(90deg, rgba(217, 79, 69, 0.94), rgba(245, 196, 77, 0.92)) 0 0 / 100% 100% no-repeat,
            rgba(255, 255, 255, 0.17);
    }

    100% {
        background:
            linear-gradient(90deg, rgba(217, 79, 69, 0.94), rgba(245, 196, 77, 0.92)) 100% 0 / 0% 100% no-repeat,
            rgba(255, 255, 255, 0.17);
    }
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--bottom-nav-viewport-offset);
    z-index: 40;
    height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px max(14px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
    background: var(--nav-bg);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.bottom-nav__item {
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 900;
    min-width: 0;
    padding: 4px 2px;
}

.bottom-nav__item span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav__item i {
    font-size: 1.18rem;
}

@media (max-width: 370px) {
    .bottom-nav__item {
        font-size: 0.68rem;
    }
}

.bottom-nav__item.active,
.bottom-nav__item:hover {
    color: var(--accent-dark);
    background: var(--surface-accent);
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(17, 17, 17, 0.82);
}

:root[data-age-confirmed="1"] .age-gate,
.age-gate[hidden] {
    display: none;
}

.age-gate__panel {
    width: min(440px, 100%);
    max-height: calc(100svh - 40px);
    overflow: auto;
    border-radius: 8px;
    background: var(--surface);
    padding: 24px;
    box-shadow: var(--shadow);
}

.age-gate__badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(217, 79, 69, 0.26);
    border-radius: 999px;
    background: var(--surface-accent);
    padding: 0 10px;
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.age-gate__logo {
    height: 48px;
    width: auto;
}

.age-gate__panel h1 {
    margin-top: 18px;
    font-size: 1.8rem;
}

.age-gate__panel p {
    color: var(--muted);
    line-height: 1.55;
}

.age-gate__panel a {
    color: var(--accent-dark);
    font-weight: 900;
}

.age-gate__alert {
    border: 1px solid rgba(217, 79, 69, 0.24);
    border-radius: 8px;
    background: var(--surface-danger);
    padding: 10px;
    color: var(--text) !important;
    font-weight: 800;
}

.age-gate__field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--text);
    font-weight: 900;
}

.age-gate__field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 0 12px;
    color: var(--text);
    font: inherit;
    font-weight: 800;
}

.age-gate__field input:focus {
    outline: 3px solid rgba(217, 79, 69, 0.18);
    border-color: rgba(217, 79, 69, 0.52);
}

.age-gate__error {
    margin: 8px 0 0;
    color: var(--danger) !important;
    font-size: 0.88rem;
    font-weight: 900;
}

.age-gate__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.cookie-banner {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + var(--bottom-nav-viewport-offset) + 14px);
    left: max(14px, env(safe-area-inset-left));
    z-index: 90;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
    padding: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(16px);
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner__text {
    min-width: 0;
}

.cookie-banner__text strong {
    display: block;
    font-size: 0.94rem;
}

.cookie-banner__text p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner__actions .btn {
    min-height: 40px;
    padding: 0 13px;
}

.stories-body .cookie-banner {
    bottom: calc(14px + env(safe-area-inset-bottom));
    background: rgba(14, 14, 15, 0.86);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.stories-body .cookie-banner__text p {
    color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 680px) {
    .cookie-banner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .btn {
        flex: 1 1 130px;
    }
}

.auth-page,
.dashboard-page,
.profile-page,
.stories-page {
    padding: 26px 0;
}

.story-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.story-location-field {
    margin-bottom: 16px;
}

.feed-sentinel {
    min-height: 1px;
}

.form-panel,
.dashboard-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 18px;
    box-shadow: var(--shadow);
}

.form-grid,
.dashboard-grid {
    display: grid;
    gap: 14px;
}

.dashboard-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.stack {
    display: grid;
    gap: 14px;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.95rem;
    font-weight: 800;
}

.checkbox-line input {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-line span {
    min-width: 0;
}

.checkbox-line a {
    color: var(--accent);
    text-decoration: none;
}

.checkbox-line a:hover {
    text-decoration: underline;
}

.profile-location-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.profile-location-card strong {
    display: block;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 900;
}

.profile-location-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.profile-location-card p.is-error {
    color: var(--danger);
}

.profile-location-card .btn {
    flex: 0 0 auto;
    min-height: 44px;
}

.auth-page .checkbox-line {
    min-height: 58px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
    color: var(--text);
    font-size: clamp(0.98rem, 3.9vw, 1.04rem);
    line-height: 1.45;
}

.auth-page .checkbox-line input {
    width: 26px;
    height: 26px;
    margin-top: 0;
}

.legal-page {
    padding: 28px 0 96px;
}

.legal-hero {
    margin-bottom: 16px;
}

.legal-hero h1 {
    margin: 4px 0 8px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1;
}

.legal-hero p {
    margin: 0;
    color: var(--muted);
}

.legal-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 12px;
}

.legal-card h2 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.legal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.legal-card p + p {
    margin-top: 10px;
}

.legal-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.62;
    font-weight: 650;
}

.legal-note {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(217, 79, 69, 0.24);
    border-radius: 8px;
    background: var(--surface-accent);
    padding: 12px;
}

.legal-note strong {
    color: var(--accent-dark);
}

.legal-note span {
    color: var(--muted);
    line-height: 1.55;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.panel-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 0;
    border-radius: 8px;
    padding: 0 9px;
    background: var(--surface-muted);
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

button.status-pill {
    cursor: pointer;
}

.status-pill--ok {
    background: var(--surface-ok);
    color: var(--ok);
}

.status-pill--danger {
    background: var(--surface-danger);
    color: var(--danger);
}

.status-pill--warning {
    background: var(--gold-soft);
    color: var(--gold);
}

.status-pill--muted {
    background: var(--surface-muted);
    color: var(--muted);
}

.approval-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 16px;
    border: 1px solid rgba(217, 79, 69, 0.28);
    border-radius: 8px;
    background: var(--surface-accent);
    color: var(--accent-dark);
    padding: 16px;
    box-shadow: 0 10px 28px rgba(217, 79, 69, 0.10);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.approval-banner strong {
    display: block;
    font-size: 1.05rem;
}

.approval-banner span {
    color: var(--accent-dark);
    font-weight: 700;
}

.creator-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.creator-hero__profile,
.creator-hero__stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.creator-hero__profile img {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.14);
}

.creator-hero__profile p {
    margin: 5px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.creator-hero__stats {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.creator-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.creator-metric {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 13px;
    box-shadow: var(--shadow-soft);
}

.creator-metric--gold {
    border-color: rgba(207, 153, 43, 0.42);
    background: linear-gradient(135deg, rgba(255, 241, 181, 0.76), var(--surface));
}

.creator-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.creator-metric strong {
    display: block;
    margin-top: 7px;
    color: var(--ink);
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    line-height: 1.05;
}

.creator-metric p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-tabs {
    position: sticky;
    top: 71px;
    z-index: 18;
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 10px 0;
    background: var(--sticky-bg);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
    scroll-padding-inline: 12px;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

.dashboard-tabs [data-dashboard-tab] {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 14px;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.dashboard-tabs [data-dashboard-tab]:hover {
    color: var(--accent-dark);
    border-color: rgba(217, 79, 69, 0.3);
}

.dashboard-tabs [data-dashboard-tab].active {
    border-color: rgba(217, 79, 69, 0.45);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.dashboard-social-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.dashboard-social-grid--tabs {
    display: block;
}

.dashboard-social-grid--tabs > .stack {
    display: contents;
}

[data-dashboard-panel] {
    width: 100%;
}

[data-dashboard-panel][hidden] {
    display: none !important;
}

.is-submitting {
    opacity: 0.74;
    pointer-events: none;
}

.image-fallback {
    object-fit: contain !important;
    padding: 18%;
    background: var(--surface-accent);
}

.profile-card__media img[src$="logo-mark.svg"],
.story-avatar img[src$="logo-mark.svg"],
.reel-profile img[src$="logo-mark.svg"],
.creator-hero__profile img[src$="logo-mark.svg"],
.creator-gallery__item img[src$="logo-mark.svg"],
.favorite-profile-card__media img[src$="logo-mark.svg"],
.client-pack-card__media img[src$="logo-mark.svg"],
.admin-support-card summary img[src$="logo-mark.svg"],
.public-gallery__slide img[src$="logo-mark.svg"],
.profile-pack-card__media img[src$="logo-mark.svg"],
.story-manage-card__media img[src$="logo-mark.svg"],
.admin-item > img[src$="logo-mark.svg"] {
    object-fit: contain;
    padding: 18%;
    background: var(--surface-accent);
}

.inline-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-preview--grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inline-preview__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    background: #111;
}

.inline-preview__item::before {
    content: attr(data-preview-index);
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: rgb(0 0 0 / 0.64);
    font-weight: 800;
    font-size: 0.78rem;
}

.inline-preview__item:not([data-preview-index])::before {
    display: none;
}

.inline-preview__item img,
.inline-preview__item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.inline-preview__caption {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    padding: 7px 8px;
    border-radius: 8px;
    color: #fff;
    background: rgb(0 0 0 / 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creator-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.creator-gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--media-bg);
    border: 1px solid var(--line);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.creator-gallery.is-sorting {
    user-select: none;
}

.creator-gallery__item.is-dragging {
    z-index: 3;
    opacity: 0.72;
    transform: scale(0.985);
    border-color: rgba(217, 79, 69, 0.5);
}

.creator-gallery__item.is-removing {
    opacity: 0;
    transform: scale(0.96);
}

.creator-gallery__media {
    position: relative;
    aspect-ratio: 4 / 5;
    min-height: 0;
    overflow: hidden;
}

.creator-gallery__item img,
.creator-gallery__media img,
.creator-gallery__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.creator-gallery__media video {
    background: #050505;
}

.creator-gallery__type,
.public-gallery__media-type {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.68);
    padding: 0 9px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.creator-gallery__order {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: #fff;
    background: rgb(0 0 0 / 0.62);
    font-weight: 800;
    font-size: 0.78rem;
}

.creator-gallery__drag {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgb(0 0 0 / 0.62);
    cursor: grab;
    touch-action: none;
}

.creator-gallery__drag:active {
    cursor: grabbing;
}

.creator-gallery__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    background: var(--surface);
}

.creator-gallery__actions form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.creator-gallery__actions .icon-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.creator-gallery__actions .icon-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

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

.service-picker label {
    position: relative;
    min-width: 0;
}

.service-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-picker span {
    min-height: 42px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 8px 12px;
    color: var(--text);
    font-weight: 850;
    line-height: 1.15;
    text-align: center;
}

.service-picker input:focus-visible + span {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 79, 69, 0.14);
}

.service-picker input:checked + span {
    border-color: rgba(217, 79, 69, 0.55);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(217, 79, 69, 0.16);
}

.filter-groups,
.option-editor {
    display: grid;
    gap: 12px;
}

.system-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.system-detail {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.system-detail span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.system-detail strong {
    color: var(--text);
    font-size: 1rem;
}

.system-detail small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.filter-groups {
    margin-top: 16px;
}

.filter-group,
.option-editor__group {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.filter-group h3,
.option-editor__group h3 {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.92rem;
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip-row label {
    position: relative;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.filter-chip-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-chip-row span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 0 11px;
    font-size: 0.86rem;
    font-weight: 800;
}

.filter-chip-row input:checked + span {
    border-color: rgba(217, 79, 69, 0.45);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.price-editor {
    display: grid;
    gap: 10px;
}

.price-editor__row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 110px 130px minmax(130px, 1fr) 42px;
    gap: 8px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px;
}

.price-editor__row.is-new {
    border-color: rgba(201, 154, 46, 0.38);
    background: var(--gold-soft);
}

.price-editor__remove {
    align-self: end;
    margin-bottom: 3px;
    color: var(--danger);
}

.price-editor__add {
    width: fit-content;
    margin-top: 10px;
}

.editor-help {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.5;
    font-weight: 700;
}

.profile-services-editor small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.45;
}

.profile-price-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.profile-price-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.profile-price-item strong {
    color: var(--text);
}

.profile-price-item > strong {
    color: var(--accent-dark);
    white-space: nowrap;
}

.profile-price-item span {
    display: inline-flex;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.profile-price-item p {
    margin-top: 6px;
}

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

.account-preferences {
    margin-top: 14px;
}

.theme-mode-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.theme-mode-card strong {
    display: block;
    font-size: 1rem;
}

.theme-mode-card p {
    margin: 5px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.theme-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 8px;
}

.theme-switch button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.theme-switch button.active {
    border-color: rgba(217, 79, 69, 0.45);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.region-switcher {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 12px;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.05);
}

.region-switcher span {
    font-size: 1.08rem;
}

.language-switcher {
    position: relative;
    z-index: 25;
}

.language-switcher summary {
    list-style: none;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(17, 17, 17, 0.05);
    user-select: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher summary > span:not(.language-switcher__globe) {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.language-switcher__globe {
    font-size: 1rem;
    line-height: 1;
}

.language-switcher summary i {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.62;
}

.language-switcher[open] summary {
    border-color: rgba(217, 79, 69, 0.34);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.12);
}

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 184px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 6px;
    box-shadow: 0 22px 50px rgba(17, 17, 17, 0.18);
}

.language-switcher__option {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 9px;
    color: var(--text);
    padding: 0 10px;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.language-switcher__option strong {
    width: 30px;
    color: var(--accent-dark);
    font-size: 0.76rem;
    letter-spacing: 0;
}

.language-switcher__option span {
    color: var(--muted);
    font-weight: 800;
}

.language-switcher__option:hover,
.language-switcher__option[aria-current="true"] {
    background: var(--surface-soft);
}

.language-switcher__option[aria-current="true"] span {
    color: var(--text);
}

.region-banner {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(108px, calc(env(safe-area-inset-bottom) + 96px));
    z-index: 90;
    width: min(430px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    color: var(--text);
    padding: 14px;
    box-shadow: 0 18px 48px rgba(17, 17, 17, 0.16);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(14px);
}

.region-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.region-banner__text {
    display: grid;
    gap: 4px;
}

.region-banner__text strong {
    font-size: 0.92rem;
}

.region-banner__text p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.region-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .region-switcher {
        min-height: 40px;
        padding: 8px 10px;
    }

    .language-switcher {
        margin-left: auto;
    }

    .language-switcher summary {
        min-height: 40px;
        padding: 0 10px;
    }

    .language-switcher summary > span:not(.language-switcher__globe) {
        display: none;
    }

    .language-switcher__menu {
        right: -58px;
        min-width: 178px;
    }

    .region-banner {
        left: max(12px, env(safe-area-inset-left));
        right: max(12px, env(safe-area-inset-right));
        bottom: max(92px, calc(env(safe-area-inset-bottom) + 84px));
        width: auto;
        grid-template-columns: 1fr;
    }

    .region-banner__actions {
        justify-content: stretch;
    }

    .region-banner__actions .btn {
        flex: 1 1 140px;
    }
}

.support-panel {
    gap: 18px;
}

.support-workspace,
.support-list-view,
.support-detail-stack,
.support-open-actions {
    display: grid;
    gap: 14px;
}

.support-panel.is-ticket-open .support-list-view {
    display: none;
}

.support-panel.is-ticket-open > .panel-title {
    display: none;
}

.support-panel.is-ticket-open .admin-pagination {
    display: none;
}

.support-panel.is-ticket-open .support-ticket-card {
    min-height: min(760px, calc(100dvh - 180px));
    align-content: start;
}

.support-panel.is-ticket-open .support-thread {
    max-height: none;
    min-height: clamp(300px, 50dvh, 620px);
}

.support-ticket-detail[hidden],
.support-open-actions[hidden],
[data-support-reopen-actions][hidden] {
    display: none;
}

.support-new-ticket,
.support-composer {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.support-new-ticket summary {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 900;
}

.support-new-ticket form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.support-ticket-list {
    display: grid;
    gap: 10px;
}

.support-ticket-row {
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.support-ticket-row:hover {
    border-color: rgba(217, 79, 69, 0.28);
    background: var(--surface-accent);
}

.support-ticket-row span,
.support-ticket-row b,
.support-ticket-row small {
    min-width: 0;
    display: block;
}

.support-ticket-row b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-ticket-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
}

.support-ticket-card {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.support-ticket-card__header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.support-ticket-card--admin .support-ticket-card__header {
    grid-template-columns: 42px 56px minmax(0, 1fr) auto;
}

.support-back-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
}

.support-ticket-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--media-bg);
}

.support-ticket-card__header span,
.support-message__meta span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.support-ticket-card__header h3 {
    margin: 4px 0 3px;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.support-ticket-card__header p {
    margin: 2px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.support-thread {
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.support-message {
    width: min(86%, 680px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.support-message--admin {
    justify-self: end;
    border-color: rgba(217, 79, 69, 0.22);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.support-message--system {
    width: min(92%, 760px);
    justify-self: center;
    border-style: dashed;
    background: var(--surface-muted);
    color: var(--muted);
}

.support-message__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.support-message p {
    margin: 0;
    line-height: 1.55;
    white-space: pre-line;
}

.support-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.support-attachment-list a,
.support-file-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 11px;
    font-weight: 900;
    text-decoration: none;
}

.support-file-button {
    cursor: pointer;
}

.support-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.support-composer__actions,
.support-ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.upload-drop--compact {
    min-height: 112px;
}

.client-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.client-pack-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.client-pack-card__media {
    aspect-ratio: 16 / 10;
    background: var(--surface-muted);
}

.client-pack-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.client-pack-card__body {
    display: grid;
    gap: 6px;
    padding: 12px;
}

.client-pack-card__body span {
    color: var(--ok);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.client-pack-card__body h3 {
    margin: 0;
    font-size: 1rem;
}

.client-pack-card__body p {
    min-height: 20px;
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.client-pack-card__body strong {
    color: var(--accent-dark);
    font-size: 0.92rem;
}

.client-pack-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
}

.client-pack-card__actions .btn {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.86rem;
}

.client-pack-card__actions .btn.is-disabled {
    grid-column: 1 / -1;
}

.client-pack-media-list {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.client-pack-media-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.client-pack-media-item img,
.client-pack-media-item video {
    width: 100%;
    max-height: 360px;
    display: block;
    object-fit: contain;
    background: #050505;
}

.client-pack-media-item__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
}

.client-pack-media-item__actions .btn {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 10px;
    font-size: 0.82rem;
}

.client-favorite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.favorite-profile-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.favorite-profile-card__media {
    min-height: 100%;
    background: var(--surface-muted);
}

.favorite-profile-card__media img {
    width: 100%;
    height: 100%;
    min-height: 154px;
    display: block;
    object-fit: cover;
}

.favorite-profile-card__body {
    min-width: 0;
    display: grid;
    gap: 9px;
    padding: 12px;
}

.favorite-profile-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.favorite-profile-card__title h3 {
    margin: 0;
    font-size: 1rem;
}

.favorite-profile-card__title p,
.favorite-profile-card__body > p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.favorite-profile-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-profile-card__actions .btn {
    flex: 1;
    min-height: 40px;
}

.story-composer {
    display: grid;
    gap: 12px;
}

.story-admin-workspace {
    display: grid;
    gap: 14px;
}

.story-admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.story-admin-tabs button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.story-admin-tabs button.active {
    border-color: rgba(217, 79, 69, 0.45);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.bump-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.bump-card > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.bump-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.bump-card strong {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
}

.bump-card p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.single-bump-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 14px;
    border: 1px solid rgba(211, 63, 58, 0.18);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.single-bump-card span {
    display: block;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.single-bump-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.12rem;
}

.single-bump-card p,
.single-bump-card small {
    display: block;
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.single-bump-card form {
    margin: 0;
}

.plan-current,
.plan-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.plan-current {
    margin-bottom: 14px;
}

.plan-section-stack {
    display: grid;
    gap: 16px;
}

.plan-choice-form {
    display: grid;
    gap: 16px;
}

.plan-choice-form .plan-section-stack {
    padding-bottom: 118px;
}

.plan-active-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.plan-action-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.plan-action-card--gold {
    border-color: rgba(201, 154, 46, 0.42);
    background: var(--gold-soft);
}

.plan-action-card span {
    display: block;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-action-card h3 {
    margin: 4px 0 0;
    font-size: 1.05rem;
}

.plan-action-card p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.plan-action-card form,
.plan-action-card .btn {
    width: 100%;
}

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

.plan-group--avulso .plan-card-grid {
    grid-template-columns: minmax(0, 1fr);
}

.plan-group__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.plan-group__heading span {
    display: block;
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-group__heading h3 {
    margin: 3px 0 0;
    font-size: 1.05rem;
}

.plan-group__heading p {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
    text-align: right;
}

.plan-current > div,
.plan-card,
.pix-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 14px;
}

.plan-current span,
.plan-card span,
.pix-box span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.pix-box .status-pill {
    display: inline-flex;
    color: var(--muted);
}

.plan-current strong,
.pix-box strong {
    display: block;
    margin-top: 5px;
    font-size: 1rem;
}

.plan-current p,
.plan-card p,
.pix-box p {
    margin: 7px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.plan-card {
    display: grid;
    align-content: space-between;
    gap: 14px;
}

.plan-card--selectable {
    position: relative;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.plan-card--selectable:hover {
    border-color: rgba(211, 63, 58, 0.36);
    transform: translateY(-1px);
}

.plan-card--selectable.is-selected,
.plan-card--selectable:has(.plan-card__radio:checked) {
    border-color: rgba(211, 63, 58, 0.78);
    box-shadow: 0 14px 34px rgba(211, 63, 58, 0.12);
}

.plan-card__radio {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.plan-card--highlight {
    border-color: rgba(201, 154, 46, 0.48);
    background: var(--gold-soft);
}

.plan-card h3 {
    margin: 5px 0 0;
    font-size: 1.05rem;
}

.plan-card strong {
    display: block;
    margin-top: 8px;
    color: var(--accent-dark);
    font-size: 1.18rem;
}

.plan-card__features {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.plan-card__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
}

.plan-card__features i {
    width: 18px;
    color: var(--accent-dark);
    text-align: center;
}

.plan-card form,
.pix-box {
    display: grid;
    gap: 10px;
}

.plan-card .btn {
    width: 100%;
}

.plan-choice-submit {
    position: sticky;
    bottom: calc(var(--bottom-nav-height, 0px) + var(--bottom-nav-viewport-offset) + 10px);
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(211, 63, 58, 0.22);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    padding: 14px;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.1);
    backdrop-filter: blur(16px);
}

.plan-choice-submit span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.plan-choice-submit strong {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
}

.plan-choice-submit p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.pix-box {
    margin-bottom: 14px;
}

.plan-checkout-stage {
    display: grid;
    justify-items: center;
    min-height: min(64dvh, 680px);
    padding: 18px 0;
}

.pix-box--checkout {
    gap: 14px;
}

.pix-box--focused {
    width: min(100%, 560px);
    align-self: center;
}

.pix-box__header,
.pix-box__content {
    display: grid;
    gap: 14px;
}

.pix-box__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

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

.pix-box__content {
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: center;
}

.pix-box__content--checkout {
    grid-template-columns: 1fr;
    justify-items: stretch;
}

.pix-box__content--no-qr {
    grid-template-columns: 1fr;
}

.pix-box__copy {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.pix-box__copy label {
    display: grid;
    gap: 7px;
}

.pix-box__copy input {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--input-bg);
    padding: 12px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
}

.pix-box__copy small {
    color: var(--muted);
    font-weight: 800;
}

.pix-box__qr {
    justify-self: center;
    width: 190px;
    height: 190px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 8px;
}

.pix-box__actions {
    display: grid;
    justify-items: center;
}

.pix-box__actions form {
    margin: 0;
}

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

.finance-card,
.withdraw-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.05);
}

.finance-card span,
.withdraw-panel p {
    color: var(--muted);
}

.finance-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 1.45rem;
}

.finance-card p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.4;
}

.withdraw-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.withdraw-panel h3 {
    margin: 0 0 6px;
}

.dashboard-panel--verification {
    gap: 16px;
}

.kyc-wizard {
    width: min(100%, 900px);
    justify-self: center;
    display: grid;
    gap: 14px;
}

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

.kyc-stepper div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px;
    color: var(--muted);
    font-weight: 900;
}

.kyc-stepper span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
}

.kyc-stepper div.active {
    border-color: rgba(217, 79, 69, 0.3);
    background: var(--surface);
    color: var(--accent-dark);
    box-shadow: 0 12px 26px rgba(217, 79, 69, 0.08);
}

.kyc-stepper div.done {
    border-color: rgba(54, 143, 93, 0.28);
    background: rgba(54, 143, 93, 0.08);
    color: var(--success);
}

.kyc-stepper div.active span {
    background: var(--accent);
    color: #fff;
}

.kyc-stepper div.done span {
    background: var(--success);
    color: #fff;
}

.kyc-slide {
    width: 100%;
    display: grid;
    gap: 14px;
    animation: kycSlideIn 0.22s ease both;
}

@keyframes kycSlideIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kyc-card {
    width: min(100%, 860px);
    justify-self: center;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.kyc-card__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.kyc-card__head > i {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-accent);
    color: var(--accent-dark);
    font-size: 1.1rem;
}

.kyc-card__head strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 950;
}

.kyc-card__head p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.kyc-fields {
    display: grid;
    grid-template-columns: 1.4fr minmax(180px, 0.8fr) minmax(170px, 0.8fr);
    gap: 12px;
}

.kyc-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kyc-upload-card {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.kyc-upload-card .upload-drop {
    min-height: 150px;
    align-content: center;
}

.kyc-upload-card.has-media-preview .upload-drop {
    border-color: rgba(54, 143, 93, 0.42);
    background:
        linear-gradient(180deg, rgba(54, 143, 93, 0.12), rgba(255, 255, 255, 0)),
        var(--surface);
    box-shadow: 0 0 0 3px rgba(54, 143, 93, 0.08);
}

.kyc-upload-card.has-media-preview .upload-drop strong {
    color: var(--success);
}

.kyc-preview {
    min-height: 0;
}

.kyc-preview:not(:empty) {
    display: grid;
    grid-template-columns: 1fr;
}

.kyc-preview .inline-preview__item {
    aspect-ratio: 16 / 10;
}

.kyc-docs-ready-card {
    width: min(100%, 860px);
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(54, 143, 93, 0.24);
    border-radius: 8px;
    background: rgba(54, 143, 93, 0.08);
    padding: 14px;
}

.kyc-docs-ready-card > i {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--success);
    color: #fff;
}

.kyc-docs-ready-card strong {
    display: block;
    color: var(--text);
    font-weight: 950;
}

.kyc-docs-ready-card p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.kyc-next-button {
    width: min(100%, 860px);
    justify-self: center;
}

.verification-capture-grid {
    width: min(100%, 620px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.verification-capture-grid__record,
.verification-capture-grid__preview {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.verification-capture-grid__preview > .btn {
    width: min(100%, 420px);
    justify-self: center;
}

.dashboard-panel--verification .verification-preview-shell:not(.has-media-preview) {
    display: none;
}

.upload-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.upload-choice.is-hidden-by-preview,
.camera-recorder.is-hidden-by-preview {
    display: none;
}

.upload-choice label {
    position: relative;
    min-height: 112px;
    display: grid;
    place-items: center;
    gap: 8px;
    overflow: hidden;
    border: 1px dashed rgba(217, 79, 69, 0.44);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(217, 79, 69, 0.08), transparent),
        var(--surface);
    color: var(--accent-dark);
    cursor: pointer;
    text-align: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.upload-choice label:hover {
    transform: translateY(-1px);
    border-style: solid;
    border-color: rgba(217, 79, 69, 0.72);
    background: var(--surface-accent);
}

.upload-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-choice span {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px;
    font-weight: 900;
}

.upload-choice i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(217, 79, 69, 0.12);
    font-size: 1.1rem;
}

.upload-choice--video label {
    min-height: 116px;
}

.camera-recorder {
    width: 100%;
    justify-self: center;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 16px;
}

.camera-recorder[hidden] {
    display: none;
}

.camera-recorder__stage {
    position: relative;
    overflow: hidden;
    width: min(100%, 390px);
    justify-self: center;
    border-radius: 8px;
    background: #050505;
    aspect-ratio: 9 / 16;
    max-height: min(62vh, 620px);
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
}

.camera-recorder__stage video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #050505;
}

.camera-recorder__placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    background:
        radial-gradient(circle at 50% 42%, rgba(217, 79, 69, 0.24), transparent 34%),
        #050505;
    font-weight: 900;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.camera-recorder.is-camera-open .camera-recorder__placeholder,
.camera-recorder.is-recording .camera-recorder__placeholder {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.camera-recorder__placeholder[hidden] {
    display: none;
}

.camera-recorder__placeholder i {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
}

.camera-recorder__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.camera-recorder__actions .btn {
    min-width: 0;
    padding-inline: 10px;
}

.camera-recorder p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: center;
}

.camera-recorder p.is-error {
    color: var(--danger);
    font-weight: 800;
}

.camera-recorder.is-recording {
    border-color: rgba(168, 45, 37, 0.42);
    box-shadow: 0 0 0 3px rgba(168, 45, 37, 0.08);
}

.camera-recorder.is-recording .camera-recorder__stage::after {
    content: "Gravando";
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.camera-recorder.is-recording .camera-recorder__stage::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 82px;
    z-index: 2;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f3453d;
    box-shadow: 0 0 0 0 rgba(243, 69, 61, 0.5);
    animation: cameraRecordingPulse 1.1s ease-in-out infinite;
}

@keyframes cameraRecordingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 69, 61, 0.48);
    }

    100% {
        box-shadow: 0 0 0 9px rgba(243, 69, 61, 0);
    }
}

@media (max-width: 860px) {
    .verification-capture-grid {
        width: 100%;
    }

    .dashboard-panel--verification .upload-choice,
    .dashboard-panel--verification .camera-recorder,
    .verification-capture-grid__preview > .btn {
        width: 100%;
    }

    .dashboard-panel--verification .story-preview-shell {
        order: 0;
    }

    .camera-recorder__stage {
        width: min(100%, 360px);
        max-height: 70vh;
    }
}

.story-phone-preview {
    overflow: hidden;
    min-height: 260px;
    aspect-ratio: 9 / 16;
    width: min(220px, 100%);
    border-radius: 8px;
    background: #111;
}

.story-phone-preview:empty {
    display: grid;
    place-items: center;
    border: 1px dashed var(--line);
    background: var(--surface-soft);
}

.story-phone-preview:empty::before {
    content: "Prévia";
    color: var(--muted);
    font-weight: 900;
}

.story-phone-preview .inline-preview__item,
.story-phone-preview img,
.story-phone-preview video {
    width: 100%;
    height: 100%;
}

.story-phone-preview .inline-preview__item {
    aspect-ratio: auto;
    border-radius: 0;
}

.verification-guide {
    display: grid;
    gap: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 5%, var(--surface));
    padding: 14px;
}

.verification-guide__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.verification-guide__header i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--surface-accent);
    color: var(--accent-dark);
    font-size: 1rem;
}

.verification-guide__header strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    font-weight: 950;
}

.verification-guide__header p,
.verification-steps p {
    margin: 4px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.verification-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.verification-steps div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.verification-steps span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 950;
}

.verification-steps strong {
    display: block;
    color: var(--text);
    font-weight: 950;
}

.verification-code-card {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(201, 154, 46, 0.42);
    border-radius: 8px;
    background: var(--gold-soft);
    padding: 14px;
}

.verification-code-card span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.verification-code-card strong {
    width: fit-content;
    border-radius: 8px;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.verification-code-card p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 850;
}

.verification-code-card small {
    color: var(--muted);
    font-weight: 800;
    line-height: 1.45;
}

.verification-approved-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(24, 132, 93, 0.28);
    border-radius: 8px;
    background: var(--surface-ok);
    color: var(--ok);
    padding: 18px;
}

.verification-approved-card i {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(24, 132, 93, 0.12);
    font-size: 1.8rem;
}

.verification-approved-card span {
    display: block;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.verification-approved-card strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 1.35rem;
}

.verification-approved-card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.verification-review-card {
    width: min(100%, 620px);
    justify-self: center;
    display: grid;
    gap: 14px;
    border: 1px solid rgba(201, 154, 46, 0.34);
    border-radius: 8px;
    background: var(--gold-soft);
    padding: 16px;
}

.verification-review-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.verification-review-card__header > i {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(201, 154, 46, 0.16);
    color: var(--gold);
    font-size: 1.35rem;
}

.verification-review-card__header span {
    display: block;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.verification-review-card__header strong {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: 1.2rem;
}

.verification-review-card__header p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.kyc-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.kyc-review-grid div {
    border: 1px solid rgba(201, 154, 46, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
    padding: 10px;
}

.kyc-review-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.kyc-review-grid strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.verification-review-card__video {
    overflow: hidden;
    width: min(100%, 390px);
    justify-self: center;
    border-radius: 8px;
    background: #050505;
    aspect-ratio: 9 / 16;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.14);
}

.verification-review-card__video video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #050505;
}

.verification-review-card__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.verification-review-card__meta span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--surface);
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.pack-editor,
.pack-manage-card {
    border: 1px solid rgba(217, 79, 69, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0)),
        var(--surface);
    padding: 16px;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.pack-editor {
    display: grid;
    gap: 14px;
}

.pack-editor__header h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.pack-editor__header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.pack-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.pack-manage-card form {
    display: grid;
    gap: 14px;
}

.pack-manage-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.pack-manage-card__top > div {
    display: grid;
    gap: 6px;
}

.pack-manage-card__top strong {
    font-size: 1.05rem;
}

.pack-manage-card__top > span {
    color: var(--muted);
    font-weight: 900;
    white-space: nowrap;
}

.pack-media-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
}

.pack-media-overview a,
.pack-media-overview .empty-inline {
    min-height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.pack-media-overview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pack-media-overview i {
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.pack-media-overview span {
    display: block;
    margin-top: 4px;
}

.pack-manage-card__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.upload-drop {
    position: relative;
    gap: 8px;
    min-height: 132px;
    justify-content: center;
    border: 1px dashed rgba(217, 79, 69, 0.42);
    background:
        linear-gradient(180deg, rgba(217, 79, 69, 0.08), transparent),
        var(--surface-soft);
    text-align: center;
    cursor: pointer;
}

.upload-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-drop > span {
    color: var(--muted);
}

.upload-drop strong {
    display: grid;
    place-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-size: 0.98rem;
}

.upload-drop strong i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(217, 79, 69, 0.12);
}

.upload-drop small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}

.upload-drop:hover {
    border-style: solid;
    background: var(--surface-accent);
}

.pack-live-preview {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.pack-live-preview[hidden] {
    display: none;
}

.pack-live-preview--compact {
    margin-top: -4px;
}

.pack-live-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pack-live-preview__header strong {
    color: var(--text);
    font-size: 0.95rem;
}

.pack-live-preview__header span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.pack-live-preview__section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.pack-live-preview__section:empty {
    display: none;
}

.pack-live-preview__section--grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.pack-live-preview__item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.pack-live-preview__item img,
.pack-live-preview__item video {
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    object-fit: cover;
    background: #111;
}

.pack-live-preview__item figcaption {
    overflow: hidden;
    padding: 8px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix-box.is-payment-approved {
    border-color: rgba(28, 151, 83, 0.42);
    background: rgba(28, 151, 83, 0.08);
}

@media (max-width: 620px) {
    .camera-recorder__actions,
    .pack-upload-grid,
    .pack-manage-card__actions {
        grid-template-columns: 1fr;
    }

    .verification-review-card__header {
        display: grid;
        justify-items: center;
        text-align: center;
    }

    .pack-manage-card__top {
        display: grid;
    }

    .pack-live-preview__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.public-profile {
    display: grid;
    grid-template-columns: minmax(340px, clamp(420px, 42vw, 500px)) minmax(0, 1fr);
    gap: clamp(18px, 2.2vw, 28px);
    align-items: start;
}

.public-profile--prime .public-gallery,
.public-profile--prime .public-profile__header {
    border: 1px solid rgba(201, 154, 46, 0.72);
    box-shadow: 0 14px 40px rgba(201, 154, 46, 0.14);
}

.public-gallery-shell {
    position: sticky;
    top: 76px;
    width: 100%;
    max-width: clamp(420px, 42vw, 500px);
    min-width: 0;
    justify-self: center;
    align-self: start;
}

.public-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    scrollbar-width: none;
}

.public-gallery::-webkit-scrollbar {
    display: none;
}

.public-gallery__slide {
    position: relative;
    min-width: 100%;
    height: clamp(430px, calc(100vh - 220px), 620px);
    margin: 0;
    overflow: hidden;
    aspect-ratio: auto;
    border-radius: 8px;
    background: var(--media-bg);
    scroll-snap-align: center;
}

.public-gallery__arrow {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-50%);
}

.public-gallery__arrow--prev {
    left: 12px;
}

.public-gallery__arrow--next {
    right: 12px;
}

.public-gallery__arrow:hover,
.public-gallery__arrow:focus-visible {
    background: rgba(0, 0, 0, 0.36);
}

.public-gallery__expand {
    width: 42px;
    height: 42px;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20);
}

.public-gallery__expand:hover,
.public-gallery__expand:focus-visible {
    background: rgba(0, 0, 0, 0.42);
}

.public-gallery__dots {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding-top: 10px;
}

.public-gallery__dots button {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 34%, transparent);
    cursor: pointer;
    transition: width 0.16s ease, background 0.16s ease;
}

.public-gallery__dots button[aria-current="true"] {
    width: 22px;
    background: var(--accent);
}

.public-gallery__slide img,
.public-gallery__slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-gallery__slide img {
    cursor: zoom-in;
}

.public-gallery__slide video {
    background: #050505;
}

.public-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.public-gallery-thumb {
    position: relative;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--media-bg);
    cursor: pointer;
    padding: 0;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.public-gallery-thumb:hover,
.public-gallery-thumb:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 54%, transparent);
}

.public-gallery-thumb[aria-current="true"] {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}

.public-gallery-thumb img,
.public-gallery-thumb video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-gallery-thumb span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.18);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.public-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: block;
    background: rgba(0, 0, 0, 0.94);
    color: #fff;
}

.public-gallery-lightbox[hidden] {
    display: none;
}

.public-gallery-lightbox__bar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 4;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
}

.public-gallery-lightbox__bar strong {
    font-size: 0.92rem;
    font-weight: 900;
}

.public-gallery-lightbox__button {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.public-gallery-lightbox__button:hover,
.public-gallery-lightbox__button:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.public-gallery-lightbox__stage {
    position: absolute;
    inset: 0;
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: calc(78px + env(safe-area-inset-top)) 92px calc(30px + env(safe-area-inset-bottom));
}

.public-gallery-lightbox__media {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-gallery-lightbox__media img,
.public-gallery-lightbox__media video {
    width: auto;
    height: auto;
    max-width: min(100%, 1120px);
    max-height: calc(100vh - 128px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: block;
    border-radius: 8px;
    object-fit: contain;
    background: #050505;
}

.public-gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
}

.public-gallery-lightbox__nav--prev {
    left: 16px;
}

.public-gallery-lightbox__nav--next {
    right: 16px;
}

.public-gallery-lightbox__dots {
    position: absolute;
    right: 92px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 92px;
    z-index: 6;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    pointer-events: auto;
}

.public-gallery-lightbox__dots button {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

.public-gallery-lightbox__dots button[aria-current="true"] {
    width: 24px;
    background: #fff;
}

body.gallery-lightbox-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .public-gallery-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
        margin-top: 10px;
    }

    .public-gallery__expand {
        width: 38px;
        height: 38px;
        right: 10px;
        top: 10px;
    }

    .public-gallery-lightbox__stage {
        padding: calc(70px + env(safe-area-inset-top)) 10px calc(72px + env(safe-area-inset-bottom));
    }

    .public-gallery-lightbox__media img,
    .public-gallery-lightbox__media video {
        max-width: 100%;
        max-height: calc(100vh - 152px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }

    .public-gallery-lightbox__nav {
        top: auto;
        bottom: calc(18px + env(safe-area-inset-bottom));
        transform: none;
    }

    .public-gallery-lightbox__nav--prev {
        left: 16px;
    }

    .public-gallery-lightbox__nav--next {
        right: 16px;
    }

    .public-gallery-lightbox__dots {
        right: 78px;
        bottom: calc(28px + env(safe-area-inset-bottom));
        left: 78px;
    }
}

.public-profile__info {
    display: grid;
    gap: 14px;
}

.public-profile__header,
.profile-info-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 16px;
}

.public-profile__header p,
.profile-info-section p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.profile-info-section h3 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 950;
}

.profile-characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 12px 0 0;
}

.profile-characteristics-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-accent);
    padding: 10px;
}

.profile-characteristics-grid dt {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.2;
}

.profile-characteristics-grid dd {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 950;
    line-height: 1.2;
}

.public-profile__header .profile-location-summary {
    color: var(--text);
    font-weight: 700;
}

.public-profile__location {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.public-profile__name-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.public-profile__name-line h1 {
    min-width: 0;
}

.public-profile__place,
.profile-distance-pill,
.profile-age-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-distance-pill,
.profile-age-pill {
    min-height: 30px;
    border-radius: 999px;
    background: var(--surface-accent);
    color: var(--accent-dark);
    padding: 4px 10px;
    font-size: 0.86rem;
    font-weight: 950;
}

.profile-distance-pill {
    background: color-mix(in srgb, var(--gold) 14%, var(--surface-accent));
    color: var(--text);
}

.public-profile__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.public-gallery__badges {
    right: 62px;
    max-width: calc(100% - 84px);
}

.td-positive-section {
    border-color: rgba(29, 78, 216, 0.22);
}

.td-positive-card {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid color-mix(in srgb, #1d4ed8 22%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, #1d4ed8 6%, var(--surface));
    padding: 12px;
}

.td-positive-card span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1d4ed8;
    font-weight: 950;
}

.td-positive-card p {
    margin: 0;
}

.public-profile__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-profile__title-row h1 {
    min-width: 0;
}

.profile-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-story-avatar {
    position: relative;
    width: 62px;
    height: 62px;
    min-width: 62px;
    min-height: 62px;
    max-width: 62px;
    max-height: 62px;
    aspect-ratio: 1 / 1;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding: 3px;
    overflow: visible;
    background: var(--line);
    color: inherit;
    text-decoration: none;
    isolation: isolate;
}

.profile-story-avatar--active {
    background:
        conic-gradient(from 210deg, #f5d77c, #d94f45, #c99a2e, #f5d77c);
    box-shadow: 0 12px 28px rgba(201, 154, 46, 0.24);
}

.profile-story-avatar img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    display: block;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--surface-accent);
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-story-avatar--active::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    background: var(--gold);
    z-index: 3;
    box-shadow: 0 3px 10px rgba(201, 154, 46, 0.34);
}

.profile-story-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.profile-story-link--muted {
    color: var(--muted);
}

.profile-section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.profile-section-title p {
    margin-top: 6px;
}

.profile-edit-section {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-accent) 46%, var(--surface));
    padding: 14px;
}

.language-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
}

.choice-pill {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    overflow: hidden;
}

.choice-pill input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.choice-pill span {
    width: 100%;
    padding: 10px 12px;
    text-align: center;
}

.choice-pill input:checked + span {
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent-dark);
}

.choice-pill:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent) 68%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    color: var(--accent-dark);
    box-shadow: 0 10px 22px rgba(220, 64, 66, 0.1);
}

.choice-pill--wide {
    width: 100%;
}

.profile-schedule-editor {
    display: grid;
    gap: 10px;
}

.profile-schedule-range {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.profile-schedule-range[hidden] {
    display: none;
}

.profile-action-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.profile-action-bar .btn {
    min-width: 0;
    min-height: 50px;
    padding: 10px 14px;
    text-align: center;
    line-height: 1.15;
    white-space: normal;
}

.profile-report-section {
    display: grid;
    gap: 12px;
}

.profile-safety-note {
    border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--gold) 8%, var(--surface));
    padding: 12px;
}

.profile-safety-note strong {
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 950;
}

.profile-safety-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.profile-report-section .btn {
    width: 100%;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chip-list span {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    background: var(--surface-accent);
    color: var(--accent-dark);
    padding: 0 10px;
    font-size: 0.84rem;
    font-weight: 900;
}

.chip-list--muted span {
    background: var(--surface-muted);
    color: var(--muted);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.78;
}

.public-price-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.public-price {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.public-price span,
.public-price p {
    display: block;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.public-price b {
    color: var(--accent-dark);
    white-space: nowrap;
}

.profile-pack-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.profile-pack-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 10px;
}

.profile-pack-card__media {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--surface-muted);
}

.profile-pack-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-pack-card__body {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.profile-pack-card__body span {
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-pack-card__body p {
    margin: 5px 0 0;
}

.profile-pack-card__body > strong {
    color: var(--text);
    font-size: 1.05rem;
}

.profile-pack-card__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-pack-card__actions form {
    display: contents;
}

.profile-pack-card__actions .btn,
.profile-pack-card__actions .status-pill {
    width: 100%;
}

.profile-pack-checkout {
    margin-top: 12px;
}

.stories-body {
    background: #050505;
    padding-bottom: 0;
    overflow: hidden;
}

.stories-body .stories-topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 45;
    border-bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    color: #fff;
}

.stories-body .header-account {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
}

.stories-body {
    padding-bottom: 0;
    background: #050505;
    overscroll-behavior: contain;
}

.stories-body .bottom-nav {
    display: none;
}

.stories-back-button {
    width: 44px;
    height: 44px;
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    top: max(14px, env(safe-area-inset-top));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.stories-back-button:hover,
.stories-back-button:focus-visible {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.stories-page--full {
    padding: 0;
    min-height: var(--ap-viewport-height, 100dvh);
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.stories-body.is-swipe-leaving .stories-page--full {
    transform: translateX(22vw);
    opacity: 0.42;
}

.stories-frame {
    position: relative;
    height: var(--ap-viewport-height, 100dvh);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    background: #050505;
    scrollbar-width: none;
    touch-action: pan-y;
}

.stories-loader {
    position: fixed;
    inset: 0;
    z-index: 4;
    display: none;
    place-items: center;
    pointer-events: none;
    background: rgba(5, 5, 5, 0.78);
}

.stories-loader.is-visible {
    display: grid;
}

.stories-loader img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(217, 79, 69, 0.30));
    animation: heartLoaderBeat 1.42s cubic-bezier(.22, .61, .36, 1) infinite;
}

.stories-loader::after {
    content: none;
}

.stories-frame::-webkit-scrollbar {
    display: none;
}

.stories-frame .reels-feed {
    display: block;
    gap: 0;
    min-height: 100%;
}

.stories-frame .reel-item {
    min-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
}

.stories-frame .reel-item__media,
.stories-frame .reel-item__media img,
.stories-frame .reel-item__media video {
    min-height: 100%;
    height: 100%;
}

.stories-frame .reel-item__overlay {
    align-items: flex-end;
    padding: 24px max(16px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.stories-frame .reel-actions {
    flex-direction: column;
}

.home-story-overlay {
    position: fixed;
    inset: 0;
    z-index: 96;
    background: #050505;
}

.home-story-overlay[hidden] {
    display: none;
}

body.home-story-open {
    overflow: hidden;
}

.home-story-overlay__close {
    width: 44px;
    height: 44px;
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    top: max(14px, env(safe-area-inset-top));
    z-index: 106;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.26);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.home-story-overlay__empty {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
    font-weight: 900;
}

@media (min-width: 900px) {
    .stories-frame {
        background:
            radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 28%),
            linear-gradient(90deg, #000 0%, #050505 18%, #111 50%, #050505 82%, #000 100%);
    }

    .stories-frame::before,
    .stories-frame::after {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1;
        width: 30vw;
        pointer-events: none;
    }

    .stories-frame::before {
        left: 0;
        background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
    }

    .stories-frame::after {
        right: 0;
        background: linear-gradient(270deg, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 100%);
    }

    .stories-frame .reels-feed {
        --desktop-reel-width: min(430px, calc(100vw - 180px));
        --desktop-reel-height: min(760px, calc(100dvh - 48px));
        position: relative;
        z-index: 2;
        display: grid;
        justify-items: center;
        min-height: 100%;
    }

    .stories-frame .reel-item {
        width: var(--desktop-reel-width);
        max-width: calc(56.25dvh - 27px);
        min-height: 0;
        height: var(--desktop-reel-height);
        margin: max(24px, calc((100dvh - 760px) / 2)) auto;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 18px;
        background: #050505;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(255, 255, 255, 0.05);
        scroll-snap-align: center;
    }

    .stories-frame .reel-item__media,
    .stories-frame .reel-item__media img,
    .stories-frame .reel-item__media video {
        min-height: 0;
        height: 100%;
    }

    .stories-frame .reel-item__overlay {
        padding: 22px 18px 20px;
    }

    .stories-back-button {
        left: max(24px, calc(50vw - 286px));
        top: max(24px, env(safe-area-inset-top));
        background: rgba(0, 0, 0, 0.32);
    }
}

@media (max-width: 899px) {
    .stories-frame {
        height: var(--ap-viewport-height, 100svh);
        min-height: var(--ap-viewport-height, 100svh);
        overscroll-behavior-y: contain;
    }

    @supports (height: 100dvh) {
        .stories-frame {
            height: var(--ap-viewport-height, 100dvh);
            min-height: var(--ap-viewport-height, 100dvh);
        }
    }

    .stories-frame .reels-feed {
        width: 100%;
        min-height: 100%;
    }

    .stories-frame .reel-item {
        width: min(100vw, 480px);
        max-width: 100%;
        min-height: var(--ap-viewport-height, 100svh);
        height: var(--ap-viewport-height, 100svh);
        margin: 0 auto;
        background: #050505;
    }

    @supports (height: 100dvh) {
        .stories-frame .reel-item {
            min-height: var(--ap-viewport-height, 100dvh);
            height: var(--ap-viewport-height, 100dvh);
        }
    }

    .stories-frame .reel-item__media {
        min-height: 0;
        height: 100%;
        overflow: hidden;
    }

    .stories-frame .reel-item__media img,
    .stories-frame .reel-item__media video {
        width: 100%;
        height: 100%;
        min-height: 0;
        object-fit: cover;
        object-position: center center;
    }

    .stories-frame .reel-item__overlay {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px;
        padding: 18px max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0));
    }

    .stories-frame .reel-profile-line {
        width: fit-content;
        max-width: min(68vw, 300px);
        gap: 8px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.22);
        padding: 5px 7px 5px 5px;
        backdrop-filter: blur(8px);
    }

    .stories-frame .reel-profile {
        min-width: 0;
        max-width: min(52vw, 236px);
    }

    .stories-frame .reel-profile span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .stories-frame .reel-profile img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .stories-frame .favorite-button--story {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border: 0;
        background: rgba(255, 255, 255, 0.14);
    }

    .stories-frame .reel-actions {
        align-items: center;
        align-self: end;
        gap: 8px;
    }

    .stories-frame .reel-actions .icon-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        backdrop-filter: blur(10px);
    }

    .stories-frame .reel-actions .icon-button--whats {
        background: rgba(28, 185, 84, 0.92);
    }

    .stories-frame .reel-like {
        min-height: 46px;
        padding: 5px 0;
    }

    .stories-back-button {
        width: 40px;
        height: 40px;
        left: max(10px, env(safe-area-inset-left));
        top: max(10px, env(safe-area-inset-top));
    }
}

@media (max-width: 899px) and (orientation: landscape) {
    .stories-frame .reel-item {
        width: 100vw;
        max-width: 100vw;
    }
}

@media (max-width: 380px) {
    .stories-frame .reel-item__overlay {
        gap: 10px;
        padding-inline: 10px;
    }

    .stories-frame .reel-profile-line {
        max-width: 66vw;
    }

    .stories-frame .reel-actions .icon-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

.story-feed-header--overlay {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    top: 78px;
    z-index: 46;
    color: #fff;
    pointer-events: none;
}

.story-feed-header--overlay h1 {
    font-size: 1.25rem;
}

.story-feed-header--overlay .icon-button {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(12px);
}

.story-location-field--overlay {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    top: 138px;
    z-index: 46;
    width: min(320px, calc(100% - 32px));
}

.story-location-field--overlay span {
    color: rgba(255, 255, 255, 0.78);
}

.story-location-field--overlay input {
    min-height: 38px;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    backdrop-filter: blur(12px);
}

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

.story-manage-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.story-manage-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.story-manage-card.is-removing {
    opacity: 0;
    transform: translateX(12px);
}

.story-manage-card__media {
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border-radius: 8px;
    background: #111;
}

.story-manage-card__media img,
.story-manage-card__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-manage-card__body {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.story-manage-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.story-manage-card__actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.story-manage-card__actions .btn,
.admin-actions .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
}

.story-manage-card__actions .btn-danger {
    flex: 0 0 auto;
}

.inline-ajax-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ok);
    background: var(--surface-ok);
    border: 1px solid rgba(24, 132, 93, 0.28);
    font-weight: 800;
    font-size: 0.9rem;
}

.inline-ajax-message--error {
    color: var(--danger);
    background: var(--surface-danger);
    border-color: rgba(168, 45, 37, 0.28);
}

.admin-page {
    padding-bottom: 36px;
}

.admin-tabs [data-dashboard-tab] strong {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
}

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

.admin-stat {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 14px;
}

.admin-stat span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-stat strong {
    font-size: 1.6rem;
    line-height: 1;
}

.admin-overview,
.admin-plans-panel {
    margin-top: 14px;
}

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

.admin-insight-card,
.admin-mini-section,
.admin-compact-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.admin-insight-card {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.admin-insight-card span,
.admin-plan-table small,
.admin-compact-row span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-insight-card strong {
    font-size: clamp(1.25rem, 2vw, 1.9rem);
    line-height: 1;
}

.admin-insight-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.admin-overview-grid,
.admin-revenue-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.admin-mini-section {
    padding: 14px;
}

.admin-mini-section--wide {
    grid-column: 1 / -1;
}

.admin-mini-section h3 {
    margin-bottom: 10px;
}

.admin-mini-list {
    display: grid;
    gap: 8px;
}

.admin-mini-list button,
.admin-plan-table > div,
.admin-compact-row {
    width: 100%;
    min-height: 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px 12px;
    color: var(--text);
    text-align: left;
}

.admin-mini-list button {
    cursor: pointer;
    font: inherit;
}

.admin-mini-list span,
.admin-plan-table span,
.admin-compact-row div {
    min-width: 0;
}

.admin-mini-list strong,
.admin-compact-row b {
    color: var(--accent-dark);
}

.admin-plan-table {
    display: grid;
    gap: 8px;
}

.admin-plan-table > div {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-plan-table strong,
.admin-plan-table small,
.admin-compact-row strong,
.admin-compact-row span {
    display: block;
}

.admin-plan-table em {
    color: var(--accent-dark);
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.admin-management {
    margin-top: 14px;
}

.admin-search-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.admin-support-list {
    display: grid;
    gap: 10px;
}

.admin-support-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    overflow: hidden;
}

.admin-support-card summary {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    cursor: pointer;
}

.admin-support-card summary::marker {
    color: var(--accent-dark);
}

.admin-support-card summary img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--media-bg);
}

.admin-support-card summary strong,
.admin-support-card summary small {
    display: block;
}

.admin-support-card summary small,
.admin-muted {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 700;
}

.admin-support-card summary b {
    color: var(--accent-dark);
    font-size: 0.84rem;
}

.admin-support-grid {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding: 12px;
}

.admin-edit-box {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 12px;
}

.admin-edit-box--danger {
    border-color: rgba(217, 79, 69, 0.25);
    background: var(--surface-danger);
}

.admin-td-positive-box {
    border-color: rgba(29, 78, 216, 0.22);
}

.admin-td-positive-box textarea {
    min-height: 110px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.admin-form-grid__wide {
    grid-column: 1 / -1;
}

.admin-section {
    min-width: 0;
}

.admin-section--wide {
    grid-column: 1 / -1;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-pagination span {
    margin-right: auto;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-pagination a {
    min-width: 38px;
    min-height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 0 12px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 900;
}

.admin-pagination a.active {
    border-color: rgba(217, 79, 69, 0.38);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 12px;
}

.admin-item--media {
    grid-template-columns: 76px minmax(0, 1fr) auto;
}

.admin-item--verification {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.admin-item > img,
.admin-media {
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--media-bg);
}

.admin-item > img,
.admin-media img,
.admin-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.admin-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-kyc-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.admin-kyc-summary span,
.admin-kyc-links .status-pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    padding: 0 10px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.admin-kyc-summary strong {
    color: var(--text);
}

.admin-kyc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 1100px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-social-grid,
    .public-profile {
        grid-template-columns: 1fr;
    }

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

    .bump-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-gallery-shell {
        position: relative;
        top: auto;
        max-width: none;
        justify-self: stretch;
    }

    .public-gallery__slide {
        aspect-ratio: 3 / 4;
        height: auto;
        max-height: none;
    }

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

    .admin-insight-grid,
    .admin-overview-grid,
    .admin-revenue-layout {
        grid-template-columns: 1fr;
    }

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

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

    .site-footer__grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .site-footer__links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    body.filter-sheet-open {
        overflow: hidden;
    }

    .btn {
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        white-space: normal;
        line-height: 1.15;
        text-align: center;
    }

    .panel-title {
        min-width: 0;
    }

    .panel-title h1,
    .panel-title h2,
    .panel-title h3,
    .panel-title p {
        overflow-wrap: anywhere;
    }

    .app-shell {
        width: min(1120px, calc(100% - 24px));
    }

    .app-header__inner {
        min-height: 62px;
    }

    .brand img {
        height: 40px;
    }

    .header-account span {
        display: none;
    }

    .search-card {
        padding: 14px;
    }

    .stories-strip {
        position: sticky;
        top: calc(62px + env(safe-area-inset-top));
        z-index: 19;
        padding: 6px 0 5px;
        border-bottom: 1px solid var(--header-border);
        background: color-mix(in srgb, var(--bg) 91%, transparent);
        backdrop-filter: blur(16px);
    }

    .stories-strip .app-shell {
        width: 100%;
    }

    .stories-strip .section-heading {
        display: flex;
        align-items: center;
        padding: 0 12px 2px;
    }

    .stories-strip .section-heading h2 {
        display: none;
    }

    .stories-strip .eyebrow {
        margin: 0;
        font-size: 0.68rem;
        letter-spacing: 0;
    }

    .story-row-controls {
        gap: 6px;
    }

    .story-row-controls .mini-link {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .story-row-arrow {
        display: none;
    }

    .story-row {
        align-items: start;
        gap: 8px;
        margin-top: 2px;
        padding: 5px 12px 6px;
        scroll-padding-inline: 12px;
        scroll-snap-type: x proximity;
    }

    .story-avatar {
        width: 58px;
        flex-basis: 58px;
        gap: 4px;
        font-size: 0.66rem;
        scroll-snap-align: start;
    }

    .story-avatar img {
        width: 50px;
        height: 50px;
        border-width: 2px;
        box-shadow: none;
    }

    .profiles-section {
        padding-top: 16px;
    }

    .profiles-section .app-shell {
        width: min(100%, 540px);
    }

    .profiles-section .section-heading {
        padding: 0 14px;
    }

    .search-card__heading,
    .section-heading {
        align-items: flex-start;
    }

    .field-row {
        display: grid;
        gap: 12px;
    }

    .search-submit {
        width: 100%;
        min-height: 48px;
    }

    .search-card__footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 12px;
        margin-top: 14px;
    }

    .search-card__footer .text-button {
        justify-content: center;
        min-width: 0;
        min-height: 48px;
    }

    .search-card__footer .text-button--accent {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--surface);
        padding: 0 12px;
        font-size: 0.8rem;
        line-height: 1.15;
        text-align: center;
    }

    .site-footer {
        padding-top: 24px;
    }

    .site-footer__legal {
        display: grid;
    }

    .advanced-panel {
        position: fixed;
        left: max(0px, env(safe-area-inset-left));
        right: max(0px, env(safe-area-inset-right));
        bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + var(--bottom-nav-viewport-offset));
        z-index: 44;
        max-height: min(78dvh, 620px);
        overflow-y: auto;
        margin: 0;
        padding: 16px;
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
        background: var(--surface);
        box-shadow: 0 -18px 44px rgba(17, 17, 17, 0.18);
        overscroll-behavior: contain;
    }

    .filter-sheet__actions {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -16px;
        padding: 12px 16px 16px;
    }

    .filter-sheet__actions .btn {
        flex: 1;
    }

    .filter-toggle {
        justify-content: center;
        flex: 1;
    }

    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 12px;
    }

    .profile-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-card--prime {
        margin-right: 10px;
        margin-left: 10px;
        border: 1px solid rgba(201, 154, 46, 0.72);
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(201, 154, 46, 0.14);
    }

    .profile-card:hover {
        transform: none;
        border-color: var(--line);
        box-shadow: none;
    }

    .profile-card--prime:hover {
        border-color: rgba(201, 154, 46, 0.72);
        box-shadow: 0 12px 30px rgba(201, 154, 46, 0.14);
    }

    .profile-card__media {
        aspect-ratio: 4 / 5;
        max-height: min(68svh, 620px);
    }

    .profile-card__media-arrow {
        width: 30px;
        height: 30px;
        opacity: 0.86;
    }

    .profile-card__media-arrow--prev {
        left: 6px;
    }

    .profile-card__media-arrow--next {
        right: 6px;
    }

    .profile-card__open-profile {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }

    .profile-card__video-fullscreen {
        top: 48px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .profile-card__video-play {
        width: 54px;
        height: 54px;
    }

    .profile-card__body {
        padding: 13px 14px 16px;
    }

    .profile-card__title {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .profile-card__title-main {
        width: auto;
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .profile-card__title span {
        white-space: nowrap;
    }

    .profile-card__quick-info {
        width: auto;
        max-width: none;
        gap: 5px;
        padding-left: 0;
    }

    .profile-card__quick-info span {
        min-height: 24px;
        padding: 3px 8px;
        font-size: 0.72rem;
    }

    .profile-card__desc {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .public-profile__title-row {
        align-items: flex-start;
    }

    .profile-story-avatar {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        max-width: 54px;
        max-height: 54px;
        flex: 0 0 54px;
    }

    .profile-story-link {
        font-size: 0.78rem;
    }

    .reel-item,
    .reel-item__media,
    .reel-item__media img,
    .reel-item__media video {
        min-height: calc(100vh - 150px);
    }

    .stories-frame .reel-item,
    .stories-frame .reel-item__media,
    .stories-frame .reel-item__media img,
    .stories-frame .reel-item__media video {
        min-height: 100dvh;
        height: 100dvh;
    }

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

    .creator-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .creator-hero__stats {
        justify-content: flex-start;
    }

    .creator-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-tabs {
        top: 63px;
    }

    .creator-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-picker,
    .settings-list,
    .price-editor__row,
    .profile-price-item,
    .profile-action-bar,
    .single-bump-card,
    .bump-card,
    .system-detail-grid,
    .finance-grid,
    .withdraw-panel,
    .theme-mode-card,
    .support-new-ticket,
    .support-ticket-card__header,
    .support-ticket-card--admin .support-ticket-card__header,
    .plan-current,
    .plan-card-grid,
    .client-pack-card__actions,
    .client-pack-media-item__actions {
        grid-template-columns: 1fr;
    }

    .support-ticket-card__avatar {
        width: 48px;
        height: 48px;
    }

    .support-message {
        width: 100%;
    }

    .support-composer__actions,
    .support-ticket-actions {
        justify-content: stretch;
    }

    .support-composer__actions > *,
    .support-ticket-actions > * {
        width: 100%;
    }

    .support-ticket-row {
        grid-template-columns: 1fr;
    }

    .support-ticket-row .status-pill,
    .support-ticket-card__header .status-pill {
        justify-self: start;
    }

    .plan-group__heading {
        display: grid;
        align-items: start;
    }

    .plan-group__heading p {
        max-width: none;
        text-align: left;
    }

    .pix-box__header,
    .pix-box__content {
        grid-template-columns: 1fr;
    }

    .plan-choice-submit {
        grid-template-columns: 1fr;
        bottom: calc(var(--bottom-nav-height, 72px) + env(safe-area-inset-bottom) + var(--bottom-nav-viewport-offset) + 8px);
    }

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

    .plan-choice-form .plan-section-stack {
        padding-bottom: 168px;
    }

    .plan-choice-submit .btn {
        width: 100%;
    }

    .plan-card__radio {
        top: 12px;
        right: 12px;
    }

    .pix-box__qr {
        justify-self: center;
    }

    .profile-pack-card {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .profile-pack-card__actions {
        grid-template-columns: 1fr;
    }

    .favorite-profile-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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

    .upload-choice,
    .story-admin-tabs {
        grid-template-columns: 1fr;
    }

    .inline-preview--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-feed-header--overlay {
        top: 68px;
    }

    .story-location-field--overlay {
        top: 122px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-plan-table > div,
    .admin-compact-row {
        grid-template-columns: 1fr;
    }

    .admin-item,
    .admin-item--media,
    .admin-support-card summary {
        grid-template-columns: 1fr;
    }

    .admin-item > img,
    .admin-media,
    .admin-support-card summary img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .admin-actions .btn {
        flex: 1;
    }
}

@media (max-width: 820px) {
    .kyc-card {
        padding: 14px;
    }

    .kyc-stepper {
        gap: 6px;
    }

    .kyc-stepper div {
        padding: 8px;
        gap: 8px;
        font-size: 0.86rem;
    }

    .kyc-fields,
    .kyc-upload-grid,
    .kyc-review-grid {
        grid-template-columns: 1fr;
    }

    .kyc-upload-card .upload-drop {
        min-height: 132px;
    }

    .kyc-card__head {
        gap: 10px;
    }

    .kyc-card__head > i {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

@media (max-width: 420px) {
    .app-shell--narrow {
        width: min(620px, calc(100% - 20px));
    }

    .auth-page {
        padding-top: 16px;
    }

    .form-panel {
        padding: 14px;
    }

    .segmented-group--full {
        grid-template-columns: 1fr;
    }

    .account-type-picker.segmented-group--full {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkbox-line {
        min-width: 0;
    }

    .checkbox-line span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .profile-location-card {
        align-items: stretch;
        display: grid;
    }

    .profile-location-card .btn {
        width: 100%;
    }

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

    .creator-metrics {
        grid-template-columns: 1fr;
    }

    .creator-hero__profile {
        align-items: flex-start;
    }

    .creator-hero__profile img {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .segmented-group--compact span {
        padding: 0 12px;
    }

    .story-manage-card {
        grid-template-columns: 1fr;
    }

    .story-manage-card__media {
        width: min(180px, 100%);
    }

    .story-manage-card__actions .btn {
        flex: 1 1 100%;
    }
}

/* Dashboard PrimeShorts */
.dashboard-panel--stories {
    overflow: hidden;
}

.story-panel-title {
    align-items: flex-start;
    gap: 12px;
}

.story-panel-title .status-pill {
    white-space: nowrap;
}

.story-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.story-admin-stats div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.story-admin-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.story-admin-stats strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1;
}

.story-admin-tabs {
    padding: 4px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.story-admin-tabs button {
    min-height: 42px;
    border: 0;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.story-admin-tabs button.active {
    border-color: transparent;
    background: var(--surface);
    color: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(30, 24, 21, 0.08);
}

.story-composer--modern {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.story-composer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(168px, 220px);
    gap: 14px;
    align-items: start;
}

.story-composer__main {
    min-width: 0;
    display: grid;
    gap: 12px;
}

.upload-choice--story {
    gap: 10px;
}

.upload-choice--story label {
    min-height: 82px;
    border-style: solid;
    background:
        linear-gradient(180deg, rgba(217, 79, 69, 0.08), rgba(255, 255, 255, 0)),
        var(--surface-soft);
}

.upload-choice--story span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.2;
}

.camera-recorder--story {
    padding: 12px;
    gap: 10px;
}

.camera-recorder--story .camera-recorder__stage {
    width: min(100%, 220px);
    max-height: 380px;
}

.camera-recorder--story .camera-recorder__actions {
    grid-template-columns: 1fr;
}

.camera-recorder--story .camera-recorder__actions .btn {
    min-height: 42px;
}

.story-preview-shell {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        radial-gradient(circle at top, rgba(217, 79, 69, 0.1), transparent 46%),
        var(--surface-soft);
}

.story-preview-shell.has-media-preview {
    border-color: rgba(201, 154, 46, 0.36);
    background:
        radial-gradient(circle at top, rgba(201, 154, 46, 0.12), transparent 48%),
        var(--surface);
}

.preview-reset-button {
    min-height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.story-preview-shell.has-media-preview .preview-reset-button {
    display: inline-flex;
}

.preview-reset-button:hover,
.preview-reset-button:focus-visible {
    border-color: rgba(217, 79, 69, 0.34);
    color: var(--accent-dark);
}

.story-preview-shell .story-phone-preview {
    width: min(196px, 100%);
    min-height: 0;
    box-shadow: 0 16px 38px rgba(30, 24, 21, 0.14);
}

.verification-preview-shell .story-phone-preview {
    width: min(390px, 100%);
    max-height: min(62vh, 620px);
}

@media (max-width: 860px) {
    .verification-preview-shell .story-phone-preview {
        width: min(100%, 340px);
        max-height: 70vh;
    }
}

.story-preview-shell .story-phone-preview:empty {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        #151313;
    border-color: rgba(255, 255, 255, 0.16);
}

.story-preview-shell .story-phone-preview:empty::before {
    color: rgba(255, 255, 255, 0.78);
}

.story-caption-field input {
    min-height: 46px;
}

.story-submit-button {
    width: 100%;
}

.story-manage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.story-manage-header > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.story-manage-header strong {
    color: var(--text);
    font-size: 0.98rem;
}

.story-manage-header span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.story-manage-toolbar {
    margin: 0;
}

.story-manage-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.story-manage-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(30, 24, 21, 0.08);
}

.story-manage-card.is-review {
    border-color: rgba(201, 139, 25, 0.38);
}

.story-manage-card.is-inactive,
.story-manage-card.is-expired {
    opacity: 0.86;
}

.story-manage-card__media {
    position: relative;
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 9 / 16;
}

.story-manage-card__media video {
    background: #111;
}

.story-manage-card__kind {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.story-manage-card__body {
    padding: 0;
    gap: 10px;
}

.story-manage-card__top {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
}

.story-manage-card__time {
    max-width: none;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
}

.story-manage-card__metric {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 900;
}

.story-manage-card__caption {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.story-manage-card__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.story-action-button {
    min-width: 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--text);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.story-action-button:hover {
    transform: translateY(-1px);
    border-color: rgba(217, 79, 69, 0.36);
}

.story-action-button--primary {
    border-color: rgba(217, 79, 69, 0.24);
    background: var(--surface-accent);
    color: var(--accent-dark);
}

.story-action-button--danger {
    border-color: rgba(188, 55, 45, 0.24);
    background: rgba(188, 55, 45, 0.08);
    color: var(--danger);
}

.story-manage-card__actions.is-submitting,
.story-manage-toolbar.is-submitting {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 720px) {
    .dashboard-panel--stories {
        padding: 14px;
    }

    .story-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .story-admin-stats div {
        padding: 9px 8px;
    }

    .story-admin-stats span {
        font-size: 0.66rem;
    }

    .story-admin-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-composer__grid {
        grid-template-columns: 1fr;
    }

    .story-preview-shell {
        order: -1;
    }

    .story-preview-shell .story-phone-preview {
        width: min(210px, 74vw);
    }

    .upload-choice--story {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upload-choice--story label {
        min-height: 72px;
    }

    .story-manage-header {
        align-items: stretch;
        flex-direction: column;
    }

    .story-manage-toolbar .btn {
        width: 100%;
    }

    .story-manage-list {
        grid-template-columns: 1fr;
    }

    .story-manage-card {
        grid-template-columns: 96px minmax(0, 1fr);
        padding: 8px;
        gap: 10px;
    }

    .story-manage-card__media {
        border-radius: 8px;
        aspect-ratio: 9 / 16;
    }

    .story-manage-card__kind {
        left: 6px;
        bottom: 6px;
        padding: 4px 6px;
        font-size: 0.62rem;
    }

    .story-manage-card__body {
        padding: 0;
        gap: 8px;
    }

    .story-manage-card__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .story-manage-card__time {
        max-width: none;
        text-align: left;
    }

    .story-manage-card__caption {
        padding: 7px 8px;
        font-size: 0.78rem;
    }

    .story-action-button {
        min-height: 36px;
        padding: 0 6px;
        font-size: 0.68rem;
    }
}

@media (max-width: 720px) {
    .dashboard-panel--verification .story-preview-shell {
        order: 0;
    }

    .dashboard-panel--verification .story-preview-shell .story-phone-preview {
        width: min(100%, 340px);
        max-height: 70vh;
    }
}

@media (max-width: 420px) {
    .story-panel-title {
        align-items: stretch;
    }

    .story-panel-title .status-pill {
        width: fit-content;
    }

    .story-admin-stats strong {
        font-size: 1rem;
    }

    .upload-choice--story span {
        flex-direction: column;
        gap: 5px;
        font-size: 0.78rem;
    }

    .story-manage-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .story-manage-card__actions {
        gap: 5px;
    }

    .story-action-button {
        min-height: 34px;
    }

    .story-action-button i {
        display: none;
    }
}

@media (max-width: 899px) {
    .stories-frame {
        height: var(--ap-viewport-height, 100svh);
        min-height: var(--ap-viewport-height, 100svh);
        background: #050505;
        scroll-padding-block: 0;
    }

    .stories-frame .reels-feed {
        display: block;
        min-height: 100%;
    }

    .stories-frame .reel-item {
        width: 100vw;
        max-width: 100vw;
        min-height: var(--ap-viewport-height, 100svh);
        height: var(--ap-viewport-height, 100svh);
        margin: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: #050505;
        box-shadow: none;
        scroll-snap-align: start;
    }

    @supports (height: 100dvh) {
        .stories-frame {
            height: var(--ap-viewport-height, 100dvh);
            min-height: var(--ap-viewport-height, 100dvh);
        }

        .stories-frame .reel-item {
            min-height: var(--ap-viewport-height, 100dvh);
            height: var(--ap-viewport-height, 100dvh);
        }
    }

    .stories-frame .reel-item__media,
    .stories-frame .reel-item__media img,
    .stories-frame .reel-item__media video {
        min-height: 0;
        height: 100%;
        border-radius: 0;
    }

    .stories-frame .reel-item__media img,
    .stories-frame .reel-item__media video {
        object-fit: cover;
        object-position: center center;
    }

    .stories-frame .reel-item__overlay {
        padding: 16px 12px max(16px, env(safe-area-inset-bottom)) 12px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0));
    }
}

@media (max-width: 899px) and (orientation: landscape) {
    .stories-frame .reel-item {
        width: 100vw;
        max-width: 100vw;
    }
}
