/* =========================
   PREMIUM CHAT SCREEN
========================= */

.premium-chat-screen {

    width: 100%;

    max-width: 520px;

    margin: auto;

    border-radius: 34px;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.06));

    backdrop-filter: blur(25px);

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 25px 60px rgba(255, 105, 180, 0.15);

}

/* HEADER */

.premium-chat-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    padding: 20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

}

/* PROFILE */

.chat-profile {

    display: flex;

    align-items: center;

    gap: 14px;

}

.profile-ring {

    position: relative;

    width: 68px;

    height: 68px;

    border-radius: 22px;

    padding: 3px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    animation: ringGlow 3s infinite ease-in-out;

}

.chat-profile-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 18px;

}

.online-dot {

    position: absolute;

    right: 4px;

    bottom: 4px;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background: #22c55e;

    border: 2px solid #fff;

}

/* NAME */

.chat-name {

    font-size: 22px;

    font-weight: 700;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.chat-status {

    color: #7b4b8f;

    font-size: 13px;

    margin-top: 4px;

}

/* BUTTON */

.premium-unlock-btn {

    border: none;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    color: #fff;

    padding: 14px 18px;

    border-radius: 16px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition: .4s;

    box-shadow:
        0 12px 35px rgba(255, 105, 180, 0.25);

}

.premium-unlock-btn:hover {

    transform:
        translateY(-3px) scale(1.04);

}

/* BODY */

.premium-chat-body {

    padding: 20px;

    display: flex;

    flex-direction: column;

    gap: 18px;

    height: 520px;

    overflow-y: auto;

}

/* LOCK CARD */

.premium-lock-card {

    text-align: center;

    padding: 30px 24px;

    border-radius: 28px;

    background:
        linear-gradient(135deg,
            rgba(255, 77, 184, 0.12),
            rgba(196, 77, 255, 0.08));

    border: 1px solid rgba(255, 255, 255, 0.12);

    backdrop-filter: blur(20px);

}

.premium-lock-icon {

    width: 90px;

    height: 90px;

    border-radius: 50%;

    margin: auto;

    margin-bottom: 18px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 34px;

    box-shadow:
        0 18px 45px rgba(255, 105, 180, 0.25);

    animation: lockPulse 3s infinite ease-in-out;

}

.premium-lock-card h2 {

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 12px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

}

.premium-lock-card p {

    color: #7b4b8f;

    line-height: 1.7;

    margin-bottom: 22px;

}

/* ACCESS BUTTON */

.premium-access-btn {

    border: none;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    color: #fff;

    padding: 15px 24px;

    border-radius: 18px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: .4s;

    box-shadow:
        0 12px 35px rgba(255, 105, 180, 0.25);

}

.premium-access-btn:hover {

    transform:
        translateY(-3px) scale(1.04);

}

/* MESSAGE */

.premium-message {

    position: relative;

    display: flex;

    gap: 10px;

    align-items: flex-end;

}

.received-message {
    justify-content: flex-start;
}

.sent-message {
    justify-content: flex-end;
}

/* AVATAR */

.message-avatar img {

    width: 44px;

    height: 44px;

    border-radius: 14px;

    object-fit: cover;

}

/* BUBBLE */

.message-bubble {

    max-width: 75%;

    padding: 14px 16px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(14px);

}

.premium-gradient {

    background:
        linear-gradient(to right,
            rgba(255, 77, 184, 0.18),
            rgba(196, 77, 255, 0.18));

}

.message-bubble p {

    color: #4b5563;

    font-size: 14px;

    line-height: 1.5;

    margin-bottom: 6px;

}

.message-bubble span {

    font-size: 11px;

    color: #999;

}

/* BLUR */

.blur-message {

    filter: blur(3px);

}

/* LOCK */

.message-lock {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

}

.message-lock i {

    width: 44px;

    height: 44px;

    border-radius: 50%;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    display: flex;

    align-items: center;

    justify-content: center;

    color: #fff;

    font-size: 18px;

    box-shadow:
        0 12px 35px rgba(255, 105, 180, 0.25);

}

/* INPUT */

.premium-chat-input {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

}

.premium-chat-input input {

    flex: 1;

    height: 56px;

    border: none;

    outline: none;

    border-radius: 18px;

    padding: 0 18px;

    background:
        rgba(255, 255, 255, 0.14);

    color: #555;

    font-size: 14px;

}

.premium-chat-input input::placeholder {
    color: #999;
}

/* ACTION */

.chat-action-btn,
.chat-send-btn {

    width: 54px;

    height: 54px;

    flex-shrink: 0;

    border: none;

    border-radius: 18px;

    background:
        linear-gradient(to right,
            #ff4db8,
            #c44dff);

    color: #fff;

    font-size: 18px;

    cursor: pointer;

    transition: .4s;

}

.chat-action-btn:hover,
.chat-send-btn:hover {

    transform:
        translateY(-3px) scale(1.05);

}

/* ANIMATION */

@keyframes ringGlow {

    0% {
        box-shadow: 0 0 0 rgba(255, 105, 180, 0.25);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 105, 180, 0.4);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 105, 180, 0.25);
    }

}

@keyframes lockPulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }

}

/* MOBILE */

@media(max-width:576px) {

    .premium-chat-screen {

        border-radius: 24px;

    }

    .premium-chat-header {

        padding: 16px;

        flex-direction: column;

        align-items: flex-start;

    }

    .premium-chat-body {

        height: 420px;

        padding: 16px;

    }

    .chat-name {
        font-size: 18px;
    }

    .premium-lock-card {

        padding: 24px 18px;

    }

    .premium-lock-card h2 {
        font-size: 24px;
    }

    .premium-unlock-btn,
    .premium-access-btn {

        width: 100%;

        text-align: center;

    }

    .premium-chat-input {

        gap: 8px;

        padding: 12px;

    }

    .chat-action-btn,
    .chat-send-btn {

        width: 48px;

        height: 48px;

        border-radius: 14px;

    }

}

/* chat history */
/* =========================
   CHAT SCREEN
========================= */

.clean-chat-screen{

    width:100%;

    max-width:520px;

    height:700px;

    margin:auto;

    overflow:hidden;

    border-radius:34px;

    background:
    linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.06)
    );

    backdrop-filter:blur(25px);

    border:
    1px solid rgba(255,255,255,0.12);

    box-shadow:
    0 25px 60px rgba(255,105,180,0.12);

    display:flex;

    flex-direction:column;

}

/* HEADER */

.clean-chat-header{

    position:sticky;

    top:0;

    z-index:20;

    display:flex;

    align-items:center;

    justify-content:space-between;

    padding:18px 20px;

    border-bottom:
    1px solid rgba(255,255,255,0.08);

    background:
    rgba(255,255,255,0.12);

    backdrop-filter:blur(20px);

    flex-shrink:0;

}

/* USER */

.clean-user{

    display:flex;

    align-items:center;

    gap:14px;

}

.clean-user-img{

    width:62px;

    height:62px;

    border-radius:20px;

    object-fit:cover;

    border:2px solid rgba(255,255,255,0.2);

}

.clean-user h2{

    font-size:22px;

    font-weight:700;

    background:
    linear-gradient(
    to right,
    #ff4db8,
    #c44dff
    );

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.clean-user p{

    color:#7b4b8f;

    font-size:13px;

    margin-top:4px;

}

/* BODY */

.clean-chat-body{

    flex:1;

    overflow-y:auto;

    scroll-behavior:smooth;

    padding:20px;

    display:flex;

    flex-direction:column;

    gap:18px;

}

/* SCROLLBAR */

.clean-chat-body::-webkit-scrollbar{

    width:4px;

}

.clean-chat-body::-webkit-scrollbar-thumb{

    background:
    linear-gradient(
    to bottom,
    #ff4db8,
    #c44dff
    );

    border-radius:20px;

}

/* ROW */

.chat-row{

    display:flex;

    align-items:flex-end;

    gap:10px;

    animation:messageFade .3s ease;

}

.chat-row.right{

    justify-content:flex-end;

}

/* IMAGE */

.message-user{

    width:42px;

    height:42px;

    border-radius:14px;

    object-fit:cover;

}

/* BUBBLE */

.chat-bubble{

    max-width:75%;

    padding:14px 16px;

    border-radius:22px;

    backdrop-filter:blur(14px);

}

.left-bubble{

    background:
    rgba(255,255,255,0.16);

}

.right-bubble{

    background:
    linear-gradient(
    to right,
    rgba(255,77,184,0.2),
    rgba(196,77,255,0.2)
    );

}

/* TEXT */

.chat-bubble p{

    color:#4b5563;

    font-size:14px;

    line-height:1.6;

    margin-bottom:6px;

}

.chat-bubble span{

    font-size:11px;

    color:#999;

}

/* INPUT */

.clean-chat-input{

    position:sticky;

    bottom:0;

    z-index:20;

    display:flex;

    align-items:center;

    gap:12px;

    padding:16px;

    border-top:
    1px solid rgba(255,255,255,0.08);

    background:
    rgba(255,255,255,0.12);

    backdrop-filter:blur(20px);

    flex-shrink:0;

}

/* FIELD */

.clean-chat-input input{

    flex:1;

    height:56px;

    border:none;

    outline:none;

    border-radius:18px;

    padding:0 18px;

    background:
    rgba(255,255,255,0.14);

    color:#555;

    font-size:14px;

}

.clean-chat-input input::placeholder{
    color:#999;
}

/* BUTTONS */

.chat-action,
.send-message-btn{

    width:54px;

    height:54px;

    flex-shrink:0;

    border:none;

    border-radius:18px;

    background:
    linear-gradient(
    to right,
    #ff4db8,
    #c44dff
    );

    color:#fff;

    font-size:18px;

    cursor:pointer;

    transition:.4s;

    box-shadow:
    0 10px 30px rgba(255,105,180,0.2);

}

.chat-action:hover,
.send-message-btn:hover{

    transform:
    translateY(-3px)
    scale(1.05);

}

/* MESSAGE ANIMATION */

@keyframes messageFade{

    from{

        opacity:0;

        transform:
        translateY(10px);

    }

    to{

        opacity:1;

        transform:
        translateY(0);

    }

}

/* MOBILE */

@media(max-width:576px){

    .clean-chat-screen{

        height:100vh;

        max-width:100%;

        border-radius:0;

    }

    .clean-chat-header{

        padding:14px;

    }

    .clean-user-img{

        width:54px;

        height:54px;

        border-radius:16px;

    }

    .clean-user h2{

        font-size:18px;

    }

    .clean-user p{

        font-size:12px;

    }

    .clean-chat-body{

        padding:14px;

    }

    .chat-bubble{

        max-width:85%;

        padding:12px 14px;

    }

    .chat-bubble p{

        font-size:13px;

    }

    .clean-chat-input{

        gap:8px;

        padding:12px;

    }

    .clean-chat-input input{

        height:48px;

        font-size:13px;

    }

    .chat-action,
    .send-message-btn{

        width:46px;

        height:46px;

        border-radius:14px;

        font-size:16px;

    }

}