@font-face {
    font-family: "Godo";
    src: url("../fonts/normal.otf") format("opentype");
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
}

@font-face {
    font-family: "Godo";
    src: url("../fonts/bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
}

:root {
    --bg: #111214;
    --surface: #1c1e22;
    --surface-raised: #2c3035;
    --surface-soft: #2e3238;
    --line: #30343d;
    --text: #f6f7f9;
    --muted: #898d99;
    --primary: #fa1155;
    --primary-hover: #d90e49;
    --blue: #60a5fa;
    --pink: #fa1155;
    --green: #14f698;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --bottom-nav-bottom: max(6px, calc(var(--safe-bottom) - 24px));
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Godo";
    letter-spacing: 0;
}

body {
    min-width: 320px;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

@media screen and (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
    textarea,
    select {
        font-size: 16px !important;
    }
}

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

button {
    color: inherit;
}

a {
    color: inherit;
}

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

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--primary);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.icon {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.icon-button {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--white);
    place-items: center;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    color: var(--primary);
}

.primary-button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 24px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.primary-button.compact {
    min-height: 42px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff42;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

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

.toast {
    position: fixed;
    z-index: 300;
    left: 50%;
    bottom: calc(92px + var(--safe-bottom));
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #292d35f2;
    color: var(--text);
    text-align: center;
    transform: translateX(-50%);
    box-shadow: 0 10px 30px #0008;
}

/* Landing */
.landing-page {
    overflow-x: hidden;
    background: #101114;
}

.landing-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.landing-header {
    position: sticky;
    z-index: 200;
    top: 0;
    border-bottom: 1px solid #2d3037;
    background: #101114f5;
    backdrop-filter: blur(18px);
}

.landing-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.landing-brand,
.landing-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
}

.landing-brand img,
.landing-footer-brand img {
    width: 34px;
    height: 34px;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #abb0ba;
    font-size: 14px;
}

.landing-nav a {
    padding: 10px 0;
    text-decoration: none;
}

.landing-nav a:hover,
.landing-nav a:focus-visible,
.landing-login-link:hover,
.landing-login-link:focus-visible {
    color: var(--primary);
}

.landing-header-actions,
.landing-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-login-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: #d6d9df;
    font-weight: 700;
    text-decoration: none;
}

.landing-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.landing-button-primary {
    background: var(--primary);
    color: #fff;
}

.landing-button-primary:hover,
.landing-button-primary:focus-visible {
    background: var(--primary-hover);
}

.landing-store-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-store-button {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #555b66;
    border-radius: 8px;
    background: #15171b;
    color: #eef0f4;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.landing-store-button:hover,
.landing-store-button:focus-visible {
    border-color: var(--primary);
    background: #20232a;
    color: #fff;
}

.landing-store-mark {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    object-fit: contain;
}

.landing-button-secondary {
    border-color: #555b66;
    background: #15171b;
    color: #eef0f4;
}

.landing-button-secondary:hover,
.landing-button-secondary:focus-visible {
    border-color: #8a919d;
    background: #20232a;
}

.landing-header-join {
    min-height: 42px;
    padding: 0 18px;
}

.landing-hero {
    position: relative;
    min-height: min(760px, calc(100svh - 136px));
    overflow: hidden;
    border-bottom: 1px solid #2d3037;
    background: #1d1f24;
}

.landing-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--pink);
    content: "";
    opacity: .55;
}

.landing-hero-art {
    position: absolute;
    top: 50%;
    right: max(-80px, calc((100vw - 1380px) / 2));
    width: min(62vw, 760px);
    height: min(62vw, 760px);
    object-fit: contain;
    transform: translateY(-50%);
}

.landing-hero-inner {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: 72px 0 76px;
}

.landing-hero-copy {
    width: min(600px, 55%);
}

.landing-kicker {
    margin: 0 0 16px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.landing-hero h1 {
    margin: 0;
    font-size: 96px;
    line-height: .98;
}

.landing-hero-heading {
    max-width: 580px;
    margin: 26px 0 12px;
    color: #f5f6f8;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.28;
}

.landing-hero-description {
    max-width: 560px;
    margin: 0;
    color: #b5bac4;
    font-size: 17px;
    line-height: 1.7;
}

.landing-hero-actions {
    margin-top: 34px;
}

.landing-service-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 44px;
    color: #d9dce2;
    font-size: 13px;
}

.landing-service-signals span {
    position: relative;
    padding-left: 13px;
}

.landing-service-signals span::before {
    position: absolute;
    top: .48em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    content: "";
}

.landing-service-signals span:nth-child(2)::before {
    background: var(--blue);
}

.landing-service-signals span:nth-child(3)::before {
    background: var(--green);
}

.landing-service-signals span:nth-child(4)::before {
    background: #f1b84b;
}

.landing-band {
    padding: 110px 0;
}

.landing-experience {
    background: #101114;
}

.landing-section-heading {
    max-width: 720px;
}

.landing-section-heading h2 {
    margin: 0;
    font-size: 52px;
    line-height: 1.14;
}

.landing-section-heading > p:last-child {
    margin: 24px 0 0;
    color: #9da3af;
    font-size: 17px;
    line-height: 1.7;
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin-top: 72px;
}

.landing-feature-item {
    min-width: 0;
    padding-top: 24px;
    border-top: 2px solid #3a3e47;
}

.landing-feature-item:nth-child(1) {
    border-color: var(--blue);
}

.landing-feature-item:nth-child(2) {
    border-color: var(--green);
}

.landing-feature-item:nth-child(3) {
    border-color: var(--pink);
}

.landing-feature-item:nth-child(4) {
    border-color: #f1b84b;
}

.landing-feature-icon {
    width: 44px;
    height: 44px;
    display: grid;
    color: var(--blue);
    place-items: center;
}

.landing-feature-item:nth-child(2) .landing-feature-icon {
    color: var(--green);
}

.landing-feature-item:nth-child(3) .landing-feature-icon {
    color: var(--pink);
}

.landing-feature-item:nth-child(4) .landing-feature-icon {
    color: #f1b84b;
}

.landing-feature-icon .icon {
    width: 30px;
    height: 30px;
}

.landing-feature-item h3 {
    margin: 18px 0 10px;
    font-size: 21px;
}

.landing-feature-item p {
    margin: 0;
    color: #949aa6;
    font-size: 15px;
    line-height: 1.65;
}

.landing-connection {
    border-top: 1px solid #30343d;
    border-bottom: 1px solid #30343d;
    background: #191b20;
}

.landing-connection-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    gap: 96px;
    align-items: start;
}

.landing-connection-heading {
    position: sticky;
    top: 120px;
}

.landing-connection-steps {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-connection-steps li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    padding: 30px 0;
    border-top: 1px solid #3b3f48;
}

.landing-connection-steps li:last-child {
    border-bottom: 1px solid #3b3f48;
}

.landing-connection-steps > li > span {
    color: var(--blue);
    font-size: 15px;
    font-weight: 900;
}

.landing-connection-steps h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.landing-connection-steps p {
    margin: 0;
    color: #989fab;
    line-height: 1.65;
}

.landing-privacy {
    background: #11141a;
}

.landing-privacy-layout {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
    gap: 100px;
    align-items: center;
}

.landing-privacy-visual {
    position: relative;
    width: min(100%, 450px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #33445c;
    border-radius: 50%;
    background: #151a22;
}

.landing-privacy-visual::before,
.landing-privacy-visual::after {
    position: absolute;
    background: #33445c;
    content: "";
}

.landing-privacy-visual::before {
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
}

.landing-privacy-visual::after {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.landing-radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid #33445c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.landing-radar-ring-one {
    width: 66%;
    height: 66%;
}

.landing-radar-ring-two {
    width: 34%;
    height: 34%;
}

.landing-radar-line {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 44%;
    height: 2px;
    background: var(--blue);
    transform-origin: left center;
    animation: landing-radar 5s linear infinite;
}

.landing-privacy-visual img {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 62px;
    height: 62px;
    padding: 12px;
    border: 1px solid #46668f;
    border-radius: 50%;
    background: #151a22;
    transform: translate(-50%, -50%);
}

@keyframes landing-radar {
    to { transform: rotate(360deg); }
}

.landing-privacy-note {
    padding-left: 16px;
    border-left: 3px solid var(--green);
    color: #d1d5dc !important;
    font-weight: 700;
}

.landing-final {
    padding: 64px 0;
    border-top: 1px solid #31353d;
    border-bottom: 1px solid #31353d;
    background: #20232a;
}

.landing-final-inner {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 26px;
    align-items: center;
}

.landing-final-inner > img {
    width: 64px;
    height: 64px;
}

.landing-final h2 {
    margin: 0;
    font-size: 34px;
}

.landing-final p {
    margin: 8px 0 0;
    color: #a5abb6;
    line-height: 1.55;
}

.landing-final-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-footer {
    padding: 46px 0 max(46px, env(safe-area-inset-bottom));
    background: #0c0d10;
}

.landing-footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.landing-footer-inner > p {
    margin: 0;
    color: #737a87;
    font-size: 13px;
}

.landing-footer nav {
    display: flex;
    gap: 18px;
    color: #9ca2ad;
    font-size: 13px;
}

.landing-footer a {
    text-underline-offset: 3px;
}

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

    .landing-header-actions .landing-store-button {
        display: none;
    }

    .landing-hero-art {
        right: -180px;
        width: 720px;
        height: 720px;
        opacity: .34;
    }

    .landing-hero-copy {
        width: min(630px, 78%);
    }

    .landing-hero h1 {
        font-size: 80px;
    }

    .landing-hero-heading {
        font-size: 32px;
    }

    .landing-section-heading h2 {
        font-size: 44px;
    }

    .landing-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 54px;
    }

    .landing-connection-layout,
    .landing-privacy-layout {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .landing-connection-heading {
        position: static;
    }

    .landing-privacy-visual {
        width: min(80vw, 430px);
        margin: 0 auto;
    }

    .landing-footer-inner {
        grid-template-columns: 1fr auto;
    }

    .landing-footer-inner > p {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 600px) {
    .landing-container {
        width: min(100% - 32px, 1180px);
    }

    .landing-header-inner {
        min-height: 64px;
        gap: 10px;
    }

    .landing-brand {
        font-size: 19px;
    }

    .landing-brand img {
        width: 30px;
        height: 30px;
    }

    .landing-header-actions {
        gap: 2px;
    }

    .landing-login-link {
        min-height: 42px;
        padding: 0 10px;
        font-size: 14px;
    }

    .landing-header-join {
        display: none;
    }

    .landing-hero {
        min-height: min(650px, calc(100svh - 190px));
    }

    .landing-hero-inner {
        align-items: flex-start;
        padding: 58px 0 48px;
    }

    .landing-hero-copy {
        width: 100%;
    }

    .landing-hero-art {
        top: auto;
        right: -110px;
        bottom: -135px;
        width: 520px;
        height: 520px;
        opacity: .3;
        transform: none;
    }

    .landing-hero h1 {
        font-size: 62px;
    }

    .landing-hero-heading {
        max-width: 500px;
        margin-top: 22px;
        font-size: 25px;
    }

    .landing-hero-description {
        max-width: 470px;
        font-size: 15px;
    }

    .landing-hero-actions {
        align-items: center;
        flex-direction: row;
        margin-top: 28px;
    }

    .landing-hero-actions .landing-button {
        flex: 1 1 auto;
        padding: 0 14px;
    }

    .landing-hero-actions .landing-store-actions {
        display: flex;
    }

    .landing-hero-actions .landing-store-button {
        width: 50px;
        padding: 0;
    }

    .landing-service-signals {
        max-width: 320px;
        margin-top: 30px;
    }

    .landing-band {
        padding: 78px 0;
    }

    .landing-section-heading h2 {
        font-size: 36px;
    }

    .landing-section-heading > p:last-child {
        margin-top: 18px;
        font-size: 15px;
    }

    .landing-feature-grid {
        grid-template-columns: 1fr;
        gap: 38px;
        margin-top: 52px;
    }

    .landing-connection-steps li {
        grid-template-columns: 46px 1fr;
        gap: 14px;
        padding: 24px 0;
    }

    .landing-privacy-layout {
        gap: 44px;
    }

    .landing-privacy-visual {
        width: min(86vw, 360px);
    }

    .landing-final {
        padding: 48px 0;
    }

    .landing-final-inner {
        grid-template-columns: 48px 1fr;
        gap: 18px;
    }

    .landing-final-inner > img {
        width: 48px;
        height: 48px;
    }

    .landing-final .landing-button {
        margin-top: 0;
    }

    .landing-final-actions {
        grid-column: 1 / -1;
        align-items: center;
    }

    .landing-final-actions .landing-store-actions {
        display: flex;
    }

    .landing-final-actions .landing-store-button {
        width: 50px;
        padding: 0;
    }

    .landing-footer-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .landing-footer-inner > p {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Login */
.login-page {
    overflow-x: hidden;
}

.login-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    background: #191b20;
}

.login-panel {
    width: min(100%, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.brand-lockup h1 {
    margin: 18px 0 4px;
    font-size: 36px;
    line-height: 1.25;
}

.brand-lockup p {
    margin: 0;
    color: #c8cbd1;
    font-size: 15px;
    line-height: 1.5;
}

.social-actions {
    width: 100%;
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.social-button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
}

.social-button img {
    width: 20px;
    height: 20px;
}

.social-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.google-button {
    border: 1px solid #fff;
    background: #fff;
    color: #16171a;
}

.apple-button {
    border: 1px solid #757b87;
    background: transparent;
    color: #fff;
}

.apple-button img {
    color: #fff;
}

.login-caption {
    margin: 18px 0 8px;
    color: #777e8a;
    font-size: 14px;
    text-align: center;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: #777e8a;
    font-size: 13px;
}

.legal-links a {
    text-underline-offset: 3px;
}

.notice {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-raised);
    color: #b4bac5;
    text-align: center;
}

.notice-error {
    border-color: #7d2b43;
    color: #ff9ab7;
}

.login-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #c8cbd1;
}

/* Sign-up terms */
.signup-terms-page {
    overflow: hidden;
    background: #090a0c;
}

.terms-shell {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    background: #191b20;
}

.terms-background-brand {
    position: absolute;
    inset: max(36px, env(safe-area-inset-top)) 24px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-align: center;
}

.terms-background-brand img {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.terms-background-brand strong {
    margin-top: 10px;
    font-size: 28px;
}

.terms-background-brand span {
    margin-top: 6px;
    color: #9da2ac;
    font-size: 13px;
}

.terms-backdrop {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: #0008;
}

.terms-sheet {
    position: relative;
    z-index: 2;
    width: min(100%, 600px);
    min-height: min(500px, 58dvh);
    max-height: calc(100dvh - max(80px, env(safe-area-inset-top, 0px)));
    overflow-y: auto;
    padding: 0 20px calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 8px 8px 0 0;
    background: #090a0c;
    box-shadow: 0 -16px 48px #0006;
    overscroll-behavior: contain;
}

.terms-sheet-handle {
    width: 60px;
    height: 4px;
    display: block;
    margin: 12px auto;
    border-radius: 999px;
    background: #2c3035;
}

.terms-sheet-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.35;
}

.terms-sheet-header p {
    margin: 8px 0 18px;
    color: #8f949e;
    font-size: 13px;
    line-height: 1.5;
}

.terms-error {
    margin: 0 0 8px;
    padding: 9px 12px;
    font-size: 12px;
}

.terms-form {
    display: grid;
}

.terms-item {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.terms-item-all {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    cursor: pointer;
}

.terms-item-all input,
.terms-checkbox-hitbox input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.terms-check-indicator {
    position: relative;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 2px solid #666b75;
    border-radius: 50%;
    color: #090a0c;
}

.terms-check-indicator::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: rotate(45deg);
}

.terms-item-all input:checked + .terms-check-indicator,
.terms-checkbox-hitbox input:checked + .terms-check-indicator {
    border-color: var(--primary);
    background: var(--primary);
}

.terms-item-all input:checked + .terms-check-indicator::after,
.terms-checkbox-hitbox input:checked + .terms-check-indicator::after {
    opacity: 1;
}

.terms-item-all input:indeterminate + .terms-check-indicator {
    border-color: var(--primary);
}

.terms-item-all input:indeterminate + .terms-check-indicator::after {
    left: 4px;
    top: 8px;
    width: 10px;
    height: 0;
    border-width: 0 0 2px;
    opacity: 1;
    transform: none;
}

.terms-item-all .terms-item-label {
    margin-left: 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.terms-checkbox-hitbox {
    width: 52px;
    height: 52px;
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    cursor: pointer;
}

.terms-document-link {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 4px;
    color: #c8cbd1;
    text-decoration: none;
}

.terms-document-link .terms-item-label {
    overflow-wrap: anywhere;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-required {
    color: var(--primary);
    font-size: 13px;
}

.terms-chevron {
    width: 44px;
    height: 44px;
    display: grid;
    margin-left: auto;
    flex: 0 0 44px;
    color: var(--primary);
    font-family: sans-serif;
    font-size: 32px;
    line-height: 1;
    place-items: center;
}

.terms-item-all:has(input:focus-visible),
.terms-checkbox-hitbox:has(input:focus-visible),
.terms-document-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.terms-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.terms-actions button {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.terms-agree-button {
    border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.terms-agree-button:disabled {
    border-color: transparent;
    background: #1c1e22;
    color: #666b75;
    cursor: not-allowed;
}

.terms-all-agree-button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #090a0c;
}

.terms-actions button:disabled {
    opacity: .55;
}

@media (min-width: 700px) and (min-height: 720px) {
    .terms-shell {
        align-items: center;
        padding: 24px;
    }

    .terms-sheet {
        padding-bottom: 18px;
        border-radius: 8px;
    }
}

@media (max-height: 560px) {
    .terms-sheet {
        max-height: 100dvh;
        overflow-y: auto;
    }

    .terms-background-brand {
        display: none;
    }
}

/* Sign up */
.signup-page {
    overflow-x: hidden;
    background: #090a0c;
}

.signup-page.signup-modal-open {
    overflow: hidden;
}

.signup-shell {
    min-height: 100dvh;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
    background: #090a0c;
}

.signup-panel {
    width: min(100%, 600px);
    margin: 0 auto;
    padding: 0 24px 48px;
}

.signup-topbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
}

.signup-topbar h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
}

.signup-back {
    width: 48px;
    height: 48px;
    display: grid;
    color: #c9cdd4;
    text-decoration: none;
    place-items: center;
}

.signup-back .icon {
    width: 30px;
    height: 30px;
}

.signup-form {
    display: grid;
    gap: 26px;
}

.signup-profile-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0 10px;
}

.signup-profile-button {
    position: relative;
    width: 112px;
    height: 112px;
    padding: 0;
    border: 1px solid #252932;
    border-radius: 50%;
    background: #17191d;
    cursor: pointer;
}

.signup-profile-placeholder,
.signup-profile-preview {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.signup-profile-placeholder {
    padding: 29px;
    object-fit: contain;
    opacity: .6;
}

.signup-camera-badge {
    position: absolute;
    right: -2px;
    bottom: 2px;
    width: 34px;
    height: 34px;
    display: grid;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    place-items: center;
}

.signup-camera-badge .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    color: #ffffff;
}

.signup-profile-label {
    min-height: 40px;
    padding: 6px 14px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.signup-field {
    min-width: 0;
    margin: 0;
}

.signup-fieldset {
    padding: 0;
    border: 0;
}

.signup-label {
    display: block;
    margin: 0 0 9px;
    color: #b7bbc4;
    font-size: 15px;
    font-weight: 700;
}

.signup-control {
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: 0;
    background: #15171b;
    color: var(--text);
    caret-color: var(--blue);
}

.signup-control::placeholder {
    color: #545a66;
}

.signup-control:focus {
    border-color: var(--blue);
}

.signup-date {
    color-scheme: dark;
}

.signup-nickname-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
}

.signup-check-button {
    min-height: 56px;
    padding: 0 14px;
    border: 1px solid #303540;
    border-radius: 8px;
    background: #1d2025;
    color: #c8cbd2;
    font-weight: 700;
    cursor: pointer;
}

.signup-check-button:disabled,
.signup-submit:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.signup-field-meta {
    min-height: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 6px 0;
    color: #5f6571;
    font-size: 12px;
    line-height: 1.4;
}

.signup-field-meta-end {
    justify-content: flex-end;
}

.signup-field-meta .is-available {
    color: var(--green);
}

.signup-field-meta .is-error,
.signup-field-error {
    color: #ff789d;
}

.signup-field-error {
    display: block;
    padding: 7px 6px 0;
    font-size: 12px;
}

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

.signup-gender-option {
    position: relative;
    min-height: 56px;
    display: grid;
    cursor: pointer;
}

.signup-gender-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.signup-gender-option span {
    display: grid;
    border: 1px solid #303540;
    border-radius: 8px;
    background: #15171b;
    color: #9ba0aa;
    font-weight: 700;
    place-items: center;
}

.signup-gender-option input:checked + span {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.signup-gender-option input:focus-visible + span {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.signup-introduction {
    min-height: 118px;
    padding-top: 16px;
    padding-bottom: 16px;
    line-height: 1.55;
    resize: vertical;
}

.signup-form-error {
    margin-top: -8px;
}

.signup-submit {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.signup-overlay {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.signup-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: #000a;
}

.signup-bottom-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 600px);
    padding: 12px 24px calc(18px + env(safe-area-inset-bottom, 0px));
    border-radius: 8px 8px 0 0;
    background: #1b1d21;
}

.signup-sheet-handle {
    width: 48px;
    height: 5px;
    display: block;
    margin: 0 auto 16px;
    border-radius: 3px;
    background: #3c414a;
}

.signup-bottom-sheet h2 {
    margin: 0 0 10px;
    font-size: 17px;
    text-align: center;
}

.signup-bottom-sheet button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-bottom: 1px solid #2c3037;
    background: transparent;
    color: #d3d6dc;
    font-weight: 700;
    cursor: pointer;
}

.signup-bottom-sheet .signup-sheet-cancel {
    margin-top: 8px;
    border-bottom: 0;
    border-radius: 8px;
    background: #292c32;
}

.signup-crop-overlay {
    align-items: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
    background: #090a0cf5;
}

.signup-crop-dialog {
    width: min(100%, 480px);
    max-height: 100%;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #30343d;
    border-radius: 8px;
    background: #181a1f;
}

.signup-crop-dialog h2 {
    margin: 0;
    font-size: 21px;
}

.signup-crop-dialog header p {
    margin: 8px 0 20px;
    color: #9297a2;
    font-size: 13px;
    line-height: 1.5;
}

.signup-crop-viewport {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 50%;
    background: #090a0c;
    touch-action: none;
    cursor: grab;
}

.signup-crop-viewport:active {
    cursor: grabbing;
}

.signup-crop-viewport img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    user-select: none;
    pointer-events: none;
    will-change: transform;
}

.signup-zoom-control {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    color: #c6cad2;
    font-size: 14px;
}

.signup-zoom-control input {
    width: 100%;
    accent-color: var(--blue);
}

.signup-crop-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.signup-crop-actions button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #292d33;
    font-weight: 700;
    cursor: pointer;
}

.signup-crop-actions .primary-button {
    background: var(--primary);
}

.signup-keyboard-dismiss {
    position: fixed;
    z-index: 450;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-width: 64px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #4b515d;
    border-radius: 8px;
    background: #292d34;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 24px #0008;
    cursor: pointer;
}

@media (max-width: 420px) {
    .signup-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .signup-nickname-row {
        grid-template-columns: minmax(0, 1fr) 96px;
        gap: 8px;
    }
}

/* Application shell */
.app-shell {
    min-height: 100dvh;
    background: var(--bg);
}

@media (max-width: 679px) {
    body.app-page {
        --bg: #000000;
        background: #000000;
    }

    body.app-page .app-shell,
    body.app-page .feed-column {
        background: #000000;
    }
}

.desktop-rail {
    display: none;
}

.feed-column {
    width: 100%;
    min-width: 0;
    padding-bottom: calc(84px + var(--safe-bottom));
}

.home-topbar {
    position: sticky;
    z-index: 120;
    top: 0;
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
    border-bottom: 1px solid #20232a;
    background: var(--bg);
}

.wordmark {
    padding: 9px 4px;
    color: var(--primary);
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.point-balance {
    background: rgba(250, 17, 85, 0.12);
    border: 1px solid rgba(250, 17, 85, 0.3);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.2px;
}

.topbar-actions .accent {
    color: var(--primary);
}

.badge {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    display: grid;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--pink);
    color: #fff;
    font-size: 11px;
    place-items: center;
}

.rail-item,
.bottom-nav-item,
.badge-button {
    position: relative;
}

.rail-item .rail-unread-badge {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--pink, #f43463);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.bottom-nav-item .rail-unread-badge {
    position: absolute;
    top: 4px;
    right: 12px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--pink, #f43463);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.desktop-only {
    display: none;
}

.feed-content {
    width: 100%;
    min-width: 0;
}

.story-rail {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

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

.story-item {
    flex: 0 0 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #e1e3e8;
    font-size: 12px;
    cursor: pointer;
}

.story-item > span:last-child {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-avatar,
.avatar {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--blue);
    place-items: center;
}

.story-avatar-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.story-avatar {
    width: 68px;
    height: 68px;
    border: 3px solid #4a4f59;
}

.story-avatar.has-new {
    border-color: var(--pink);
    box-shadow: inset 0 0 0 2px var(--bg), 0 0 0 2px #f19b38;
}

.story-avatar.my-story {
    border-color: #f1f3f6;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 0 12px #ffffff38;
}

.story-avatar img,
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-add {
    position: absolute;
    right: 0px;
    bottom: 0px;
    width: 22px;
    height: 22px;
    display: grid;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    place-items: center;
    z-index: 2;
}

.post-more-btn {
    color: var(--white);
    transition: color 0.2s ease;
}

.post-more-btn:hover,
.post-more-btn:focus-visible {
    color: var(--primary);
}

.state-panel {
    min-height: 48dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    color: var(--muted);
    text-align: center;
}

.state-icon {
    width: 44px;
    height: 44px;
    color: #616977;
}

.state-panel h1 {
    margin: 18px 0 6px;
    color: var(--text);
    font-size: 19px;
}

.state-panel p {
    max-width: 360px;
    margin: 0 0 20px;
    line-height: 1.55;
}

.post-list {
    display: grid;
}

.post-card {
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.post-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 14px;
}

.post-author {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.avatar.small {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid #424752;
}

.avatar.my-avatar {
    background: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.author-copy {
    min-width: 0;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 5px;
}

.author-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.author-copy small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.verified {
    width: 16px;
    height: 16px;
    display: grid;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    place-items: center;
}

.media-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000000;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.media-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
}

.media-track::-webkit-scrollbar {
    display: none;
}

.media-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    margin: 0;
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-slide-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.video-slide-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease, opacity 0.25s ease, background-color 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.video-play-overlay:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-play-overlay .play-icon {
    width: 28px;
    height: 28px;
    margin-left: 3px;
    display: block;
}

.video-play-overlay .pause-icon {
    width: 28px;
    height: 28px;
    display: none;
}

.video-slide-wrap.playing .video-play-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-slide-wrap.playing:hover .video-play-overlay,
.video-slide-wrap.playing.show-controls .video-play-overlay {
    opacity: 1;
    pointer-events: auto;
}

.video-slide-wrap.playing .video-play-overlay .play-icon {
    display: none;
}

.video-slide-wrap.playing .video-play-overlay .pause-icon {
    display: block;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    color: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
    opacity: 0.85;
}

.carousel-nav-btn:hover {
    background: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
    left: 10px;
}

.carousel-nav-btn.next {
    right: 10px;
}

.carousel-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.carousel-nav-btn .icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    display: block;
}

@media (max-width: 679px), (hover: none) {
    .carousel-nav-btn {
        display: none !important;
    }
}

.media-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #07080bcc;
    font-size: 12px;
}

.media-dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}

.media-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff5c;
}

.media-dots span.active {
    background: var(--primary);
}

.post-body {
    padding: 0;
}

.post-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 4px;
    margin: 0;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.action-btn:hover {
    opacity: 0.8;
}

.action-btn .action-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
    fill: currentColor;
    color: currentColor;
}

.action-btn.active,
.action-btn.active .action-icon {
    color: var(--primary) !important;
}

.action-count {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.action-row-spacer {
    flex: 1;
}

.post-content-meta {
    padding: 4px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-caption {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
}

.post-caption .author-name {
    font-weight: 700;
    color: var(--gray89);
    margin-right: 6px;
}

.post-time {
    font-size: 11px;
    color: var(--gray66);
}

.mobile-bottom-ad-bar {
    position: fixed;
    z-index: 99;
    right: 0;
    bottom: calc(80px + var(--bottom-nav-bottom));
    left: 0;
    height: 50px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-bottom-navigation {
    position: fixed;
    z-index: 100;
    right: 16px;
    bottom: var(--bottom-nav-bottom);
    left: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 6px;
    pointer-events: none;
}

.mobile-bottom-navigation.liquid-glass {
    background: transparent;
}

.mobile-bottom-nav {
    height: 72px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 36px;
    background: rgba(0, 0, 0, 0.90);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    pointer-events: auto;
    box-sizing: border-box;
    position: relative;
}

.mobile-bottom-nav.liquid-glass {
    background: rgba(18, 20, 24, 0.22);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.nav-indicator-pill {
    position: absolute;
    top: 9px;
    left: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition: transform 0.35s cubic-bezier(0.34, 1.45, 0.64, 1), opacity 0.2s ease;
    will-change: transform;
}

.mobile-bottom-nav.liquid-glass .nav-indicator-pill {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-search-nav {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.90);
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    box-sizing: border-box;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.mobile-search-nav.liquid-glass {
    background: rgba(18, 20, 24, 0.22);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.mobile-search-nav.active {
    border-color: rgba(250, 17, 85, 0.85);
    color: var(--primary);
    transform: scale(1.04);
}

.mobile-search-nav.liquid-glass.active {
    border-color: rgba(250, 17, 85, 0.85);
    box-shadow: 0 16px 36px rgba(250, 17, 85, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: scale(1.04);
}

.mobile-search-nav .icon {
    width: 28px;
    height: 28px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-search-nav.active .icon {
    transform: scale(1.10);
}

.bottom-nav-item {
    min-width: 0;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 0;
    border: 0;
    border-radius: 30px;
    background: transparent !important;
    color: #898E96;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    transition: color 0.2s ease;
}

.nav-icon-wrap {
    position: relative;
    width: 23px;
    height: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-icon-wrap .rail-unread-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--pink, #f43463);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.bottom-nav-item .icon {
    width: 23px;
    height: 23px;
    color: #898E96;
    transition: color 0.2s ease;
}

.bottom-nav-item span {
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: -0.2px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.bottom-nav-item.active .nav-icon-wrap {
    transform: scale(1.12);
}

.bottom-nav-item.active .icon {
    color: var(--primary);
}

.bottom-nav-item.active span {
    transform: scale(1.04);
    color: var(--primary);
}

@media (min-width: 680px) {
    .feed-column {
        width: 620px;
        margin: 0 auto;
        border-right: 1px solid var(--line);
        border-left: 1px solid var(--line);
    }

    .media-slide {
        max-height: 620px;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        width: min(1180px, 100%);
        display: grid;
        grid-template-columns: 240px 620px 1fr;
        gap: 0;
        margin: 0 auto;
    }

    .desktop-rail {
        position: sticky;
        top: 0;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        padding: 30px 18px;
        border-right: 1px solid var(--line);
    }

    .desktop-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 12px 28px;
        color: var(--primary);
        font-size: 24px;
        font-weight: 900;
        text-decoration: none;
    }

    .desktop-brand img {
        width: 34px;
        height: 34px;
    }

    .desktop-nav {
        display: grid;
        gap: 6px;
    }

    .rail-item {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 0 14px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #a2a8b3;
        cursor: pointer;
    }

    .rail-item:hover,
    .rail-item.active {
        background: var(--surface-raised);
        color: var(--text);
    }

    .rail-item.active .icon {
        color: var(--primary);
    }

    .logout-form {
        margin-top: auto;
    }

    .feed-column {
        width: 620px;
        margin: 0;
        padding-bottom: 0;
        border-right: 1px solid var(--line);
        border-left: 0;
    }

    .mobile-bottom-navigation {
        display: none;
    }

    .desktop-only {
        display: inline-grid;
    }

    .home-topbar {
        min-height: 70px;
        padding-top: 10px;
    }

    .toast {
        bottom: 32px;
    }
}

/* Member search */
.member-search-screen {
    min-height: 100dvh;
    max-height: 100dvh;
    background: var(--bg);
    overflow: hidden;
}

.member-search-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 8px 10px;
}

.member-search-header h1 {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.member-search-back {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.member-search-back .icon {
    width: 28px;
    height: 28px;
}

.member-search-form {
    grid-column: 1 / -1;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.member-search-header.is-active .member-search-form {
    grid-column: 2;
    grid-row: 1;
    margin: 0 8px 0 0;
}

.member-search-header.is-active h1 {
    display: none;
}

.member-search-form:focus-within {
    border-color: var(--primary);
}

.member-search-form > .icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--muted);
}

.member-search-form input {
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    appearance: none;
}

.member-search-form input::-webkit-search-cancel-button {
    display: none;
}

.member-search-form input::placeholder {
    color: var(--muted);
}

.member-search-clear {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.member-search-section-title {
    margin: 0;
    padding: 26px 16px 10px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.member-search-results {
    min-height: 0;
    flex: 1;
    overflow: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(92px + var(--safe-bottom));
}

.member-search-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.member-search-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: member-search-spin .8s linear infinite;
}

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

.member-search-row {
    width: 100%;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
}

.member-search-profile {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.member-search-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-raised);
    color: var(--blue);
    font-size: 18px;
    font-weight: 700;
}

.member-search-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-search-copy {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 3px;
}

.member-search-name,
.member-search-introduction,
.member-search-followers {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-search-name {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.member-search-introduction,
.member-search-followers {
    color: var(--muted);
    font-size: 12px;
}

.member-search-followers {
    color: #c8cbd2;
}

.member-search-follow {
    min-width: 82px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: var(--text);
    color: #111214;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.member-search-follow.is-following,
.member-search-follow:disabled {
    background: var(--surface-raised);
    color: var(--muted);
    cursor: default;
}

@media (min-width: 1024px) {
    .member-search-screen {
        min-height: 100dvh;
    }

    .member-search-results {
        padding-bottom: 16px;
    }
}

@media (max-width: 380px) {
    .wordmark {
        font-size: 22px;
    }

    .point-balance {
        display: none;
    }

    .topbar-actions .icon-button {
        width: 40px;
        height: 40px;
        padding: 9px;
    }

    .story-rail {
        gap: 12px;
    }
}

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

/* Modal Dialog System */
.web-modal-dialog {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    max-width: 100vw;
    max-height: 100vh;
    outline: none !important;
    box-shadow: none !important;
}

.web-modal-dialog[open] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: auto;
    inset: 0;
    position: fixed;
}

.web-modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-card {
    background: var(--surface);
    color: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    width: min(90vw, 440px);
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gray89);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: var(--white);
}

/* Comments Bottom Sheet Modal (Matching Android CommentBottomSheet) */
.comments-card {
    width: min(92vw, 480px);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: #000000;
    border-radius: 22px 22px 0 0;
}

.post-caption-preview {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(46, 46, 46, 0.7);
    background: #000;
}

.post-caption-preview .preview-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 35px;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.post-caption-preview .preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-caption-preview .preview-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
}

.post-caption-preview .author-name {
    font-weight: 700;
    color: var(--white);
    margin-right: 6px;
}

.post-caption-preview .caption-body {
    color: var(--gray89);
}

.post-caption-preview .preview-time {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--gray66);
}

.comments-modal-body {
    flex: 1;
    max-height: 380px;
    min-height: 200px;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comments-loading, .comments-empty {
    text-align: center;
    color: var(--gray89);
    padding: 24px 0;
    font-size: 14px;
}

.comment-item-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 35px;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content-area {
    flex: 1;
    min-width: 0;
}

.comment-header-line {
    font-size: 12px;
    line-height: 1.4;
    color: var(--white);
}

.comment-header-line .comment-author {
    font-weight: 700;
    color: var(--white);
    margin-right: 6px;
}

.comment-header-line .comment-text {
    color: var(--gray89);
}

.comment-sub-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 7px;
    font-size: 11px;
    color: var(--gray66);
}

.comment-reply-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--gray66);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.comment-reply-btn:hover {
    color: var(--primary);
}

.comment-like-icon-btn {
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--gray89);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.comment-like-icon-btn.active {
    color: var(--primary);
}

.comment-replies-list {
    padding-left: 45px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-target-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #000;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--gray89);
}

.reply-cancel-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.comment-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #000000;
    border-top: 1px solid var(--line);
}

.comment-user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 35px;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.comment-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-input-bar input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--outline);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 12px;
    outline: none;
}

.comment-input-bar input:focus {
    border-color: var(--primary);
}

.comment-send-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s ease;
}

.comment-send-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed !important;
    pointer-events: none;
}

.comment-send-btn .icon {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.comment-send-btn .spinner-icon {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 107, 107, 0.25);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: commentSpin 0.7s linear infinite;
    display: inline-block;
}

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

/* Bookmarked Posts Screen (Matching Android BookmarkedPostsScreen & iOS BookmarkedPostsView) */
#bookmarks-posts-screen {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
}

.bookmarks-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    height: 56px;
    background: #000000;
    border-bottom: 1px solid var(--line);
}

.bookmarks-topbar h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    flex: 1;
}

#profile-topbar-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 40px;
}

#profile-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 40px;
}

.bookmarks-screen-body {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 60px 0;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.bookmarks-screen-body .post-card {
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.bookmarks-loading, .bookmarks-empty {
    text-align: center;
    color: var(--gray89);
    padding: 48px 16px;
    font-size: 14px;
    margin: auto 0;
}

#bookmarks-posts-screen .bookmarks-loading,
#bookmarks-posts-screen .bookmarks-empty {
    min-height: calc(100dvh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.bookmarks-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(250, 17, 85, 0.24);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bookmarksSpin 0.75s linear infinite;
}

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

/* Page Screen Transitions (Tab Navigation Parity) */
.page-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

.page-screen[hidden] {
    display: none !important;
}

#user-profile-screen {
    background: var(--bg);
    min-height: 100vh;
}

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

/* User Profile Screen (Matching Android ProfileScreen.kt) */
.profile-modal-body {
    flex: 1;
    overflow-y: auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.profile-header-container {
    padding: 16px;
    background: #000000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.profile-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-initial {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.profile-stats-row {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.profile-stat-item .stat-num {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.profile-stat-item .stat-label {
    font-size: 12px;
    color: var(--gray89);
}

.profile-stat-item.clickable {
    cursor: pointer;
}

.profile-stat-item.clickable:hover .stat-num {
    color: var(--primary);
}

.profile-info-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-nickname-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-nickname {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.profile-vip-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 107, 107, 0.18);
    border: 1px solid rgba(255, 107, 107, 0.65);
    border-radius: 999px;
    padding: 2px 8px;
}

.profile-bio {
    margin: 0;
    font-size: 13px;
    color: var(--gray89);
    white-space: pre-wrap;
    line-height: 1.4;
}

.profile-vphone {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.profile-checkin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 12px;
}

.checkin-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.checkin-desc {
    margin: 2px 0;
    font-size: 12px;
    color: var(--gray89);
}

.checkin-point {
    margin: 2px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

.profile-checkin-btn {
    height: 36px;
    padding: 0 16px;
    border-radius: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.profile-checkin-btn.checked,
.profile-checkin-btn:disabled {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gray89);
    cursor: default;
}

.profile-actions-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
}

.profile-actions-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.profile-btn {
    flex: 1;
    height: 38px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    font-family: "Godo", -apple-system, sans-serif;
    text-decoration: none;
    box-sizing: border-box;
}

#profile-edit-btn {
    min-height: 44px;
    height: 44px;
    padding: 0 16px;
}

.profile-btn.primary {
    background: var(--primary, #fa1155);
    color: #ffffff;
}

.profile-btn.primary:hover {
    opacity: 0.92;
}

.profile-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #666666;
}

.profile-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-btn.following {
    background: #666666;
    color: #ffffff;
    border: none;
}

.profile-btn.following:hover {
    background: #777777;
}

.profile-btn.outline-full {
    width: 100%;
    flex: none;
    background: transparent;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 10px;
}

.profile-btn.outline-full:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-btn:disabled,
.profile-btn.loading,
.follow-compact-btn:disabled,
.follow-compact-btn.loading {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.profile-btn.icon-only {
    flex: 0 0 38px;
    width: 38px;
    padding: 0;
}

.profile-btn.icon-only .icon {
    width: 18px;
    height: 18px;
}

.profile-tab-bar {
    display: flex;
    height: 48px;
    background: #000000;
    border-bottom: 1px solid var(--line);
}

.profile-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray89);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.profile-tab .icon {
    width: 22px;
    height: 22px;
}

.profile-grid-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
    background: var(--bg);
    overflow-y: auto;
}

.profile-grid-item {
    aspect-ratio: 1 / 1;
    position: relative;
    background: #1a1a1a;
    cursor: pointer;
    overflow: hidden;
}

.profile-grid-item img, .profile-grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-grid-item .grid-video-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.profile-grid-empty {
    grid-column: span 3;
    padding: 60px 16px;
    text-align: center;
    color: var(--gray89);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.profile-grid-empty strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
}

.profile-grid-empty span {
    color: var(--gray89);
    font-size: 13px;
    line-height: 1.45;
}

/* Post Detail Reels Fullscreen View (Matching Android PostDetailView.kt) */
.feed-column:has(#post-detail-screen:not([hidden])) {
    padding-bottom: 0 !important;
}

#post-detail-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000000;
    overflow: hidden;
}

.post-detail-reels-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reels-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.reels-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

.reels-top-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(58px + env(safe-area-inset-top, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) 12px 0;
    z-index: 10;
}

.reels-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.reels-media-pager {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
}

.reels-media-pager .media-carousel {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: unset !important;
}

.reels-media-pager .media-track {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
}

.reels-media-pager .media-slide {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: unset !important;
}

.reels-media-pager .video-slide-wrap {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
}

.reels-media-pager img,
.reels-media-pager video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #000000;
}

.reels-media-pager .media-counter {
    position: absolute;
    top: 64px;
    right: 16px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 20px;
    padding: 4px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.reels-right-actions {
    position: absolute;
    right: 16px;
    bottom: 120px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.reels-action-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    gap: 4px;
}

.reels-action-icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.reels-action-item.active .reels-action-icon {
    color: var(--primary);
}

.reels-action-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.reels-bottom-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reels-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.reels-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
}

.reels-author-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.reels-caption {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
    max-height: 60px;
    overflow-y: auto;
}

.reels-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
}

.reels-comment-trigger-pill {
    width: 100%;
    height: 46px;
    background: rgba(17, 24, 32, 0.92);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    margin-top: 6px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reels-comment-trigger-pill:hover {
    background: rgba(25, 34, 45, 0.95);
}

/* Options Modal */
.options-card {
    border-radius: 20px !important;
    overflow: hidden !important;
    background: var(--surface) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.options-list {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

.option-item {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 0 !important;
}

.option-item:last-child {
    border-bottom: none !important;
}

.option-item:hover,
.option-item:focus-visible {
    background: var(--surface-raised);
    color: var(--primary);
}

/* Story Modal */
.story-modal-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-modal-body {
    padding: 40px 20px;
    text-align: center;
}

.story-modal-placeholder p {
    font-size: 16px;
    color: var(--gray89);
}

/* Report, Edit, Delete Modals */
.report-form, .dialog-body-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--white);
    cursor: pointer;
    padding: 6px 0;
}

.radio-item input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.report-form textarea, .dialog-body-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--outline);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--white);
    font-size: 14px;
    resize: none;
    outline: none;
}

.report-form textarea:focus, .dialog-body-form textarea:focus {
    border-color: var(--primary);
}

.delete-modal-body {
    padding: 24px 20px;
    text-align: center;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

.secondary-button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 18px;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.secondary-button:hover {
    background: var(--surface-raised);
}

.primary-button.danger {
    background: #ff453a;
    color: #fff;
}

.primary-button.danger:hover {
    background: #e03b31;
}

.text-muted {
    color: var(--gray89);
    font-size: 13px;
    font-weight: normal;
}

/* Post Creation & Editing Styles */
.create-post-card {
    max-width: 520px;
    width: 95vw;
}

.post-type-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.type-tab-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.type-tab-item input[type="radio"] {
    display: none;
}

.type-tab-item span {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray89);
    transition: background 0.2s ease, color 0.2s ease;
}

.type-tab-item input[type="radio"]:checked + span {
    background: var(--surface-raised);
    color: var(--primary);
}

.select-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--outline);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--white);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.select-input:focus {
    border-color: var(--primary);
}

.media-picker-buttons {
    display: flex;
    gap: 10px;
}

.btn-text-mobile {
    display: none;
}

.btn-text-desktop {
    display: inline;
}

.camera-select-btn {
    display: none !important;
}

@media (max-width: 679px) {
    .btn-text-mobile {
        display: inline;
    }
    .btn-text-desktop {
        display: none;
    }
    .camera-select-btn {
        display: flex !important;
    }
}

.media-select-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 10px;
    background: var(--surface-raised);
    border: 1px solid var(--outline);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.media-select-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.media-select-btn.secondary {
    background: transparent;
}

.media-preview-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}

.media-preview-item {
    position: relative;
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line);
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.caption-input-wrap {
    position: relative;
}

.char-count {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: var(--gray89);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Settings & Follow List Modal Styles */
.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.settings-item:hover {
    background: var(--surface-raised);
}

.settings-item.danger {
    color: var(--primary);
}

.settings-item .icon {
    width: 22px;
    height: 22px;
    color: var(--gray89);
}

.settings-item.danger .icon {
    color: var(--primary);
}

.settings-item .icon-chevron {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--gray89);
}

.follow-tabs-header {
    display: flex;
    gap: 16px;
}

.follow-tab-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray89);
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.follow-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.follow-list-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.follow-user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.follow-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.follow-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.profile-btn.small {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
}

/* Full Screen Follow List Screen Styles (Matching Android FollowListView) */
#follow-list-screen {
    background: var(--surface-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.follow-screen-tabrow {
    display: flex;
    height: 46px;
    background: var(--surface-background);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.follow-screen-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray89);
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
}

.follow-screen-tab.active {
    color: #ffffff;
}

.follow-screen-tab .tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.15s ease;
}

.follow-screen-tab.active .tab-indicator {
    background: var(--primary);
}

.follow-screen-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 2px 0 20px;
}

.follow-user-row {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
}

.follow-user-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.follow-avatar-box {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.follow-avatar-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
}

.follow-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.follow-avatar-initial {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.presence-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--surface-background);
}

.profile-avatar-wrap .presence-dot {
    width: 16px;
    height: 16px;
    bottom: 2px;
    right: 2px;
    border-width: 2.5px;
}

.presence-dot.online {
    background: #4CAF50;
}

.presence-dot.in_call {
    background: #FFB300;
}

.presence-dot.offline {
    background: #898989;
}

.follow-user-meta {
    flex: 1;
    min-width: 0;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.follow-nickname-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.follow-nickname {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-friend-star {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.follow-subtitle {
    font-size: 12px;
    color: var(--gray89);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-subtitle.presence-online {
    color: #4CAF50;
    font-weight: 600;
}

.follow-subtitle.presence-incall {
    color: #FFB300;
    font-weight: 600;
}

.follow-subtitle.presence-offline {
    color: var(--gray89);
}

.follow-actions-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    flex-shrink: 0;
}

.close-friend-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.close-friend-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.close-friend-btn .icon {
    width: 22px;
    height: 22px;
}

.follow-compact-btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.follow-compact-btn.primary {
    background: var(--primary);
    color: #ffffff;
}

.follow-compact-btn.secondary {
    background: transparent;
    border: 1px solid var(--gray89);
    color: #ffffff;
}

.follow-screen-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gray89);
    font-size: 14px;
}

/* ─── Chat Main Screen & Chat Detail Screen ────────────────────────── */
#chat-main-screen {
    width: 100%;
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}

.feed-column:has(#chat-detail-screen:not([hidden])),
.feed-column:has(#chat-detail-menu-screen:not([hidden])),
.feed-column:has(#profile-settings-screen:not([hidden])),
.feed-column:has(#account-settings-screen:not([hidden])),
.feed-column:has(#profile-edit-screen:not([hidden])),
.feed-column:has(#bookmarks-posts-screen:not([hidden])),
.feed-column:has(#follow-list-screen:not([hidden])),
.feed-column:has(#user-profile-screen:not([hidden]).is-other-profile),
.feed-column:has(#user-profile-screen:not([hidden])[data-is-mine="false"]) {
    padding-bottom: 0 !important;
}

body:has(#chat-detail-screen:not([hidden])),
body:has(#chat-detail-menu-screen:not([hidden])) {
    overflow: hidden;
}

body:has(#chat-detail-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#chat-detail-menu-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#profile-settings-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#account-settings-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#profile-edit-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#bookmarks-posts-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#follow-list-screen:not([hidden])) .mobile-bottom-navigation,
body:has(#user-profile-screen:not([hidden]).is-other-profile) .mobile-bottom-navigation,
body:has(#user-profile-screen:not([hidden])[data-is-mine="false"]) .mobile-bottom-navigation {
    display: none !important;
}

#chat-detail-screen {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    position: relative;
    z-index: 150;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
    height: calc(56px + env(safe-area-inset-top, 0px));
    background: #000000;
    border-bottom: 1px solid var(--line);
}

.chat-topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-topbar-title-wrap h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.chat-unread-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
}

.chat-main-tabrow {
    display: flex;
    background: #000000;
    border-radius: 999px;
    padding: 4px;
    margin: 8px 16px 12px 16px;
    box-sizing: border-box;
    border: none;
}

.chat-main-tab {
    flex: 1;
    height: 42px;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--gray89, #898989);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.chat-main-tab.active {
    background: var(--primary, #ff2e93);
    color: #ffffff;
    font-weight: 700;
}

.chat-main-tab .tab-indicator {
    display: none;
}

.chat-search-container {
    padding: 12px 16px;
    background: var(--bg);
}

.chat-search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: 12px;
    padding: 8px 12px;
    gap: 8px;
    border: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.chat-search-box:focus-within {
    border-color: var(--primary);
}

.chat-search-box .search-icon {
    width: 18px;
    height: 18px;
    color: var(--gray89);
}

.chat-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 14px;
    outline: none;
}

.chat-search-input::placeholder {
    color: var(--gray66);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--gray89);
    font-size: 14px;
    cursor: pointer;
}

.chat-threads-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}

.chat-thread-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(46, 46, 46, 0.4);
    background: var(--bg);
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.chat-thread-row:hover,
.chat-thread-row:active {
    background: var(--surface-hover);
}

.chat-thread-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-thread-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: var(--surface);
}

.chat-thread-info {
    flex: 1;
    min-width: 0;
    margin-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-thread-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-thread-name-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.chat-thread-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-pin-icon,
.chat-mute-icon {
    width: 14px;
    height: 14px;
    color: var(--gray89);
    flex-shrink: 0;
}

.chat-thread-time {
    font-size: 11px;
    color: var(--gray66);
    flex-shrink: 0;
}

.chat-thread-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.chat-thread-last-msg {
    font-size: 13px;
    color: var(--gray89);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chat-thread-unread-badge {
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

/* 1:1 Chat Detail Screen */
.chat-detail-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    height: calc(56px + env(safe-area-inset-top, 0px));
    background: #000000;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.chat-detail-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    margin: 0 8px;
}

.chat-detail-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-detail-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: var(--surface);
}

.chat-detail-title-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.chat-detail-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-detail-status-sub {
    font-size: 11px;
    color: var(--gray89);
}

.chat-detail-messages-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.chat-date-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 8px 0;
}

.chat-date-divider span {
    background: var(--surface);
    color: var(--gray89);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
}

.chat-msg-row {
    display: flex;
    margin-bottom: 4px;
    width: 100%;
}

.chat-msg-row.mine {
    justify-content: flex-end;
}

.chat-msg-row.other {
    justify-content: flex-start;
}

.chat-msg-content-wrap {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 75%;
}

.chat-msg-row.mine .chat-msg-content-wrap {
    flex-direction: row-reverse;
}

.chat-bubble {
    padding: 8px 14px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-line;
    width: fit-content;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    min-width: 0;
    min-height: 0;
}

.chat-msg-row.mine .chat-bubble {
    background: var(--primary);
    color: #ffffff;
    border-radius: 18px 18px 4px 18px;
    align-self: flex-end;
}

.chat-msg-row.other .chat-bubble {
    background: #28282c;
    color: var(--white);
    border-radius: 18px 18px 18px 4px;
    align-self: flex-start;
}

.chat-bubble.media-bubble {
    padding: 5px;
    line-height: normal;
    overflow: hidden;
    max-width: 250px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chat-bubble.media-bubble.has-caption {
    padding: 5px 5px 8px 5px;
}

.chat-msg-caption {
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    white-space: pre-line;
    padding: 8px 6px 2px 6px;
    color: #ffffff;
}

.chat-msg-row.mine .chat-bubble.media-bubble {
    background: var(--primary);
    border-radius: 18px 18px 4px 18px;
}

.chat-msg-row.other .chat-bubble.media-bubble {
    background: #28282c;
    border-radius: 18px 18px 18px 4px;
}

.chat-msg-row.other .chat-msg-caption {
    color: var(--white);
}

.chat-msg-bubble-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    max-width: 100%;
    min-width: 0;
}

.chat-msg-row.mine .chat-msg-bubble-group {
    align-items: flex-end;
}

.chat-translate-btn {
    background: transparent;
    border: none;
    padding: 2px 4px;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary, #ff2e93);
    cursor: pointer;
    text-align: left;
    transition: opacity 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    line-height: 1.2;
}

.chat-translate-btn:disabled {
    color: var(--gray66, #666666);
    cursor: default;
}

.chat-translate-btn:hover:not(:disabled) {
    opacity: 0.8;
    text-decoration: underline;
}

.chat-msg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.chat-msg-row.mine .chat-msg-meta {
    align-items: flex-end;
}

.chat-msg-row.other .chat-msg-meta {
    align-items: flex-start;
}

.chat-msg-read-status {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
}

.chat-msg-time {
    font-size: 10px;
    color: var(--gray66);
}

.chat-msg-media {
    position: relative;
    width: 200px;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    line-height: normal;
}

.chat-msg-media img {
    width: 100%;
    height: auto;
    min-height: 100px;
    max-height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.15s ease;
}

.chat-msg-media img:hover {
    opacity: 0.95;
}

.chat-msg-media video {
    width: 100%;
    height: auto;
    min-height: 100px;
    max-height: 320px;
    display: block;
    border-radius: 14px;
    background: #000000;
}

/* Chat Image Fullscreen Modal */
.chat-image-modal-dialog {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    outline: none;
}

.chat-image-modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

.chat-image-modal-card {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
}

.chat-image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.15s ease, transform 0.1s ease;
}

.chat-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.chat-image-modal-close:active {
    transform: scale(0.92);
}

.chat-image-modal-img {
    max-width: 94vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.chat-detail-bottom-wrap {
    position: relative;
    bottom: 0;
    z-index: 100;
    background: #000000;
    width: 100%;
    flex-shrink: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.chat-detail-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #000000;
    border-top: 1px solid var(--line);
}

/* Selected Chat Files Row (Matching iOS SelectedChatFilesRow) */
.chat-selected-files-row {
    width: 100%;
    padding: 10px 14px 4px;
    box-sizing: border-box;
    background: #000000;
}

.chat-selected-files-row[hidden] {
    display: none !important;
}

.chat-selected-files-list {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.chat-selected-file-item {
    position: relative;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 16px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-selected-file-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-selected-file-video-badge {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    pointer-events: none;
}

.chat-selected-file-video-badge .icon {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

.chat-selected-file-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.1s ease, background 0.15s ease;
    z-index: 2;
}

.chat-selected-file-remove:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.95);
}

.chat-attach-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #000000;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.chat-attach-btn .icon {
    width: 20px;
    height: 20px;
}

.chat-attach-btn:active {
    transform: scale(0.92);
}

.chat-input-field {
    flex: 1;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 9px 14px;
    color: var(--white);
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    -webkit-appearance: none;
}

.chat-input-field::placeholder {
    font-size: 14px;
}

.chat-input-field:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.1s ease;
    padding: 0;
}

.chat-send-btn .icon {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

.chat-send-btn:disabled {
    background: var(--gray66);
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-send-btn:not(:disabled):active {
    transform: scale(0.94);
}

.chat-detail-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    margin: auto;
}

.chat-detail-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 6px 0;
}

.chat-detail-empty-desc {
    font-size: 13px;
    color: var(--gray89);
    margin: 0;
}

.chat-detail-typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px 2px 16px;
    font-size: 12px;
    font-weight: 400;
    color: var(--gray89, #8e8e93);
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    width: 100%;
    animation: fadeIn 0.2s ease-in-out;
}

.chat-detail-typing-indicator .typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gray89, #8e8e93);
    animation: typingBlink 1.2s infinite ease-in-out;
}

@keyframes typingBlink {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.25); }
}

.inapp-notification-banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    cursor: pointer;
    animation: slideDownIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.inapp-notification-banner.slide-out {
    animation: slideUpOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.inapp-notification-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: #3a3a3c;
    flex-shrink: 0;
}

.inapp-notification-content {
    flex: 1;
    min-width: 0;
}

.inapp-notification-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inapp-notification-body {
    font-size: 13px;
    color: var(--gray89);
}

/* ─── Profile Settings & Account Settings Screens (Matching Android UI) ──── */
.settings-screen-body {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 16px 60px 16px;
    display: flex;
    flex-direction: column;
}

.settings-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub, #8e8e93);
    padding: 12px 4px 6px 4px;
}

.settings-card-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.settings-group-item,
.settings-info-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: none;
    text-align: left;
    color: var(--white, #ffffff);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.settings-group-item:hover,
.settings-info-item:hover {
    background: rgba(255, 255, 255, 0.09);
}

.settings-item-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: #ffffff;
}

.settings-item-icon-box.danger {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.settings-item-icon-box .icon {
    width: 22px;
    height: 22px;
    color: currentColor;
}

.settings-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.settings-item-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--white, #ffffff);
}

.settings-item-title.danger {
    color: #ff3b30;
}

.settings-item-desc,
.settings-item-value {
    font-size: 12px;
    color: var(--text-sub, #8e8e93);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-action-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--white, #ffffff);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
}

.settings-action-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

.icon-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-sub, #8e8e93);
    margin-left: 8px;
    flex-shrink: 0;
}

.settings-warning-box {
    width: 100%;
    padding: 14px;
    background: rgba(0, 0, 0, 0.14);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-sub, #8e8e93);
    line-height: 1.5;
    margin-top: 8px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

/* ─── Chat Detail Menu Screen (Matching Android ChatDetailMenuFullScreen) ─── */
.chat-menu-screen-body {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.chat-menu-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    border-radius: 24px;
    transition: background 0.15s ease;
    width: 100%;
    max-width: 320px;
    margin-bottom: 32px;
    box-sizing: border-box;
}

.chat-menu-profile-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.chat-menu-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--line, #3a3a3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    margin-bottom: 18px;
}

.chat-menu-user-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--white, #ffffff);
    margin-bottom: 6px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.chat-menu-sub-text {
    font-size: 13px;
    color: var(--text-sub, #8e8e93);
}

.chat-menu-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.chat-partner-card {
    padding: 20px 22px;
    transition: background 0.15s ease;
}

.chat-partner-card:hover {
    background: rgba(255, 255, 255, 0.09);
}

.chat-menu-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white, #ffffff);
    margin-bottom: 18px;
}

.chat-menu-partner-row {
    display: flex;
    align-items: center;
}

.chat-menu-avatar-small {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--line, #3a3a3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    margin-right: 14px;
    flex-shrink: 0;
}

.chat-menu-partner-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--white, #ffffff);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-actions-card {
    display: flex;
    flex-direction: column;
}

.chat-menu-action-item {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--white, #ffffff);
    cursor: pointer;
    transition: background 0.15s ease;
    box-sizing: border-box;
}

.chat-menu-action-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.chat-menu-action-item.danger .danger-text {
    color: var(--primary, #ff3b30);
}

.chat-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 22px;
}

@keyframes slideDownIn {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes slideUpOut {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -20px); }
}

/* Ideal Survival Tab (Android Parity) */
.chat-survival-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 16px 40px;
}

.survival-create-card {
    width: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff2e93 0%, #ff6b00 100%);
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 16px rgba(255, 46, 147, 0.25);
}

.survival-create-card:active {
    transform: scale(0.98);
    opacity: 0.92;
}

.survival-create-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.survival-create-desc {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 6px;
    line-height: 1.4;
}

.survival-room-card {
    width: 100%;
    border-radius: 20px;
    background: #17171c;
    padding: 18px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.15s ease;
}

.survival-room-card:hover {
    background: #1e1e24;
}

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

.survival-host-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--line, #3a3a3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.survival-host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.survival-room-meta {
    flex: 1;
    min-width: 0;
}

.survival-room-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.survival-host-name {
    font-size: 12px;
    color: #898989;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.survival-status-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #ff2e93);
    flex-shrink: 0;
}

.survival-status-badge.ended {
    color: #898989;
}

.survival-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.survival-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.14);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.survival-room-info {
    font-size: 12px;
    color: #c8c8c8;
    margin-top: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.survival-empty-view {
    padding: 48px 20px;
    text-align: center;
}

.survival-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.survival-empty-desc {
    font-size: 13px;
    color: #898989;
    margin-top: 6px;
}

/* Ideal Survival Room Detail View (Android Parity) */
.survival-room-body-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.survival-detail-card {
    background: #17171c;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.survival-action-btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #ff2e93 0%, #ff6b00 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 4px 14px rgba(255, 46, 147, 0.3);
}

.survival-action-btn-primary:active {
    transform: scale(0.98);
}

.survival-action-btn-secondary {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #3a3a3c;
    background: #242429;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.survival-action-btn-secondary:hover {
    background: #2d2d34;
}

.survival-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.survival-q-round-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 46, 147, 0.2);
    color: #ff2e93;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.survival-q-text {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 16px;
}

.survival-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.survival-option-btn {
    padding: 16px 12px;
    border-radius: 14px;
    border: 1px solid #3a3a3c;
    background: #121215;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.survival-option-btn.selected {
    border-color: #ff2e93;
    background: rgba(255, 46, 147, 0.15);
    color: #ff2e93;
}

.survival-timer-text {
    font-size: 12px;
    color: #898989;
    text-align: center;
    margin-top: 8px;
}

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

.survival-participant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #17171c;
    border-radius: 14px;
}

.survival-participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
}

.survival-participant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.survival-participant-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.survival-participant-status-alive {
    font-size: 12px;
    font-weight: 700;
    color: #00e676;
    padding: 4px 8px;
    background: rgba(0, 230, 118, 0.15);
    border-radius: 999px;
}

.survival-participant-status-eliminated {
    font-size: 12px;
    font-weight: 700;
    color: #ff5252;
    padding: 4px 8px;
    background: rgba(255, 82, 82, 0.15);
    border-radius: 999px;
}

/* Ideal Survival Create Modal (Android Parity) */
.survival-create-card-modal {
    max-width: 500px;
    width: min(92vw, 500px);
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.survival-create-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #27272a;
    background: #09090b;
}

.survival-create-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.survival-create-header .modal-close {
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s;
}

.survival-create-header .modal-close:hover {
    background: #27272a;
    color: #ffffff;
}

.survival-create-form-body {
    padding: 24px;
    max-height: 80vh;
    overflow-y: auto;
}

.survival-create-banner {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.survival-create-banner h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.survival-create-banner p {
    font-size: 13px;
    color: #a1a1aa;
    line-height: 1.5;
    margin: 0;
}

.survival-error-banner {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
}

.survival-create-form-body .form-field {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survival-create-form-body .form-field label {
    font-size: 13px;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0;
}

.survival-input {
    width: 100%;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.survival-input::placeholder {
    color: #52525b;
}

.survival-input:focus {
    border-color: var(--pink, #ff2e93);
    box-shadow: 0 0 0 3px rgba(255, 46, 147, 0.15);
}

.survival-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.survival-chip {
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.survival-chip:hover {
    border-color: #3f3f46;
    color: #ffffff;
}

.survival-chip.active,
.survival-chip[data-active="true"] {
    background: var(--pink, #ff2e93);
    border-color: var(--pink, #ff2e93);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 46, 147, 0.35);
}

.survival-advanced-filter-section {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.survival-advanced-filter-section h5 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.survival-advanced-filter-section .section-desc {
    font-size: 12px;
    color: #71717a;
    line-height: 1.5;
    margin: 0;
}

.age-range-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.age-input {
    width: 130px;
}

.age-dash {
    color: #71717a;
    font-weight: 600;
}

.survival-point-summary-box {
    background: rgba(255, 46, 147, 0.08);
    border: 1px solid rgba(255, 46, 147, 0.25);
    border-radius: 14px;
    padding: 16px;
    margin: 24px 0 20px 0;
}

.estimated-point-row {
    font-size: 15px;
    font-weight: 700;
    color: var(--pink, #ff2e93);
    margin-bottom: 6px;
}

.policy-notice-row {
    font-size: 12px;
    color: #a1a1aa;
    line-height: 1.5;
}

.required-star {
    color: var(--pink, #ff2e93);
}

.survival-create-form-body .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.survival-create-form-body .secondary-button {
    background: #18181b;
    border: 1px solid #27272a;
    color: #a1a1aa;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.survival-create-form-body .secondary-button:hover {
    background: #27272a;
    color: #ffffff;
}

.survival-create-form-body .primary-button {
    background: var(--pink, #ff2e93);
    border: none;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 46, 147, 0.35);
    transition: all 0.2s;
}

.survival-create-form-body .primary-button:hover {
    background: #e02580;
}

/* Post options modal: keep all painted layers inside the rounded sheet.
   Some WebKit/Safari builds can render the card shadow as a rectangular
   strip below the rounded bottom corners. Scope the fix to this modal only. */
#post-options-modal .options-card {
    border-radius: 20px !important;
    overflow: hidden !important;
    -webkit-clip-path: inset(0 round 20px);
    clip-path: inset(0 round 20px);
    box-shadow: none !important;
    isolation: isolate;
}

#post-options-modal .options-list {
    border-radius: 20px !important;
    overflow: hidden !important;
}

#post-options-modal .option-item:first-child {
    border-radius: 20px 20px 0 0 !important;
}

#post-options-modal .option-item:last-child {
    border-bottom: none !important;
    border-radius: 0 0 20px 20px !important;
}

/* Edit Post Modal (Android Parity) */
.edit-card-modal {
    max-width: 520px;
    width: min(92vw, 520px);
    background: #000000;
    border: 1px solid #27272a;
    border-radius: 20px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.edit-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #27272a;
    background: #000000;
}

.edit-post-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.edit-post-submit-btn {
    background: transparent;
    border: none;
    color: var(--pink, #ff2e93);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
}

.edit-post-submit-btn:disabled {
    color: #52525b;
    cursor: not-allowed;
}

.edit-post-form-body {
    padding: 16px;
    background: #000000;
}

.edit-post-visibility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

.visibility-label {
    font-size: 13px;
    font-weight: 600;
    color: #a1a1aa;
}

.edit-visibility-select {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.edit-media-preview-area {
    position: relative;
    width: 100%;
    height: 260px;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}

.edit-media-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.edit-media-track::-webkit-scrollbar {
    display: none;
}

.edit-media-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background: #000000;
    position: relative;
}

.edit-media-slide img,
.edit-media-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edit-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: opacity 0.2s, background 0.2s;
}

.edit-nav-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.edit-nav-btn.prev {
    left: 10px;
}

.edit-nav-btn.next {
    right: 10px;
}

.edit-media-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 12;
}

.edit-media-overlay-badge {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 15;
    white-space: nowrap;
}

.edit-media-placeholder {
    padding: 24px;
    text-align: center;
}

.media-notice-text {
    font-size: 13px;
    color: #71717a;
}

.edit-caption-wrap {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 14px;
    padding: 12px;
}

.edit-caption-wrap textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
    resize: none;
}

.caption-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #27272a;
}

.caption-footer-row .notice-text {
    font-size: 11px;
    color: #71717a;
}

.caption-footer-row .char-count {
    font-size: 11px;
    color: #a1a1aa;
    font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Ideal Survival Room — Android parity / realtime state UI
   ───────────────────────────────────────────────────────────────────────────── */
#survival-room-screen {
    background: var(--bg, #111214);
}

#survival-room-screen .chat-detail-topbar {
    background: #000000;
}

#survival-room-topbar-sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.survival-connection-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #898989;
    flex: 0 0 7px;
}

.survival-connection-dot.connected {
    background: #39d98a;
    box-shadow: 0 0 0 3px rgba(57, 217, 138, .1);
}

.survival-connection-dot.ended {
    background: #898989;
    box-shadow: none;
}

.survival-room-body-container {
    padding: 8px 16px 20px;
    gap: 12px;
    background: #111214;
}

.survival-android-card {
    width: 100%;
    box-sizing: border-box;
    background: #000000;
    border-radius: 22px;
    padding: 16px;
    color: #ffffff;
}

.survival-room-header-card {
    border-radius: 12px;
}

.survival-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.survival-host-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #2c3035;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.survival-host-avatar img,
.survival-participant-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.survival-profile-trigger.clickable,
.survival-profile-trigger:not(:disabled) {
    cursor: pointer;
}

.survival-profile-trigger:disabled {
    cursor: default;
    opacity: 1;
}

.survival-room-meta {
    flex: 1;
    min-width: 0;
}

.survival-host-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #ffffff;
    font-size: 14px;
}

.survival-host-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.survival-host-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 800;
    color: #fa1155;
    background: rgba(250, 17, 85, .14);
}

.survival-room-header-card .survival-room-title {
    margin-top: 4px;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.survival-status-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(137, 137, 137, .16);
    color: #c8c8c8;
}

.survival-status-badge.waiting {
    color: #ff9f0a;
    background: rgba(255, 159, 10, .14);
}

.survival-status-badge.playing {
    color: #39d98a;
    background: rgba(57, 217, 138, .14);
}

.survival-status-badge.final {
    color: #b07cff;
    background: rgba(176, 124, 255, .14);
}

.survival-status-badge.ended,
.survival-status-badge.closed {
    color: #898989;
    background: rgba(137, 137, 137, .14);
}

.survival-topic-text {
    margin-top: 14px;
    color: #e1e1e1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.survival-room-header-card .survival-chips-row {
    margin-top: 12px;
    gap: 7px;
}

.survival-room-header-card .survival-chip {
    padding: 6px 9px;
    background: #1c1e22;
    color: #c8c8c8;
    border: 1px solid #2c3035;
    font-size: 11px;
}

.survival-room-header-card .survival-chip.battle {
    color: #fa1155;
    border-color: rgba(250, 17, 85, .35);
    background: rgba(250, 17, 85, .1);
}

.survival-battle-policy {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #c8c8c8;
    background: #111214;
    font-size: 11px;
    line-height: 1.5;
}

.survival-count-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #898989;
    font-size: 12px;
}

.survival-count-row b {
    color: #ffffff;
    font-weight: 800;
}

.survival-action-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.survival-action-state {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
}

.survival-result-message {
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.5;
}

.survival-action-row {
    display: flex;
    gap: 8px;
}

.survival-action-row:empty {
    display: none;
}

.survival-action-row > button {
    flex: 1;
}

.survival-action-btn-primary,
.survival-action-btn-secondary {
    min-height: 48px;
    border-radius: 14px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 800;
}

.survival-action-btn-primary {
    background: #fa1155;
}

.survival-action-btn-primary:hover {
    background: #fa1155;
    filter: brightness(1.06);
}

.survival-action-btn-secondary {
    background: #1c1e22;
    border: 1px solid #2e3238;
    color: #ffffff;
}

.survival-action-btn-primary:disabled,
.survival-action-btn-secondary:disabled {
    cursor: default;
    opacity: .42;
    transform: none;
    filter: none;
}

.survival-revive-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: #111214;
}

.survival-revive-rule,
.survival-disabled-reason {
    color: #898989;
    font-size: 12px;
    line-height: 1.45;
}

.survival-card-kicker {
    margin-bottom: 10px;
    color: #898989;
    font-size: 12px;
    font-weight: 700;
}

.survival-question-card .survival-q-text {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.55;
}

.survival-timer-text {
    margin: 0 0 14px;
    text-align: left;
    color: #fa1155;
    font-size: 12px;
    font-weight: 700;
}

.survival-timer-text.expired {
    color: #898989;
}

.survival-options-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.survival-option-btn {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-radius: 14px;
    border: 1px solid #2e3238;
    background: #111214;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.4;
}

.survival-option-btn:hover:not(:disabled) {
    border-color: #505761;
}

.survival-option-btn.selected {
    color: #ffffff;
    border-color: #fa1155;
    background: rgba(250, 17, 85, .12);
}

.survival-option-btn:disabled {
    cursor: default;
}

.survival-option-letter {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2c3035;
    color: #ffffff;
    font-weight: 800;
}

.survival-option-btn.selected .survival-option-letter {
    background: #fa1155;
}

.survival-correct-answer {
    margin-top: 10px;
    color: #39d98a;
    font-size: 12px;
    font-weight: 800;
}

.survival-question-create-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.survival-question-create-card .survival-card-title {
    margin-bottom: 2px;
}

.survival-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e1e1e1;
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.survival-field-label span {
    color: #898989;
    font-weight: 500;
}

.survival-q-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #2e3238;
    border-radius: 12px;
    padding: 12px 13px;
    color: #ffffff;
    background: #111214;
    font: inherit;
    font-size: 14px;
    outline: 0;
    resize: none;
}

.survival-q-input:focus {
    border-color: #fa1155;
}

.survival-correct-picker {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
    color: #c8c8c8;
    font-size: 13px;
}

.survival-correct-picker > span {
    margin-right: auto;
    font-weight: 700;
}

.survival-correct-picker label {
    cursor: pointer;
}

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

.survival-correct-picker label span {
    min-width: 38px;
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid #2e3238;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.survival-correct-picker input:checked + span {
    background: #fa1155;
    border-color: #fa1155;
    color: #ffffff;
}

.survival-section-title {
    padding: 4px 2px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.survival-participant-list {
    gap: 8px;
}

.survival-participant-row {
    width: 100%;
    min-height: 64px;
    border: 0;
    padding: 10px 12px;
    background: #000000;
    color: #ffffff;
    text-align: left;
}

.survival-participant-row:not(:disabled):hover {
    background: #090a0c;
}

.survival-participant-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.survival-participant-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.survival-participant-status.alive {
    color: #39d98a;
    background: rgba(57, 217, 138, .14);
}

.survival-participant-status.eliminated {
    color: #ff5d68;
    background: rgba(255, 93, 104, .14);
}

.survival-participant-status.final {
    color: #b07cff;
    background: rgba(176, 124, 255, .14);
}

.survival-hidden-participants {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    border-radius: 18px;
    background: #000000;
    color: #898989;
    font-size: 13px;
    line-height: 1.5;
}

.survival-runtime-dialog::backdrop {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.survival-runtime-dialog-card {
    width: min(88vw, 400px);
    box-sizing: border-box;
    padding: 22px 18px 16px;
    border-radius: 20px;
    background: #1c1e22;
    border: 1px solid #2e3238;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .55);
}

.survival-runtime-dialog-card h3 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 17px;
}

.survival-runtime-dialog-card p {
    margin: 0;
    white-space: pre-line;
    text-align: center;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.6;
}

.survival-runtime-dialog-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.survival-runtime-dialog-actions button {
    flex: 1;
    min-height: 44px;
    border-radius: 12px;
    border: 0;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.survival-dialog-secondary {
    background: #2c3035;
}

.survival-dialog-primary {
    background: #fa1155;
}

.survival-dialog-primary.danger {
    background: #ff3b30;
}

@media (max-width: 679px) {
    .survival-room-body-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .survival-android-card {
        padding: 15px;
    }
}
/* Call / Dial pad */
.call-screen {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #000000;
    overflow-y: auto;
    overflow-x: hidden;
    color: #ffffff;
    box-sizing: border-box;
    padding: 0 0 24px;
}

.call-dial-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 12px 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Number Display Row */
.call-number-display-row {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.call-number-spacer {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.call-number-text-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.call-number-display {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: text;
    letter-spacing: 0.5px;
}

.call-number-display.is-empty {
    color: var(--gray89, #898989);
    font-size: 20px;
    font-weight: 700;
}

.call-number-hidden-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.call-backspace-btn {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--gray89, #898989);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.call-backspace-btn .icon {
    width: 24px;
    height: 24px;
}

.call-backspace-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.call-backspace-btn:active:not(:disabled) {
    transform: scale(0.92);
    color: #ffffff;
}

/* Matched Contact Collapsed Area / Guide Banner */
.call-match-area {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.call-guide-capsule {
    background: #141416;
    border-radius: 999px;
    padding: 10px 18px;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.call-guide-capsule span {
    color: var(--grayC8, #c8c8c8);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.call-matched-contact-row {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px 10px;
    box-sizing: border-box;
}

.call-matched-contact-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    padding: 0;
    color: inherit;
    transition: opacity 0.15s ease;
}

.call-matched-contact-main:active {
    opacity: 0.75;
}

.call-matched-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #28282c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.call-matched-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-matched-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.call-matched-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-matched-info span {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray89, #898989);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.call-matched-count {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray89, #898989);
    flex-shrink: 0;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-matched-expand-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--black96, #111214);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.call-matched-expand-btn .icon {
    width: 14px;
    height: 14px;
}

.call-matched-expand-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.call-matched-expand-btn:active {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(0.94);
}

/* Quick Action Buttons (통화기록 / 연락처) */
.call-quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.call-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(242, 242, 242, 0.12);
    border: none;
    color: var(--primary, #ff2e93);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.call-quick-action:hover {
    background: rgba(242, 242, 242, 0.18);
}

.call-quick-action:active {
    transform: scale(0.96);
    background: rgba(242, 242, 242, 0.22);
}

/* Circular Keypad */
.call-keypad {
    display: grid;
    grid-template-columns: repeat(3, 76px);
    justify-content: center;
    gap: 14px 28px;
    margin-bottom: 28px;
}

.call-key {
    width: 74px;
    height: 74px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background: rgba(242, 242, 242, 0.14);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.12s ease, transform 0.08s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.call-key:active {
    background: rgba(242, 242, 242, 0.28);
    transform: scale(0.95);
}

.call-key-number {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.1;
    color: #ffffff;
}

.call-key-letters {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 1px;
    line-height: 1;
    margin-top: 1px;
}

/* Call Start Action Circle Buttons */
.call-start-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: 100%;
    min-height: 86px;
}

.call-circle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, opacity 0.15s ease;
}

.call-circle-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.call-circle-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.call-circle-icon .icon {
    width: 26px;
    height: 26px;
}

.call-circle-btn.audio .call-circle-icon {
    background: #17C964;
}

.call-circle-btn.random .call-circle-icon {
    background: #F59E0B;
}

.call-circle-btn.video .call-circle-icon {
    background: var(--primary, #ff2e93);
}

.call-circle-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.call-circle-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Matched Contacts Bottom Sheet (Matching iOS MatchedContactBottomSheet) */
.call-bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.call-bottom-sheet-backdrop[hidden] {
    display: none !important;
}

.call-bottom-sheet {
    width: min(100%, 500px);
    max-height: 420px;
    background: #000000;
    border-radius: 20px 20px 0 0;
    padding: 20px 22px 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: call-sheet-slide-up 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes call-sheet-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.call-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.call-sheet-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-sheet-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.call-sheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.call-sheet-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.call-sheet-row-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.call-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.call-sheet-item:hover,
.call-sheet-item:active {
    background: rgba(255, 255, 255, 0.04);
}

.call-sheet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #28282C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.call-sheet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-sheet-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    flex: 1;
}

.call-sheet-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-sheet-phone {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray89, #898989);
    font-family: "Godo", -apple-system, sans-serif;
}

.call-sheet-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

/* Call List Panel (History & Contacts) */
.call-list-panel {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    min-height: calc(100dvh - 84px - var(--safe-bottom));
    padding: 12px 12px 120px;
    background: #000000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

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

.call-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    min-height: 48px;
}

.call-list-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.call-list-header .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.call-capsule-button {
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    background: #2E2E32;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, opacity 0.15s;
}

.call-capsule-button:disabled {
    color: var(--gray89, #898989);
    opacity: 0.5;
    cursor: default;
}

.call-capsule-button.muted {
    color: #C8C8C8;
}

.call-select-all-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2E2E32;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.call-select-all-btn.is-active {
    background: var(--primary, #FF2E93);
}

.call-select-all-btn svg {
    width: 16px;
    height: 16px;
}

.call-history-section-title {
    padding: 12px 4px 8px;
}

.call-history-section-title h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
}

.call-history-swipe-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.call-history-delete-reveal {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 16px;
    z-index: 1;
}

.call-history-delete-btn {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: #FF3B30;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: width 0.15s, border-radius 0.15s;
}

.call-history-delete-btn svg {
    width: 18px;
    height: 18px;
}

.call-history-row-content {
    position: relative;
    z-index: 2;
    background: #000000;
    display: flex;
    align-items: center;
    padding: 12px 4px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-user-select: none;
    user-select: none;
}

.call-history-checkbox {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--gray89, #898989);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.15s;
}

.call-history-checkbox.is-selected {
    border-color: var(--primary, #FF2E93);
    background: var(--primary, #FF2E93);
    color: #FFFFFF;
}

.call-history-checkbox svg {
    width: 14px;
    height: 14px;
}

.call-history-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #28282C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

.call-history-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-history-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.call-history-name {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.call-history-name.is-unknown {
    color: #FF3B30;
}

.call-history-status-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray89, #898989);
}

.call-history-status-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.call-history-status-icon.is-missed {
    color: #FF3B30;
}

.call-history-status-icon.is-missed svg {
    stroke-width: 2.5;
}

.call-history-side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 10px;
}

.call-history-time {
    font-size: 12px;
    color: var(--gray89, #898989);
    white-space: nowrap;
}

.call-history-call-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2E2E32;
    color: var(--primary, #FF2E93);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.call-history-call-btn:hover,
.call-history-call-btn:active {
    background: var(--primary, #FF2E93);
    color: #FFFFFF;
}

.call-history-call-btn svg {
    width: 18px;
    height: 18px;
}

.call-history-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-history-selection-bar {
    position: fixed;
    bottom: calc(74px + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.call-history-cancel-btn {
    padding: 12px 24px;
    border-radius: 9999px;
    background: #2E2E32;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-history-cancel-btn:hover {
    background: #3A3A3E;
}

.call-history-delete-selected-btn {
    padding: 12px 28px;
    border-radius: 9999px;
    background: #FF3B30;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-history-delete-selected-btn:disabled {
    background: #2E2E32;
    color: var(--gray89, #898989);
    cursor: default;
}

.call-user-history-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.call-user-history-title-wrap h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #FFFFFF;
}

.call-user-history-subtitle {
    font-size: 12px;
    color: var(--gray89, #898989);
    margin-top: 2px;
}

.call-user-history-card-wrap {
    padding: 8px 16px calc(100px + var(--safe-bottom));
}

.call-user-history-card {
    background: rgba(46, 46, 50, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 22px;
    padding: 4px 0;
    overflow: hidden;
}

.call-user-history-row {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.call-user-history-row:last-child {
    border-bottom: none;
}

.call-user-history-row-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.call-user-history-row-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #FFFFFF;
}

.call-user-history-row-status.is-missed {
    color: #FF3B30;
}

.call-user-history-row-sub {
    font-size: 12px;
    color: var(--gray89, #898989);
}

.call-user-history-row-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.call-user-history-row-date {
    font-size: 12px;
    color: var(--gray89, #898989);
}

.call-user-history-call-btn {
    background: transparent;
    border: none;
    color: var(--primary, #FF2E93);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-user-history-call-btn svg {
    width: 16px;
    height: 16px;
}

/* App Contacts Header (Matching iOS AppContactsView) */
.call-contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    margin-bottom: 10px;
    height: 50px;
}

.call-contacts-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-header-spacer {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.call-circle-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.call-circle-nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.call-circle-nav-btn svg {
    width: 22px;
    height: 22px;
}

/* App Contacts Search Bar */
.call-contact-search-wrap {
    padding: 0 16px 10px 16px;
    width: 100%;
    box-sizing: border-box;
}

.call-contact-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 48px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.call-contact-search .icon {
    width: 20px;
    height: 20px;
    color: var(--gray89, #898989);
    flex-shrink: 0;
}

.call-contact-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 14px;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-contact-search input::placeholder {
    color: var(--gray89, #898989);
}

/* App Contacts Empty State (Matching iOS AppContactsView) */
.call-contacts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    gap: 8px;
    flex: 1;
}

.call-contacts-empty-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary, #5FD857);
    margin-bottom: 4px;
}

.call-contacts-empty-icon svg {
    width: 36px;
    height: 36px;
}

.call-contacts-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-contacts-empty-desc {
    font-size: 13px;
    font-weight: 400;
    color: var(--gray89, #898989);
    margin: 0;
    line-height: 1.4;
    text-align: center;
    white-space: pre-line;
    font-family: "Godo", -apple-system, sans-serif;
}

/* App Contacts Row & Divider (Matching iOS AppContactsView) */
.call-contact-row-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.call-contact-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.call-contact-item-btn:hover,
.call-contact-item-btn:active {
    background: rgba(255, 255, 255, 0.04);
}

.call-contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #28282C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    overflow: hidden;
    flex-shrink: 0;
}

.call-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-contact-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.call-contact-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-contact-item-phone {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray89, #898989);
    font-family: "Godo", -apple-system, sans-serif;
}

.call-contact-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin-left: 86px;
    margin-right: 16px;
}

.call-list { display: flex; flex-direction: column; }
.call-list-empty { padding: 60px 20px; text-align: center; color: var(--gray89, #898989); font-size: 14px; }
.call-list-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 70px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: inherit;
}
button.call-list-row { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.call-list-main { min-width: 0; display: grid; gap: 3px; }
.call-list-main strong { color: #ffffff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-list-main span, .call-list-side { color: var(--gray89, #898989); font-size: 13px; }
.call-list-side { text-align: right; display: grid; gap: 3px; justify-items: end; }
.call-list-side .icon { width: 22px; color: var(--primary, #ff2e93); }
.call-list-text-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary, #ff2e93);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
/* iOS Matched AppContactDetailView Styles */
.call-contact-detail-panel {
    background: linear-gradient(180deg, rgba(137, 137, 137, 0.45) 0%, #000000 320px, #000000 100%);
    min-height: 100%;
}

.call-contact-detail-wrapper,
.call-contact-edit-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.call-contact-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 12px;
    min-height: calc(56px + env(safe-area-inset-top, 0px));
}

.call-circle-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.call-circle-nav-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.call-circle-nav-btn svg {
    width: 22px;
    height: 22px;
}

.call-topbar-spacer {
    flex: 1;
}

.call-edit-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    flex: 1;
}

.call-contact-edit-capsule-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.35);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: "Godo", -apple-system, sans-serif;
    transition: background 0.15s;
}

.call-contact-edit-capsule-btn:hover {
    background: rgba(0, 0, 0, 0.55);
}

.call-contact-edit-capsule-btn svg {
    width: 16px;
    height: 16px;
}

.call-contact-save-capsule-btn {
    height: 40px;
    padding: 0 18px;
    border-radius: 20px;
    background: var(--primary, #FF2E93);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-family: "Godo", -apple-system, sans-serif;
    transition: opacity 0.15s;
}

.call-contact-save-capsule-btn:hover {
    opacity: 0.9;
}

.call-contact-detail-scroll,
.call-contact-edit-scroll {
    width: min(100%, 580px);
    margin: 0 auto;
    padding: 0 12px 120px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.call-contact-header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 6px;
}

.call-contact-detail-avatar {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    overflow: hidden;
    background: #2E2E32;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 56px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.call-contact-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-contact-detail-name {
    margin: 22px 0 0;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
}

.call-contact-detail-number {
    margin: 8px 0 0;
    font-size: 14px;
    color: #C8C8C8;
    line-height: 1.2;
}

.call-contact-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
    margin-top: 28px;
}

.call-contact-quick-btn {
    height: 78px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: "Godo", -apple-system, sans-serif;
    padding: 0;
}

.call-contact-quick-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.call-contact-quick-btn:active {
    transform: scale(0.98);
}

.call-contact-quick-icon svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
    display: block;
}

.call-contact-quick-btn span {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: 400;
}

.call-contact-ios-card {
    width: 100%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: none;
    margin-top: 14px;
    box-sizing: border-box;
    text-align: left;
    transition: background 0.15s;
    font-family: "Godo", -apple-system, sans-serif;
}

.call-contact-ios-card:hover {
    background: rgba(255, 255, 255, 0.14);
}

.call-contact-history-card {
    padding: 16px 18px;
    cursor: pointer;
    display: block;
}

.call-contact-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.call-contact-card-label {
    font-size: 13px;
    color: var(--gray89, #898989);
    font-weight: 400;
}

.call-contact-chevron {
    width: 16px;
    height: 16px;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 2.5;
    fill: none;
}

.call-contact-history-content-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.call-contact-history-dir-icon svg {
    width: 13px;
    height: 13px;
    display: block;
}

.call-contact-history-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.call-contact-history-desc {
    font-size: 14px;
    font-weight: 500;
}

.call-contact-history-time {
    font-size: 12px;
    color: var(--gray89, #898989);
}

.call-contact-profile-card {
    min-height: 78px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
}

.call-contact-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #2E2E32;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.call-contact-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-contact-profile-text {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 400;
}

.call-card-spacer {
    flex: 1;
}

.call-contact-info-card {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.call-contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.call-contact-info-value {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.call-contact-info-value.is-empty {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
}

.call-contact-action-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 46, 147, 0.20);
    color: var(--primary, #FF2E93);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
    transition: background 0.15s;
}

.call-contact-action-circle-btn:hover {
    background: rgba(255, 46, 147, 0.30);
}

.call-contact-action-circle-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.call-contact-action-circle-btn.is-disabled {
    display: none;
}

.call-contact-memo-card {
    min-height: 120px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-contact-memo-value {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #FFFFFF;
    word-break: break-word;
}

.call-contact-memo-value.is-empty {
    color: rgba(255, 255, 255, 0.55);
}

.call-contact-delete-card {
    min-height: 60px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--primary, #FF2E93);
}

.call-contact-delete-card svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.call-contact-delete-card span {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #FF2E93);
}

/* Edit Mode Styles */
.call-contact-edit-avatar-section {
    display: flex;
    justify-content: center;
    padding: 18px 0 10px;
}

.call-contact-edit-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: #2E2E32;
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 48px;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.call-contact-edit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-contact-edit-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

.call-contact-edit-card label {
    font-size: 13px;
    color: var(--gray89, #898989);
    font-weight: 400;
}

.call-contact-edit-card input,
.call-contact-edit-card textarea {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    outline: none;
    font-family: "Godo", -apple-system, sans-serif;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.call-contact-edit-card textarea {
    resize: none;
    min-height: 80px;
    line-height: 1.4;
}

.call-contact-readonly-value {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}


/* A notification cold-start must never expose the phone tab between the browser
   launch frame and the incoming-call overlay. The server marks only that initial
   /call?incoming=1 render; call.js removes the marker as soon as the overlay is live. */
.app-shell[data-initial-incoming-call="1"] {
    background: #08090b;
}
.app-shell[data-initial-incoming-call="1"] .feed-column,
.app-shell[data-initial-incoming-call="1"] .desktop-rail,
.app-shell[data-initial-incoming-call="1"] .mobile-bottom-navigation,
html[data-eddaba-incoming-call-boot="1"] .app-shell .feed-column,
html[data-eddaba-incoming-call-boot="1"] .app-shell .desktop-rail,
html[data-eddaba-incoming-call-boot="1"] .app-shell .mobile-bottom-navigation {
    visibility: hidden !important;
}

.call-session-overlay, .call-incoming-overlay {
    position: fixed; inset: 0; z-index: 4000; background: #08090b; color: white; overflow: hidden;
    width: 100vw; min-width: 100vw; height: 100vh; min-height: 100vh;
    height: 100dvh; min-height: 100dvh; max-width: none; max-height: none;
}
.call-session-overlay { display: grid; grid-template-rows: auto 1fr auto; }
.call-remote-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #08090b; }
.call-audio-backdrop { position: absolute; inset: 0; background: #11151b; }
.call-session-overlay.is-video .call-audio-backdrop { display: none; }
.call-session-header { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: max(28px, env(safe-area-inset-top)) 24px 14px; background: #050608b8; }
.call-session-avatar, .call-incoming-avatar {
    width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    background: #2b3038; color: #67a8ff; font-size: 22px; font-weight: 800;
}
.call-session-avatar img, .call-incoming-avatar img { width: 100%; height: 100%; object-fit: cover; }
.call-session-person { min-width: 0; display: grid; gap: 3px; flex: 1; }
.call-session-person strong { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-session-person span { color: #bdc2ca; font-size: 14px; }
.call-session-header time { font-variant-numeric: tabular-nums; color: #e2e5e9; }
.call-session-overlay.is-video .call-session-header {
    justify-content: center; min-height: 82px; padding: max(22px, env(safe-area-inset-top)) 24px 14px;
    background: transparent; pointer-events: none;
}
.call-session-overlay.is-video .call-session-avatar,
.call-session-overlay.is-video .call-session-person { display: none; }
.call-session-overlay.is-video .call-session-header time { font-size: 20px; font-weight: 800; text-shadow: 0 2px 10px #000; }
.call-session-meta {
    position: absolute; z-index: 4; top: max(104px, calc(env(safe-area-inset-top) + 76px)); left: 18px;
    display: grid; justify-items: start; gap: 8px; pointer-events: none;
}
.call-point-badge, .call-billing-badge, .call-gift-ranking {
    border: 1px solid #343943; border-radius: 8px; background: #090b0ed9; color: #f4f5f7;
    padding: 8px 12px; font-size: 12px; font-weight: 700;
}
.call-billing-badge { color: #66a8ff; }
.call-session-overlay.is-video .call-billing-badge {
    position: fixed; top: max(64px, calc(env(safe-area-inset-top) + 44px)); left: 50%; transform: translateX(-50%);
}
.call-gift-ranking { display: grid; gap: 2px; }
.call-gift-ranking strong { color: var(--primary-color, #ff0f55); }
.call-gift-ranking span { color: #c4c9d1; font-size: 11px; font-weight: 400; }
.call-local-video { position: absolute; z-index: 3; top: max(108px, calc(env(safe-area-inset-top) + 80px)); right: 18px; width: 112px; aspect-ratio: .72; object-fit: cover; border-radius: 8px; border: 2px solid #69717d; background: #17191e; }
.call-pip-button {
    position: absolute; z-index: 5; top: max(48px, calc(env(safe-area-inset-top) + 12px)); left: 16px;
    width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center;
    background: #111318eb; color: white; box-shadow: 0 6px 20px #0005;
}
.call-pip-button svg { width: 22px; height: 22px; }
.call-pip-button[hidden] { display: none !important; }
.call-local-video[data-video-filter="brightness"] { filter: brightness(1.14); }
.call-local-video[data-video-filter="saturation"] { filter: saturate(1.4); }
.call-local-video[data-video-filter="warm"] { filter: sepia(.18) saturate(1.08); }
.call-local-video[data-video-filter="gray"] { filter: grayscale(1); }
.call-local-video[data-video-filter="low-light"] { filter: brightness(1.18) contrast(1.12); }
.call-local-video[data-video-filter="beauty"] { filter: brightness(1.1) saturate(1.25); }
.call-local-video[data-video-filter="background-blur"] { filter: blur(4px); }
.call-filter-canvas { position: fixed; width: 1px; height: 1px; left: -10000px; top: -10000px; pointer-events: none; }
.call-session-actions {
    position: absolute; z-index: 10; inset-inline: 0; bottom: 0; display: flex; justify-content: center; align-items: center;
    gap: 18px; padding: 18px 18px max(34px, env(safe-area-inset-bottom)); pointer-events: none;
}
.call-control {
    width: 58px; height: 58px; min-height: 58px; border: 0; border-radius: 50%; background: #111318eb; color: white;
    position: relative; display: grid; place-content: center; cursor: pointer; pointer-events: auto; box-shadow: 0 8px 24px #0005;
}
.call-control.is-off { background: #eceff3; color: #1b1e23; }
.call-control.is-off::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 30px; height: 2px; border-radius: 2px;
    background: currentColor; transform: translate(-50%, -50%) rotate(45deg); transform-origin: center;
}
.call-more-option.is-off::after {
    content: ''; position: absolute; top: 50%; left: 23px; width: 21px; height: 2px; border-radius: 2px;
    background: currentColor; transform: translate(-50%, -50%) rotate(45deg); transform-origin: center;
}
.call-control.end { width: 68px; height: 68px; min-height: 68px; background: #db2c4c; }
.call-control svg { width: 25px; height: 25px; }
.call-control.end svg { width: 30px; height: 30px; transform: rotate(135deg); }
.call-more-options, .call-filter-options {
    position: absolute; z-index: 9; left: 0; right: 0; bottom: calc(max(34px, env(safe-area-inset-bottom)) + 92px);
    display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none;
    padding: 4px 16px; scroll-padding-inline: 16px;
}
.call-filter-options { bottom: calc(max(34px, env(safe-area-inset-bottom)) + 146px); gap: 8px; }
.call-more-options::-webkit-scrollbar, .call-filter-options::-webkit-scrollbar { display: none; }
.call-more-option, .call-filter-option {
    min-height: 38px; flex: 0 0 auto; border: 0; border-radius: 999px; background: #111318f2; color: white;
    position: relative; padding: 9px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 20px #0005;
}
.call-more-option svg { width: 17px; height: 17px; }
.call-more-option.is-off { color: #8e96a3; }
.call-filter-option.is-selected { background: var(--primary-color, #ff0f55); }
.call-more-options[hidden], .call-filter-options[hidden] { display: none !important; }
.call-control[hidden], .call-more-option[hidden] { display: none !important; }
.call-gift-button { position: absolute; z-index: 5; right: 18px; bottom: 130px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 24px; background: #b20c42; color: white; font: inherit; font-weight: 700; }
.call-gift-animation {
    position: absolute;
    z-index: 25;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(17, 18, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: call-gift-slide-in 2.5s ease both;
}
.call-gift-animation[hidden] { display: none !important; }
.call-gift-animation .call-gift-emoji { font-size: 26px; line-height: 1; }
.call-gift-animation .call-gift-info { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.call-gift-animation .call-gift-title { font-size: 11.5px; font-weight: 800; color: #FFFFFF; white-space: nowrap; }
.call-gift-animation .call-gift-desc { font-size: 9.5px; font-weight: 700; color: var(--primary-color, #ff0f55); white-space: nowrap; }
@keyframes call-gift-slide-in {
    0% { opacity: 0; transform: translateY(-50%) translateX(20px) scale(0.9); }
    15% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
    85% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50%) translateX(10px) scale(0.95); }
}
.call-incoming-overlay { display: block; padding: 0; background: #000; }
.call-incoming-card {
    width: 100%; min-height: 100%; min-height: 100dvh; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: stretch; padding: 0 28px;
    background: #000;
}
.call-incoming-main {
    flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding-top: max(28px, env(safe-area-inset-top));
}
.call-incoming-avatar { width: 116px; height: 116px; flex: 0 0 116px; font-size: 38px; }
.call-incoming-card h2 { margin: 24px 0 0; max-width: min(100%, 420px); font-size: 24px; line-height: 1.35; }
.call-incoming-type-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; }
.call-incoming-type-row p { margin: 0; color: #aab0ba; font-size: 16px; font-weight: 700; }
.call-incoming-type-icon { width: 20px; height: 20px; color: var(--primary-color, #ff0f55); }
.call-incoming-policy { margin: 18px 0 0; color: var(--primary-color, #ff0f55); font-size: 14px; font-weight: 700; }
.call-incoming-guide { margin: 7px 0 0; max-width: 340px; color: #aab0ba; font-size: 12px; line-height: 1.5; }
.call-incoming-actions {
    flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: center; gap: 56px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
}
.call-incoming-action {
    width: 82px; min-height: 106px; padding: 0; border: 0; background: transparent; color: #aab0ba;
    display: flex; flex-direction: column; align-items: center; gap: 10px; font: inherit; cursor: pointer;
}
.call-incoming-action-icon {
    width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; color: white;
    display: grid; place-items: center;
}
.call-incoming-action.reject .call-incoming-action-icon { background: #e45454; }
.call-incoming-action.accept .call-incoming-action-icon { background: var(--primary-color, #ff0f55); }
.call-incoming-action svg { width: 32px; height: 32px; }
.call-incoming-action.reject svg { transform: rotate(135deg); }
.call-incoming-action > span:last-child { font-size: 13px; line-height: 1.3; }
.call-incoming-action:focus-visible .call-incoming-action-icon { outline: 3px solid white; outline-offset: 3px; }
.call-confirm-dialog { width: min(calc(100vw - 32px), 380px); }
.call-confirm-card {
    width: 100%;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
    border-radius: 20px;
    background: var(--surface, #1c1e22);
    border: 1px solid var(--line, #30343d);
    font-family: "Godo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    color: var(--white, #ffffff);
    text-align: left;
}
.call-confirm-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    font-family: "Godo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    overflow-wrap: anywhere;
}
.call-confirm-card p {
    margin: 0;
    font-size: 15px;
    color: #bec3cb;
    line-height: 1.5;
    font-family: "Godo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    overflow-wrap: anywhere;
}
.call-confirm-policy { color: #5fa5ff !important; font-weight: 700; }
.call-confirm-card .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}
.call-confirm-card .modal-actions button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border-radius: 12px;
    padding-inline: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Godo", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background-color 0.2s;
}
.call-confirm-card .modal-actions button.secondary-button {
    background: #2e3238;
    color: #c8c8c8;
}
.call-confirm-card .modal-actions button.secondary-button:hover {
    background: #3a3f47;
    color: #ffffff;
}
.call-confirm-card .modal-actions button.primary-button {
    background: var(--primary, #fa1155);
    color: #ffffff;
}
.call-confirm-card .modal-actions button.primary-button.danger {
    background: #e45454;
    color: #ffffff;
}
.call-confirm-card .modal-actions button.primary-button.danger:hover {
    background: #d33c3c;
}
.call-gift-card { width: min(92vw, 430px); }
.call-gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.call-gift-option { min-height: 112px; border: 1px solid #383d46; border-radius: 8px; background: #22252b; color: white; display: grid; place-content: center; justify-items: center; gap: 3px; }
.call-gift-option span { font-size: 34px; }.call-gift-option small { color: #ff5c8b; }
[hidden].call-session-overlay, [hidden].call-incoming-overlay { display: none !important; }

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
    .call-screen { padding-top: 28px; }
    .call-session-overlay {
        left: var(--desktop-rail-width, 240px);
        width: calc(100vw - var(--desktop-rail-width, 240px));
        min-width: 0;
    }
}
@media (pointer: coarse), (hover: none) {
    .call-session-overlay, .call-incoming-overlay {
        inset: 0;
        left: 0;
        right: 0;
        width: 100vw;
        min-width: 100vw;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
    }
}
@media (max-width: 480px) {
    .call-screen { padding-top: 6px; }
    .call-dial-content { padding: calc(12px + env(safe-area-inset-top, 0px)) 6px 24px; }
    .call-keypad { grid-template-columns: repeat(3, 74px); gap: 12px 24px; }
    .call-key { width: 74px; height: 74px; }
    .call-topbar h2 { font-size: 25px; }
    .call-session-actions { gap: 13px; }
    .call-control { width: 56px; height: 56px; min-height: 56px; }
    .call-control.end { width: 66px; height: 66px; min-height: 66px; }
    .call-confirm-dialog { width: calc(100vw - 20px); }
    .call-confirm-card { padding: 18px; }
    .call-list-panel { padding: 8px 8px 120px; }
    .call-contact-detail-scroll, .call-contact-edit-scroll { padding: 0 8px 120px; }
}
@media (max-height: 620px) {
    .call-incoming-avatar { width: 92px; height: 92px; flex-basis: 92px; font-size: 30px; }
    .call-incoming-card h2 { margin-top: 16px; }
    .call-incoming-actions { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   DRONE TAB & HISTORY STYLES (100% Matching iOS DroneView & DroneCatchHistoryView)
   ========================================================================== */

.drone-screen {
    padding: 0;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
    color: #ffffff;
    box-sizing: border-box;
}

.drone-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(16, 17, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.drone-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drone-topbar-icon {
    width: 26px;
    height: 26px;
    color: var(--primary, #fa286a);
    flex-shrink: 0;
}

.drone-topbar h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.drone-refresh-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.drone-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.drone-refresh-btn:active {
    transform: rotate(180deg) scale(0.92);
}

.drone-refresh-btn.spinning .icon {
    animation: drone-spin 0.8s linear infinite;
}

@keyframes drone-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.drone-scroll-container {
    padding: 8px 16px 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 1. Summary Row */
.drone-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.drone-summary-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drone-summary-label {
    font-size: 12px;
    color: #c8c8c8;
    font-weight: 400;
}

.drone-summary-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #fa286a);
}

/* 2. Channel Selector */
.drone-channel-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.drone-channel-selector::-webkit-scrollbar {
    display: none;
}

.drone-channel-pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: rgba(255, 255, 255, 0.09);
    color: #c8c8c8;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}

.drone-channel-pill.active {
    background: var(--primary, #fa286a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(250, 40, 106, 0.35);
}

.drone-channel-pill:active {
    transform: scale(0.95);
}

/* 3. Radar Card */
.drone-radar-card {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 38px; /* space for radar-notice at bottom */
}

.drone-radar-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.drone-radar-area {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drone-radar-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 2;
}

/* Floating Drone Node */
.drone-floating-node {
    position: absolute;
    width: 72px;
    height: 86px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}

.drone-floating-node:hover,
.drone-floating-node:active {
    transform: translate(-50%, -50%) scale(1.12);
    z-index: 10;
}

.drone-node-avatar-container {
    position: relative;
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drone-node-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #252830;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.drone-node-avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #2b303c;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Booster Sparkle & Wave */
.drone-booster-sparkle {
    position: absolute;
    top: -6px;
    right: -4px;
    color: #ffca28;
    z-index: 4;
    animation: drone-sparkle-bounce 1.5s infinite ease-in-out;
}

@keyframes drone-sparkle-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.2); }
}

.drone-booster-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(250, 40, 106, 0.6);
    animation: drone-wave-pulse 2s infinite ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes drone-wave-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Rainbow Rotating Border */
.drone-rainbow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: conic-gradient(#ff0055, #ff9900, #33cc33, #0099ff, #9900ff, #ff0055);
    animation: drone-rainbow-spin 4s linear infinite;
    z-index: 1;
}

@keyframes drone-rainbow-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Orbiting Decorations (Lightning & Crown) */
.drone-orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    animation: drone-orbit-spin 4s linear infinite;
}

.drone-orbit-icon {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.drone-orbit-icon.crown {
    color: #ffca28;
}

.drone-orbit-icon.lightning {
    color: #00e5ff;
}

@keyframes drone-orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Secret Badge */
.drone-secret-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e222a;
    border: 1.5px solid var(--primary, #fa286a);
    color: var(--primary, #fa286a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    z-index: 4;
}

.drone-node-name {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.drone-radar-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
    color: #8c93a0;
    pointer-events: none;
    z-index: 4;
}

.drone-radar-notice {
    flex-shrink: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 5px 13px;
    border-radius: 16px;
    font-size: 11px;
    color: #c8c8c8;
    white-space: nowrap;
    pointer-events: none;
    margin-top: 10px;
    margin-bottom: 12px;
    z-index: 5;
}

/* 4. Quick Launch Card */
.drone-quick-launch-card {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 26px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drone-launch-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drone-launch-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.drone-launch-card-desc {
    font-size: 13px;
    color: #a0a6b4;
    margin: 0;
}

/* Active Flying Drones */
.drone-active-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drone-active-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px;
}

.drone-active-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #252830;
    flex-shrink: 0;
}

.drone-active-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.drone-active-message {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drone-active-time {
    font-size: 12px;
    color: var(--primary, #fa286a);
    font-weight: 500;
}

.drone-active-edit-btn {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.drone-active-edit-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Slot Card */
.drone-slot-card {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drone-slot-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drone-slot-title {
    font-size: 13px;
    font-weight: 600;
    color: #c8c8c8;
}

.drone-user-grade-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.drone-user-grade-badge.vip {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000000;
}

.drone-slot-count {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

/* Slot Purchase Box */
.drone-slot-purchase-box {
    background: rgba(250, 40, 106, 0.1);
    border: 1px solid rgba(250, 40, 106, 0.25);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.drone-slot-expand-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.drone-slot-expand-desc {
    font-size: 12px;
    color: #b0b5c0;
    margin: 0;
}

.drone-slot-expand-point {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #fa286a);
}

.drone-slot-expand-btn {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    background: var(--primary, #fa286a);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.15s ease;
}

.drone-slot-expand-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Flight Info Box */
.drone-flight-info-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drone-flight-info-text {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.drone-flight-time-text {
    font-size: 12px;
    color: #8c93a0;
    margin: 0;
}

.drone-required-point-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary, #fa286a);
    margin: 2px 0 0;
}

.drone-point-warning-text {
    font-size: 12px;
    font-weight: 600;
    color: #ff4d4f;
    margin: 0;
}

/* Message Field */
.drone-message-field {
    position: relative;
}

.drone-message-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 12px 14px 28px;
    color: #ffffff;
    font-size: 14px;
    resize: none;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.drone-message-textarea:focus {
    border-color: var(--primary, #fa286a);
}

.drone-message-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: #8c93a0;
    pointer-events: none;
}

/* Option Sections */
.drone-option-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drone-option-title {
    font-size: 13px;
    font-weight: 700;
    color: #d2d6e0;
}

.drone-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drone-chip {
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #c8c8c8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.drone-chip.active {
    background: rgba(250, 40, 106, 0.18);
    border-color: var(--primary, #fa286a);
    color: #ffffff;
    font-weight: 700;
}

.drone-chip-point {
    font-size: 11px;
    color: var(--primary, #fa286a);
    font-weight: 700;
}

.drone-chip.active .drone-chip-point {
    color: #ff6b98;
}

/* Launch Button */
.drone-launch-submit-btn {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    background: var(--primary, #fa286a);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    box-shadow: 0 6px 18px rgba(250, 40, 106, 0.35);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.drone-launch-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: #6d7280;
    box-shadow: none;
    cursor: not-allowed;
}

.drone-launch-submit-btn:not(:disabled):active {
    transform: scale(0.98);
}

/* 5. Today Catch Card */
.drone-today-catch-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drone-today-catch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drone-today-catch-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.drone-today-catch-view-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #fa286a);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
}

.drone-today-catch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drone-today-catch-empty {
    font-size: 13px;
    color: #8c93a0;
    text-align: center;
    margin: 12px 0;
}

.drone-today-catch-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.drone-today-catch-item:hover {
    background: rgba(0, 0, 0, 0.35);
}

.drone-today-catch-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #252830;
    flex-shrink: 0;
}

.drone-today-catch-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drone-today-catch-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drone-today-catch-msg {
    font-size: 12px;
    color: #a0a6b4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   DRONE BOTTOM SHEETS (Selected & Edit)
   ========================================================================== */

.drone-selected-modal,
.drone-edit-modal {
    border: none;
    border-radius: 26px 26px 0 0;
    background: #14161a;
    color: #ffffff;
    padding: 0;
    max-width: 540px;
    width: 100%;
    margin: auto auto 0 auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.drone-bottom-sheet-content {
    padding: 20px 22px calc(24px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drone-selected-header,
.drone-edit-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.drone-selected-avatar-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    background: #252830;
    flex-shrink: 0;
    border: 2px solid rgba(250, 40, 106, 0.4);
}

.drone-selected-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drone-selected-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.drone-selected-header-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drone-selected-username {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drone-selected-channel-badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #fa286a);
}

.drone-modal-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.drone-selected-message-box {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 14px 16px;
}

.drone-selected-message-text {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.45;
    margin: 0;
    word-break: break-word;
}

.drone-selected-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.drone-selected-info-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drone-info-card-label {
    font-size: 12px;
    color: #9da3b2;
}

.drone-info-card-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary, #fa286a);
}

.drone-catch-btn {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    background: var(--primary, #fa286a);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(250, 40, 106, 0.35);
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.drone-catch-btn:active {
    transform: scale(0.98);
}

.drone-edit-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
}

.drone-edit-desc {
    font-size: 13px;
    color: #9da3b2;
    margin: 0;
}

.drone-modal-buttons {
    display: flex;
    gap: 10px;
}

.drone-modal-buttons button {
    flex: 1;
}

/* ==========================================================================
   DRONE CATCH HISTORY SCREEN
   ========================================================================== */

.drone-catch-history-screen {
    padding: 0;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
    color: #ffffff;
    box-sizing: border-box;
}

.drone-catch-history-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 10px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(16, 17, 20, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.drone-history-back-btn,
.drone-history-refresh-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drone-catch-history-topbar h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.drone-history-scroll-container {
    padding: 8px 16px 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.drone-history-summary-card {
    background: rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drone-history-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #c8c8c8;
}

.drone-history-summary-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.drone-history-summary-box {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drone-history-box-label {
    font-size: 12px;
    color: #9da3b2;
}

.drone-history-box-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #fa286a);
}

.drone-history-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 4px;
    gap: 4px;
}

.drone-history-mode-tab {
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #9da3b2;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.drone-history-mode-tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 700;
}

.drone-history-type-pills {
    display: flex;
    gap: 8px;
}

.drone-history-type-pill {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: #9da3b2;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.drone-history-type-pill.active {
    background: var(--primary, #fa286a);
    color: #ffffff;
    font-weight: 700;
}

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

.drone-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.drone-history-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.drone-history-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #252830;
    flex-shrink: 0;
}

.drone-history-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.drone-history-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drone-history-msg {
    font-size: 13px;
    color: #d0d4de;
    line-height: 1.35;
    word-break: break-word;
}

.drone-history-date {
    font-size: 11px;
    color: #8c93a0;
}

.drone-history-chat-btn {
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--primary, #fa286a);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.drone-history-empty {
    text-align: center;
    padding: 40px 16px;
    color: #8c93a0;
    font-size: 14px;
}



/* iPhone AccountSettingsView parity */
.account-settings-loading {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#account-settings-screen,
#virtual-phone-settings-screen {
    background: var(--background, #101114);
    min-height: 100vh;
}

.account-ios-group {
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.14);
}

.account-ios-item {
    min-height: 66px;
    padding: 12px 14px;
    border-radius: 0;
    background: transparent;
    position: relative;
}

.account-ios-item + .account-ios-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 68px;
    right: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

.settings-info-item.account-ios-item {
    cursor: default;
}

.settings-info-item.account-ios-item:hover {
    background: transparent;
}

.account-ios-item .settings-item-icon-box {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.account-ios-item .settings-item-title {
    font-size: 14px;
    line-height: 1.35;
}

.account-ios-item .settings-item-value,
.account-ios-item .settings-item-desc {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--gray89, #898989);
    overflow-wrap: anywhere;
}

.primary-tint {
    color: var(--primary, #fa1155) !important;
    background: rgba(250, 17, 85, 0.12) !important;
}

.account-verified-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--primary, #fa1155);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.account-info-notice {
    margin: 0 14px 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(250, 17, 85, 0.10);
    color: var(--primary, #fa1155);
    font-size: 12px;
    line-height: 1.4;
}

.account-delete-warning {
    margin-top: 2px;
    padding: 14px;
    border: 1px solid rgba(255, 59, 48, 0.28);
    border-radius: 16px;
    background: rgba(255, 59, 48, 0.08);
    color: #ff453a;
    font-size: 12px;
    line-height: 1.55;
}

.settings-action-btn {
    flex: 0 0 auto;
    min-width: 48px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.danger-item .settings-item-title.danger,
.danger-text {
    color: #ff453a !important;
}

.account-ios-dialog::backdrop {
    /* iPhone CustomInputDialog: Color.black.opacity(0.6), without blur. */
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.account-ios-dialog-card {
    width: min(92vw, 390px);
    padding: 22px 20px 18px;
    border-radius: 20px;
    background: #25262a;
    color: #fff;
}

.account-ios-dialog-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.account-ios-dialog-card p {
    margin: 0 0 16px;
    color: var(--gray89, #898989);
    font-size: 13px;
    line-height: 1.5;
}

.account-dialog-input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #55575e;
    border-radius: 10px;
    outline: none;
    background: #1c1d20;
    color: #fff;
    font: inherit;
}

.account-dialog-input:focus {
    border-color: var(--primary, #fa1155);
}

.account-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.account-dialog-confirm {
    min-width: 72px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--primary, #fa1155);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.account-dialog-confirm:disabled,
.account-dialog-actions .secondary-button:disabled {
    cursor: default;
    opacity: 0.55;
}

.account-dialog-confirm.is-loading::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.account-dialog-input[readonly] {
    opacity: 0.72;
}

.account-dialog-error {
    margin-top: 10px;
    color: #ff453a;
    font-size: 12px;
    line-height: 1.45;
}

.account-dialog-error[hidden] {
    display: none !important;
}

.virtual-phone-current-card,
.virtual-phone-search-card,
.virtual-phone-fee-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.14);
}

.virtual-phone-current-card strong {
    color: #fff;
    font-size: 18px;
}

.virtual-phone-current-card span,
.virtual-phone-fee-card span {
    color: var(--gray89, #898989);
    font-size: 12px;
    line-height: 1.45;
}

.virtual-phone-last-four {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--gray89, #898989);
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: #fff;
    font: inherit;
}

.virtual-phone-last-four.valid {
    border-color: var(--primary, #fa1155);
}

.virtual-phone-last-four.invalid {
    border-color: #ff453a;
}

.virtual-phone-input-error,
.virtual-phone-not-enough {
    color: #ff453a;
    font-size: 12px;
}

.virtual-phone-primary-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--primary, #fa1155);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.virtual-phone-primary-btn:disabled {
    background: rgba(0, 0, 0, 0.14);
    color: var(--gray89, #898989);
    cursor: default;
}

.virtual-phone-candidates {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.virtual-phone-candidate {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.14);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.virtual-phone-candidate.selected {
    border-color: var(--primary, #fa1155);
}

.virtual-phone-candidate strong {
    font-size: 16px;
}

.virtual-phone-candidate span,
.virtual-phone-candidate small {
    color: var(--gray89, #898989);
    font-size: 12px;
}

.virtual-phone-candidate small {
    grid-column: 1 / -1;
}

.virtual-phone-change-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.virtual-phone-fee-card strong {
    color: #fff;
    font-size: 14px;
}

@media (max-width: 767px) {
    #profile-edit-btn {
        min-height: 44px;
        height: 44px;
    }

    .settings-screen-body {
        padding-left: 14px;
        padding-right: 14px;
    }
}


/* ─── iPhone EditProfileView parity ───────────────────────────────── */
#profile-edit-screen {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, rgba(28, 30, 34, 0.96), #000000);
    color: #ffffff;
}

.profile-edit-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 10px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.96);
}

.profile-edit-topbar h3 {
    margin: 0;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.profile-edit-back,
.profile-edit-topbar-spacer {
    width: 44px;
    height: 44px;
}

.profile-edit-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
}

.profile-edit-back .icon {
    width: 25px;
    height: 25px;
}

.profile-edit-scroll {
    width: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.profile-edit-form {
    width: min(100%, 600px);
    margin: 0 auto;
    padding: 28px 24px calc(40px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.profile-edit-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.profile-edit-avatar-button,
.profile-edit-change-image {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.profile-edit-avatar-frame {
    position: relative;
    display: block;
    width: 110px;
    height: 110px;
}

.profile-edit-avatar-image,
.profile-edit-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
}

.profile-edit-avatar-image {
    display: block;
    object-fit: cover;
    background: #2c3035;
}

.profile-edit-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #2c3035;
}

.profile-edit-avatar-placeholder img {
    width: 48px;
    height: 48px;
    opacity: 0.72;
    filter: grayscale(1) brightness(1.8);
}

.profile-edit-camera-badge {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary, #fa1155);
    color: #ffffff;
}

.profile-edit-camera-badge .icon {
    width: 15px;
    height: 15px;
}

.profile-edit-change-image {
    min-height: 32px;
    padding: 0 8px;
    color: var(--primary, #fa1155);
    font-size: 13px;
    font-weight: 700;
}

.profile-edit-field {
    margin: 0 0 20px;
}

.profile-edit-fieldset {
    padding: 0;
    border: 0;
}

.profile-edit-label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.profile-edit-nickname-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.profile-edit-field-grow {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-edit-control {
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    outline: none;
    padding: 0 14px;
    background: #2c3035;
    color: #ffffff;
    caret-color: var(--primary, #fa1155);
    font: inherit;
    font-size: 13px;
}

.profile-edit-control::placeholder {
    color: #666a72;
    font-size: 12px;
    font-weight: 600;
}

.profile-edit-control:focus {
    box-shadow: 0 0 0 1px rgba(250, 17, 85, 0.55);
}

.profile-edit-check-button {
    flex: 0 0 84px;
    width: 84px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: var(--primary, #fa1155);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.profile-edit-check-button:disabled {
    background: #2c3035;
    color: #ffffff;
    cursor: default;
}

.profile-edit-check-button.is-loading {
    pointer-events: none;
}

.profile-edit-check-spinner,
.profile-edit-submit-spinner {
    width: 18px;
    height: 18px;
}

.profile-edit-count {
    margin-top: 4px;
    padding-right: 4px;
    text-align: right;
    color: #666a72;
    font-size: 12px;
}

.profile-edit-count.at-limit {
    color: var(--primary, #fa1155);
}

.profile-edit-help {
    margin: 4px 0 0;
    color: #898989;
    font-size: 12px;
    line-height: 1.4;
}

.profile-edit-help-danger {
    color: var(--primary, #fa1155);
}

.profile-edit-help-status.available {
    color: var(--primary, #fa1155);
}

.profile-edit-help-status.unavailable {
    color: #666a72;
}

.profile-edit-gender-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.profile-edit-gender-button {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #2c3035;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.profile-edit-gender-button.selected {
    background: var(--primary, #fa1155);
}

.profile-edit-introduction-wrap {
    position: relative;
    display: block;
}

.profile-edit-introduction {
    min-height: 116px;
    padding: 14px 14px 32px;
    resize: vertical;
    line-height: 1.45;
}

.profile-edit-introduction-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #666a72;
    font-size: 12px;
    pointer-events: none;
}

.profile-edit-introduction-count.at-limit {
    color: var(--primary, #fa1155);
}

.profile-edit-submit {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    border: 0;
    border-radius: 8px;
    background: var(--primary, #fa1155);
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.profile-edit-submit:disabled {
    background: #2c3035;
    cursor: default;
}

.profile-edit-overlay,
.profile-edit-crop-overlay {
    position: fixed;
    z-index: 12000;
    inset: 0;
}

.profile-edit-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.profile-edit-overlay-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.60);
}

.profile-edit-image-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 600px);
    padding: 12px 24px calc(18px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    border-radius: 14px 14px 0 0;
    background: #1b1d21;
}

.profile-edit-sheet-handle {
    display: block;
    width: 48px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 99px;
    background: #3c414a;
}

.profile-edit-image-sheet button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-bottom: 1px solid #2c3037;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.profile-edit-image-sheet .profile-edit-sheet-cancel {
    margin-top: 8px;
    border-bottom: 0;
    border-radius: 8px;
    background: #292c32;
}

.profile-edit-crop-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px)) 18px max(20px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.96);
}

.profile-edit-crop-card {
    width: min(100%, 480px);
    max-height: 100%;
    overflow-y: auto;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #181a1f;
}

.profile-edit-crop-viewport {
    position: relative;
    width: min(100%, 390px);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin: 0 auto;
    background: #090a0c;
    touch-action: none;
    cursor: grab;
}

.profile-edit-crop-viewport:active {
    cursor: grabbing;
}

.profile-edit-crop-viewport img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    user-select: none;
    pointer-events: none;
    will-change: transform;
}

.profile-edit-crop-zoom {
    width: 100%;
    margin: 18px 0 0;
    accent-color: var(--primary, #fa1155);
}

.profile-edit-crop-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.profile-edit-crop-actions button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #292d33;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.profile-edit-crop-actions .primary-button {
    background: var(--primary, #fa1155);
}

@media (max-width: 767px) {
    .profile-edit-topbar {
        min-height: 56px;
        padding: 6px 10px;
    }

    .profile-edit-form {
        padding: 28px 24px calc(88px + env(safe-area-inset-bottom, 0px));
    }
}

/* Profile edit runtime state parity */
.profile-edit-help.is-danger {
    color: var(--primary, #fa1155);
}
.profile-edit-help-status.is-available {
    color: var(--primary, #fa1155);
}
.profile-edit-help-status.is-error {
    color: #666a72;
}
.profile-edit-overlay[hidden],
.profile-edit-crop-overlay[hidden] {
    display: none !important;
}
body.profile-edit-modal-open {
    overflow: hidden;
}
.profile-edit-alert-card .profile-edit-alert-actions {
    grid-template-columns: 1fr;
}
.profile-edit-alert-card .profile-edit-alert-actions .account-dialog-confirm {
    width: 100%;
}

/* Account settings: make contact-email verification request progress explicit.
 * Uses the same iPhone account-setting strings and prevents repeated requests
 * while the backend is sending the verification code. */
#account-request-email-verify[aria-busy="true"] {
    pointer-events: none;
    opacity: 0.62;
}

#account-request-email-verify.is-sending .settings-item-icon-box {
    position: relative;
}

#account-request-email-verify.is-sending .settings-item-icon-box::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.30);
    border-top-color: var(--primary, #fa1155);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

#account-request-email-verify.is-sending .settings-item-icon-box > * {
    opacity: 0;
}

.account-email-verify-sending-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    cursor: wait;
}

.account-email-verify-sending-card {
    width: min(88vw, 340px);
    min-height: 82px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #25262a;
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.account-email-verify-sending-spinner {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    box-sizing: border-box;
    border: 3px solid rgba(250, 17, 85, 0.24);
    border-top-color: var(--primary, #fa1155);
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

.account-email-verify-sending-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-email-verify-sending-copy strong {
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}

.account-email-verify-sending-copy span {
    color: var(--gray89, #a5a8af);
    font-size: 12px;
    line-height: 1.45;
}


/* ─── Activity Screen (iPhone ActivityScreenView parity) ─────────────── */
.activity-screen {
    min-height: 100dvh;
    background: var(--bg);
}

.activity-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 8px;
    background: var(--bg);
}

.activity-topbar .icon-button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
}

.activity-topbar h3 {
    min-width: 0;
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-loading {
    min-height: calc(100dvh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-screen-body {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 8px 16px calc(80px + var(--safe-bottom));
}

.activity-section-title {
    padding: 8px 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.activity-summary-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.14);
}

.activity-summary-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-summary-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(250, 17, 85, 0.18);
    color: var(--primary);
}

.activity-summary-icon svg {
    width: 22px;
    height: 22px;
}

.activity-summary-copy,
.activity-item-copy {
    min-width: 0;
    flex: 1;
}

.activity-summary-title,
.activity-item-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.activity-summary-desc,
.activity-item-desc {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
}

.activity-summary-counts {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.activity-summary-count {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.activity-summary-count strong {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.activity-summary-count span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
}

.activity-section-spacer {
    height: 18px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    margin-bottom: 8px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.14);
}

.activity-item-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(102, 102, 102, 0.35);
    color: var(--text);
}

.activity-item-icon svg {
    width: 20px;
    height: 20px;
}

.activity-item-count {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.activity-error-alert-card p {
    white-space: pre-wrap;
}

@media (max-width: 480px) {
    .activity-screen-body {
        max-width: none;
    }
}


/* iPhone PointHistoryScreenView parity */
.point-history-screen {
    min-height: 100%;
    background: #111214;
}

.point-history-topbar {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 8px;
    background: #111214;
    position: sticky;
    top: 0;
    z-index: 18;
}

.point-history-topbar .icon-button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.point-history-topbar h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.point-history-scroll {
    width: 100%;
    overflow: visible;
}

.point-history-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px 80px;
}

.point-balance-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(28, 30, 34, 0.14);
}

.point-balance-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.point-balance-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    color: var(--accent, #fa1155);
    background: rgba(250, 17, 85, 0.18);
}

.point-balance-icon svg {
    width: 24px;
    height: 24px;
}

.point-balance-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.point-balance-label {
    color: #898d99;
    font-size: 13px;
    font-weight: 400;
}

.point-balance-copy strong {
    color: #fff;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.point-balance-small-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.point-balance-small-card {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(28, 30, 34, 0.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.point-balance-small-card span {
    max-width: 100%;
    color: #898d99;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.point-balance-small-card strong {
    max-width: 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.point-history-expire-card {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 43, 100, 0.16);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.point-history-expire-card[hidden] { display: none !important; }

.point-history-expire-card strong {
    color: #ff2b64;
    font-size: 12px;
    font-weight: 700;
}

.point-history-expire-card span {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
}

.point-balance-desc {
    margin: 12px 0 0;
    color: #898d99;
    font-size: 12px;
    line-height: 1.45;
}

.point-history-section-title {
    padding: 10px 4px 8px;
    color: #898d99;
    font-size: 13px;
    font-weight: 700;
}

.point-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.point-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(28, 30, 34, 0.14);
}

.point-history-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    background: rgba(100, 109, 123, 0.35);
}

.point-history-item-icon svg {
    width: 20px;
    height: 20px;
}

.point-history-item.is-plus .point-history-item-icon,
.point-history-item.is-plus .point-history-point {
    color: var(--accent, #fa1155);
}

.point-history-item.is-minus .point-history-item-icon,
.point-history-item.is-minus .point-history-point {
    color: #ff2b64;
}

.point-history-item.is-zero .point-history-item-icon,
.point-history-item.is-zero .point-history-point {
    color: #ff2b64;
}

.point-history-item-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.point-history-item-title {
    max-width: 100%;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.point-history-item-desc {
    max-width: 100%;
    color: #898d99;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.point-history-item-time {
    max-width: 100%;
    color: #646d7b;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.point-history-item-values {
    flex: 0 0 auto;
    max-width: 42%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.point-history-point {
    max-width: 100%;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.point-history-balance {
    max-width: 100%;
    color: #898d99;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.point-history-empty-card {
    width: 100%;
    padding: 24px;
    border-radius: 18px;
    background: rgba(28, 30, 34, 0.14);
    color: #898d99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    font-size: 13px;
}

.point-history-empty-card svg {
    width: 34px;
    height: 34px;
}

.point-history-loading {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.point-history-loading[hidden] { display: none !important; }
.point-history-sentinel { height: 1px; }

.feed-column:has(#point-history-screen:not([hidden])) {
    max-width: 580px;
}

body:has(#point-history-screen:not([hidden])) .mobile-bottom-navigation {
    display: none;
}

@media (max-width: 700px) {
    .point-history-stack { padding-left: 16px; padding-right: 16px; }
    .point-history-item-values { max-width: 38%; }
}


/* iPhone CloseFriendsScreenView parity */
.close-friends-screen {
    min-height: 100dvh;
    background: #111214;
}

.close-friends-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 8px;
    background: #111214;
}

.close-friends-topbar .icon-button,
.close-friends-topbar-spacer {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.close-friends-topbar h3 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-friends-header-copy {
    padding: 8px 16px 0;
}

.close-friends-desc {
    margin: 0;
    color: #898d99;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.close-friends-search {
    height: 48px;
    margin-top: 14px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #646d7b;
    border-radius: 14px;
    background: rgba(28, 30, 34, 0.18);
    color: #898d99;
}

.close-friends-search:focus-within {
    border-color: #646d7b;
}

.close-friends-search svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.close-friends-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    -webkit-appearance: none;
    appearance: none;
}

.close-friends-search input::placeholder { color: #898d99; opacity: 1; }
.close-friends-search input::-webkit-search-cancel-button { display: none; }

.close-friends-count {
    margin-top: 16px;
    padding-bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.close-friends-loading {
    min-height: calc(100dvh - 170px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-friends-list {
    padding: 0 16px calc(80px + var(--safe-bottom));
}

.close-friend-item {
    min-height: 69px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(100, 109, 123, 0.16);
}

.close-friend-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #646d7b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.close-friend-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-friend-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.close-friend-copy strong,
.close-friend-copy span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.close-friend-copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.close-friend-copy span {
    color: #898d99;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.close-friend-toggle {
    min-width: 58px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 18px;
    background: #646d7b;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.close-friend-toggle.is-added { background: #fa1155; }
.close-friend-toggle:disabled { opacity: .72; cursor: default; }
.close-friend-toggle svg { width: 13px; height: 13px; flex: 0 0 13px; }

.close-friends-empty {
    min-height: calc(100dvh - 210px);
    padding: 24px 32px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.close-friends-empty-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(28, 30, 34, 0.18);
    color: #898d99;
}

.close-friends-empty-icon svg { width: 34px; height: 34px; }
.close-friends-empty strong { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; }
.close-friends-empty p { margin: 8px 0 0; color: #898d99; font-size: 13px; font-weight: 400; line-height: 1.45; }
.close-friends-alert-card p { white-space: pre-wrap; }

.feed-column:has(#close-friends-screen:not([hidden])) { max-width: 600px; }
body:has(#close-friends-screen:not([hidden])) .mobile-bottom-navigation { display: none; }

/* --------------------------------------------------------------------------
 * iPhone-style subpage top bar parity
 * Keep every simple back-button + title screen aligned like CloseFriendsView.
 * -------------------------------------------------------------------------- */
.ios-subpage-topbar {
    position: sticky !important;
    top: 0;
    z-index: 120;
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100%;
    height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    padding: env(safe-area-inset-top, 0px) 8px 0 !important;
    box-sizing: border-box;
    background: #111214 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.ios-subpage-topbar > .icon-button,
.ios-subpage-topbar > .profile-edit-back,
.ios-subpage-topbar .profile-edit-back,
.ios-subpage-topbar #profile-topbar-left,
.ios-subpage-topbar-spacer,
.ios-subpage-topbar .profile-edit-topbar-spacer,
.ios-subpage-topbar .close-friends-topbar-spacer {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
}

.ios-subpage-topbar #profile-topbar-left {
    min-width: 44px !important;
}

.ios-subpage-topbar #profile-topbar-left > .icon-button,
.ios-subpage-topbar > .icon-button,
.ios-subpage-topbar > .profile-edit-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0;
    background: transparent;
    color: #fff;
}

.ios-subpage-topbar > .icon-button .icon,
.ios-subpage-topbar #profile-topbar-left > .icon-button .icon,
.ios-subpage-topbar > .profile-edit-back .icon {
    width: 24px;
    height: 24px;
}

.ios-subpage-topbar > h1,
.ios-subpage-topbar > h2,
.ios-subpage-topbar > h3,
.ios-subpage-topbar #profile-topbar-title {
    min-width: 0;
    margin: 0 !important;
    flex: 1 1 auto !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: left !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-subpage-topbar #profile-topbar-actions {
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
 * FollowListView.swift parity
 * -------------------------------------------------------------------------- */
#follow-list-screen {
    min-height: 100dvh;
    background: #111214;
}

.follow-list-topbar {
    background: #111214;
}

.follow-screen-tabrow {
    display: flex;
    height: 46px;
    min-height: 46px;
    background: #111214;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.follow-screen-tab {
    min-width: 0;
    height: 46px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: #898d99;
}

.follow-screen-tab.active {
    color: #fff;
}

.follow-screen-tab .tab-indicator {
    height: 2px;
}

.follow-screen-list-body {
    flex: 1 1 auto;
    min-height: calc(100dvh - 98px);
    overflow-y: auto;
    padding: 0 0 80px;
    background: #111214;
}

.follow-screen-loading {
    min-height: calc(100dvh - 98px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.follow-user-row {
    min-height: 68px;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
}

.follow-user-row:hover {
    background: transparent;
}

.follow-avatar-box {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.follow-user-meta {
    margin-left: 12px;
    gap: 2px;
}

.follow-nickname {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.close-friend-star {
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
}

.follow-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

.follow-subtitle.presence-online,
.follow-subtitle.presence-incall,
.follow-subtitle.presence-offline {
    font-weight: 400;
}

.follow-actions-wrap {
    gap: 6px;
    margin-left: 12px;
}

.close-friend-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.close-friend-btn:hover {
    background: transparent;
}

.close-friend-btn .icon {
    width: 16px;
    height: 16px;
}

.follow-compact-btn {
    height: 32px;
    min-width: 0;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.follow-compact-btn.primary {
    color: #fff;
    background: var(--primary);
    border-color: transparent;
}

.follow-compact-btn.secondary {
    color: #fff;
    background: transparent;
    border-color: #898d99;
}

.follow-compact-btn:disabled,
.close-friend-btn:disabled {
    opacity: 0.55;
    cursor: default;
}

.follow-screen-empty {
    min-height: calc(100dvh - 98px);
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    box-sizing: border-box;
    color: #898d99;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.follow-screen-empty-icon {
    width: 44px;
    height: 44px;
    color: #646d7b;
}


/* --------------------------------------------------------------------------
 * FollowListView.swift action buttons - iOS exact visual parity hotfix v2
 * Keep these selectors unique and explicit so older/global button rules cannot
 * remove the outlined "팔로잉" state in desktop/mobile web rendering.
 * -------------------------------------------------------------------------- */
.follow-actions-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    margin-left: 12px !important;
}

.follow-ios-close-friend-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #898d99 !important;
    line-height: 1 !important;
}

.follow-ios-close-friend-btn .icon {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
}

.follow-ios-action-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
    white-space: nowrap !important;
    text-align: center !important;
    color: #ffffff !important;
}

/* iOS FollowCompactButton(isFollowing: true)
 * clear background + gray89 1px rounded outline. */
.follow-ios-action-btn.secondary,
.follow-ios-action-btn.is-following {
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #898d99 !important;
    color: #ffffff !important;
}

/* iOS FollowCompactButton(isFollowing: false)
 * AppColor.primary fill + transparent outline. */
.follow-ios-action-btn.primary,
.follow-ios-action-btn.is-follow {
    background: #fa1155 !important;
    background-color: #fa1155 !important;
    border: 1px solid transparent !important;
    color: #ffffff !important;
}

.follow-ios-action-btn:disabled,
.follow-ios-close-friend-btn:disabled {
    opacity: 0.55 !important;
    cursor: default !important;
}

/* --------------------------------------------------------------------------
 * NotificationSettingsScreenView.swift parity
 * -------------------------------------------------------------------------- */
#notification-settings-screen {
    min-height: 100dvh;
    background: #111214;
}

.notification-settings-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100dvh - 52px);
    background: #111214;
}

.notification-settings-loading {
    min-height: calc(100dvh - 52px);
    display: grid;
    place-items: center;
}

.notification-settings-form {
    width: 100%;
    padding: 8px 16px 80px;
    box-sizing: border-box;
}

.notification-settings-section-title {
    padding: 8px 4px;
    color: #898d99;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.notification-settings-section-spacer {
    height: 18px;
}

.notification-settings-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 70px;
    padding: 14px;
    margin: 0 0 8px;
    box-sizing: border-box;
    border: 0;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.14);
    color: #fff;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s ease, background .15s ease;
}

.notification-settings-item.is-disabled {
    cursor: default;
}

.notification-settings-item.is-disabled .notification-settings-icon,
.notification-settings-item.is-disabled .notification-settings-copy,
.notification-settings-item.is-disabled .notification-switch-wrap {
    opacity: .45;
}

.notification-settings-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(102, 102, 102, 0.35);
    color: #fff;
}

.notification-settings-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

.notification-settings-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-settings-copy strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.notification-settings-copy > span {
    color: #898d99;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
}

.notification-switch-wrap {
    position: relative;
    flex: 0 0 51px;
    width: 51px;
    height: 31px;
}

.notification-switch-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 51px;
    height: 31px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.notification-switch-input:disabled {
    cursor: default;
}

.notification-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #39393d;
    transition: background .18s ease;
}

.notification-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transition: transform .18s ease;
}

.notification-switch-input:checked + .notification-switch-track {
    background: #fa1155;
}

.notification-switch-input:checked + .notification-switch-track .notification-switch-thumb {
    transform: translateX(20px);
}

.notification-switch-input:focus-visible + .notification-switch-track {
    outline: 2px solid #8ec8ff;
    outline-offset: 2px;
}

.notification-quiet-hours-times {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin: 0 0 8px;
    box-sizing: border-box;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.14);
}

.notification-quiet-hours-times[hidden] {
    display: none !important;
}

.notification-quiet-time-card {
    min-width: 0;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(102, 102, 102, 0.35);
}

.notification-quiet-time-card > span {
    color: #898d99;
    font-size: 12px;
    font-weight: 400;
}

.notification-quiet-time-card input[type="time"] {
    width: 100%;
    max-width: 120px;
    min-height: 32px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    color-scheme: dark;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.notification-quiet-separator {
    flex: 0 0 auto;
    color: #898d99;
    font-size: 16px;
    font-weight: 700;
}

.notification-settings-alert-card p {
    white-space: pre-wrap;
}

.feed-column:has(#notification-settings-screen:not([hidden])) {
    max-width: 600px;
}

body:has(#notification-settings-screen:not([hidden])) .mobile-bottom-navigation {
    display: none;
}

@media (max-width: 540px) {
    .notification-settings-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .notification-settings-item {
        min-height: 70px;
    }
}

/* --------------------------------------------------------------------------
 * MessageSettingsScreenView.swift parity
 * Reuses NotificationSettings item/switch primitives because the iPhone
 * screens share the same visual metrics (42px icon, 18px card, 51x31 switch).
 * -------------------------------------------------------------------------- */
#message-settings-screen {
    min-height: 100dvh;
    background: #111214;
}

.message-settings-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100dvh - 52px);
    background: #111214;
}

.message-settings-item.is-disabled {
    cursor: default;
}

.message-settings-item.is-disabled .notification-settings-icon,
.message-settings-item.is-disabled .notification-settings-copy,
.message-settings-item.is-disabled .notification-switch-wrap {
    opacity: .45;
}

.feed-column:has(#message-settings-screen:not([hidden])) {
    max-width: 600px;
}

body:has(#message-settings-screen:not([hidden])) .mobile-bottom-navigation {
    display: none;
}

/* --------------------------------------------------------------------------
 * CallSettingsScreenView.swift parity
 * -------------------------------------------------------------------------- */
#call-settings-screen {
    min-height: 100dvh;
    background: #111214;
}

.call-settings-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100dvh - 52px);
    background: #111214;
}

.call-settings-topbar {
    position: relative;
}

.call-settings-saving {
    width: 44px;
    height: 44px;
    margin-left: auto;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
}

.call-settings-saving[hidden] {
    display: grid !important;
    visibility: hidden;
}

.call-settings-saving .bookmarks-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.call-settings-item.is-disabled,
.call-settings-video-filter-item.is-disabled {
    cursor: default;
}

.call-settings-item.is-disabled .notification-settings-icon,
.call-settings-item.is-disabled .notification-settings-copy,
.call-settings-item.is-disabled .notification-switch-wrap,
.call-settings-video-filter-item.is-disabled .notification-settings-icon,
.call-settings-video-filter-item.is-disabled .notification-settings-copy,
.call-settings-video-filter-item.is-disabled .call-settings-filter-options {
    opacity: .45;
}

.call-settings-video-filter-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    cursor: default;
}

.call-settings-filter-copy {
    grid-column: 2;
}

.call-settings-filter-options {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.call-settings-filter-options::-webkit-scrollbar {
    display: none;
}

.call-settings-filter-btn {
    flex: 0 0 auto;
    appearance: none;
    -webkit-appearance: none;
    min-height: 32px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, .96);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.call-settings-filter-btn.is-selected {
    background: #fa1155;
}

.call-settings-filter-btn:disabled {
    cursor: default;
}

.feed-column:has(#call-settings-screen:not([hidden])) {
    max-width: 600px;
}

body:has(#call-settings-screen:not([hidden])) .mobile-bottom-navigation {
    display: none;
}

/* --------------------------------------------------------------------------
 * PrivacySettingsScreenView.swift parity
 * -------------------------------------------------------------------------- */
#privacy-settings-screen { min-height: 100dvh; background: #111214; }
.privacy-settings-content { max-width: 600px; }
.privacy-settings-topbar { position: relative; }
.privacy-settings-saving { width: 44px; height: 44px; display: grid; place-items: center; margin-left: auto; }
.privacy-settings-saving[hidden] { visibility: hidden; display: grid !important; }
.privacy-settings-saving .bookmarks-spinner { width: 18px; height: 18px; border-width: 2px; }
.privacy-settings-item.is-disabled { cursor: default; }
.privacy-settings-item.is-disabled .notification-settings-icon,
.privacy-settings-item.is-disabled .notification-settings-copy,
.privacy-settings-item.is-disabled .notification-switch-wrap { opacity: .45; }
.feed-column:has(#privacy-settings-screen:not([hidden])) { max-width: 600px; }
body:has(#privacy-settings-screen:not([hidden])) .mobile-bottom-navigation { display: none; }

/* iPhone BlockedUsersScreenView parity */
.blocked-users-screen {
    min-height: 100dvh;
    background: #111214;
}

.blocked-users-topbar {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 8px;
    background: #111214;
}

.blocked-users-topbar .icon-button,
.blocked-users-topbar-spacer {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}

.blocked-users-topbar h3 {
    min-width: 0;
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blocked-users-loading {
    min-height: calc(100dvh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blocked-users-content {
    padding: 8px 16px calc(80px + var(--safe-bottom));
}

.blocked-users-desc {
    margin: 8px 4px 16px;
    color: #898d99;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
}

.blocked-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blocked-user-item {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(28, 30, 34, 0.78);
}

.blocked-user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(100, 109, 123, 0.35);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.blocked-user-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blocked-user-copy {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.blocked-user-copy strong,
.blocked-user-copy span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blocked-user-copy strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.blocked-user-copy span {
    color: #898d99;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.blocked-user-unblock {
    min-width: 72px;
    height: 36px;
    flex: 0 0 auto;
    padding: 0 16px;
    border: 0;
    border-radius: 18px;
    background: #fa1155;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.blocked-user-unblock:disabled {
    background: #646d7b;
    opacity: .45;
    cursor: default;
}

.blocked-users-empty {
    min-height: calc(100dvh - 150px);
    padding: 24px 32px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blocked-users-empty-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(28, 30, 34, 0.14);
    color: #898d99;
}

.blocked-users-empty-icon svg { width: 34px; height: 34px; }
.blocked-users-empty strong { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; }
.blocked-users-empty p { margin: 6px 0 0; color: #898d99; font-size: 13px; font-weight: 400; line-height: 1.45; }
.blocked-users-alert-card p { white-space: pre-wrap; }

.feed-column:has(#blocked-users-screen:not([hidden])) { max-width: 600px; }
body:has(#blocked-users-screen:not([hidden])) .mobile-bottom-navigation { display: none; }

@media (max-width: 520px) {
    .blocked-users-content { padding-left: 16px; padding-right: 16px; }
    .blocked-user-item { padding-left: 14px; padding-right: 14px; }
    .blocked-user-unblock { min-width: 68px; padding-left: 14px; padding-right: 14px; }
}


/* User profile action sheet: remove native <dialog> chrome/focus ring. */
#user-action-sheet-modal,
#user-action-sheet-modal[open],
#user-action-sheet-modal:focus,
#user-action-sheet-modal:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
}

#user-action-sheet-modal .options-card,
#user-action-sheet-modal .options-card:focus,
#user-action-sheet-modal .options-card:focus-visible {
    border: 0 !important;
    outline: 0 !important;
}

#user-action-sheet-modal::backdrop {
    background: rgba(0, 0, 0, 0.62);
}

/* --------------------------------------------------------------------------
 * v32: Call history / Eddaba contacts topbar parity with Settings screen
 * Use the same 52px iOS-style back + left-aligned title layout without the
 * circular back-button background. The negative outer margin cancels the
 * call panel's 12px padding so the topbar aligns with Settings exactly.
 * -------------------------------------------------------------------------- */
.call-list-panel > .call-subpage-topbar {
    width: calc(100% + 24px) !important;
    margin: -12px -12px 12px !important;
    flex: 0 0 52px;
}

.call-list-panel > .call-subpage-topbar > h3 {
    text-align: left !important;
}

.call-list-panel > .call-subpage-topbar > .icon-button {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.call-list-panel > .call-subpage-topbar > .icon-button:hover,
.call-list-panel > .call-subpage-topbar > .icon-button:focus-visible,
.call-list-panel > .call-subpage-topbar > .icon-button:active {
    background: transparent !important;
}

/* --------------------------------------------------------------------------
 * App Launch Splash Screen (Matching Android & iOS App Launch Splash)
 * -------------------------------------------------------------------------- */
.app-launch-splash {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    pointer-events: all;
}

.app-launch-splash.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-launch-splash .splash-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: appSplashPopIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-launch-splash .splash-mark {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 6px 20px rgba(250, 40, 106, 0.28));
}

.app-launch-splash .splash-title {
    font-family: inherit;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

@keyframes appSplashPopIn {
    0% {
        transform: scale(0.92);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
