/* ===== REVIEWS PAGE ===== */

.reviews-hero {
    padding: 160px 0 40px;
    position: relative;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,77,0,0.10) 0%, transparent 70%);
}

.reviews-hero .section-header { margin-bottom: 40px; }

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}
.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 28px;
    color: #FFB800;
    filter: drop-shadow(0 2px 8px rgba(255,184,0,0.4));
}
.rating-value {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rating-count {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== REVIEWS FEED ===== */
.reviews-feed {
    padding: 40px 0 100px;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
}

@media (max-width: 900px) {
    .reviews-container { grid-template-columns: 1fr; }
}

/* ===== CHAT CARD ===== */
.chat-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.chat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,77,0,0.25);
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

/* HEAD: shows like TG chat header */
.chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #1a1a1a 0%, #161616 100%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #2a2a2a;
}
.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    user-select: none;
}

.chat-meta {
    flex: 1;
    min-width: 0;
}
.chat-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.chat-status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.chat-status .online {
    color: #2ecc71;
}
.chat-status .last-seen {
    color: #888;
}

.chat-stars {
    color: #FFB800;
    font-size: 14px;
    letter-spacing: 1px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(255,184,0,0.3));
}
.chat-stars .star-empty {
    color: rgba(255,184,0,0.25);
}

/* BODY: chat area with subtle "TG chat" background */
.chat-body {
    padding: 18px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,77,0,0.025) 0%, transparent 40%),
        radial-gradient(circle at 80% 85%, rgba(255,140,0,0.025) 0%, transparent 40%),
        var(--dark2);
    min-height: 180px;
}

.bubble {
    max-width: 82%;
    padding: 9px 14px 9px 12px;
    border-radius: 14px;
    font-size: 14.5px;
    line-height: 1.45;
    position: relative;
    word-wrap: break-word;
    letter-spacing: -0.1px;
}

/* Incoming (client, left) — dark grey like TG dark theme */
.bubble.in {
    align-self: flex-start;
    background: #2a2a2a;
    color: #ececec;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* Outgoing (Sergey, right) — brand orange */
.bubble.out {
    align-self: flex-end;
    background: linear-gradient(135deg, #ff5b1a, #ff8433);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 10px rgba(255,77,0,0.25);
}

/* Timestamp inside bubble */
.bubble .time {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    opacity: 0.65;
    vertical-align: baseline;
    white-space: nowrap;
    font-weight: 400;
}
.bubble.out .time {
    color: rgba(255,255,255,0.85);
    opacity: 0.9;
}
.bubble .check {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    color: rgba(255,255,255,0.95);
}

/* FOOT: caption under chat with review date/niche */
.chat-foot {
    padding: 12px 18px;
    background: #131313;
    border-top: 1px solid rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 0.2px;
}

/* ===== CTA ===== */
.reviews-cta {
    padding: 80px 0 120px;
}
.cta-inner {
    background: linear-gradient(145deg, rgba(255,77,0,0.09), var(--dark3));
    border: 1px solid rgba(255,77,0,0.25);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.cta-inner h2 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.cta-inner p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== INLINE REVIEW BLOCK (for niche pages) ===== */
.review-inline-section {
    padding: 60px 0;
}
.review-inline {
    max-width: 680px;
    margin: 0 auto;
}
.review-inline .chat-card {
    margin: 0;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .reviews-hero { padding: 120px 0 20px; }
    .reviews-feed { padding: 20px 0 60px; }
    .reviews-container { gap: 16px; }
    .chat-head { padding: 12px 14px; }
    .chat-avatar { width: 44px; height: 44px; }
    .chat-body { padding: 14px 12px 10px; }
    .bubble { max-width: 88%; font-size: 14px; padding: 8px 12px; }
    .cta-inner { padding: 40px 24px; }
    .rating-stars { font-size: 22px; }
}
