.native-story-ad__slot ins > * {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column;
}

.native-story-ad__slot ins img {
    flex: 1 1 auto !important;
}
:root {
    --maroon-900: #2b0614;
    --maroon-800: #41091f;
    --maroon-700: #5c0e2c;
    --maroon-600: #7a143b;
    --maroon-500: #961948;
    --maroon-400: #b9265c;
    --rose-300: #ff6b9a;
    --rose-200: #ff9fc0;
    --cream-100: #fff3ec;
    --charcoal: #0f1117;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --nav-height: 72px;
}

.toast {
    background: rgba(25, 6, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #fff;
}

.toast-stack-offset {
    top: calc(var(--nav-height) + 1rem + env(safe-area-inset-top, 0px));
}

@media (max-width: 575.98px) {
    .toast-stack-offset {
        left: 0.75rem;
        right: 0.75rem;
    }
}

.toast-success {
    background: linear-gradient(135deg, rgba(21, 133, 97, 0.9), rgba(16, 88, 64, 0.9));
}

.toast-warning {
    background: linear-gradient(135deg, rgba(230, 173, 57, 0.9), rgba(184, 128, 18, 0.9));
}

.toast-danger {
    background: linear-gradient(135deg, rgba(214, 72, 108, 0.9), rgba(154, 32, 60, 0.9));
}

html {
    min-height: 100%;
    background-color: var(--maroon-900);
    background-image: radial-gradient(circle at top, var(--maroon-600), var(--maroon-900));
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body {
    font-family: "Inter", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--maroon-900);
    background-image: radial-gradient(circle at top, var(--maroon-600), var(--maroon-900));
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    overflow-x: hidden;
}

@supports (padding: env(safe-area-inset-top)) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
label,
legend,
a,
li,
dt,
dd {
    color: #fff !important;
}

.text-muted,
.text-body-secondary,
.text-secondary {
    color: #fff !important;
}

main {
    padding-bottom: 4rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.dm-page {
    height: 100vh;
    overflow: hidden;
}

body.dm-page main {
    height: calc(100vh - var(--nav-height));
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.dm-page footer,
body.dm-page > .container.alert-container {
    display: none;
}

body.dm-page > .container {
    display: none;
}

.dm-screen {
    height: 100%;
    width: 100%;
    padding: clamp(0.75rem, 2vw, 2.5rem);
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.dm-screen__panel {
    flex: 1;
    max-width: 960px;
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    padding: clamp(1rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dm-screen__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bg-deep-maroon {
    background: radial-gradient(circle at 20% 20%, rgba(255, 111, 143, 0.35), transparent 60%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1), transparent 50%),
        linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
}

.glass-nav {
    background-color: rgba(40, 6, 18, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.card-maroon {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 1.25rem;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.card-maroon:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.story-card {
    position: relative;
    cursor: pointer;
}

.story-card:focus,
.story-card:focus-visible {
    outline: 2px solid rgba(255, 111, 154, 0.65);
    outline-offset: 2px;
}

.story-media {
    position: relative;
    width: 100%;
    border-radius: 1.1rem;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 111, 154, 0.18), rgba(15, 17, 23, 0.45));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    isolation: isolate;
    margin: 0;
}

.story-media::before {
    content: "";
    display: block;
    padding-top: 177.78%;
}

.story-media__asset {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
}

.story-media__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.story-media__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    background: radial-gradient(circle at 30% 20%, rgba(255, 111, 154, 0.28), transparent 65%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.16), transparent 55%);
}

.story-media__emoji {
    font-size: 2rem;
    line-height: 1;
}

.story-media__label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.story-media--detail {
    max-width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
    border-radius: 1.5rem;
}

.story-card--modern {
    background: rgba(255, 107, 154, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.6rem;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.story-card--modern:hover,
.story-card--modern:focus-within {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 154, 0.18);
    box-shadow: 0 26px 55px rgba(255, 255, 255, 0.18);
}

.story-card__media {
    display: block;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
}

.story-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1 1 auto;
}

.story-card__headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.story-card__author {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.65) !important;
}

.story-card__title {
    margin: 0;
    font-size: 1.1rem;
}

.story-card__title a {
    color: #fff;
    text-decoration: none;
}

.story-card__title a:hover,
.story-card__title a:focus {
    text-decoration: underline;
}

.story-card__date,
.story-card__badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75) !important;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.story-card__badge {
    background: rgba(255, 107, 154, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--cream-100) !important;
}

.story-card__snippet {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78) !important;
}

.story-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip--compact {
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
}

.story-card__footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.story-card__stats {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68) !important;
}

.story-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.story-card__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.story-card__actions form {
    margin: 0;
}

.story-card--overlay {
    padding: 0;
    background: transparent;
    border: none;
    gap: 0;
    border-radius: 1.4rem;
}

.story-card--overlay .story-card__media {
    position: relative;
    display: block;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.story-card--overlay .story-card__overlay-content {
    position: absolute;
    inset: 0;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(11, 13, 19, 0.85) 0%, rgba(11, 13, 19, 0) 50%),
        linear-gradient(0deg, rgba(11, 13, 19, 0.85) 0%, rgba(11, 13, 19, 0) 50%);
    z-index: 2;
    pointer-events: none;
}

.story-card--overlay .story-card__overlay-content a {
    pointer-events: auto;
}

.story-card--overlay .story-media__asset,
.story-card--overlay .story-media__img,
.story-card--overlay .story-media__placeholder {
    height: 100%;
    width: 100%;
}

.story-card--overlay .story-card__title,
.story-card--overlay .story-card__author,
.story-card--overlay .story-card__date {
    color: inherit !important;
}

.story-card--overlay .story-card__title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.story-card--overlay .story-card__title a {
    color: inherit;
}

.story-card--overlay .story-card__title a:hover,
.story-card--overlay .story-card__title a:focus {
    text-decoration: underline;
}

.story-card--overlay .story-card__author {
    margin-bottom: 0.35rem;
    letter-spacing: 0.14em;
}

.story-card--overlay .story-card__headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.story-card--overlay .story-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: rgba(255, 109, 170, 0.82);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.story-card--overlay .story-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.story-card--overlay .tag-chip--compact {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    border: none;
}

.story-card--overlay .story-card__stats {
    color: rgba(255, 255, 255, 0.85) !important;
    gap: 0.75rem;
}

.story-card--overlay .story-card__stats i {
    color: currentColor;
}

.story-card--overlay .story-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-card__actions--overlay {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    padding: 0 0.35rem 0.5rem;
}

.story-card__actions--overlay .btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.btn-pill {
    border-radius: 999px !important;
    padding: 0.45rem 1.15rem;
    font-weight: 600;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
}

.poster-capture-active {
    position: relative;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.poster-capture-active.card,
.poster-capture-active.card-maroon,
.poster-capture-active.story-card,
.poster-capture-active.story-detail {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.poster-share-badge {
    position: absolute;
    right: clamp(0.75rem, 2vw, 2.5rem);
    bottom: clamp(0.75rem, 2vw, 2.5rem);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.8rem 1.2rem;
    border-radius: 1.25rem;
    background: rgba(8, 10, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    max-width: min(80%, 320px);
    pointer-events: none;
}

.poster-share-badge img {
    width: clamp(3.25rem, 7vw, 5rem);
    height: clamp(3.25rem, 7vw, 5rem);
    object-fit: cover;
    border-radius: 0.55rem;
    background-color: #fff;
    padding: 0.2rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.poster-share-badge__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.poster-share-badge__text strong {
    font-size: clamp(0.68rem, 1.8vw, 0.95rem);
}

.poster-share-badge__text span {
    font-size: clamp(0.55rem, 1.5vw, 0.82rem);
    color: rgba(255, 255, 255, 0.75) !important;
}

.native-story-ad {
    cursor: default;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.02);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.native-story-ad__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.native-story-ad__label {
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.native-story-ad__slot {
    flex: 1 1 auto;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: 1.1rem;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.native-story-ad__fallback {
    width: 100%;
    line-height: 1.5;
    padding: clamp(0.6rem, 2vw, 1.25rem);
}

.native-story-ad__slot ins,
.native-story-ad__slot iframe,
.native-story-ad__slot img,
.native-story-ad__slot video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.native-story-ad__slot ins {
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    width: 100% !important;
}

.native-story-ad__slot ins * {
    width: 100% !important;
    height: 100% !important;
}

.btn-gradient {
    color: white;
    background: linear-gradient(120deg, var(--maroon-400), var(--rose-300));
    border: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-gradient:hover,
.btn-gradient:focus {
    color: white;
    background: linear-gradient(120deg, var(--rose-300), var(--maroon-400));
}

.btn.btn-outline-light.active,
.btn.btn-outline-light.active:focus,
.btn.btn-outline-light.active:hover,
.btn.btn-outline-light:active,
.btn.btn-outline-light.active:visited,
.btn.btn-outline-light.active:link,
.btn.btn-outline-light.active *,
.btn.btn-outline-light:active * {
    color: #0f1117 !important;
    background-color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.92);
}

.text-glow {
    text-shadow: 0 8px 30px rgba(255, 108, 150, 0.35);
}

.badge-soft {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--cream-100);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
}

.pagination-maroon {
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pagination-maroon .page-link {
    color: var(--cream-100);
    background: transparent;
    border: none;
    min-width: 2.5rem;
    text-align: center;
    border-radius: 999px !important;
    font-weight: 600;
}

.pagination-maroon .page-link:hover,
.pagination-maroon .page-link:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.pagination-maroon .page-item.active .page-link {
    background: linear-gradient(120deg, var(--rose-300), var(--maroon-400));
    color: #fff;
}

.pagination-maroon .page-item.disabled .page-link {
    color: rgba(255, 255, 255, 0.35);
    opacity: 0.7;
}

.badge-notification {
    background-color: rgba(255, 107, 154, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--cream-100);
}

.notification-bell {
    position: relative;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.notification-dot {
    position: absolute;
    top: 0;
    right: -0.35rem;
    background: linear-gradient(120deg, var(--rose-300), var(--maroon-400));
    color: #fff;
    border-radius: 999px;
    padding: 0 0.45rem;
    font-size: 0.7rem;
    line-height: 1.3;
}

.notification-dropdown {
    min-width: 320px;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(43, 6, 20, 0.95);
}

.notification-mini {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-mini:last-child {
    border-bottom: none;
}

.notification-mini--unread {
    color: #fff;
}

.language-switcher .language-select {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    min-width: 120px;
}

.language-switcher .language-select option {
    color: #0f1117;
}

.language-switcher .language-select:focus {
    border-color: var(--rose-300);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 154, 0.25);
}

.notification-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.25);
    padding: 1rem;
}

.notification-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notification-card--unread {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.story-notification-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
}

.text-rose {
    color: #fff !important;
}

.form-control,
.form-select,
.input-group-text,
textarea {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream-100);
}

.form-control::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: var(--rose-300);
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 154, 0.25);
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--cream-100);
}

.chat-bubble {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--rose-300);
    border-radius: 1rem;
    padding: 1rem;
}

.chat-shell {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.chat-stats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chat-stats span,
.chat-filter {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.chat-filter {
    background-color: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: default;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chat-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.chat-feed::-webkit-scrollbar {
    width: 6px;
}

.chat-feed::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
}

.chat-room-section {
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(0.75rem, 3vw, 1.5rem);
}

.chat-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-radius: 1.25rem;
    padding: clamp(1rem, 3vw, 1.75rem);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.chat-composer {
    border-radius: 999px;
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: auto;
}

.chat-composer__form {
    width: 100%;
}

.chat-pill-input {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 0.45rem 0.4rem 1.1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.chat-pill-input:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.chat-pill-input .form-control,
.chat-pill-input textarea,
.chat-pill-input input[type="text"],
.chat-pill-input input[type="search"] {
    flex: 1;
    min-height: 2.75rem;
    border: none;
    background: transparent;
    box-shadow: none;
    resize: none;
    padding: 0;
    color: #fff;
}

.chat-pill-input .form-control:focus,
.chat-pill-input textarea:focus,
.chat-pill-input input[type="text"]:focus,
.chat-pill-input input[type="search"]:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

.chat-pill-input .form-control::placeholder,
.chat-pill-input textarea::placeholder,
.chat-pill-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.chat-send-icon {
    border: none;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--rose-300), var(--maroon-400));
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.chat-send-icon i {
    font-size: 1.25rem;
}

.chat-send-icon:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 2px;
}

.chat-send-icon:disabled {
    opacity: 0.55;
}

@media (max-width: 767.98px) {
    .chat-room-section {
        padding: 0.75rem;
    }

    .chat-pane {
        border-radius: 1rem;
        padding: 0.85rem;
    }

    .chat-composer {
        flex-direction: column;
        align-items: stretch;
        border-radius: 1rem;
    }

    .chat-pill-input {
        padding: 0.4rem 0.5rem 0.4rem 0.85rem;
        border-radius: 1rem;
    }

    .chat-send-icon {
        width: 40px;
        height: 40px;
    }
}

.chat-line {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    padding: 0.75rem 0.85rem;
    background-color: rgba(0, 0, 0, 0.2);
}

.chat-line--optimistic {
    opacity: 0.7;
    border-style: dashed;
    position: relative;
}

.chat-line--optimistic::after {
    content: 'sending…';
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
}

.chat-line__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
    gap: 0.5rem;
}
.chat-user {

    padding: 0 0.35rem;
    padding-bottom: 0.4rem;
    font-weight: 600;
}

.chat-line__text {
    margin-bottom: 0.35rem;
    color: #fff;
    line-height: 1.35;
}

.chat-line__text .dots-loading {
    display: inline-flex;
    gap: 0.15rem;
    margin-left: 0.35rem;
}

.chat-line__text .dots-loading span {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    animation: chat-dots 1.1s infinite ease-in-out;
}

.chat-line__text .dots-loading span:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-line__text .dots-loading span:nth-child(3) {
    animation-delay: 0.3s;
}

.chat-like {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.15rem;
}

.chat-like__button {
    border: none;
    background: none;
    color: var(--rose-200);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
}

.chat-like__button i {
    color: var(--rose-300);
}

.chat-like__button.is-liked {
    color: #fff;
}

.chat-like__button.is-liked i {
    color: #fff;
}

.btn-like-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.btn-like-toggle i {
    color: var(--rose-200);
}

.btn-like-toggle.is-liked {
    background: linear-gradient(120deg, var(--rose-300), var(--maroon-500));
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.btn-like-toggle.is-liked i {
    color: #fff;
}

.page-ad {
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0));
}

.page-ad .card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.page-ad__slot ins {
    display: block;
    min-height: 90px;
    width: 100%;
}

.dm-thread {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    padding: 1.25rem;
    overflow-y: auto;
    gap: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dm-composer {
    margin-top: auto;
}

.dm-message {
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    max-width: 85%;
}

.dm-message__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
}

.dm-message--outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--rose-300), var(--maroon-500));
    border-color: rgba(255, 255, 255, 0.2);
}

.dm-message--incoming {
    align-self: flex-start;
}

.dm-partner-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dm-partner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.03);
}

.dm-partner:hover,
.dm-partner:focus {
    border-color: rgba(255, 255, 255, 0.25);
}

.dm-partner.active {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.08);
}

.chat-form textarea {
    min-height: 120px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    text-transform: lowercase;
}

.tag-chip--link {
    text-decoration: none;
    gap: 0.35rem;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.tag-chip--link:hover,
.tag-chip--link:focus {
    border-color: var(--rose-300);
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.tag-chip--link.active {
    border-color: var(--rose-300);
    background-color: rgba(255, 111, 154, 0.25);
    color: #fff;
}

.tag-editor {
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.04);
}

.tag-editor__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.image-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-upload__dropzone {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.image-upload__dropzone:focus-visible {
    outline: 2px solid var(--rose-300);
    outline-offset: 4px;
}

.image-upload__dropzone.is-dragover,
.image-upload__dropzone:hover {
    border-color: var(--rose-300);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.image-upload__prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.image-upload__prompt i {
    font-size: 2.5rem;
    color: var(--rose-200);
}

.image-upload__hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.image-upload__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.07);
}

.image-upload__preview-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 0.85rem;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.image-upload__meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75) !important;
}

.tag-editor__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    text-transform: lowercase;
    color: #fff;
    cursor: pointer;
}

.tag-editor__chip span {
    color: var(--rose-200);
    font-weight: 700;
    font-size: 0.9rem;
}

.tag-editor__entry {
    flex: 1 0 220px;
    border: none;
    background: transparent;
    color: #fff;
    min-width: 150px;
    outline: none;
}

.tag-editor__entry::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.availability-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.availability-pill--active {
    color: #b2ffd9;
    border-color: rgba(178, 255, 217, 0.75);
    background-color: rgba(128, 255, 198, 0.15);
    box-shadow: 0 0 12px rgba(128, 255, 198, 0.3);
}

.availability-pill--idle {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.25);
}

.scope-toggle.btn-outline-light {
    color: rgba(255, 255, 255, 0.9) !important;
}

.scope-toggle.btn-outline-light.active,
.scope-toggle.btn-outline-light.active:focus,
.scope-toggle.btn-outline-light.active:hover,
.scope-toggle.btn-outline-light:active,
.scope-toggle.btn-outline-light.active:visited,
.scope-toggle.btn-outline-light.active:link {
    color: #0f1117 !important;
    background-color: rgba(255, 255, 255, 0.97);
    border-color: rgba(255, 255, 255, 0.97);
}

.scope-toggle.btn-outline-light.active *,
.scope-toggle.btn-outline-light:active * {
    color: #0f1117 !important;
}

.story-detail .story-meta span {
    margin-right: 1rem;
}

.story-body,
.story-body p,
.story-body br {
    color: #fff;
}

body.exo-overlay-open {
    overflow: hidden;
}

.exo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 17, 23, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 4vw, 2rem);
    z-index: 4100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.exo-overlay--visible {
    opacity: 1;
    visibility: visible;
}

.exo-overlay__panel {
    position: relative;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    min-width: clamp(220px, 40vw, 520px);
    min-height: clamp(160px, 35vh, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.exo-overlay__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.exo-overlay__content img,
.exo-overlay__content iframe {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

.exo-overlay__content ins {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exo-overlay__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 5;
    pointer-events: auto;
}

.exo-overlay__close:hover,
.exo-overlay__close:focus-visible {
    background: rgba(0, 0, 0, 0.85);
}

@keyframes chat-dots {
    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .chat-shell {
        border-radius: 1rem;
        padding: 1rem;
    }
    .chat-feed {
        max-height: 100vh;
    }
    .chat-line {
        padding: 0.75rem;
    }
    .chat-stats span {
        padding: 0.25rem 0.75rem;
    }
}

.section-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rose-200);
    font-size: 0.85rem;
}

.hero {
    padding: clamp(4rem, 8vw, 7rem) 0;
    width: 100%;
}

.hero .display-4 {
    font-family: "Space Grotesk", "Inter", sans-serif;
}

.avatar-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-300), var(--maroon-500));
    box-shadow: 0 0 14px rgba(255, 111, 154, 0.7);
}

.stat-chip {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    text-align: center;
    min-width: 120px;
}

@media (max-width: 992px) {
    .navbar-nav {
        gap: 0.5rem;
    }
    .hero {
        padding: 2.5rem 0 1.5rem 0;
    }
    .card-maroon {
        margin-bottom: 1.5rem;
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .navbar-nav .btn {
        width: 100%;
        text-align: center;
    }
    .hero form {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .card-maroon {
        border-radius: 1rem;
        padding: 1rem !important;
    }
    .hero .display-4 {
        font-size: 2rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 0.7rem;
    }
    .btn, .btn-gradient, .btn-outline-light {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .hero form .input-group {
        flex-direction: column;
    }
    .hero form .input-group-text {
        border-radius: 0.75rem 0.75rem 0 0;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
    }
    .hero form input {
        border-radius: 0 0 0.75rem 0.75rem;
    }
    footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

body.chat-room-page {
    overflow: hidden;
}

body.chat-room-page main {
    padding-bottom: 0;
    min-height: calc(100vh - var(--nav-height));
    height: calc(100vh - var(--nav-height));
}

body.chat-room-page footer {
    display: none;
}
