/* General Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
* {
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
div {
    outline: none;
}
/* html { width: 100%; height: 100%; overflow: hidden; background-color: #050512; }
body { width: 100%; height: 100%; overflow: hidden; background-color: #0f0c29; font-family: sans-serif; color: white; max-width: 430px; margin: 0 auto; } */
/* .mobile-app {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}
.container {
    width: min(100%, 430px);
    max-width: 430px;
    height: 100vh;
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
} */
.mobile-app{
    width:100%;
    min-height:100vh;
    overflow-x:hidden;
}

.container{
    width:100%;
    max-width:100%;
    min-height:100vh;
    padding:16px;
    overflow-x:hidden;
    display:flex;
    flex-direction:column;
}
/* Admin Sections */
.admin-section { background: #1b1b2f; padding: 20px; border-radius: 15px; margin-bottom: 20px; border: 1px solid #302b63; }
input { width: 100%; padding: 12px; margin: 8px 0; background: #0f0c29; border: 1px solid #00d4ff; color: white; border-radius: 8px; }


@font-face {
    font-family: "Exclusive Editorial";
    src: url("assets/fonts/Exclusive-Editorial.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "HankenGrotesk Medium";
    src: url("assets/fonts/HankenGrotesk-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "HankenGrotesk Regular";
    src: url("assets/fonts/HankenGrotesk-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "HankenGrotesk SemiBold";
    src: url("assets/fonts/HankenGrotesk-SemiBold.ttf") format("truetype");
}

/* Profile Grid */
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, calc((100% - 12px) / 2))); align-items: start; gap: 12px; width: 100%; max-width: 100%; padding: 12px 0 24px; }
.profile-card { position: relative; min-width: 0; background: #1b1b2f; border-radius: 10px; overflow: hidden; border: 1px solid #302b63; text-align: center; }
.profile-photo {
    --profile-photo: none;
    position: relative;
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    background: #0b0c18;
}
.profile-photo::before {
    content: "";
    position: absolute;
    inset: -18px;
    background-image: var(--profile-photo);
    background-position: center;
    background-size: cover;
    filter: blur(16px);
    opacity: 0.52;
    transform: scale(1.12);
}
.profile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(8, 9, 22, 0.82) 100%);
}
.profile-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}
.profile-actions {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 7px;
}
.chat-btn,
.call-btn {
    border: none;
    min-height: 31px;
    padding: 7px 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}
.chat-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.call-btn {
    color: #1a1a2e;
    background: #00d4ff;
}

/* Chat */
.chat-app {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-width: 430px;
    margin: 0 auto;
    color: #fff;
   background: #050610 url("assets/question-bg-chat.webp") center / cover no-repeat;
    overflow: hidden;
}
.chat-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
      width: 100%;
      background: transparent;
    height: 100%;
        overflow: hidden;
}
.chat-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 38px 40px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    
    padding: calc(9px + env(safe-area-inset-top)) 10px 9px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.chat-back-btn,
.chat-call-btn {
    border: none;
    cursor: pointer;
    font-weight: 800;
}
.chat-back-btn {
    width: 40px;
    height: 40px;
    color: #fff;
    background:
        rgba(255, 255, 255, 0.13)
        url("assets/icons/back.svg") center / 21px 21px no-repeat;
    border-radius: 999px;
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.chat-avatar {
    width: 46px;
    height: 46px;
    margin-left: 8px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.chat-title {
    min-width: 0;
    margin-left: 15px;
}
.chat-title h1 {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    font-family: "HankenGrotesk SemiBold", serif;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-title p {
    overflow: hidden;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 400;
    font-family: "HankenGrotesk Regular", serif;
    margin: 4px 0 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chat-call-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    color: transparent;
    background:
        /* rgba(255, 255, 255, 0.12) */
        url("assets/profiles/chat_video_call.png") center / 40px 40px no-repeat;
    /* border-radius: 999px; */
    /* box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); */
}
.chat-call-btn i {
    display: none;
}
.chat-messages {
    position: relative;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 10px 14px;
    flex: 1;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
/* .chat-messages::before {
    content: "";
    position: absolute;
    left: 35%;
    top: 57%;
    width: 27px;
    height: 24px;
    background: url("assets/profiles/heart.png") center / contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
} */
.chat-empty {
    display: grid;
    gap: 6px;
    margin: 70px auto 0;
    color: rgba(255, 255, 255, 0.68);
    font-family: "HankenGrotesk Regular", serif;
    text-align: center;
}
.chat-empty strong {
    font-family: "HankenGrotesk Medium", serif;
    color: #fff;
}
.message-row {
    display: flex;
    margin: 12px 0;
}
.message-row.is-me {
    justify-content: flex-end;
}
.message-row.is-them {
    justify-content: flex-start;
}
.message-bubble {
    max-width: min(78%, 210px);
    padding: 8px 9px 6px;
    color: #fff;
    background: rgba(55, 52, 70, 0.86);
    border-radius: 8px 8px 8px 2px;
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.13);
}
.message-row.is-me .message-bubble {
    color: #fff;
    background: linear-gradient(180deg, #842fff 0%, #6d29e8 100%);
    border-radius: 8px 8px 2px 8px;
}
.message-row.is-them .message-bubble {
    border-bottom-left-radius: 2px;
}
.message-bubble span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}
.message-bubble small {
    display: block;
    margin-top: 2px;
    opacity: 0.68;
    font-size: 7px;
    font-weight: 700;
    text-align: right;
}
.chat-quick-row {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 10px 10px 9px;
    /* background: rgba(7, 9, 26, 0.6); */
}
.chat-quick-row button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    cursor: pointer;
    font-family: "HankenGrotesk Medium", serif;
    font-size: 12px;
    white-space: nowrap;
}

.chat-quick-row button:first-child{
    margin-left: 5px;
}

.chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 8px 10px calc(12px + env(safe-area-inset-bottom));
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.chat-compose input {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0 48px 0 14px;
    color: #FFFFFF;
    font-family: "HankenGrotesk Regular", serif;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 13px;
}
.chat-compose input::placeholder {
    color: #7E7EA2; /* hint text color */
}
.chat-compose button {
    align-self: center;
    justify-self: end;
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin-left: -50px;
    padding: 25px;
    /* color: #fff; */
     border: none;
    outline: none;
    box-shadow: none;

    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
    background:
        url("assets/icons/send.png") center / 38px 38px no-repeat;
                /* linear-gradient(135deg, #f45cc7 0%, #7f36ef 100%); */
    /* border: none;
    border-radius: 999px; */
    /* cursor: pointer; */
    /* font-weight: 800; */
    /* box-shadow: 0 8px 16px rgba(126, 54, 239, 0.34); */
}

/* Video Call WhatsApp Style */
.call-app {
    width: min(100%, 430px);
    max-width: 430px;
    min-width: 0;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.55);
}
.partner-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}
#remoteVideo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    background: #000;
    animation: videoFadeIn 360ms ease both;
}
.call-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.86);
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.16), rgba(0, 0, 0, 0.78) 58%);
    font-size: 13px;
    letter-spacing: 0;
    transition: opacity 220ms ease, visibility 220ms ease;
}
.call-loading.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.call-loader-ring {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: #00d4ff;
    border-radius: 999px;
    animation: spinRing 900ms linear infinite;
}
.call-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 14px 58px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    pointer-events: none;
}
.call-title {
    min-width: 0;
}
.call-title h1 {
    max-width: 210px;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.call-title p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    margin: 4px 0 0;
}
.call-status-pill {
    flex: 0 0 auto;
    max-width: 140px;
    overflow: hidden;
    color: #001016;
    background: #00d4ff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: pulseStatus 1800ms ease-in-out infinite;
}

.local-video-wrapper {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top));
    right: 14px;
    z-index: 40;
    width: clamp(92px, 28%, 124px);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    animation: localPop 260ms ease both;
}
#localVideo { width: 100%; height: 100%; object-fit: cover; }

.floating-reaction{
    position:fixed;
    z-index:9999;
    pointer-events:none;

    font-size:28px;

    animation:
    floatUp 3s ease-out forwards;
}

@keyframes floatUp{

    0%{
        opacity:0;
        transform:
        translate(0,0)
        scale(.8);
    }

    20%{
        opacity:1;
    }

    100%{
        opacity:0;

        transform:
        translate(
            var(--x),
            -500px
        )
        scale(1.4);
    }
}

.reaction-stage {
    position: absolute;
    inset: 0;
    z-index: 28;
    pointer-events: none;
    overflow: hidden;
}
.reaction-bubble {
    position: absolute;
    bottom: 112px;
    font-size: 42px;
    transform: translateX(-50%);
    animation: floatReaction 1200ms ease-out forwards;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}
.reaction-picker {
    position: absolute;
    left: 50%;
    bottom: 106px;
    z-index: 44;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(11, 12, 24, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) scale(0.96);
    transition: opacity 180ms ease, transform 180ms ease;
    backdrop-filter: blur(16px);
}
.reaction-picker.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}
.reaction-picker button {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.12);
    border-color: #FFFFFF1A;
    border-radius: 999px;
    cursor: pointer;
    font-size: 20px;
}
.call-chat-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    z-index: 43;
    display: grid;
    grid-template-rows: auto minmax(90px, 1fr) auto;
    max-height: clamp(120px, 35vh, 280px);
    overflow: hidden;
    background: 02021C;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transition: opacity 190ms ease, transform 190ms ease;
    backdrop-filter: blur(18px);
}
.call-chat-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.call-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 16px;
    color: #fff;
    font-family: "HankenGrotesk SemiBold", serif;
    background: #FFFFFF05;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.call-chat-header button {
    width: 30px;
    height: 30px;
    background: url("assets/icons/close-chat.png") center / cover no-repeat;
    border: none;
    cursor: pointer;
    
}
.call-chat-messages {
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
.call-chat-empty {
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    text-align: center;
}
.call-message {
    width: fit-content;
    max-width: 80%;
    margin: 7px 0;
    font-family: "HankenGrotesk Medium", serif;
    font-size: 13px;
    padding: 8px 9px 6px;
    color: #fff;
    background: #FFFFFF14;
    border-radius: 10px;
}
.call-message.is-me {
    margin-left: auto;
    color: #fff;
    background: #7F35FF;
}
.call-message span {
    display: block;
    font-size: 13px;
    line-height: 1.3;
}
.call-message small {
    display: block;
    margin-top: 3px;
    opacity: 0.65;
    font-family: "HankenGrotesk Regular", serif;
    font-size: 8px;
    text-align: right;
}
.call-chat-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.call-chat-compose input {
    min-width: 0;
    width: 100%;
    height: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}
.call-chat-compose button {
    width: 46px;
    height: 28px;
    color: #061118;
        margin-left: -51px;
            align-self: center;

    background: url("assets/icons/send-chat.png") center / cover no-repeat;
    border: none;
  
    cursor: pointer;
}

.permission-error {
    position: absolute;
    left: 50%;
    bottom: 110px;
    z-index: 50;
    display: none;
    width: min(92vw, 360px);
    padding: 10px 12px;
    transform: translateX(-50%);
    color: #ffb4b4;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 107, 107, 0.35);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}
.controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 16px);
    width: 100%;
    padding: clamp(8px, 2vw, 16px) clamp(8px, 2vw, 16px) calc(60px + env(safe-area-inset-bottom));
    background: none;
    pointer-events: none;
}
.controls::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 150px;
    z-index: -1;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0));
}
.call-control-btn {
    width: clamp(48px, 12vw, 62px);
    height: clamp(36px, 8vw, 44px);
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
    cursor: pointer;
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 800;
    pointer-events: auto;
    backdrop-filter: blur(14px);
    transition: transform 160ms ease, background 160ms ease;
}
.call-control-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.24);
}
.hangup-btn {
    position: relative;
    width: clamp(56px, 18vw, 74px);
    height: clamp(56px, 18vw, 74px);
    color: white;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 36%),
        linear-gradient(180deg, #ff5a4f, #e71931);
    border: none;
    border-radius: 999px;
    box-shadow: 0 18px 36px rgba(255, 59, 48, 0.42);
    cursor: pointer;
    font-weight: bold;
    pointer-events: auto;
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.hangup-btn span {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: clamp(40px, 14vw, 52px);
    height: clamp(20px, 9vw, 28px);
    color: #fff;
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 900;
}
.hangup-btn span::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: clamp(20px, 5vw, 30px);
    height: clamp(10px, 3vw, 14px);
    border: clamp(3px, 1vw, 5px) solid #fff;
    border-bottom: 0;
    border-radius: 30px 30px 0 0;
    transform: translateX(-50%) rotate(180deg);
    opacity: 0.95;
}
.hangup-btn span {
    padding-top: clamp(16px, 4vw, 22px);
}
.hangup-btn:active {
    transform: scale(0.94);
    box-shadow: 0 8px 18px rgba(255, 59, 48, 0.28);
}

@keyframes videoFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes localPop {
    from { opacity: 0; transform: translateY(-8px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulseStatus {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

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

@keyframes floatReaction {
    0% { opacity: 0; transform: translate(-50%, 20px) scale(0.74); }
    18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -180px) scale(1.28); }
}

/* Mobile Responsive */

/* Force mobile layout even in desktop mode */
/* html, body {
  width: 100% !important;
  max-width: 430px !important;
  margin: 0 auto !important;
} */


@media (max-width: 600px) {
    #remoteVideo { object-fit: cover; }
}

@media (max-width: 430px) {
    .chat-shell {
        width: 100%;
        padding: 0;
    }
    .chat-messages {
        padding: 12px 12px 8px;
    }
}

@media (max-width: 380px) {
    .call-control-btn {
        width: 44px;
        height: 32px;
        font-size: 10px;
    }
    .hangup-btn {
        width: 50px;
        height: 50px;
    }
    .hangup-btn span {
        width: 36px;
        height: 18px;
        font-size: 10px;
    }
    .hangup-btn span::before {
        width: 18px;
        height: 10px;
        border-width: 3px;
    }
    .hangup-btn span {
        padding-top: 16px;
    }
    .controls {
        gap: 6px;
        bottom: 12px;
    }
    .call-chat-panel {
        max-height: clamp(100px, 32vh, 240px);
    }
}

@media (max-width: 320px) {
    .call-control-btn {
        width: 40px;
        height: 28px;
        font-size: 9px;
    }
    .hangup-btn {
        width: 44px;
        height: 44px;
    }
    .hangup-btn span {
        width: 32px;
        height: 16px;
        font-size: 9px;
    }
    .hangup-btn span::before {
        width: 16px;
        height: 8px;
        border-width: 2px;
    }
    .hangup-btn span {
        padding-top: 14px;
    }
    .controls {
        gap: 4px;
        padding: 0 8px;
        bottom: 8px;
    }
    .call-chat-panel {
        left: 8px;
        right: 8px;
        max-height: clamp(90px, 30vh, 200px);
    }
}

@media (min-width: 431px) {
    .profile-photo { aspect-ratio: 4 / 5; }
}

@media (max-width: 768px) {
   .container{
      width:100%;
   }
}

.premium-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.78);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:20px;
    animation:fadePremium .25s ease;
}

@keyframes fadePremium{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}

.premium-box{
    width:100%;
    max-width:360px;
    background:linear-gradient(
        180deg,
        #ffffff 0%,
        #fff5f8 100%
    );
    border-radius:32px;
    padding:28px 24px 24px;
    text-align:center;
    position:relative;
    overflow:hidden;
    box-shadow:
        0 25px 60px rgba(0,0,0,0.35),
        0 0 40px rgba(255,46,99,0.15);
    animation:premiumPopup .35s cubic-bezier(.18,.89,.32,1.28);
}

/* TOP GLOW */
.premium-box::before{
    content:'';
    position:absolute;
    top:-120px;
    left:50%;
    transform:translateX(-50%);
    width:260px;
    height:260px;
    border-radius:50%;
    background:radial-gradient(
        circle,
        rgba(255,46,99,0.22),
        transparent 70%
    );
}

/* FLOATING ANIMATION */
@keyframes premiumPopup{
    0%{
        transform:scale(.72) translateY(40px);
        opacity:0;
    }
    100%{
        transform:scale(1) translateY(0);
        opacity:1;
    }
}

/* LOCK ICON */
.premium-lock{
    width:90px;
    height:90px;
    margin:0 auto 18px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:42px;
    background:linear-gradient(
        135deg,
        #ff2e63,
        #ff7b54
    );
    color:#fff;
    box-shadow:
        0 10px 25px rgba(255,46,99,0.45),
        0 0 0 10px rgba(255,46,99,0.08);
    animation:lockPulse 2s infinite;
    position:relative;
    z-index:2;
}



/* PULSE */
@keyframes lockPulse{

    0%{
        transform:scale(1);
        box-shadow:
            0 10px 25px rgba(255,46,99,0.45),
            0 0 0 0 rgba(255,46,99,0.25);
    }

    70%{
        transform:scale(1.06);
        box-shadow:
            0 10px 25px rgba(255,46,99,0.45),
            0 0 0 18px rgba(255,46,99,0);
    }

    100%{
        transform:scale(1);
    }
}

.premium-box h2{
    font-size:30px;
    font-weight:800;
    color:#111;
    margin-bottom:12px;
    position:relative;
    z-index:2;
}

.premium-box p{
    color:#666;
    font-size:15px;
    line-height:1.7;
    margin-bottom:24px;
    position:relative;
    z-index:2;
}

.premium-btn{
    width:100%;
    height:56px;
    border:none;
    border-radius:18px;
    background:linear-gradient(
        135deg,
        #ff2e63,
        #ff7b54
    );
    color:#fff;
    font-size:17px;
    font-weight:800;
    cursor:pointer;
    transition:.25s;
    position:relative;
    overflow:hidden;
    box-shadow:0 12px 25px rgba(255,46,99,0.35);
}

.premium-btn::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:100%;
    height:100%;
    background:rgba(255,255,255,0.25);
    transform:skewX(-25deg);
    transition:.5s;
}

.premium-btn:hover::before{
    left:120%;
}

.premium-btn:hover{
    transform:translateY(-2px) scale(1.02);
}

.close-premium{
    margin-top:14px;
    background:none;
    border:none;
    color:#777;
    font-size:15px;
    cursor:pointer;
    transition:.2s;
}

.close-premium:hover{
    color:#111;
}

.admin-box{
    background: #1b1b2f;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #00d4ff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#profilesDisplay{
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.profile-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #0f0c29;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Same mobile view even when a phone browser requests "Desktop site". */
html,
body {
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

html.desktop-site-mobile,
html.desktop-site-mobile body {
    width: 100vw;
    min-width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
}

html.desktop-site-mobile body.mobile-app,
html.desktop-site-mobile body.chat-app,
html.desktop-site-mobile body.call-app,
html.desktop-site-mobile body.container {
    width: var(--mobile-layout-width, 430px) !important;
    min-width: var(--mobile-layout-width, 430px) !important;
    max-width: var(--mobile-layout-width, 430px) !important;
    height: calc(100dvh / var(--desktop-site-scale, 1)) !important;
    min-height: calc(100dvh / var(--desktop-site-scale, 1)) !important;
    margin: 0 !important;
    transform: scale(var(--desktop-site-scale, 1));
    transform-origin: top left;
    padding-left: 0 !important;
}


html.desktop-site-mobile .mobile-app,
html.desktop-site-mobile .container,
html.desktop-site-mobile .app-shell,
html.desktop-site-mobile .chat-shell,
html.desktop-site-mobile .call-app {
    width: var(--mobile-layout-width, 430px) !important;
    min-width: var(--mobile-layout-width, 430px) !important;
    max-width: var(--mobile-layout-width, 430px) !important;
    height: calc(100dvh / var(--desktop-site-scale, 1)) !important;
    min-height: calc(100dvh / var(--desktop-site-scale, 1)) !important;
}

html.desktop-site-mobile .app-shell {
    max-width: var(--mobile-layout-width, 430px) !important;
    padding-right: 0px !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}
 
html.desktop-site-mobile .mobile-app,
html.desktop-site-mobile .profiles-screen,
html.desktop-site-mobile .profile-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-right: 10px !important;
    overflow-x: clip !important;
}
 
html.desktop-site-mobile .quiz-options {
    padding-right: 0px !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
}
html.desktop-site-mobile .quiz-option:hover {
    transform: none !important;
}


/* Kill focus ring on click */
:focus {
    outline: none;
}

.quiz-option{

    display:grid;
    grid-template-columns:1fr;
    align-items:end;

    min-height:90px;
    padding:14px;

    border-radius:16px;
    overflow:hidden;

    /* background-image:var(--option-bg-image); */
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    border:none;

}

.quiz-option{

   height:98px; 
   width:100%;
}


body.call-app {
    width: min(100vw, 430px);
    max-width: 430px;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0 auto;
    background: #050505;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
 
body.call-app .partner-video-wrapper {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: #050505;
}
 
body.call-app #remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #050505;
}
 
body.call-app::before,
body.call-app::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    pointer-events: none;
}
 
body.call-app::before {
    top: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
}
 
body.call-app::after {
    bottom: 0;
    height: 190px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}
 
body.call-app .call-topbar {
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
 
    /* reduced top spacing */
    padding: calc(12px + env(safe-area-inset-top)) 16px 0;
 
    background: none;
    pointer-events: none;
}
 
body.call-app .call-back-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18), 0 10px 28px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    pointer-events: auto;
}
 
body.call-app .call-back-btn::before {
    content: "";
    width: 21px;
    height: 21px;
    background: #fff;
    mask: url("assets/icons/back.svg") center / contain no-repeat;
    -webkit-mask: url("assets/icons/back.svg") center / contain no-repeat;
}
 
body.call-app .call-title {
    min-width: 0;
    color: #fff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}
 
body.call-app .call-title h1 {
    max-width: 150px;
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}
 
body.call-app .call-title p {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.1;
}
 
body.call-app .call-status-pill{
    position:absolute;
    top:calc(18px + env(safe-area-inset-top));
 
    right:22px;   /* same as local-video-wrapper */
    left:auto;
    transform:none;
 
    width:98px;   /* same width zone as local video */
    max-width:98px;
    min-height:32px;
 
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
 
    color:#fff;
    background:linear-gradient(135deg,#8758ff,#7826df);
    border-radius:999px;
    box-shadow:0 12px 26px rgba(98,36,221,.34);
 
    font-size:10px;
    font-weight:800;
    line-height:1;
}
 
 
 
 
 
body.call-app .local-video-wrapper {
    top: calc(70px + env(safe-area-inset-top));
    right: 22px;
    z-index: 36;
    width: 98px;
    aspect-ratio: 0.78;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}
.local-video-wrapper{
    cursor: grab;
    touch-action: none;
    user-select: none;
}
 
.local-video-wrapper.dragging{
    cursor: grabbing;
}
body.call-app #localVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}
 
body.call-app .call-loading {
    z-index: 25;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
 
body.call-app .call-loader-ring {
    width: 36px;
    height: 36px;
    border-width: 3px;
    border-top-color: #8d4aff;
}
 
body.call-app .controls,
#controlsBar{
    position:absolute;
    left:0;
    right:0;
    bottom:calc(20px + env(safe-area-inset-bottom));
    z-index:999;
 
    display:flex !important;
    flex-direction:row !important;
    justify-content:center !important;
    align-items:center !important;
    gap:16px !important;
 
    width:100%;
    padding:0 20px;
}
 
#controlsBar button{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-shrink:0 !important;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    outline:none !important;
    background:transparent !important;
    cursor:pointer;
}
 
body.call-app .controls::before {
    display: none;
}
 
 
body.call-app .call-control-btn,
/* ===== HANGUP BUTTON FIXED ===== */
 
body.call-app .hangup-btn{
    order:2 !important;
    width:70px !important;
    height:70px !important;
    min-width:70px !important;
    min-height:70px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    border-radius:0 !important;
}
body.call-app .hangup-btn span{
    display:block !important;
    width:70px !important;
    height:70px !important;
    background-image:url("assets/icons/call-hangup.png");
    background-repeat:no-repeat;
    background-position:center;
    background-size:contain;
}
 
body.call-app .hangup-btn::before,
body.call-app .hangup-btn::after,
body.call-app .hangup-btn span::before,
body.call-app .hangup-btn span::after{
    display:none !important;
    content:none !important;
}
 
body.call-app .call-control-btn {
    position: relative;
    color: #fff;
   backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
body.call-app .chat-control-btn,
body.call-app .emoji-control-btn{
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
    min-height:50px !important;
    border-radius:50% !important;
    background:rgba(255,255,255,0.05) !important;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,0.22) !important;
}
 
body.call-app .chat-control-btn{
    order:1;
}
 
body.call-app .chat-control-btn::before{
    content:"";
    width:50px;
    height:50px;
    background:url("assets/icons/call-chat.png") center/contain no-repeat;
}
 
 
 
body.call-app .emoji-control-btn{
    order:3;
}
 
body.call-app .emoji-control-btn::before{
    content:"";
    display:block;
    width:50px;
    height:50px;
    background:url("assets/icons/call-reaction.png") center/contain no-repeat;
    text-indent:0;
}
 
/* remove text/icons */
body.call-app .chat-control-btn::after,
body.call-app .emoji-control-btn::after{
    display:none !important;
    content:none !important;
}
 
body.call-app .emoji-control-btn span{
    display:none !important;
}
 
/* Force horizontal alignment */
#controlsBar{
    position: absolute !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
 
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
 
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 28px  !important;
 
    width: fit-content !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
 
#controlsBar button{
    flex: 0 0 auto !important;
}
 
 
#controlsBar .hangup-btn{
    width:70px !important;
    height:70px !important;
}
 
 
body.call-app .reaction-picker {
    bottom: calc(114px + env(safe-area-inset-bottom));
    z-index: 42;
    background: #02021C;
    border-color: #FFFFFF1A;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
 
body.call-app .call-chat-panel {
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 42;
    border-radius: 18px;
    background: #02021C;
  
}

body.call-app .call-status-pill{
    position:absolute;
    top:calc(18px + env(safe-area-inset-top));
 
    right:22px;   /* same as local-video-wrapper */
    left:auto;
    transform:none;
 
    width:30%;   /* same width zone as local video */
    max-width:30%;
    min-height:32px;
 
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0 12px;
 
    color:#fff;
    background:linear-gradient(135deg,#8758ff,#7826df);
    border-radius:999px;
    box-shadow:0 12px 26px rgba(98,36,221,.34);
 
    font-size:10px;
    font-weight:800;
    line-height:1;
}

#remoteVideo,
#localVideo,
.profile-photo
.partner-video-wrapper,
.local-video-wrapper {
 
    -webkit-user-select:none;
    user-select:none;
    -webkit-touch-callout:none;
    -webkit-user-drag:none;
}