.wcity-comments {
    direction: rtl;
    text-align: right;
    margin: 32px 0;
    padding: 24px;
    border: 1px solid var(--wcity-border);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, .16), transparent 34%),
        linear-gradient(135deg, rgba(17, 19, 27, .98), rgba(8, 9, 13, .98));
}

.wcity-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.wcity-comments__titlewrap span {
    color: var(--wcity-accent-2);
    font-size: 12px;
    font-weight: 950;
}

.wcity-comments__titlewrap h2 {
    margin: 6px 0 0;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.4;
    font-weight: 1000;
    letter-spacing: -.6px;
}

.wcity-comments__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 999px;
    color: #fff;
    background: rgba(229, 9, 20, .18);
    border: 1px solid rgba(229, 9, 20, .34);
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-right: 10px;
    padding: 5px 10px;
    border: 1px solid rgba(229, 9, 20, .30);
    border-radius: 999px;
    color: #ffd9dc;
    background: rgba(229, 9, 20, .12);
    font-size: 12px;
    font-weight: 950;
}

#cancel-comment-reply-link:hover {
    color: #fff;
    background: rgba(229, 9, 20, .22);
}

.wcity-comment-form .comment-form-comment label {
    display: none;
}

.wcity-comment-form-wrap,
.wcity-comments-empty,
.wcity-comments-closed,
.wcity-comments-login-required {
    border: 1px solid var(--wcity-border);
    border-radius: 22px;
    background: rgba(0, 0, 0, .16);
}

.wcity-comment-form-wrap {
    margin-bottom: 18px;
    padding: 18px;
}

.wcity-comment-form__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 24px;
    line-height: 1.5;
    font-weight: 950;
}

.wcity-comment-form {
    display: grid;
    gap: 14px;
}

.wcity-comment-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.wcity-comment-form label {
    color: #fff;
    font-weight: 850;
}

.wcity-comment-form input[type="text"],
.wcity-comment-form input[type="email"],
.wcity-comment-form input[type="url"],
.wcity-comment-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--wcity-border);
    border-radius: 15px;
    outline: 0;
    color: #fff;
    background: rgba(0, 0, 0, .28);
    box-shadow: none;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
}

.wcity-comment-form textarea {
    min-height: 112px;
    padding-top: 12px;
    resize: vertical;
    line-height: 1.9;
}

.wcity-comment-form input::placeholder,
.wcity-comment-form textarea::placeholder {
    color: rgba(255, 255, 255, .44);
    opacity: 1;
}

.wcity-comment-form input:focus,
.wcity-comment-form textarea:focus {
    border-color: rgba(229, 9, 20, .72);
    box-shadow: 0 0 0 4px rgba(229, 9, 20, .13);
}

.wcity-comment-spoiler-field {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 10px 12px;
    border: 1px solid var(--wcity-border);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .045);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

.wcity-comment-spoiler-field input {
    width: auto;
    margin: 0;
}

.wcity-comment-form .form-submit {
    margin: 0;
}

.wcity-comment-form .submit {
    width: max-content;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #e50914, #b70710);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 950;
    cursor: pointer;
}

.wcity-comments-login-required,
.wcity-comments-empty,
.wcity-comments-closed {
    margin: 0 0 18px;
    padding: 16px;
    color: var(--wcity-muted);
    line-height: 1.9;
}

.wcity-comments-login-required {
    display: grid;
    gap: 8px;
}

.wcity-comments-login-required strong {
    color: #fff;
    font-size: 15px;
}

.wcity-comments-login-required a {
    width: max-content;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 13px;
    color: #111;
    background: var(--wcity-accent-2);
    font-weight: 950;
}

.wcity-comments-list-wrap {
    padding-top: 4px;
}

.wcity-comment-list,
.wcity-comment-list .children {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wcity-comment-list .children {
    margin: 12px 32px 0 0;
}

.wcity-comment-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--wcity-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .045);
}

.wcity-comment-list .children .wcity-comment-card {
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, .10), transparent 34%),
        rgba(168, 85, 247, .060);
    border-color: rgba(168, 85, 247, .18);
}

.wcity-comment-list .children .children .wcity-comment-card {
    background:
        radial-gradient(circle at top right, rgba(229, 9, 20, .085), transparent 34%),
        rgba(229, 9, 20, .045);
    border-color: rgba(229, 9, 20, .16);
}

.wcity-comment-avatar img {
    display: block;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    object-fit: cover;
}

.wcity-comment-body {
    min-width: 0;
}

.wcity-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.wcity-comment-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 950;
}

.wcity-comment-author-link:hover {
    color: var(--wcity-accent-2);
}

.wcity-comment-role {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #111;
    background: var(--wcity-accent-2);
    font-size: 11px;
    font-weight: 950;
}

.wcity-comment-date {
    color: var(--wcity-muted);
    font-size: 12px;
}

.wcity-comment-awaiting {
    margin-bottom: 8px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 193, 7, .24);
    border-radius: 14px;
    color: #ffd166;
    background: rgba(255, 193, 7, .10);
    line-height: 1.8;
    font-size: 13px;
}

.wcity-comment-text {
    color: var(--wcity-text);
    line-height: 2;
    overflow-wrap: anywhere;
}

.wcity-comment-text p {
    margin: 0 0 10px;
}

.wcity-comment-text p:last-child {
    margin-bottom: 0;
}

.wcity-comment-spoiler {
    position: relative;
}

.wcity-comment-spoiler__content {
    display: none;
}

.wcity-comment-spoiler.is-revealed .wcity-comment-spoiler__content {
    display: block;
}

.wcity-comment-spoiler.is-revealed .wcity-comment-spoiler__mask {
    display: none;
}

.wcity-comment-spoiler__mask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 179, 0, .24);
    border-radius: 16px;
    color: #ffd166;
    background: rgba(255, 179, 0, .10);
}

.wcity-comment-spoiler__mask button {
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 12px;
    color: #111;
    background: var(--wcity-accent-2);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-weight: 950;
    cursor: pointer;
}

.wcity-comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.wcity-comment-votes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wcity-comment-vote,
.wcity-comment-reply,
.wcity-comment-vote-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid var(--wcity-border);
    border-radius: 12px;
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: 950;
}

.wcity-comment-vote {
    gap: 6px;
    min-width: 58px;
    padding: 6px 10px;
    color: var(--wcity-muted);
    background: rgba(255, 255, 255, .055);
    cursor: pointer;
}

.wcity-comment-vote.is-active,
.wcity-comment-vote:hover {
    color: #fff;
    border-color: rgba(229, 9, 20, .30);
    background: rgba(229, 9, 20, .12);
}

.wcity-comment-vote.is-readonly {
    cursor: default;
    opacity: .82;
}

.wcity-comment-vote.is-readonly:hover {
    color: var(--wcity-muted);
    border-color: var(--wcity-border);
    background: rgba(255, 255, 255, .055);
}

.wcity-comment-vote-login {
    padding: 6px 12px;
    color: #111;
    background: var(--wcity-accent-2);
    border-color: transparent;
}

.wcity-comment-vote.has-error {
    border-color: rgba(229, 9, 20, .55);
    animation: wcity-comment-shake .28s ease;
}

.wcity-comment-reply {
    padding: 6px 12px;
    color: #ffd9dc;
    background: rgba(229, 9, 20, .10);
    border-color: rgba(229, 9, 20, .28);
}

.wcity-comment-reply.is-login-required {
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.055);
    border-color: var(--wcity-border);
}

@keyframes wcity-comment-shake {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(4px); }
    70% { transform: translateX(-4px); }
}

@media (max-width: 700px) {
    .wcity-comments {
        padding: 16px;
        border-radius: 22px;
    }

    .wcity-comments__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .wcity-comments__count,
    .wcity-comment-form .submit,
    .wcity-comment-spoiler-field {
        width: 100%;
    }

    .wcity-comment-card {
        grid-template-columns: 1fr;
    }

    .wcity-comment-avatar img {
        width: 58px;
        height: 58px;
    }

    .wcity-comment-list .children {
        margin-right: 16px;
    }
}
/* WCity comments v3 - restore generated initials avatars + clearer replies */
.wcity-comment-avatar a,
.wcity-comment-avatar__initials {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
}

.wcity-comment-avatar a {
    text-decoration: none;
}

.wcity-comment-avatar__initials {
    color: #fff;
    border: 2px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 28px rgba(0,0,0,.20);
    font-size: 18px;
    line-height: 1;
    font-weight: 1000;
    letter-spacing: -.3px;
}

.wcity-comment-avatar__initials.is-seed-1 { background: linear-gradient(135deg, #e50914, #7f1d1d); }
.wcity-comment-avatar__initials.is-seed-2 { background: linear-gradient(135deg, #9333ea, #312e81); }
.wcity-comment-avatar__initials.is-seed-3 { background: linear-gradient(135deg, #2563eb, #0f766e); }
.wcity-comment-avatar__initials.is-seed-4 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.wcity-comment-avatar__initials.is-seed-5 { background: linear-gradient(135deg, #16a34a, #166534); }
.wcity-comment-avatar__initials.is-seed-6 { background: linear-gradient(135deg, #db2777, #7e22ce); }
.wcity-comment-avatar__initials.is-seed-7 { background: linear-gradient(135deg, #0ea5e9, #4338ca); }
.wcity-comment-avatar__initials.is-seed-8 { background: linear-gradient(135deg, #ef4444, #f97316); }

.wcity-comment-list .children .wcity-comment-card {
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, .16), transparent 34%),
        rgba(168, 85, 247, .085) !important;
    border-color: rgba(168, 85, 247, .24) !important;
}

.wcity-comment-list .children .children .wcity-comment-card {
    background:
        radial-gradient(circle at top right, rgba(229, 9, 20, .12), transparent 34%),
        rgba(229, 9, 20, .070) !important;
    border-color: rgba(229, 9, 20, .20) !important;
}

@media (max-width: 700px) {
    .wcity-comment-avatar a,
    .wcity-comment-avatar__initials {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .wcity-comment-avatar__initials {
        font-size: 16px;
    }
}
/* WCity comments v5 polish */
.wcity-comments__head {
    align-items: center !important;
}

.wcity-comments__titlewrap {
    flex: 1 1 auto !important;
    text-align: center !important;
}

.wcity-comments__titlewrap span {
    display: block !important;
    color: #facc15 !important;
    font-size: clamp(15px, 2vw, 20px) !important;
    font-weight: 1000 !important;
    letter-spacing: -.2px !important;
}

.wcity-comments__titlewrap h2 {
    font-size: clamp(30px, 4vw, 46px) !important;
}

.wcity-comments__count {
    flex: 0 0 auto !important;
}

.wcity-comment-list .children .wcity-comment-card {
    background:
        radial-gradient(circle at top right, rgba(168,85,247,.18), transparent 35%),
        rgba(65, 36, 99, .34) !important;
    border-color: rgba(168,85,247,.22) !important;
}

@media (max-width: 760px) {
    .wcity-comments__head {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .wcity-comments__titlewrap {
        min-width: 0 !important;
        text-align: right !important;
    }

    .wcity-comments__titlewrap span {
        text-align: right !important;
        font-size: 14px !important;
    }

    .wcity-comments__titlewrap h2 {
        font-size: 24px !important;
        line-height: 1.45 !important;
    }

    .wcity-comments__count {
        width: auto !important;
        min-width: 76px !important;
        padding: 8px 12px !important;
        align-self: center !important;
        font-size: 12px !important;
    }
}

/* moved from comments.php: wcity-comments-profile-hint-v7 */
.wcity-comments-profile-hint {
            margin: 0 0 16px;
            padding: 14px 16px;
            border-radius: 22px;
            border: 1px solid rgba(168, 85, 247, .22);
            background:
                radial-gradient(circle at top right, rgba(168, 85, 247, .16), transparent 34%),
                linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.026));
            box-shadow: 0 18px 55px rgba(0,0,0,.22);
            color: rgba(255,255,255,.76);
            line-height: 2;
            text-align: right;
        }

        .wcity-comments-profile-hint strong {
            display: block;
            margin-bottom: 4px;
            color: #fff;
            font-size: 14px;
            font-weight: 1000;
        }

        .wcity-comments-profile-hint span {
            display: block;
            font-size: 13px;
            font-weight: 750;
        }

        .wcity-comments-profile-hint__actions {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 10px;
        }

        .wcity-comments-profile-hint__actions a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 34px;
            padding: 7px 12px;
            border-radius: 999px;
            color: #fff;
            text-decoration: none;
            font-size: 12px;
            font-weight: 950;
            background: rgba(229, 9, 20, .20);
            border: 1px solid rgba(229, 9, 20, .30);
        }

        .wcity-comments-profile-hint__actions a:last-child {
            background: rgba(168, 85, 247, .20);
            border-color: rgba(168, 85, 247, .30);
        }

        @media (max-width: 640px) {
            .wcity-comments-profile-hint {
                padding: 13px;
                border-radius: 18px;
            }

            .wcity-comments-profile-hint__actions a {
                flex: 1 1 auto;
            }
        }
