*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.trial-wa {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    min-height: 100%;
}

body.trial-wa {
    display: flex;
    justify-content: center;
    background: #111b21;
    color: #111;
    font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
}

.trial-wa-phone {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: #efeae2;
}

.trial-wa-top {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: calc(0.7rem + env(safe-area-inset-top, 0px)) 0.85rem 0.7rem;
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 27, 33, 0.08);
}

.trial-wa-back {
    color: #667781;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.trial-wa-top img {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    object-fit: contain;
    background: #111;
}

.trial-wa-top strong,
.trial-wa-top small {
    display: block;
}

.trial-wa-top strong {
    font-size: 1rem;
    line-height: 1.3;
}

.trial-wa-top small {
    color: #667781;
    font-size: 0.78rem;
}

.trial-wa-designs {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.7rem 0.8rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #111b21;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trial-wa-designs p {
    margin: 0 0 0.45rem;
    color: #d7ccc0;
    font-size: 0.78rem;
    font-weight: 700;
}

.trial-wa-designs-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.trial-wa-designs-list::-webkit-scrollbar {
    display: none;
}

.trial-wa-designs-list a {
    flex: 0 0 auto;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: #f4ead8;
    color: #171717;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.trial-wa-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.55rem;
    color: #fffaf1;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.trial-wa-designs-list a.is-active {
    background: #171717;
    color: #fffaf1;
}

.trial-wa-thread {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0.8rem 1.2rem;
}

.trial-wa-lock {
    margin: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #fff9c7;
    color: #5a5146;
    font-size: 0.78rem;
    line-height: 1.7;
    text-align: center;
}

.trial-wa-message {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.7rem;
    gap: 0.12rem;
}

.trial-wa-photo,
.trial-wa-bubble {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}

.trial-wa-photo {
    overflow: hidden;
    border-radius: 10px 10px 2px 10px;
    background: #f4ead8;
}

.trial-wa-photo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.trial-wa-bubble {
    padding: 0.75rem 0.8rem 0.5rem;
    border-radius: 10px 10px 2px 10px;
    background: #d9fdd3;
    text-align: start;
    box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

.trial-wa-bubble p {
    margin: 0 0 0.45rem;
    color: #111;
    font-size: 0.95rem;
    line-height: 1.75;
}

.trial-wa-link,
.trial-wa-link a {
    color: #027eb5;
    direction: ltr;
    text-align: left;
    word-break: break-all;
}

.trial-wa-link a {
    text-decoration: underline;
}

.trial-wa-bubble time {
    display: block;
    color: #667781;
    font-size: 0.72rem;
    text-align: start;
}

html:has(body.trial-vip-live),
body.trial-vip-live {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
}

.trial-vip-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.trial-vip-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.7rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(17, 27, 33, 0.88);
    pointer-events: none;
}

.trial-vip-bar a {
    pointer-events: auto;
    color: #fffaf1;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}
