* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #101936;
    background: #f7f9fd
}

a {
    text-decoration: none;
    color: inherit
}

button,
input,
select {
    font: inherit
}

.app {
    min-height: 100vh
}

.landing,
.center,
.simple {
    background: radial-gradient(circle at 50% -10%, #eaf3ff, #f8f9fd 46%)
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto
}

.top {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: #fff;
    box-shadow: 0 4px 10px rgba(20, 127, 241, 0.12)
}

.top nav {
    display: flex;
    gap: 30px;
    font-size: 13px
}

.hero {
    text-align: center;
    padding: 62px 15px 20px
}

.hero label,
.content label {
    display: inline-block;
    background: #eaf2ff;
    color: #1678df;
    border-radius: 99px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 700
}

.hero h1 {
    font-size: 58px;
    line-height: 1.03;
    letter-spacing: -2.5px;
    margin: 20px 0 15px
}

.hero em {
    font-style: normal;
    color: #177ff0
}

.hero p,
.content p {
    color: #69748c;
    line-height: 1.65;
    font-size: 16px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 750;
    cursor: pointer
}

.primary {
    color: white;
    background: #147ff1;
    box-shadow: 0 12px 25px #147ff12e
}

.outline {
    background: white;
    border: 1px solid #d9e0eb
}

.soft {
    background: #e9f1ff;
    color: #147ff1
}

.danger {
    background: #ff4b57;
    color: white;
    border: 0;
    border-radius: 11px;
    padding: 11px 17px
}

.features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 32px 0 14px
}

.features span {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    font-size: 22px
}

.features b {
    font-size: 12px
}

.online {
    font-size: 12px;
    color: #65728b
}

.online:first-letter {
    color: #20b46f
}

.art {
    height: 280px;
    max-width: 950px;
    margin: 20px auto;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf3ff, #fff0f7)
}

.person {
    position: absolute;
    bottom: 60px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 70px 70px 30px 30px;
    /* background: #fff; */
    /* box-shadow: 0 12px 22px rgba(20, 127, 241, 0.16) */
}

.p1 {
    left: 14%
}

.p2 {
    right: 14%
}

.person i {
    position: absolute;
    right: 12px;
    bottom: 25px;
    background: #fff;
    color: #147ff1;
    border-radius: 5px;
    padding: 6px;
    font-size: 18px;
    font-style: normal
}

.bubble {
    position: absolute;
    top: 48px;
    background: #fff;
    padding: 10px 17px;
    border-radius: 17px;
    color: #147ff1;
    box-shadow: 0 8px 20px #26325c10;
    font-weight: 800
}

.b1 {
    left: 29%
}

.b2 {
    right: 29%
}

.artcopy {
    position: absolute;
    top: 105px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #4a5775;
    font-size: 15px;
    line-height: 1.5
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 950px;
    margin: 20px auto 35px
}

.cards article,
.content,
.ended {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 35px #17203b08
}

.cards strong {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eaf3ff;
    color: #147ff1
}

.cards h3 {
    font-size: 15px;
    margin: 13px 0 6px
}

.cards p {
    font-size: 12px;
    color: #7b8599;
    line-height: 1.6;
    margin: 0
}

.landing footer {
    text-align: center;
    padding: 20px;
    color: #98a0b0;
    font-size: 11px
}

.center {
    padding-bottom: 40px
}

.match {
    width: min(620px, calc(100% - 30px));
    margin: 70px auto;
    text-align: center
}

.ring {
    width: 180px;
    height: 180px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 45px;
    border: 1px solid #cde0ff;
    box-shadow: 0 0 0 30px #edf4ff, 0 0 0 60px #f4f8ff
}

.match h1 {
    font-size: 27px;
    margin: 75px 0 8px
}

.match p {
    color: #718098;
    line-height: 1.6
}

.profile-form {
    width: min(420px, 100%);
    margin: 30px auto 0;
    display: grid;
    gap: 18px;
    text-align: left
}

.profile-form label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #2a3b5d
}

.profile-form input,
.profile-form select {
    border: 1px solid #dfe7f4;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none
}

.profile-form .btn {
    width: 100%;
    margin-top: 8px
}

.match-hidden {
    display: none !important
}

.dots {
    color: #147ff1;
    letter-spacing: 7px;
    margin: 24px
}

.tip {
    border: 1px solid #dce6f5;
    background: #fff;
    border-radius: 14px;
    padding: 13px;
    margin: 20px auto;
    color: #59677f;
    font-size: 12px;
    max-width: 520px
}

.ended {
    width: min(600px, calc(100% - 30px));
    margin: 100px auto;
    text-align: center;
    padding: 45px
}

.endedicon {
    margin: auto;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #eaf3ff;
    color: #147ff1;
    font-size: 35px
}

.ended p {
    color: #748097;
    margin-bottom: 25px
}

.ended .btn {
    display: flex;
    max-width: 280px;
    margin: 10px auto
}

.content {
    width: min(680px, calc(100% - 30px));
    margin: 80px auto
}

.content h1 {
    font-size: 38px
}

.safety {
    display: grid;
    gap: 12px;
    margin-top: 25px
}

.safety div {
    border: 1px solid #e4e9f1;
    border-radius: 14px;
    padding: 17px
}

.safety small {
    display: block;
    color: #778297;
    margin: 7px 0 0 30px
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0
}

.report-box {
    background: #f8fbff;
    border: 1px solid #e3ebf7;
    border-radius: 16px;
    padding: 20px 18px
}

.report-box h3 {
    margin: 0 0 12px;
    color: #1d2d4f;
    font-size: 18px
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
    color: #53617f;
    line-height: 1.6
}

.bullet-list li {
    position: relative;
    padding-left: 20px
}

.bullet-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #147ff1;
    font-weight: 700
}

.chat {
    height: 100vh;
    display: grid;
    grid-template-rows: 68px minmax(0, 1fr) auto 76px;
    background: #fff
}

.chathead {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 24px;
    border-bottom: 1px solid #e8edf4
}

.chathead>a {
    font-size: 22px
}

.avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #c9f4df
}

.chathead small {
    display: block;
    color: #20a96e;
    font-size: 10px
}

.actions {
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px
}

.actions>button:first-child {
    border: 0;
    background: transparent;
    font-size: 22px
}

.actions #pop {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    width: 165px;
    background: white;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 15px 35px #16213a1c;
    z-index: 4
}

.actions #pop.show {
    display: block
}

.actions #pop button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 8px
}

.chatbody {
    display: grid;
    grid-template-columns: 1fr 250px;
    min-height: 0
}

.messages {
    width: min(850px, 100%);
    margin: auto;
    padding: 25px;
    overflow: auto;
    height: -webkit-fill-available;
}

.note {
    width: max-content;
    max-width: 100%;
    margin: 0 auto 25px;
    background: #f4f7fb;
    color: #7c8799;
    padding: 8px 12px;
    border-radius: 99px;
    font-size: 10px
}

.row {
    display: flex;
    margin: 10px 0
}

.row.me {
    justify-content: flex-end
}

.msg {
    max-width: 68%;
    padding: 10px 14px;
    border-radius: 16px 16px 16px 5px;
    background: #eef1f5;
    font-size: 14px;
    color: #24304a
}

.msg.out {
    background: #147ff1;
    color: #fff;
    border-radius: 16px 16px 5px 16px
}

.msg.image-msg {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    background: #f3f7ff;
    cursor: pointer
}

.image-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf4ff, #f8f9fc);
    color: #5570a5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em
}

.msg.image-msg img {
    display: block;
    border-radius: 12px;
    max-width: 220px;
    max-height: 220px;
    object-fit: cover;
    cursor: pointer
}

.msg small {
    display: block;
    font-size: 9px;
    opacity: .55;
    margin-top: 5px
}

.typing {
    font-size: 10px;
    color: #8993a4;
    margin-top: 15px
}

.chatbody aside {
    border-left: 1px solid #e9edf3;
    padding: 28px 20px;
    color: #68758b;
    font-size: 11px
}

.chatbody aside h3 {
    color: #27334b;
    font-size: 13px
}

.composer {
    display: flex;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #e8edf4;
    padding: 12px 24px;
    grid-row: 4
}

.emoji-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 24px 10px;
    background: #fff;
    border-top: 1px solid #eef2f8
}

.emoji-panel.hidden {
    display: none
}

.emoji-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e8edf4;
    background: #f6f9ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px
}

.composer input {
    flex: 1;
    border: 1px solid #dde3ec;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 12px;
    outline: 0
}

.composer button {
    border: 0;
    background: transparent;
    font-size: 20px
}

.composer .send {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #147ff1;
    color: #fff
}

.simple {
    min-height: 100vh
}

.video-call-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px 24px 18px;
    border-top: 1px solid #edf2f8;
    background: #f8fbff;
    grid-row: 3;
    align-items: center
}

.video-call-panel.hidden {
    display: none
}

.video-call-panel video {
    width: 100%;
    /* max-height: 220px; */
    border-radius: 12px;
    background: #0f172a;
    object-fit: cover;
    border: 1px solid #dfe9f5;
    height: 400px;
}

.video-call-panel .btn {
    grid-column: 1 / -1;
    width: 100%
}

.chat-ended-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(13, 20, 35, 0.45);
    z-index: 40
}

.chat-ended-modal.hidden {
    display: none
}

.chat-ended-dialog {
    width: min(420px, calc(100% - 24px));
    background: white;
    border-radius: 18px;
    padding: 28px 22px 20px;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.25);
    text-align: center
}

.chat-ended-dialog h3 {
    font-size: 26px;
    margin: 0 0 10px
}

.chat-ended-dialog p {
    color: #5f6d84;
    margin: 0 0 18px;
    line-height: 1.5
}

.chat-ended-dialog .btn {
    width: 100%
}

.image-preview-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(13, 18, 34, 0.8);
    z-index: 65;
    padding: 20px
}

.image-preview-modal.hidden {
    display: none
}

.image-preview-dialog {
    position: relative;
    max-width: min(90vw, 760px);
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28)
}

.image-preview-dialog img {
    display: block;
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    background: #f7f9fc
}

.image-preview-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    font-size: 24px;
    cursor: pointer;
    line-height: 1
}

@media(max-width:800px) {
    .hero h1 {
        font-size: 45px
    }

    .features {
        gap: 18px
    }

    .art {
        height: 230px
    }

    .p1 {
        left: 4%
    }

    .p2 {
        right: 4%
    }

    .b1 {
        left: 21%
    }

    .b2 {
        right: 21%
    }

    .cards {
        grid-template-columns: 1fr;
        margin: 20px
    }

    .chatbody {
        grid-template-columns: 1fr
    }

    .chatbody aside {
        display: none
    }

    .messages {
        padding: 18px 12px
    }

    .chathead {
        padding: 0 10px
    }

    .danger {
        font-size: 0;
        padding: 11px
    }

    .danger:after {
        content: '×';
        font-size: 18px
    }
}

@media(max-width:520px) {
    .container {
        width: calc(100% - 24px)
    }

    .top nav {
        gap: 12px;
        font-size: 11px
    }

    .hero {
        padding-top: 40px
    }

    .hero h1 {
        font-size: 39px
    }

    .hero p {
        font-size: 14px
    }

    .features {
        gap: 8px
    }

    .features span {
        font-size: 18px
    }

    .features b {
        font-size: 9px
    }

    .art {
        height: 200px
    }

    .person {
        width: 125px;
        height: 125px
    }

    .artcopy {
        top: 78px;
        font-size: 12px
    }

    .bubble {
        top: 25px;
        padding: 8px 12px
    }

    .match h1 {
        font-size: 22px;
        margin-top: 70px
    }

    .ring {
        width: 145px;
        height: 145px;
        box-shadow: 0 0 0 25px #edf4ff, 0 0 0 50px #f4f8ff
    }

    .content,
    .ended {
        margin-top: 50px;
        padding: 28px 20px
    }

    .content h1 {
        font-size: 30px
    }

    .msg {
        max-width: 82%
    }
}