﻿:root {
    --kt-primary: #6157ff;
    --kt-primary-dark: #463ad9;
    --kt-secondary: #00b7ff;
    --kt-bg: #f5f7fb;
    --kt-card: #ffffff;
    --kt-text: #111827;
    --kt-muted: #6b7280;
    --kt-border: #e5e7eb;
    --kt-success: #16a34a;
    --kt-danger: #dc2626;
    --kt-radius: 18px;
    --kt-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--kt-bg);
    color: var(--kt-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.kt-app-shell {
    min-height: 100vh;
    padding-bottom: 78px;
}

.kt-app-shell.kt-has-bottom-nav {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.kt-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 247, 251, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.75);
}

.kt-topbar-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--kt-text);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.kt-brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(97, 87, 255, 0.28);
}

.kt-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.kt-brand-name {
    font-size: 17px;
}

.kt-brand-tagline {
    font-size: 11px;
    color: var(--kt-muted);
    font-weight: 500;
    margin-top: 3px;
}

.kt-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kt-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
}

.kt-card {
    background: var(--kt-card);
    border: 1px solid var(--kt-border);
    border-radius: var(--kt-radius);
    box-shadow: var(--kt-shadow);
    padding: 16px;
}

.kt-hero {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    border-radius: 26px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(97, 87, 255, 0.24);
}

    .kt-hero h1 {
        font-size: 28px;
        line-height: 1.1;
        margin: 0 0 8px;
        letter-spacing: -0.05em;
    }

    .kt-hero p {
        margin: 0;
        opacity: 0.9;
    }

.kt-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 22px 0 12px;
    letter-spacing: -0.03em;
}

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

.kt-action-card {
    background: #fff;
    border: 1px solid var(--kt-border);
    border-radius: 20px;
    padding: 16px;
    color: var(--kt-text);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    transition: 0.2s ease;
}

    .kt-action-card:hover {
        transform: translateY(-2px);
        color: var(--kt-text);
    }

.kt-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    font-size: 21px;
    margin-bottom: 10px;
}

.kt-action-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.kt-action-desc {
    font-size: 12px;
    color: var(--kt-muted);
    line-height: 1.35;
}

.kt-btn {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    font-weight: 700;
    background: var(--kt-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .kt-btn:hover {
        color: #fff;
        background: var(--kt-primary-dark);
    }

.kt-btn-light {
    background: #fff;
    color: var(--kt-primary);
    border: 1px solid var(--kt-border);
}

    .kt-btn-light:hover {
        color: var(--kt-primary);
        background: #f8fafc;
    }

.kt-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 520px;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(17, 24, 39, 0.16);
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

    .kt-bottom-nav a {
        color: var(--kt-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 50px;
        border-radius: 17px;
        font-size: 11px;
        font-weight: 700;
    }

        .kt-bottom-nav a.active,
        .kt-bottom-nav a:hover {
            background: rgba(97, 87, 255, 0.1);
            color: var(--kt-primary);
        }

.kt-bottom-nav-icon {
    font-size: 19px;
    line-height: 1;
}

.kt-auth-small {
    font-size: 13px;
}

.kt-page-placeholder {
    min-height: 55vh;
    display: grid;
    place-items: center;
    text-align: center;
}

    .kt-page-placeholder h1 {
        font-size: 26px;
        margin-bottom: 8px;
        letter-spacing: -0.04em;
    }

    .kt-page-placeholder p {
        color: var(--kt-muted);
        margin: 0;
    }

@media (min-width: 768px) {
    .kt-main {
        padding: 24px;
    }

    .kt-hero {
        padding: 34px;
    }

        .kt-hero h1 {
            font-size: 42px;
        }

    .kt-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}



/* -----------------------------
   Identity / Auth Pages
------------------------------ */

.kt-auth-shell {
    padding-bottom: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(97, 87, 255, 0.12), transparent 34%), radial-gradient(circle at top right, rgba(0, 183, 255, 0.12), transparent 34%), var(--kt-bg);
}

    .kt-auth-shell .kt-main {
        max-width: 1100px;
        padding: 32px 16px;
    }

    .kt-auth-shell h1 {
        font-size: 42px;
        font-weight: 900;
        letter-spacing: -0.06em;
        margin-bottom: 18px;
    }

    .kt-auth-shell h2 {
        font-size: 28px;
        font-weight: 850;
        letter-spacing: -0.04em;
        margin-bottom: 18px;
    }

    .kt-auth-shell h3 {
        font-size: 22px;
        font-weight: 800;
    }

    .kt-auth-shell .row {
        justify-content: center;
        gap: 22px;
    }

    .kt-auth-shell .col-md-4,
    .kt-auth-shell .col-md-6 {
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid var(--kt-border);
        border-radius: 26px;
        box-shadow: var(--kt-shadow);
        padding: 26px;
        backdrop-filter: blur(16px);
    }

    .kt-auth-shell hr {
        border-color: var(--kt-border);
        opacity: 1;
    }

    .kt-auth-shell .form-floating {
        margin-bottom: 14px;
    }

    .kt-auth-shell .form-control {
        border-radius: 16px;
        border: 1px solid var(--kt-border);
        min-height: 58px;
        box-shadow: none;
    }

        .kt-auth-shell .form-control:focus {
            border-color: var(--kt-primary);
            box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.12);
        }

    .kt-auth-shell .btn-primary {
        min-height: 52px;
        border: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
        font-weight: 800;
        box-shadow: 0 12px 24px rgba(97, 87, 255, 0.22);
    }

        .kt-auth-shell .btn-primary:hover {
            background: linear-gradient(135deg, var(--kt-primary-dark), var(--kt-secondary));
        }

    .kt-auth-shell button[name="provider"][value="Google"] {
        min-height: 52px;
        border-radius: 16px;
        background: #fff;
        color: var(--kt-text);
        border: 1px solid var(--kt-border);
        box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
        font-weight: 800;
        padding: 0 18px;
    }

        .kt-auth-shell button[name="provider"][value="Google"]::before {
            content: "G";
            display: inline-grid;
            place-items: center;
            width: 28px;
            height: 28px;
            margin-right: 8px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
            color: #fff;
            font-weight: 900;
        }

        .kt-auth-shell button[name="provider"][value="Google"]:hover {
            background: #f8fafc;
        }

    .kt-auth-shell a {
        color: var(--kt-primary);
        font-weight: 700;
    }

    .kt-auth-shell .text-info,
    .kt-auth-shell .text-primary {
        color: var(--kt-primary) !important;
    }

    .kt-auth-shell .validation-summary-errors,
    .kt-auth-shell .text-danger {
        color: var(--kt-danger) !important;
    }

    .kt-auth-shell .kt-topbar {
        background: rgba(245, 247, 251, 0.82);
    }

@media (max-width: 767px) {
    .kt-auth-shell .kt-main {
        padding: 22px 14px;
    }

    .kt-auth-shell h1 {
        font-size: 34px;
    }

    .kt-auth-shell h2 {
        font-size: 24px;
    }

    .kt-auth-shell .col-md-4,
    .kt-auth-shell .col-md-6 {
        padding: 20px;
        border-radius: 22px;
    }
}



/* -----------------------------
   Modern mobile auth screen
------------------------------ */

.kt-auth-mobile-wrap {
    min-height: calc(100vh - 95px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.kt-auth-panel {
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 34px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
    padding: 28px;
    backdrop-filter: blur(20px);
}

.kt-auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.kt-auth-panel h1 {
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.06em;
    margin: 0 0 8px;
}

.kt-auth-subtitle {
    text-align: center;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 22px;
}

.kt-auth-social-form {
    margin-bottom: 18px;
}

.kt-google-auth-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid var(--kt-border);
    background: #fff;
    color: var(--kt-text);
    font-size: 15px;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

    .kt-google-auth-btn:hover {
        background: #f8fafc;
    }

.kt-google-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    color: #fff;
    font-weight: 900;
}

.kt-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--kt-muted);
    font-size: 12px;
    font-weight: 700;
    margin: 18px 0;
}

    .kt-auth-divider::before,
    .kt-auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--kt-border);
    }

.kt-auth-form {
    margin-top: 8px;
}

.kt-form-floating {
    margin-bottom: 12px;
}

.kt-auth-panel .form-control {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid var(--kt-border);
    background: #fff;
    box-shadow: none;
}

    .kt-auth-panel .form-control:focus {
        border-color: var(--kt-primary);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.12);
    }

.kt-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kt-muted);
    font-size: 14px;
    margin: 8px 0 16px;
}

    .kt-checkbox-row input {
        width: 18px;
        height: 18px;
        accent-color: var(--kt-primary);
    }

.kt-auth-main-btn {
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(97, 87, 255, 0.24);
}

    .kt-auth-main-btn:hover {
        background: linear-gradient(135deg, var(--kt-primary-dark), var(--kt-secondary));
    }

.kt-auth-links {
    text-align: center;
    margin-top: 14px;
}

    .kt-auth-links a,
    .kt-auth-bottom-text a {
        color: var(--kt-primary);
        font-weight: 850;
    }

.kt-auth-bottom-text {
    text-align: center;
    color: var(--kt-muted);
    font-size: 14px;
    margin-top: 22px;
}

@media (max-width: 520px) {
    .kt-auth-mobile-wrap {
        align-items: start;
        padding: 18px 0;
    }

    .kt-auth-panel {
        max-width: none;
        border-radius: 28px;
        padding: 22px;
    }

        .kt-auth-panel h1 {
            font-size: 30px;
        }
}


/* Final Google button polish */

.kt-auth-shell button[name="provider"][value="Google"]::before {
    content: none !important;
    display: none !important;
}

.kt-google-auth-btn {
    width: 100%;
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: 0.18s ease;
}

    .kt-google-auth-btn:hover {
        background: #f8fafc;
        transform: translateY(-1px);
    }

    .kt-google-auth-btn:active {
        transform: scale(0.99);
    }

.kt-google-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    font-weight: 900;
    font-size: 0;
}

    .kt-google-icon::before {
        content: "G";
        font-size: 22px;
        font-weight: 900;
        background: conic-gradient( from -45deg, #4285f4 0deg 90deg, #34a853 90deg 180deg, #fbbc05 180deg 270deg, #ea4335 270deg 360deg );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }


/* -----------------------------
   Profile setup
------------------------------ */

.kt-profile-shell {
    display: grid;
    place-items: start center;
    padding: 10px 0 90px;
}

.kt-profile-card {
    width: 100%;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--kt-border);
    border-radius: 30px;
    box-shadow: var(--kt-shadow);
    padding: 24px;
}

.kt-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.kt-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(97, 87, 255, 0.24);
    flex: 0 0 auto;
}

.kt-profile-header h1 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 0;
}

.kt-profile-header p {
    margin: 4px 0 0;
    color: var(--kt-muted);
}

.kt-profile-form {
    display: grid;
    gap: 14px;
}

.kt-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--kt-text);
    margin-bottom: 7px;
}

.kt-form-group .form-control,
.kt-form-group .form-select {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--kt-border);
    box-shadow: none;
}

.kt-form-group textarea.form-control {
    min-height: 110px;
}

.kt-form-group .form-control:focus,
.kt-form-group .form-select:focus {
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.12);
}

.kt-username-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

    .kt-username-wrap span {
        padding: 0 0 0 16px;
        color: var(--kt-muted);
        font-weight: 900;
    }

    .kt-username-wrap .form-control {
        border: 0;
        border-radius: 0;
    }

.kt-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.kt-alert-success,
.kt-alert-info {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.kt-alert-success {
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
}

.kt-alert-info {
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary-dark);
}

@media (max-width: 640px) {
    .kt-profile-card {
        border-radius: 24px;
        padding: 18px;
    }

    .kt-profile-grid {
        grid-template-columns: 1fr;
    }

    .kt-profile-header {
        align-items: flex-start;
    }
}



/* -----------------------------
   Multi-language chips
------------------------------ */

.kt-language-box {
    border: 1px solid var(--kt-border);
    border-radius: 24px;
    padding: 16px;
    background: #fff;
}

.kt-language-box-head {
    margin-bottom: 12px;
}

    .kt-language-box-head h2 {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.03em;
        margin: 0;
    }

    .kt-language-box-head p {
        margin: 4px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
    }

.kt-language-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kt-language-chip {
    cursor: pointer;
}

    .kt-language-chip input {
        display: none;
    }

    .kt-language-chip span {
        display: inline-flex;
        align-items: center;
        min-height: 42px;
        border-radius: 999px;
        padding: 0 14px;
        background: #f8fafc;
        border: 1px solid var(--kt-border);
        color: var(--kt-text);
        font-size: 13px;
        font-weight: 800;
        transition: 0.16s ease;
    }

    .kt-language-chip input:checked + span {
        background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
        color: #fff;
        border-color: transparent;
        box-shadow: 0 10px 20px rgba(97, 87, 255, 0.18);
    }

    .kt-language-chip span:hover {
        transform: translateY(-1px);
    }

.mt-3 {
    margin-top: 1rem;
}

/* -----------------------------
   Repeatable language rows
------------------------------ */

.kt-language-list-box {
    border: 1px solid var(--kt-border);
    border-radius: 24px;
    padding: 16px;
    background: #fff;
}

.kt-language-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .kt-language-list-head h2 {
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.03em;
        margin: 0;
    }

    .kt-language-list-head p {
        margin: 4px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
    }

.kt-mini-btn {
    border: 0;
    border-radius: 14px;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    min-height: 40px;
    padding: 0 14px;
    font-weight: 900;
    flex: 0 0 auto;
}

    .kt-mini-btn:hover {
        background: rgba(97, 87, 255, 0.16);
    }

.kt-language-rows {
    display: grid;
    gap: 12px;
}

.kt-language-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 10px;
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--kt-border);
    border-radius: 20px;
    padding: 12px;
}

.kt-remove-language-btn {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    font-weight: 850;
    color: var(--kt-danger);
    background: rgba(220, 38, 38, 0.08);
}

    .kt-remove-language-btn:hover {
        background: rgba(220, 38, 38, 0.13);
    }

@media (max-width: 720px) {
    .kt-language-list-head {
        flex-direction: column;
    }

    .kt-mini-btn {
        width: 100%;
    }

    .kt-language-row {
        grid-template-columns: 1fr;
    }

    .kt-remove-language-btn {
        width: 100%;
    }
}

/* -----------------------------
   Discover people
------------------------------ */

.kt-discover-shell {
    padding: 6px 0 150px;
}

.kt-discover-hero {
    background: linear-gradient(135deg, rgba(97, 87, 255, 0.12), rgba(20, 184, 166, 0.12));
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    padding: 22px;
    margin-bottom: 18px;
}

    .kt-discover-hero h1 {
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
        margin: 0;
    }

    .kt-discover-hero p {
        color: var(--kt-muted);
        margin: 6px 0 16px;
    }

.kt-discover-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

    .kt-discover-search .form-control {
        min-height: 48px;
        border-radius: 16px;
        border: 1px solid var(--kt-border);
    }

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

.kt-user-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    padding: 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 14px;
}

.kt-user-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.kt-user-avatar {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 23px;
    font-weight: 950;
    overflow: hidden;
    flex: 0 0 auto;
}

    .kt-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-user-main {
    min-width: 0;
    flex: 1;
}

    .kt-user-main h2 {
        margin: 0;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .kt-user-main p {
        margin: 2px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
        font-weight: 700;
    }

.kt-user-country {
    margin-top: 6px;
    color: var(--kt-text);
    font-size: 13px;
    font-weight: 750;
}

.kt-online-pill {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.kt-user-bio {
    color: var(--kt-text);
    font-size: 14px;
    margin: 0;
    line-height: 1.45;
}

.kt-user-language-section h3 {
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kt-muted);
    margin: 0 0 8px;
}

.kt-user-language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

    .kt-user-language-tags span {
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid var(--kt-border);
        padding: 7px 10px;
        font-size: 12px;
        font-weight: 800;
    }

.kt-muted-small {
    color: var(--kt-muted);
    font-size: 13px;
    margin: 0;
}

.kt-link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kt-simple-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.kt-simple-list-item {
    text-decoration: none;
    color: var(--kt-text);
    border: 1px solid var(--kt-border);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .kt-simple-list-item strong {
        display: block;
    }

    .kt-simple-list-item span {
        color: var(--kt-muted);
        font-size: 13px;
    }

.kt-chat-shell {
    padding: 20px 0 150px;
}

.kt-chat-placeholder {
    background: #fff;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--kt-shadow);
}

    .kt-chat-placeholder h1 {
        font-size: 28px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

@media (max-width: 760px) {
    .kt-discover-grid {
        grid-template-columns: 1fr;
    }

    .kt-discover-search {
        grid-template-columns: 1fr;
    }
}


/* -----------------------------
   Profile photo upload + crop
------------------------------ */

.kt-profile-avatar {
    overflow: hidden;
}

    .kt-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-photo-upload-box {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.kt-photo-preview {
    width: 104px;
    height: 104px;
    border-radius: 34px;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 38px;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(97, 87, 255, 0.26);
}

.kt-photo-preview-btn {
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: 0.18s ease;
}

    .kt-photo-preview-btn:hover {
        transform: translateY(-2px);
    }

.kt-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kt-photo-preview span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.kt-photo-upload-content {
    flex: 1;
    min-width: 0;
}

    .kt-photo-upload-content label {
        display: block;
        font-size: 14px;
        font-weight: 950;
        color: var(--kt-text);
        margin-bottom: 8px;
    }

    .kt-photo-upload-content .form-control {
        min-height: 52px;
        border-radius: 18px;
        border: 1px solid var(--kt-border);
        background: #fff;
        padding: 9px;
        font-weight: 700;
    }

        .kt-photo-upload-content .form-control::file-selector-button {
            border: 0;
            border-radius: 14px;
            padding: 10px 14px;
            margin-right: 12px;
            background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
            color: #fff;
            font-weight: 900;
            cursor: pointer;
        }

    .kt-photo-upload-content p {
        margin: 9px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
        line-height: 1.45;
    }

/* Crop modal */

.kt-crop-modal,
.kt-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    .kt-crop-modal.is-open,
    .kt-image-viewer.is-open {
        display: grid;
    }

.kt-crop-modal {
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(12px);
}

.kt-crop-panel {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 30px;
    padding: 18px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.38);
}

.kt-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

    .kt-crop-header h2 {
        margin: 0;
        font-size: 21px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .kt-crop-header button {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 15px;
        font-size: 28px;
        line-height: 1;
        background: #f1f5f9;
        color: var(--kt-text);
        cursor: pointer;
    }

.kt-crop-stage {
    position: relative;
    width: 100%;
    max-width: 330px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 38px;
    background: #0f172a;
    touch-action: none;
    user-select: none;
    cursor: grab;
}

    .kt-crop-stage:active {
        cursor: grabbing;
    }

    .kt-crop-stage img {
        position: absolute;
        left: 50%;
        top: 50%;
        max-width: none;
        transform-origin: center center;
        user-select: none;
        pointer-events: none;
    }

.kt-crop-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: 38px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.96), inset 0 0 0 999px rgba(15, 23, 42, 0.05);
}

.kt-crop-controls {
    margin-top: 16px;
}

    .kt-crop-controls label {
        display: block;
        font-weight: 950;
        margin-bottom: 8px;
    }

    .kt-crop-controls input {
        width: 100%;
        accent-color: var(--kt-primary);
    }

.kt-crop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

/* Full image viewer */

.kt-image-viewer {
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

    .kt-image-viewer img {
        max-width: 94vw;
        max-height: 84vh;
        object-fit: contain;
        border-radius: 22px;
        transition: transform 0.18s ease;
    }

.kt-image-viewer-close {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    z-index: 10000;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.kt-image-viewer-tools {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(10px);
}

    .kt-image-viewer-tools button {
        border: 0;
        min-width: 44px;
        height: 40px;
        border-radius: 999px;
        padding: 0 14px;
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
        font-weight: 900;
        cursor: pointer;
    }

/* Prevent ugly horizontal overflow on profile page */

.kt-profile-shell {
    overflow-x: hidden;
    padding-bottom: 160px;
}

.kt-profile-card {
    max-width: 760px;
    margin-inline: auto;
}

@media (max-width: 640px) {
    .kt-photo-upload-box {
        align-items: flex-start;
        gap: 14px;
        padding: 14px;
    }

    .kt-photo-preview {
        width: 82px;
        height: 82px;
        border-radius: 28px;
        font-size: 30px;
    }

    .kt-crop-panel {
        border-radius: 26px;
    }

    .kt-crop-stage {
        max-width: 300px;
        border-radius: 34px;
    }

    .kt-crop-mask {
        border-radius: 34px;
    }
}

/* -----------------------------
   Age / gender / privacy
------------------------------ */

.kt-field-help {
    margin: 7px 0 0;
    font-size: 13px;
    color: var(--kt-muted);
    font-weight: 700;
}

    .kt-field-help span {
        color: var(--kt-primary);
        font-weight: 900;
    }

.kt-privacy-box {
    display: grid;
    gap: 10px;
    border: 1px solid var(--kt-border);
    border-radius: 20px;
    padding: 14px;
    background: #fff;
}

    .kt-privacy-box .kt-checkbox-row {
        margin: 0;
    }


/* -----------------------------
   Discover profile meta + safety
------------------------------ */

.kt-user-avatar-button {
    border: 0;
    padding: 0;
    cursor: pointer;
}

    .kt-user-avatar-button:hover {
        transform: translateY(-1px);
    }

.kt-user-meta {
    margin-top: 5px;
    color: var(--kt-text);
    font-size: 13px;
    font-weight: 850;
}

.kt-user-status-stack {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.kt-teen-pill {
    background: rgba(97, 87, 255, 0.12);
    color: var(--kt-primary);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

/* -----------------------------
   Chat list, unread badge, and final chat thread UI
   Replace all older chat CSS with this single block
------------------------------ */

.kt-chat-list-shell {
    padding: 8px 0 150px;
}

.kt-chat-list {
    display: grid;
    gap: 10px;
}

.kt-chat-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--kt-border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    color: var(--kt-text);
    text-decoration: none;
}

    .kt-chat-list-item:hover {
        color: var(--kt-text);
        transform: translateY(-1px);
    }

.kt-chat-list-avatar,
.kt-chat-peer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

    .kt-chat-list-avatar img,
    .kt-chat-peer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-chat-list-main {
    flex: 1;
    min-width: 0;
}

.kt-chat-list-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .kt-chat-list-top h2 {
        margin: 0;
        font-size: 17px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .kt-chat-list-top span {
        font-size: 12px;
        color: var(--kt-muted);
        font-weight: 800;
    }

.kt-chat-list-main p {
    margin: 3px 0 0;
    color: var(--kt-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kt-unread-badge {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

/* Bottom nav unread badge */

.kt-bottom-nav-icon-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
}

.kt-nav-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
}

/* Chat thread final layout.
   This targets the chat page directly, so it works even if the body class is added late. */

body.kt-chat-page {
    overflow: hidden !important;
}

    body.kt-chat-page .kt-app-shell {
        height: 100dvh;
        overflow: hidden;
        padding-bottom: 0;
    }

    body.kt-chat-page .kt-main {
        max-width: none;
        width: 100%;
        height: calc(100dvh - 78px);
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
    }

.kt-chat-thread-shell {
    position: fixed;
    top: 82px;
    left: 50%;
    bottom: 104px;
    transform: translateX(-50%);
    width: min(100% - 28px, 820px);
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    z-index: 10;
}

.kt-chat-thread-card {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.10);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.kt-chat-thread-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--kt-border);
    background: rgba(248, 250, 252, 0.94);
    min-height: 78px;
    flex: 0 0 auto;
}

.kt-chat-back {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--kt-border);
    color: var(--kt-text);
    text-decoration: none;
    font-size: 32px;
    line-height: 1;
    flex: 0 0 auto;
}

    .kt-chat-back:hover {
        color: var(--kt-primary);
        border-color: rgba(97, 87, 255, 0.25);
    }

.kt-chat-peer-info {
    min-width: 0;
}

    .kt-chat-peer-info h1 {
        margin: 0;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .kt-chat-peer-info p {
        margin: 2px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
        font-weight: 750;
    }

.kt-chat-connection-status {
    display: inline-flex;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 850;
    color: var(--kt-primary);
}

.kt-message-list {
    min-height: 0 !important;
    padding: 18px;
    overflow-y: auto !important;
    background: radial-gradient(circle at top left, rgba(97, 87, 255, 0.06), transparent 30%), #f8fafc;
    scroll-behavior: smooth;
}

.kt-chat-empty {
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    color: var(--kt-muted);
}

    .kt-chat-empty h2 {
        color: var(--kt-text);
        font-weight: 950;
    }

.kt-message-row {
    display: flex;
    margin-bottom: 10px;
}

    .kt-message-row.mine {
        justify-content: flex-end;
    }

    .kt-message-row.theirs {
        justify-content: flex-start;
    }

.kt-message-bubble {
    max-width: min(76%, 520px);
    border-radius: 22px;
    padding: 10px 12px 7px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.kt-message-row.mine .kt-message-bubble {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    border-bottom-right-radius: 8px;
}

.kt-message-row.theirs .kt-message-bubble {
    background: #fff;
    color: var(--kt-text);
    border: 1px solid var(--kt-border);
    border-bottom-left-radius: 8px;
}

.kt-message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.kt-message-meta {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.78;
}

.kt-message-compose {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid var(--kt-border);
    background: #fff;
    flex: 0 0 auto;
    position: relative;
    z-index: 5;
}

    .kt-message-compose textarea {
        min-height: 48px;
        max-height: 120px;
        resize: none;
        overflow-y: auto;
        border-radius: 18px;
        border: 1px solid var(--kt-border);
        padding: 12px 14px;
        outline: none;
        line-height: 1.35;
    }

        .kt-message-compose textarea:focus {
            border-color: var(--kt-primary);
            box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.12);
        }

    .kt-message-compose button {
        min-width: 86px;
        border: 0;
        border-radius: 18px;
        padding: 0 20px;
        background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
        color: #fff;
        font-weight: 950;
    }

        .kt-message-compose button:disabled {
            opacity: 0.68;
            cursor: not-allowed;
        }

/* Keep nav always visible above the chat page */

body.kt-chat-page .kt-bottom-nav {
    display: grid !important;
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 1200;
}

/* Desktop wide screen: make chat a little taller but still above nav */
@media (min-width: 761px) {
    .kt-chat-thread-shell {
        top: 92px;
        bottom: 104px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    body.kt-chat-page .kt-main {
        height: calc(100dvh - 74px);
    }

    .kt-chat-thread-shell {
        top: 74px;
        bottom: 92px;
        width: 100%;
    }

    .kt-chat-thread-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .kt-chat-thread-header {
        min-height: 70px;
        padding: 10px 12px;
    }

    .kt-chat-list-avatar,
    .kt-chat-peer-avatar {
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }

    .kt-message-list {
        padding: 14px;
    }

    .kt-message-bubble {
        max-width: 86%;
    }

    .kt-message-compose {
        padding: 10px 12px;
        gap: 8px;
    }

        .kt-message-compose button {
            min-width: 72px;
            padding: 0 14px;
        }
}

/* -----------------------------
   Call buttons + call popup
------------------------------ */

.kt-chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kt-chat-call-btn {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--kt-border);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-size: 18px;
    cursor: pointer;
}

    .kt-chat-call-btn:hover {
        background: rgba(97, 87, 255, 0.1);
    }

.kt-call-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
}

    .kt-call-overlay.is-open {
        display: grid;
    }

.kt-call-popup {
    width: min(100%, 360px);
    background: #fff;
    border-radius: 34px;
    padding: 26px;
    text-align: center;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.kt-call-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 34px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 38px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(97, 87, 255, 0.28);
}

    .kt-call-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .kt-call-avatar span {
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
    }

.kt-call-title {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.kt-call-subtitle {
    margin-top: 5px;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 750;
}

.kt-call-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

    .kt-call-actions button {
        min-height: 52px;
        border: 0;
        border-radius: 18px;
        color: #fff;
        font-size: 15px;
        font-weight: 950;
    }

.kt-call-reject {
    background: #ef4444;
}

.kt-call-accept {
    background: #16a34a;
}

/* -----------------------------
   Chat header call buttons fixed
------------------------------ */

.kt-chat-thread-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

.kt-chat-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.kt-chat-peer-info {
    min-width: 0;
    flex: 1;
}

    .kt-chat-peer-info h1,
    .kt-chat-peer-info p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.kt-chat-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.kt-chat-call-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--kt-border);
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-size: 18px;
    cursor: pointer;
    transition: 0.16s ease;
}

    .kt-chat-call-btn:hover {
        transform: translateY(-1px);
        background: rgba(97, 87, 255, 0.1);
        color: var(--kt-primary);
    }

@media (max-width: 520px) {
    .kt-chat-thread-header {
        gap: 8px !important;
        padding: 10px !important;
    }

    .kt-chat-header-left {
        gap: 8px;
    }

    .kt-chat-call-btn {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 17px;
    }

    .kt-chat-back {
        width: 40px;
        height: 40px;
    }

    .kt-chat-peer-avatar {
        width: 48px;
        height: 48px;
        border-radius: 18px;
    }
}

/* -----------------------------
   Modern toast notifications
------------------------------ */

.kt-toast-host {
    position: fixed;
    top: 92px;
    right: 18px;
    z-index: 20000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
    pointer-events: none;
}

.kt-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    animation: ktToastIn 0.24s ease both;
    backdrop-filter: blur(18px);
}

    .kt-toast.is-leaving {
        animation: ktToastOut 0.22s ease both;
    }

.kt-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-weight: 950;
    color: #fff;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
}

.kt-toast-error .kt-toast-icon {
    background: #ef4444;
}

.kt-toast-success .kt-toast-icon {
    background: #16a34a;
}

.kt-toast-text {
    color: var(--kt-text);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
}

@keyframes ktToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ktToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@media (max-width: 760px) {
    .kt-toast-host {
        top: 78px;
        left: 14px;
        right: 14px;
        width: auto;
    }
}
/* -----------------------------
   Real Calling Page
------------------------------ */

body.kt-calling-body {
    overflow: hidden;
}

    body.kt-calling-body .kt-bottom-nav {
        display: none !important;
    }

    body.kt-calling-body .kt-main {
        max-width: none;
        padding: 0;
        margin: 0;
    }

.kt-calling-page {
    height: calc(100dvh - 72px);
    background: radial-gradient(circle at top left, rgba(97, 87, 255, 0.18), transparent 34%), radial-gradient(circle at top right, rgba(0, 183, 255, 0.18), transparent 34%), #07111f;
    color: #fff;
    overflow: hidden;
}

.kt-calling-shell {
    width: min(100%, 1180px);
    height: 100%;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 18px;
}

.kt-calling-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.kt-calling-kicker {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 850;
}

.kt-calling-topbar h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.kt-calling-back {
    min-height: 46px;
    border-radius: 16px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

    .kt-calling-back:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.18);
    }

.kt-calling-stage {
    min-height: 0;
    position: relative;
    display: grid;
}

.kt-calling-voice-card {
    place-self: center;
    display: grid;
    justify-items: center;
    text-align: center;
}

.kt-calling-pulse {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(97, 87, 255, 0.16);
    animation: ktCallPulse 1.6s ease-in-out infinite;
}

.kt-calling-avatar {
    width: 118px;
    height: 118px;
    border-radius: 40px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    box-shadow: 0 24px 70px rgba(0, 183, 255, 0.28);
}

.kt-calling-voice-card h2 {
    margin: 20px 0 6px;
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.kt-calling-voice-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 750;
}

.kt-calling-video-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    position: relative;
}

.kt-video-panel {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

    .kt-video-panel video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        background: #020617;
    }

.kt-remote-video-panel {
    min-height: 0;
}

.kt-local-video-panel {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 220px;
    height: 150px;
    border-radius: 24px;
    z-index: 3;
}

.kt-video-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.kt-calling-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}

.kt-call-control-btn {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

    .kt-call-control-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .kt-call-control-btn.is-off {
        background: rgba(239, 68, 68, 0.92);
    }

.kt-call-end-btn {
    background: #ef4444;
    font-size: 28px;
}

    .kt-call-end-btn:hover {
        background: #dc2626;
    }

.kt-calling-hidden {
    display: none;
}

@keyframes ktCallPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(97, 87, 255, 0.42);
    }

    70% {
        box-shadow: 0 0 0 34px rgba(97, 87, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(97, 87, 255, 0);
    }
}

@media (max-width: 760px) {
    .kt-calling-page {
        height: calc(100dvh - 70px);
    }

    .kt-calling-shell {
        padding: 14px;
        gap: 12px;
    }

    .kt-calling-topbar h1 {
        font-size: 22px;
    }

    .kt-calling-back {
        min-height: 42px;
        padding: 0 12px;
        font-size: 13px;
    }

    .kt-local-video-panel {
        width: 120px;
        height: 170px;
        right: 12px;
        bottom: 12px;
        border-radius: 20px;
    }

    .kt-video-panel {
        border-radius: 24px;
    }

    .kt-call-control-btn {
        width: 56px;
        height: 56px;
        border-radius: 20px;
    }
}

/* Mic muted visual slash */
.kt-mic-btn {
    position: relative;
}

/* -----------------------------
   Clean microphone mute button
------------------------------ */

.kt-mic-btn {
    position: relative;
}

.kt-mic-icon-wrap {
    position: relative;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
}

.kt-mic-icon {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kt-mic-slash {
    position: absolute;
    left: 1px;
    top: 50%;
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: #ffffff;
    transform: translateY(-50%) rotate(-43deg);
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.kt-mic-btn.is-muted .kt-mic-slash {
    opacity: 1;
}

.kt-mic-btn.is-muted {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* -----------------------------
   Step 21: Bottom nav Find tab + mobile polish
------------------------------ */

.kt-bottom-nav {
    max-width: 520px;
}

.kt-bottom-nav-item {
    min-width: 0;
}

.kt-bottom-nav a span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Make topbar more compact on mobile */
@media (max-width: 520px) {
    .kt-topbar-inner {
        padding: 10px 14px;
        gap: 8px;
    }

    .kt-brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        font-size: 16px;
        flex: 0 0 auto;
    }

    .kt-brand-text {
        min-width: 0;
    }

    .kt-brand-name {
        font-size: 18px;
        line-height: 1.05;
    }

    .kt-brand-tagline {
        font-size: 11px;
        line-height: 1.25;
        max-width: 185px;
    }

    .kt-top-actions {
        gap: 6px;
        flex: 0 0 auto;
    }

        .kt-top-actions .btn,
        .kt-top-actions a,
        .kt-top-actions button {
            min-height: 42px;
            border-radius: 16px;
            padding-inline: 14px;
            font-size: 14px;
            font-weight: 850;
        }

    .kt-bottom-nav {
        width: calc(100% - 24px);
        max-width: none;
        bottom: calc(10px + env(safe-area-inset-bottom));
        border-radius: 24px;
        padding: 7px;
    }

        .kt-bottom-nav a {
            min-height: 54px;
            border-radius: 18px;
            font-size: 11px;
            gap: 4px;
        }

    .kt-bottom-nav-icon {
        font-size: 20px;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .kt-brand-tagline {
        display: none;
    }

    .kt-brand-name {
        font-size: 17px;
    }

    .kt-top-actions .btn,
    .kt-top-actions a,
    .kt-top-actions button {
        padding-inline: 11px;
        font-size: 13px;
    }
}


/* -----------------------------
   Step 22: Profile view page
------------------------------ */

.kt-profile-view-shell {
    padding: 8px 0 150px;
}

.kt-profile-view-card {
    width: min(100%, 760px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--kt-border);
    border-radius: 30px;
    box-shadow: var(--kt-shadow);
    overflow: hidden;
}

.kt-profile-view-cover {
    height: 120px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%), linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
}

.kt-profile-view-main {
    padding: 0 22px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: end;
    margin-top: -44px;
}

.kt-profile-view-avatar {
    width: 108px;
    height: 108px;
    border-radius: 34px;
    border: 5px solid #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 0;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 38px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(97, 87, 255, 0.24);
    cursor: pointer;
}

    .kt-profile-view-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-profile-view-title {
    min-width: 0;
    padding-bottom: 6px;
}

    .kt-profile-view-title h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.055em;
    }

    .kt-profile-view-title p {
        margin: 2px 0 10px;
        color: var(--kt-muted);
        font-size: 15px;
        font-weight: 800;
    }

.kt-profile-view-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kt-profile-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
}

    .kt-profile-pill.success {
        background: rgba(22, 163, 74, 0.12);
        color: #15803d;
    }

    .kt-profile-pill.warning {
        background: rgba(245, 158, 11, 0.14);
        color: #b45309;
    }

    .kt-profile-pill.online {
        background: rgba(97, 87, 255, 0.12);
        color: var(--kt-primary);
    }

    .kt-profile-pill.safety {
        background: rgba(0, 183, 255, 0.12);
        color: #0284c7;
    }

.kt-profile-view-actions {
    padding-bottom: 8px;
}

.kt-profile-edit-btn {
    min-height: 46px;
    border-radius: 16px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-weight: 950;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(97, 87, 255, 0.22);
}

    .kt-profile-edit-btn:hover {
        color: #fff;
    }

.kt-profile-view-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 22px 18px;
}

.kt-profile-info-box {
    border: 1px solid var(--kt-border);
    border-radius: 20px;
    background: #f8fafc;
    padding: 13px;
}

    .kt-profile-info-box span {
        display: block;
        color: var(--kt-muted);
        font-size: 12px;
        font-weight: 850;
        margin-bottom: 4px;
    }

    .kt-profile-info-box strong {
        font-size: 15px;
        font-weight: 950;
    }

.kt-profile-view-section {
    padding: 18px 22px;
    border-top: 1px solid var(--kt-border);
}

    .kt-profile-view-section h2 {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .kt-profile-view-section p {
        margin: 0;
        color: var(--kt-text);
        font-size: 15px;
        line-height: 1.55;
    }

.kt-profile-muted {
    color: var(--kt-muted) !important;
}

.kt-profile-language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .kt-profile-language-tags span {
        border-radius: 999px;
        padding: 9px 12px;
        background: rgba(97, 87, 255, 0.1);
        color: var(--kt-primary);
        font-size: 13px;
        font-weight: 900;
    }

    .kt-profile-language-tags.learning span {
        background: rgba(0, 183, 255, 0.1);
        color: #0284c7;
    }

@media (max-width: 620px) {
    .kt-profile-view-shell {
        padding: 4px 0 140px;
    }

    .kt-profile-view-card {
        border-radius: 24px;
    }

    .kt-profile-view-cover {
        height: 96px;
    }

    .kt-profile-view-main {
        padding: 0 16px 16px;
        grid-template-columns: auto 1fr;
        gap: 12px;
        align-items: end;
        margin-top: -38px;
    }

    .kt-profile-view-avatar {
        width: 88px;
        height: 88px;
        border-radius: 30px;
        font-size: 30px;
        border-width: 4px;
    }

    .kt-profile-view-title h1 {
        font-size: 24px;
    }

    .kt-profile-view-title p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .kt-profile-view-actions {
        grid-column: 1 / -1;
        padding-bottom: 0;
    }

    .kt-profile-edit-btn {
        width: 100%;
    }

    .kt-profile-view-info-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 14px;
    }

    .kt-profile-view-section {
        padding: 16px;
    }

        .kt-profile-view-section h2 {
            font-size: 17px;
        }

        .kt-profile-view-section p {
            font-size: 14px;
        }
}

/* -----------------------------
   Step 23: Compact edit profile page
------------------------------ */

.kt-edit-shell {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 0 14px 38px;
}

.kt-edit-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    min-height: 58px;
    margin: 0 -14px 14px;
    padding: 8px 14px;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.kt-edit-back {
    color: var(--kt-muted);
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.kt-edit-bar-title {
    text-align: center;
    color: var(--kt-text);
    font-weight: 950;
    font-size: 17px;
    letter-spacing: -0.03em;
}

.kt-edit-done {
    justify-self: end;
    border: none;
    min-height: 38px;
    border-radius: 14px;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-weight: 950;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.22);
}

.kt-edit-message {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.kt-edit-message-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.kt-edit-message strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.kt-edit-message span {
    display: block;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.kt-edit-message.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
}

    .kt-edit-message.error .kt-edit-message-icon {
        background: rgba(239, 68, 68, 0.14);
        color: #dc2626;
    }

.kt-edit-message.success {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.18);
}

    .kt-edit-message.success .kt-edit-message-icon {
        background: rgba(22, 163, 74, 0.14);
        color: #15803d;
    }

.kt-edit-form {
    display: grid;
    gap: 12px;
}

.kt-edit-section {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--kt-border);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

    .kt-edit-section h2 {
        margin: 0 0 14px;
        font-size: 18px;
        line-height: 1.15;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

.kt-edit-section-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

    .kt-edit-section-head h2 {
        margin-bottom: 4px;
    }

    .kt-edit-section-head p {
        margin: 0;
        color: var(--kt-muted);
        font-size: 13px;
        font-weight: 750;
        line-height: 1.35;
    }

.kt-edit-photo-section {
    padding: 14px;
}

.kt-edit-photo-wrap {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.kt-edit-avatar {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 32px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(97, 87, 255, 0.22);
}

    .kt-edit-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-edit-avatar-camera {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 2px solid #fff;
    font-size: 13px;
}

.kt-edit-file-input {
    display: none;
}

.kt-edit-photo-text h1 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.kt-edit-photo-text p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.kt-edit-field {
    display: grid;
    gap: 7px;
    margin-bottom: 13px;
}

    .kt-edit-field:last-child {
        margin-bottom: 0;
    }

    .kt-edit-field.compact {
        margin-bottom: 0;
    }

    .kt-edit-field label {
        color: var(--kt-text);
        font-size: 13px;
        font-weight: 950;
    }

.kt-edit-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 14px;
    background: #fff;
    color: var(--kt-text);
    font-size: 15px;
    font-weight: 750;
    outline: none;
}

    .kt-edit-input:focus {
        border-color: rgba(97, 87, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
    }

    .kt-edit-input.no-border {
        min-height: 48px;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

        .kt-edit-input.no-border:focus {
            box-shadow: none;
        }

.kt-edit-select {
    appearance: auto;
}

.kt-edit-textarea {
    min-height: 112px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
    line-height: 1.45;
}

.kt-edit-username-box {
    min-height: 50px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 14px;
    background: #fff;
}

    .kt-edit-username-box:focus-within {
        border-color: rgba(97, 87, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
    }

    .kt-edit-username-box span {
        color: var(--kt-muted);
        font-weight: 950;
    }

.kt-edit-help {
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 850;
}

.kt-edit-field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.kt-edit-toggle-grid {
    display: grid;
    gap: 10px;
    margin-top: 3px;
}

.kt-edit-toggle {
    min-height: 50px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 13px;
    background: #fff;
    cursor: pointer;
}

    .kt-edit-toggle input {
        display: none;
    }

    .kt-edit-toggle span {
        width: 42px;
        height: 24px;
        border-radius: 999px;
        background: #e5e7eb;
        position: relative;
        transition: 0.2s ease;
    }

        .kt-edit-toggle span::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #fff;
            box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18);
            transition: 0.2s ease;
        }

    .kt-edit-toggle input:checked + span {
        background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    }

        .kt-edit-toggle input:checked + span::after {
            transform: translateX(18px);
        }

    .kt-edit-toggle strong {
        font-size: 14px;
        font-weight: 900;
    }

.kt-edit-add-small {
    min-height: 36px;
    border: none;
    border-radius: 14px;
    padding: 0 12px;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    font-size: 13px;
    font-weight: 950;
}

.kt-edit-language-list {
    display: grid;
    gap: 10px;
}

.kt-edit-language-row {
    border: 1px solid var(--kt-border);
    border-radius: 18px;
    padding: 12px;
    background: #f8fafc;
}

.kt-edit-language-grid {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 10px;
}

.kt-edit-remove-language {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border: none;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 620px) {
    .kt-edit-shell {
        padding-inline: 10px;
    }

    .kt-edit-bar {
        margin-inline: -10px;
    }

    .kt-edit-section {
        border-radius: 20px;
        padding: 14px;
    }

    .kt-edit-language-grid {
        grid-template-columns: 1fr;
    }

    .kt-edit-avatar {
        width: 78px;
        height: 78px;
        border-radius: 25px;
    }

    .kt-edit-photo-wrap {
        gap: 12px;
    }

    .kt-edit-input {
        min-height: 48px;
        font-size: 14px;
    }

    .kt-edit-section h2 {
        font-size: 17px;
    }
}

/* -----------------------------
   Edit profile native-app top bar
------------------------------ */

.kt-edit-shell {
    padding-top: calc(68px + env(safe-area-inset-top));
}

.kt-edit-bar {
    position: fixed;
    top: env(safe-area-inset-top);
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 720px);
    z-index: 2000;
    display: grid;
    grid-template-columns: 82px 1fr 82px;
    align-items: center;
    min-height: 64px;
    margin: 0;
    padding: 10px 16px;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.kt-edit-back {
    justify-self: start;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    color: var(--kt-muted);
    text-decoration: none;
    font-weight: 950;
    font-size: 14px;
}

.kt-edit-bar-title {
    text-align: center;
    color: var(--kt-text);
    font-weight: 950;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.kt-edit-done {
    justify-self: end;
    min-height: 42px;
    border: none;
    border-radius: 16px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-weight: 950;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.22);
}

@media (max-width: 620px) {
    .kt-edit-shell {
        padding-top: calc(66px + env(safe-area-inset-top));
        padding-inline: 10px;
    }

    .kt-edit-bar {
        grid-template-columns: 74px 1fr 74px;
        min-height: 62px;
        padding-inline: 14px;
    }

    .kt-edit-bar-title {
        font-size: 17px;
    }

    .kt-edit-back,
    .kt-edit-done {
        font-size: 13px;
    }

    .kt-edit-done {
        min-height: 40px;
        border-radius: 15px;
        padding-inline: 14px;
    }
}

/* -----------------------------
   Step 24: Profile setup wizard
------------------------------ */

.kt-setup-shell {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: calc(70px + env(safe-area-inset-top)) 14px 36px;
}

.kt-setup-topbar {
    position: fixed;
    top: env(safe-area-inset-top);
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 720px);
    z-index: 2000;
    min-height: 66px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

    .kt-setup-topbar strong {
        display: block;
        color: var(--kt-text);
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .kt-setup-topbar span {
        display: block;
        color: var(--kt-muted);
        font-size: 12px;
        font-weight: 850;
        margin-top: 2px;
    }

.kt-setup-skip-info {
    border: none;
    min-height: 38px;
    border-radius: 14px;
    padding: 0 13px;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    font-size: 13px;
    font-weight: 950;
}

.kt-setup-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

    .kt-setup-progress div {
        height: 6px;
        border-radius: 999px;
        background: #e5e7eb;
    }

        .kt-setup-progress div.active {
            background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
        }

.kt-setup-message {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.kt-setup-message-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.kt-setup-message strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.kt-setup-message span {
    display: block;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.kt-setup-message.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
}

    .kt-setup-message.error .kt-setup-message-icon {
        background: rgba(239, 68, 68, 0.14);
        color: #dc2626;
    }

.kt-setup-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    box-shadow: var(--kt-shadow);
    overflow: hidden;
}

.kt-setup-step {
    display: none;
    padding: 18px;
}

    .kt-setup-step.active {
        display: block;
    }

.kt-setup-step-head {
    margin-bottom: 16px;
}

    .kt-setup-step-head h1 {
        margin: 0 0 5px;
        color: var(--kt-text);
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.055em;
    }

    .kt-setup-step-head p {
        margin: 0;
        color: var(--kt-muted);
        font-size: 14px;
        font-weight: 750;
        line-height: 1.4;
    }

.kt-setup-photo-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--kt-border);
    border-radius: 20px;
    background: #f8fafc;
}

.kt-setup-avatar {
    position: relative;
    width: 82px;
    height: 82px;
    border-radius: 27px;
    overflow: hidden;
    display: grid;
    place-items: center;
    margin: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 30px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(97, 87, 255, 0.22);
}

    .kt-setup-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-setup-avatar-camera {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    border: 2px solid #fff;
    font-size: 13px;
}

.kt-setup-file-input {
    display: none;
}

.kt-setup-photo-row strong {
    display: block;
    color: var(--kt-text);
    font-size: 16px;
    font-weight: 950;
    margin-bottom: 3px;
}

.kt-setup-photo-row p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.kt-setup-field {
    display: grid;
    gap: 7px;
    margin-bottom: 13px;
}

    .kt-setup-field label {
        color: var(--kt-text);
        font-size: 13px;
        font-weight: 950;
    }

.kt-setup-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 14px;
    background: #fff;
    color: var(--kt-text);
    font-size: 15px;
    font-weight: 750;
    outline: none;
}

    .kt-setup-input:focus {
        border-color: rgba(97, 87, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
    }

    .kt-setup-input.no-border {
        min-height: 48px;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

        .kt-setup-input.no-border:focus {
            box-shadow: none;
        }

.kt-setup-select {
    appearance: auto;
}

.kt-setup-textarea {
    min-height: 140px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
    line-height: 1.45;
}

.kt-setup-username-box {
    min-height: 50px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 14px;
    background: #fff;
}

    .kt-setup-username-box:focus-within {
        border-color: rgba(97, 87, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
    }

    .kt-setup-username-box span {
        color: var(--kt-muted);
        font-weight: 950;
    }

.kt-setup-help {
    color: var(--kt-muted);
    font-size: 12px;
    font-weight: 850;
}

.kt-setup-field-error {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.kt-setup-toggle-grid {
    display: grid;
    gap: 10px;
}

.kt-setup-toggle {
    min-height: 50px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 13px;
    background: #fff;
    cursor: pointer;
}

    .kt-setup-toggle input {
        display: none;
    }

    .kt-setup-toggle span {
        width: 42px;
        height: 24px;
        border-radius: 999px;
        background: #e5e7eb;
        position: relative;
        transition: 0.2s ease;
    }

        .kt-setup-toggle span::after {
            content: "";
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            background: #fff;
            box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18);
            transition: 0.2s ease;
        }

    .kt-setup-toggle input:checked + span {
        background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    }

        .kt-setup-toggle input:checked + span::after {
            transform: translateX(18px);
        }

    .kt-setup-toggle strong {
        font-size: 14px;
        font-weight: 900;
    }

.kt-setup-language-list {
    display: grid;
    gap: 12px;
}

.kt-setup-language-row {
    border: 1px solid var(--kt-border);
    border-radius: 20px;
    padding: 14px;
    background: #f8fafc;
}

.kt-setup-remove-language {
    width: 100%;
    min-height: 40px;
    border: none;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    font-size: 13px;
    font-weight: 950;
}

.kt-setup-add-language {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: none;
    border-radius: 17px;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    font-size: 14px;
    font-weight: 950;
}

.kt-setup-finish-card {
    display: grid;
    gap: 4px;
    padding: 15px;
    border-radius: 20px;
    background: rgba(97, 87, 255, 0.08);
    border: 1px solid rgba(97, 87, 255, 0.12);
}

    .kt-setup-finish-card strong {
        color: var(--kt-text);
        font-size: 15px;
        font-weight: 950;
    }

    .kt-setup-finish-card span {
        color: var(--kt-muted);
        font-size: 13px;
        font-weight: 750;
        line-height: 1.35;
    }

.kt-setup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--kt-border);
    background: #fff;
}

.kt-setup-back,
.kt-setup-next {
    min-height: 50px;
    border: none;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 950;
}

.kt-setup-back {
    background: #f1f5f9;
    color: var(--kt-muted);
}

.kt-setup-next {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.22);
}

@media (max-width: 620px) {
    .kt-setup-shell {
        padding-inline: 10px;
    }

    .kt-setup-topbar {
        min-height: 64px;
        padding-inline: 14px;
    }

    .kt-setup-card {
        border-radius: 22px;
    }

    .kt-setup-step {
        padding: 15px;
    }

    .kt-setup-step-head h1 {
        font-size: 22px;
    }

    .kt-setup-photo-row {
        padding: 12px;
        gap: 12px;
    }

    .kt-setup-avatar {
        width: 76px;
        height: 76px;
        border-radius: 25px;
    }

    .kt-setup-input {
        min-height: 48px;
        font-size: 14px;
    }

    .kt-setup-actions {
        padding: 12px;
    }
}

/* -----------------------------
   Step 25: Public user profile page
------------------------------ */

.kt-public-profile-shell {
    padding: 8px 0 150px;
}

.kt-public-profile-card {
    width: min(100%, 760px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--kt-border);
    border-radius: 30px;
    box-shadow: var(--kt-shadow);
    overflow: hidden;
}

.kt-public-profile-cover {
    height: 120px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%), linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
}

.kt-public-profile-main {
    padding: 0 22px 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: end;
    margin-top: -44px;
}

.kt-public-profile-avatar {
    width: 108px;
    height: 108px;
    border-radius: 34px;
    border: 5px solid #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 0;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 38px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(97, 87, 255, 0.24);
    cursor: pointer;
}

    .kt-public-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-public-profile-title {
    min-width: 0;
    padding-bottom: 6px;
}

    .kt-public-profile-title h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.055em;
    }

    .kt-public-profile-title p {
        margin: 2px 0 10px;
        color: var(--kt-muted);
        font-size: 15px;
        font-weight: 800;
    }

.kt-public-profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kt-profile-pill.muted {
    background: #f1f5f9;
    color: var(--kt-muted);
}

.kt-public-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 22px 18px;
}

.kt-public-action {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

    .kt-public-action.primary {
        background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
        color: #fff;
        box-shadow: 0 12px 26px rgba(97, 87, 255, 0.22);
    }

        .kt-public-action.primary:hover {
            color: #fff;
        }

    .kt-public-action.disabled {
        background: #f1f5f9;
        color: #94a3b8;
        cursor: not-allowed;
    }

.kt-public-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 22px 18px;
}

.kt-public-profile-section {
    padding: 18px 22px;
    border-top: 1px solid var(--kt-border);
}

    .kt-public-profile-section h2 {
        margin: 0 0 10px;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .kt-public-profile-section p {
        margin: 0;
        color: var(--kt-text);
        font-size: 15px;
        line-height: 1.55;
    }

@media (max-width: 620px) {
    .kt-public-profile-shell {
        padding: 4px 0 140px;
    }

    .kt-public-profile-card {
        border-radius: 24px;
    }

    .kt-public-profile-cover {
        height: 96px;
    }

    .kt-public-profile-main {
        padding: 0 16px 16px;
        grid-template-columns: auto 1fr;
        gap: 12px;
        align-items: end;
        margin-top: -38px;
    }

    .kt-public-profile-avatar {
        width: 88px;
        height: 88px;
        border-radius: 30px;
        font-size: 30px;
        border-width: 4px;
    }

    .kt-public-profile-title h1 {
        font-size: 24px;
    }

    .kt-public-profile-title p {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .kt-public-profile-actions {
        padding: 0 16px 16px;
        grid-template-columns: 1fr;
    }

    .kt-public-profile-info-grid {
        grid-template-columns: 1fr;
        padding: 0 16px 14px;
    }

    .kt-public-profile-section {
        padding: 16px;
    }

        .kt-public-profile-section h2 {
            font-size: 17px;
        }

        .kt-public-profile-section p {
            font-size: 14px;
        }
}


/* -----------------------------
   Improved Discover cards
------------------------------ */

.kt-discover-shell {
    padding: 8px 0 150px;
}

.kt-discover-hero {
    width: min(100%, 920px);
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--kt-shadow);
}

    .kt-discover-hero h1 {
        margin: 0 0 5px;
        color: var(--kt-text);
        font-size: 30px;
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: -0.06em;
    }

    .kt-discover-hero p {
        margin: 0;
        color: var(--kt-muted);
        font-size: 14px;
        line-height: 1.4;
        font-weight: 750;
    }

.kt-discover-mode-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.kt-discover-search-card {
    width: min(100%, 920px);
    margin: 0 auto 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--kt-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
}

.kt-discover-search-input-wrap {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    padding: 0 14px;
    background: #fff;
}

    .kt-discover-search-input-wrap:focus-within {
        border-color: rgba(97, 87, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
    }

    .kt-discover-search-input-wrap span {
        color: var(--kt-muted);
        font-size: 15px;
    }

    .kt-discover-search-input-wrap input {
        width: 100%;
        border: none;
        outline: none;
        background: transparent;
        color: var(--kt-text);
        font-size: 14px;
        font-weight: 750;
    }

.kt-discover-search-card button,
.kt-discover-clear-btn {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.kt-discover-search-card button {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.18);
}

.kt-discover-clear-btn {
    background: #f1f5f9;
    color: var(--kt-muted);
}

.kt-discover-top-message {
    width: min(100%, 920px);
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.kt-discover-top-message-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.kt-discover-top-message strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.kt-discover-top-message span {
    display: block;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.kt-discover-top-message.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
}

    .kt-discover-top-message.error .kt-discover-top-message-icon {
        background: rgba(239, 68, 68, 0.14);
        color: #dc2626;
    }

.kt-discover-grid {
    width: min(100%, 920px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kt-discover-user-card {
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    padding: 15px;
    overflow: hidden;
}

.kt-discover-user-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.kt-discover-avatar-link {
    text-decoration: none;
}

.kt-discover-avatar {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 23px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    box-shadow: 0 12px 24px rgba(97, 87, 255, 0.2);
}

    .kt-discover-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-discover-online-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #fff;
}

.kt-discover-user-info {
    min-width: 0;
}

.kt-discover-name-link {
    display: block;
    color: var(--kt-text);
    text-decoration: none;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .kt-discover-name-link:hover {
        color: var(--kt-primary);
    }

.kt-discover-username-link {
    display: block;
    margin-top: 3px;
    color: var(--kt-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kt-discover-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

    .kt-discover-status-row span {
        min-height: 25px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0 9px;
        background: #f1f5f9;
        color: var(--kt-muted);
        font-size: 11px;
        font-weight: 900;
    }

        .kt-discover-status-row span.online {
            background: rgba(22, 163, 74, 0.12);
            color: #15803d;
        }

        .kt-discover-status-row span.teen {
            background: rgba(0, 183, 255, 0.12);
            color: #0284c7;
        }

.kt-discover-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

    .kt-discover-meta-pills span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0 10px;
        background: rgba(97, 87, 255, 0.08);
        color: var(--kt-primary);
        font-size: 12px;
        font-weight: 900;
    }

.kt-discover-bio {
    min-height: 40px;
    margin: 0 0 12px;
    color: var(--kt-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .kt-discover-bio.muted {
        color: var(--kt-muted);
    }

.kt-discover-language-section {
    margin-top: 11px;
}

.kt-discover-language-title {
    margin-bottom: 7px;
}

    .kt-discover-language-title span {
        color: var(--kt-text);
        font-size: 13px;
        font-weight: 950;
    }

.kt-discover-muted-small {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
}

.kt-discover-language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .kt-discover-language-tags span {
        border-radius: 999px;
        padding: 7px 9px;
        background: rgba(97, 87, 255, 0.1);
        color: var(--kt-primary);
        font-size: 12px;
        font-weight: 900;
    }

    .kt-discover-language-tags.learning span {
        background: rgba(0, 183, 255, 0.1);
        color: #0284c7;
    }

.kt-discover-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 14px;
}

.kt-discover-view-btn,
.kt-discover-message-btn {
    width: 100%;
    min-height: 46px;
    border: none;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.kt-discover-view-btn {
    background: #f1f5f9;
    color: var(--kt-text);
}

    .kt-discover-view-btn:hover {
        color: var(--kt-primary);
    }

.kt-discover-message-form {
    margin: 0;
}

.kt-discover-message-btn {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.18);
}

.kt-discover-empty-card {
    width: min(100%, 520px);
    margin: 20px auto 0;
    padding: 28px 18px;
    text-align: center;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--kt-shadow);
}

.kt-discover-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.kt-discover-empty-card h2 {
    margin: 0 0 6px;
    color: var(--kt-text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-discover-empty-card p {
    margin: 0 0 12px;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 750;
}

.kt-discover-empty-card a {
    color: var(--kt-primary);
    font-weight: 950;
    text-decoration: none;
}

@media (max-width: 760px) {
    .kt-discover-shell {
        padding: 4px 0 140px;
    }

    .kt-discover-hero {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 16px;
    }

        .kt-discover-hero h1 {
            font-size: 26px;
        }

    .kt-discover-mode-pill {
        width: fit-content;
    }

    .kt-discover-search-card {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .kt-discover-grid {
        grid-template-columns: 1fr;
    }

    .kt-discover-user-card {
        border-radius: 24px;
        padding: 14px;
    }

    .kt-discover-avatar {
        width: 60px;
        height: 60px;
        border-radius: 21px;
    }

    .kt-discover-name-link {
        font-size: 17px;
    }

    .kt-discover-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .kt-discover-user-top {
        gap: 10px;
    }

    .kt-discover-avatar {
        width: 56px;
        height: 56px;
        border-radius: 20px;
    }

    .kt-discover-user-card {
        padding: 12px;
    }
}

/* -----------------------------
   Public profile page - improved mobile friendly design
------------------------------ */

.kt-public-profile-shell {
    padding: 8px 12px 150px;
}

.kt-public-profile-card {
    width: min(100%, 760px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    box-shadow: var(--kt-shadow);
    overflow: hidden;
}

.kt-public-profile-cover {
    height: 112px;
    background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(135deg, var(--kt-primary), #229cff);
}

.kt-public-profile-main {
    padding: 0 22px 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: end;
    margin-top: -42px;
}

.kt-public-profile-avatar {
    width: 104px;
    height: 104px;
    border-radius: 34px;
    border: 5px solid #fff;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 0;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 38px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(97, 87, 255, 0.24);
    cursor: pointer;
}

    .kt-public-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-public-profile-title {
    min-width: 0;
    padding-bottom: 4px;
}

    .kt-public-profile-title h1 {
        margin: 0;
        color: var(--kt-text);
        font-size: 30px;
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: -0.055em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kt-public-profile-title p {
        margin: 3px 0 10px;
        color: var(--kt-muted);
        font-size: 15px;
        font-weight: 850;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.kt-public-profile-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.kt-profile-pill.muted {
    background: #f1f5f9;
    color: var(--kt-muted);
}

.kt-public-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 22px 18px;
}

.kt-public-message-form {
    margin: 0;
}

    .kt-public-message-form .kt-public-action {
        width: 100%;
    }

.kt-public-action {
    min-height: 52px;
    border: none;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.kt-public-action-icon {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

    .kt-public-action-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.15;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.kt-public-action.primary {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    box-shadow: 0 12px 26px rgba(97, 87, 255, 0.22);
}

    .kt-public-action.primary:hover {
        color: #fff;
    }

.kt-public-action.disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.kt-public-profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 22px 18px;
}

.kt-public-profile-section {
    padding: 17px 22px;
    border-top: 1px solid var(--kt-border);
}

    .kt-public-profile-section h2 {
        margin: 0 0 10px;
        color: var(--kt-text);
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .kt-public-profile-section p {
        margin: 0;
        color: var(--kt-text);
        font-size: 15px;
        line-height: 1.55;
    }

@media (max-width: 620px) {
    .kt-public-profile-shell {
        padding: 4px 10px 138px;
    }

    .kt-public-profile-card {
        border-radius: 24px;
    }

    .kt-public-profile-cover {
        height: 86px;
    }

    .kt-public-profile-main {
        padding: 0 14px 13px;
        grid-template-columns: auto 1fr;
        gap: 11px;
        align-items: end;
        margin-top: -32px;
    }

    .kt-public-profile-avatar {
        width: 78px;
        height: 78px;
        border-radius: 26px;
        border-width: 4px;
        font-size: 28px;
        box-shadow: 0 12px 28px rgba(97, 87, 255, 0.2);
    }

    .kt-public-profile-title {
        padding-bottom: 2px;
    }

        .kt-public-profile-title h1 {
            font-size: 22px;
            letter-spacing: -0.045em;
        }

        .kt-public-profile-title p {
            margin: 2px 0 7px;
            font-size: 13px;
        }

    .kt-public-profile-status-row {
        gap: 5px;
    }

    .kt-public-profile-actions {
        padding: 0 14px 14px;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 7px;
    }

    .kt-public-action {
        min-height: 54px;
        border-radius: 17px;
        flex-direction: column;
        gap: 3px;
        font-size: 11px;
        line-height: 1;
    }

    .kt-public-action-icon {
        width: 22px;
        height: 22px;
    }

        .kt-public-action-icon svg {
            width: 22px;
            height: 22px;
            stroke-width: 2.25;
        }

    .kt-public-profile-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 0 14px 14px;
    }

    .kt-public-profile-section {
        padding: 15px 14px;
    }

        .kt-public-profile-section h2 {
            font-size: 17px;
            margin-bottom: 8px;
        }

        .kt-public-profile-section p {
            font-size: 14px;
            line-height: 1.5;
        }
}

@media (max-width: 380px) {
    .kt-public-profile-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .kt-public-profile-main {
        gap: 9px;
    }

    .kt-public-profile-avatar {
        width: 70px;
        height: 70px;
        border-radius: 24px;
        font-size: 25px;
    }

    .kt-public-profile-title h1 {
        font-size: 20px;
    }

    .kt-public-profile-title p {
        font-size: 12px;
    }

    .kt-public-profile-actions {
        gap: 6px;
    }

    .kt-public-action {
        min-height: 50px;
        border-radius: 15px;
        font-size: 10.5px;
    }
}

/* -----------------------------
   Find / Discover page - mobile friendly v2
------------------------------ */

.kt-find-shell {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 8px 12px 150px;
}

.kt-find-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(97, 87, 255, 0.12), transparent 32%), rgba(255, 255, 255, 0.97);
    box-shadow: var(--kt-shadow);
}

.kt-find-hero-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.kt-find-hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 12px 26px rgba(97, 87, 255, 0.22);
}

.kt-find-hero h1 {
    margin: 0 0 4px;
    color: var(--kt-text);
    font-size: 29px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.kt-find-hero p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;
}

.kt-find-mode-pill {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 13px;
    background: rgba(97, 87, 255, 0.1);
    color: var(--kt-primary);
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.kt-find-search-card {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid var(--kt-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.kt-find-search-box {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: center;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--kt-border);
    border-radius: 17px;
    background: #fff;
}

    .kt-find-search-box:focus-within {
        border-color: rgba(97, 87, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
    }

.kt-find-search-icon {
    font-size: 15px;
    color: var(--kt-muted);
}

.kt-find-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--kt-text);
    font-size: 14px;
    font-weight: 750;
}

.kt-find-search-btn,
.kt-find-clear-btn {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.kt-find-search-btn {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.18);
}

.kt-find-clear-btn {
    background: #f1f5f9;
    color: var(--kt-muted);
}

.kt-find-alert {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid transparent;
}

.kt-find-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-weight: 950;
}

.kt-find-alert strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.kt-find-alert span {
    display: block;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.kt-find-alert.error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.18);
}

    .kt-find-alert.error .kt-find-alert-icon {
        background: rgba(239, 68, 68, 0.14);
        color: #dc2626;
    }

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

.kt-find-card {
    position: relative;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

    .kt-find-card::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 70px;
        background: linear-gradient(135deg, rgba(97, 87, 255, 0.12), rgba(25, 167, 255, 0.1));
        pointer-events: none;
    }

.kt-find-card-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
}

.kt-find-avatar {
    position: relative;
    width: 66px;
    height: 66px;
    border-radius: 23px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 24px;
    font-weight: 950;
    border: 3px solid #fff;
    box-shadow: 0 12px 24px rgba(97, 87, 255, 0.2);
}

    .kt-find-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-find-online-dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #fff;
}

.kt-find-person {
    min-width: 0;
}

    .kt-find-person h2 {
        margin: 0;
        color: var(--kt-text);
        font-size: 18px;
        line-height: 1.1;
        font-weight: 950;
        letter-spacing: -0.04em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kt-find-person p {
        margin: 3px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
        font-weight: 850;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.kt-find-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 7px;
}

    .kt-find-status-row span {
        min-height: 24px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0 9px;
        background: #f1f5f9;
        color: var(--kt-muted);
        font-size: 11px;
        font-weight: 900;
    }

        .kt-find-status-row span.online {
            background: rgba(22, 163, 74, 0.12);
            color: #15803d;
        }

        .kt-find-status-row span.teen {
            background: rgba(2, 132, 199, 0.12);
            color: #0284c7;
        }

.kt-find-meta-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

    .kt-find-meta-row span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        border-radius: 999px;
        padding: 0 10px;
        background: rgba(97, 87, 255, 0.08);
        color: var(--kt-primary);
        font-size: 12px;
        font-weight: 900;
    }

.kt-find-bio {
    min-height: 40px;
    margin: 0 0 12px;
    color: var(--kt-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 650;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .kt-find-bio.muted {
        color: var(--kt-muted);
    }

.kt-find-language-block {
    margin-top: 10px;
}

.kt-find-language-title {
    margin-bottom: 7px;
}

    .kt-find-language-title span {
        color: var(--kt-text);
        font-size: 13px;
        font-weight: 950;
    }

.kt-find-muted-small {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
}

.kt-find-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .kt-find-tags span {
        max-width: 100%;
        border-radius: 999px;
        padding: 7px 9px;
        background: rgba(97, 87, 255, 0.1);
        color: var(--kt-primary);
        font-size: 12px;
        line-height: 1;
        font-weight: 900;
    }

    .kt-find-tags.learning span {
        background: rgba(2, 132, 199, 0.1);
        color: #0284c7;
    }

.kt-find-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 14px;
}

.kt-find-message-form {
    margin: 0;
}

.kt-find-action {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 17px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

.kt-find-action-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

    .kt-find-action-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.15;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.kt-find-action.view {
    background: #f1f5f9;
    color: var(--kt-text);
}

    .kt-find-action.view:hover {
        color: var(--kt-primary);
    }

.kt-find-action.message {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.18);
}

.kt-find-empty {
    width: min(100%, 520px);
    margin: 18px auto 0;
    padding: 28px 18px;
    text-align: center;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--kt-shadow);
}

.kt-find-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.kt-find-empty h2 {
    margin: 0 0 6px;
    color: var(--kt-text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-find-empty p {
    margin: 0 0 12px;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 750;
}

.kt-find-empty a {
    color: var(--kt-primary);
    font-weight: 950;
    text-decoration: none;
}

@media (max-width: 760px) {
    .kt-find-shell {
        padding: 4px 10px 140px;
    }

    .kt-find-hero {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 14px;
        gap: 12px;
    }

    .kt-find-hero-main {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }

    .kt-find-hero-icon {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        font-size: 20px;
    }

    .kt-find-hero h1 {
        font-size: 25px;
    }

    .kt-find-hero p {
        font-size: 13px;
    }

    .kt-find-mode-pill {
        width: fit-content;
        min-height: 34px;
        font-size: 12px;
    }

    .kt-find-search-card {
        grid-template-columns: 1fr;
        border-radius: 22px;
        padding: 9px;
    }

    .kt-find-search-box,
    .kt-find-search-btn,
    .kt-find-clear-btn {
        min-height: 46px;
        border-radius: 16px;
    }

    .kt-find-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kt-find-card {
        border-radius: 24px;
        padding: 13px;
    }

        .kt-find-card::before {
            height: 62px;
        }

    .kt-find-card-head {
        gap: 10px;
    }

    .kt-find-avatar {
        width: 58px;
        height: 58px;
        border-radius: 21px;
        font-size: 21px;
    }

    .kt-find-person h2 {
        font-size: 17px;
    }

    .kt-find-person p {
        font-size: 12.5px;
    }

    .kt-find-meta-row span {
        min-height: 26px;
        font-size: 11.5px;
    }

    .kt-find-bio {
        min-height: auto;
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    .kt-find-language-block {
        margin-top: 9px;
    }

    .kt-find-tags span {
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .kt-find-actions {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 13px;
    }

    .kt-find-action {
        min-height: 46px;
        border-radius: 16px;
        font-size: 13px;
    }

    .kt-find-action-icon {
        width: 21px;
        height: 21px;
    }

        .kt-find-action-icon svg {
            width: 21px;
            height: 21px;
        }
}

@media (max-width: 380px) {
    .kt-find-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .kt-find-hero {
        padding: 12px;
    }

    .kt-find-hero-icon {
        width: 40px;
        height: 40px;
        border-radius: 15px;
    }

    .kt-find-hero h1 {
        font-size: 23px;
    }

    .kt-find-card {
        padding: 12px;
    }

    .kt-find-avatar {
        width: 54px;
        height: 54px;
        border-radius: 19px;
    }

    .kt-find-actions {
        gap: 7px;
    }

    .kt-find-action {
        min-height: 44px;
        font-size: 12px;
    }
}

/* -----------------------------
   Step 28-B: Block / Unblock UI
------------------------------ */

.kt-profile-secondary-btn {
    min-height: 44px;
    border-radius: 16px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: var(--kt-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

    .kt-profile-secondary-btn:hover {
        color: var(--kt-primary);
    }

.kt-profile-pill.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.kt-profile-safety-alert {
    margin: 0 22px 14px;
    padding: 12px 14px;
    border-radius: 17px;
    background: rgba(97, 87, 255, 0.09);
    color: var(--kt-primary);
    font-size: 13px;
    font-weight: 900;
}

.kt-public-blocked-banner {
    margin: 0 22px 16px;
    padding: 13px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 11px;
    align-items: center;
    border-radius: 19px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
}

.kt-public-blocked-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(239, 68, 68, 0.13);
}

.kt-public-blocked-banner strong {
    display: block;
    color: #dc2626;
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.kt-public-blocked-banner p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
}

.kt-public-profile-actions.single {
    grid-template-columns: 1fr;
}

.kt-public-safety-section {
    margin: 0 22px 18px;
    padding-top: 2px;
}

    .kt-public-safety-section form {
        margin: 0;
    }

.kt-public-block-btn {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 17px;
    background: rgba(239, 68, 68, 0.07);
    color: #dc2626;
    font-size: 14px;
    font-weight: 950;
}

    .kt-public-block-btn:hover {
        background: rgba(239, 68, 68, 0.11);
    }

/* Blocked users page */

.kt-blocked-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 8px 12px 150px;
}

.kt-blocked-hero {
    margin-bottom: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--kt-shadow);
}

    .kt-blocked-hero h1 {
        margin: 0 0 4px;
        color: var(--kt-text);
        font-size: 28px;
        font-weight: 950;
        letter-spacing: -0.055em;
    }

    .kt-blocked-hero p {
        margin: 0;
        color: var(--kt-muted);
        font-size: 14px;
        line-height: 1.4;
        font-weight: 750;
    }

.kt-blocked-back-btn {
    min-height: 40px;
    border-radius: 15px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: var(--kt-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
}

.kt-blocked-empty {
    padding: 28px 18px;
    text-align: center;
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--kt-shadow);
}

.kt-blocked-empty-icon {
    font-size: 34px;
    margin-bottom: 8px;
}

.kt-blocked-empty h2 {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-blocked-empty p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 750;
}

.kt-blocked-list {
    display: grid;
    gap: 10px;
}

.kt-blocked-card {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.kt-blocked-person {
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.kt-blocked-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 22px;
    font-weight: 950;
}

    .kt-blocked-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-blocked-person h2 {
    margin: 0;
    color: var(--kt-text);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.kt-blocked-person p {
    margin: 2px 0 3px;
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 850;
}

.kt-blocked-person span {
    display: inline-flex;
    margin-right: 6px;
    color: var(--kt-primary);
    font-size: 12px;
    font-weight: 900;
}

.kt-blocked-person small {
    display: block;
    color: var(--kt-muted);
    font-size: 12px;
    font-weight: 750;
}

.kt-blocked-card form {
    margin: 0;
}

.kt-blocked-unblock-btn {
    min-height: 42px;
    border: none;
    border-radius: 15px;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

@media (max-width: 620px) {
    .kt-profile-safety-alert {
        margin: 0 14px 12px;
    }

    .kt-public-blocked-banner {
        margin: 0 14px 14px;
    }

    .kt-public-safety-section {
        margin: 0 14px 14px;
    }

    .kt-blocked-shell {
        padding: 4px 10px 140px;
    }

    .kt-blocked-hero {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 14px;
    }

        .kt-blocked-hero h1 {
            font-size: 24px;
        }

    .kt-blocked-card {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .kt-blocked-unblock-btn {
        width: 100%;
    }
}
/* -----------------------------
   Nice confirmation modal
------------------------------ */

body.kt-modal-open {
    overflow: hidden;
}

.kt-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .kt-confirm-modal.is-open {
        display: flex;
    }

.kt-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.kt-confirm-modal-card {
    position: relative;
    width: min(100%, 390px);
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: ktConfirmPop 0.18s ease-out;
}

.kt-confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.kt-confirm-modal.primary .kt-confirm-icon {
    background: rgba(97, 87, 255, 0.11);
}

.kt-confirm-modal.danger .kt-confirm-icon {
    background: rgba(239, 68, 68, 0.11);
}

.kt-confirm-modal-card h2 {
    margin: 0 0 8px;
    color: var(--kt-text);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-confirm-modal-card p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
}

.kt-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
}

.kt-confirm-cancel,
.kt-confirm-submit {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 950;
}

.kt-confirm-cancel {
    background: #f1f5f9;
    color: var(--kt-text);
}

.kt-confirm-submit {
    color: #fff;
}

.kt-confirm-modal.primary .kt-confirm-submit {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
}

.kt-confirm-modal.danger .kt-confirm-submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes ktConfirmPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 420px) {
    .kt-confirm-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .kt-confirm-modal-card {
        width: 100%;
        border-radius: 26px;
        padding: 20px;
    }

    .kt-confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Step 28 confirmation modal + safer bottom block section
------------------------------ */

.kt-public-safety-card {
    background: rgba(248, 250, 252, 0.78);
}

.kt-public-safety-head h2 {
    margin-bottom: 4px;
}

.kt-public-safety-head p {
    color: var(--kt-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.kt-public-safety-card form {
    margin: 14px 0 0;
}

.kt-public-block-btn,
.kt-public-unblock-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 950;
}

.kt-public-block-btn {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.07);
    color: #dc2626;
}

    .kt-public-block-btn:hover {
        background: rgba(239, 68, 68, 0.12);
    }

.kt-public-unblock-btn {
    border: none;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
}

body.kt-modal-open {
    overflow: hidden;
}

.kt-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .kt-confirm-modal.is-open {
        display: flex;
    }

.kt-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.kt-confirm-modal-card {
    position: relative;
    width: min(100%, 390px);
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: ktConfirmPop 0.18s ease-out;
}

.kt-confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.kt-confirm-modal.primary .kt-confirm-icon {
    background: rgba(97, 87, 255, 0.11);
}

.kt-confirm-modal.danger .kt-confirm-icon {
    background: rgba(239, 68, 68, 0.11);
}

.kt-confirm-modal-card h2 {
    margin: 0 0 8px;
    color: var(--kt-text);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-confirm-modal-card p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
}

.kt-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
}

.kt-confirm-cancel,
.kt-confirm-submit {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 950;
}

.kt-confirm-cancel {
    background: #f1f5f9;
    color: var(--kt-text);
}

.kt-confirm-submit {
    color: #fff;
}

.kt-confirm-modal.primary .kt-confirm-submit {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
}

.kt-confirm-modal.danger .kt-confirm-submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes ktConfirmPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 420px) {
    .kt-confirm-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .kt-confirm-modal-card {
        width: 100%;
        border-radius: 26px;
        padding: 20px;
    }

    .kt-confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------
   Step 28-D: Block handling in chat thread
------------------------------ */

.kt-chat-peer-title-link {
    color: inherit;
    text-decoration: none;
}

    .kt-chat-peer-title-link:hover h1 {
        color: var(--kt-primary);
    }

.kt-chat-call-btn.disabled,
.kt-chat-call-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(1);
}

.kt-chat-block-alert {
    margin: 10px 14px 0;
    padding: 11px 13px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
    color: #dc2626;
    font-size: 13px;
    font-weight: 900;
}

.kt-chat-block-banner {
    margin: 10px 14px 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 11px;
    align-items: start;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
}

    .kt-chat-block-banner.muted {
        background: rgba(100, 116, 139, 0.08);
        border-color: rgba(100, 116, 139, 0.16);
    }

.kt-chat-block-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.75);
}

.kt-chat-block-banner strong {
    display: block;
    color: var(--kt-text);
    font-size: 14px;
    font-weight: 950;
    margin-bottom: 2px;
}

.kt-chat-block-banner p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
}

.kt-chat-unblock-form {
    margin: 10px 0 0;
}

    .kt-chat-unblock-form button {
        min-height: 38px;
        border: none;
        border-radius: 14px;
        padding: 0 14px;
        background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
        color: #fff;
        font-size: 13px;
        font-weight: 950;
    }

.kt-message-compose.disabled {
    min-height: 64px;
    display: grid;
    place-items: center;
    background: rgba(248, 250, 252, 0.96);
}

.kt-message-disabled-text {
    width: 100%;
    min-height: 46px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 900;
}
/* -----------------------------
   Step 28-E: Chat list mobile polish + blocked badge
------------------------------ */

.kt-chat-list-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 8px 12px 150px;
}

.kt-chat-list-hero {
    margin-bottom: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--kt-shadow);
}

    .kt-chat-list-hero h1 {
        margin: 0 0 4px;
        color: var(--kt-text);
        font-size: 28px;
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: -0.055em;
    }

    .kt-chat-list-hero p {
        margin: 0;
        color: var(--kt-muted);
        font-size: 14px;
        line-height: 1.4;
        font-weight: 750;
    }

.kt-chat-find-btn {
    min-height: 42px;
    border-radius: 16px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

    .kt-chat-find-btn:hover {
        color: #fff;
    }

.kt-chat-list {
    display: grid;
    gap: 10px;
}

.kt-chat-list-item {
    position: relative;
    min-height: 86px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

    .kt-chat-list-item:hover {
        color: inherit;
        transform: translateY(-1px);
    }

    .kt-chat-list-item.is-blocked {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.045), rgba(255, 255, 255, 0.97)), rgba(255, 255, 255, 0.97);
    }

.kt-chat-list-avatar {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(97, 87, 255, 0.16);
}

    .kt-chat-list-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-chat-block-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 12px;
    font-style: normal;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.kt-chat-list-main {
    min-width: 0;
}

.kt-chat-list-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
    margin-bottom: 5px;
}

.kt-chat-list-name-wrap {
    min-width: 0;
}

    .kt-chat-list-name-wrap h2 {
        margin: 0;
        color: var(--kt-text);
        font-size: 17px;
        line-height: 1.1;
        font-weight: 950;
        letter-spacing: -0.035em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kt-chat-list-name-wrap small {
        display: block;
        margin-top: 2px;
        color: var(--kt-muted);
        font-size: 12px;
        font-weight: 850;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.kt-chat-list-top span[data-chat-time] {
    color: var(--kt-muted);
    font-size: 11.5px;
    font-weight: 850;
    white-space: nowrap;
}

.kt-chat-list-bottom {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

    .kt-chat-list-bottom p {
        flex: 1;
        min-width: 0;
        margin: 0;
        color: var(--kt-muted);
        font-size: 13px;
        line-height: 1.35;
        font-weight: 750;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.kt-chat-list-badge {
    flex: 0 0 auto;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 950;
}

    .kt-chat-list-badge.blocked {
        background: rgba(239, 68, 68, 0.11);
        color: #dc2626;
    }

    .kt-chat-list-badge.locked {
        background: rgba(100, 116, 139, 0.12);
        color: #64748b;
    }

.kt-chat-empty-card {
    padding: 30px 18px;
    text-align: center;
    border: 1px solid var(--kt-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--kt-shadow);
}

.kt-chat-empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.kt-chat-empty-card h2 {
    margin: 0 0 6px;
    color: var(--kt-text);
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-chat-empty-card p {
    margin: 0 0 14px;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 750;
}

.kt-chat-empty-action {
    min-height: 46px;
    border-radius: 17px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 950;
}

    .kt-chat-empty-action:hover {
        color: #fff;
    }

@media (max-width: 620px) {
    .kt-chat-list-shell {
        padding: 4px 10px 140px;
    }

    .kt-chat-list-hero {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 14px;
    }

        .kt-chat-list-hero h1 {
            font-size: 25px;
        }

    .kt-chat-find-btn {
        width: fit-content;
    }

    .kt-chat-list-item {
        min-height: 78px;
        grid-template-columns: auto 1fr auto;
        gap: 10px;
        border-radius: 22px;
        padding: 11px;
    }

    .kt-chat-list-avatar {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        font-size: 20px;
    }

    .kt-chat-list-name-wrap h2 {
        font-size: 16px;
    }

    .kt-chat-list-bottom p {
        font-size: 12.5px;
    }

    .kt-chat-list-badge {
        display: none;
    }
}

@media (max-width: 380px) {
    .kt-chat-list-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .kt-chat-list-item {
        gap: 9px;
        padding: 10px;
    }

    .kt-chat-list-avatar {
        width: 48px;
        height: 48px;
        border-radius: 17px;
    }

    .kt-chat-list-top {
        gap: 6px;
    }

        .kt-chat-list-top span[data-chat-time] {
            font-size: 10.5px;
        }
}

/* -----------------------------
   Fix: Chat unblock banner + custom confirm modal
------------------------------ */

.kt-chat-block-banner {
    margin: 14px 14px 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 11px;
    align-items: start;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
    overflow: visible;
}

    .kt-chat-block-banner.muted {
        background: rgba(100, 116, 139, 0.08);
        border-color: rgba(100, 116, 139, 0.16);
    }

.kt-chat-block-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

.kt-chat-block-text {
    min-width: 0;
}

.kt-chat-block-banner strong {
    display: block;
    color: var(--kt-text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 950;
    margin-bottom: 3px;
}

.kt-chat-block-banner p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
}

.kt-chat-block-action-row {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-left: 53px;
}

.kt-chat-unblock-form {
    margin: 0;
}

.kt-chat-unblock-btn {
    min-height: 42px;
    border: none;
    border-radius: 15px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(97, 87, 255, 0.18);
}

    .kt-chat-unblock-btn:hover {
        color: #fff;
        transform: translateY(-1px);
    }

body.kt-modal-open {
    overflow: hidden;
}

.kt-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .kt-confirm-modal.is-open {
        display: flex;
    }

.kt-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.kt-confirm-modal-card {
    position: relative;
    width: min(100%, 390px);
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: ktConfirmPop 0.18s ease-out;
}

.kt-confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.kt-confirm-modal.primary .kt-confirm-icon {
    background: rgba(97, 87, 255, 0.11);
}

.kt-confirm-modal.danger .kt-confirm-icon {
    background: rgba(239, 68, 68, 0.11);
}

.kt-confirm-modal-card h2 {
    margin: 0 0 8px;
    color: var(--kt-text);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-confirm-modal-card p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
}

.kt-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
}

.kt-confirm-cancel,
.kt-confirm-submit {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 950;
}

.kt-confirm-cancel {
    background: #f1f5f9;
    color: var(--kt-text);
}

.kt-confirm-submit {
    color: #fff;
}

.kt-confirm-modal.primary .kt-confirm-submit {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
}

.kt-confirm-modal.danger .kt-confirm-submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes ktConfirmPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 620px) {
    .kt-chat-block-banner {
        margin: 10px 10px 0;
        grid-template-columns: 38px 1fr;
        gap: 10px;
        padding: 12px;
        border-radius: 18px;
    }

    .kt-chat-block-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .kt-chat-block-action-row {
        padding-left: 48px;
    }

    .kt-chat-unblock-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .kt-confirm-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .kt-confirm-modal-card {
        width: 100%;
        border-radius: 26px;
        padding: 20px;
    }

    .kt-confirm-actions {
        grid-template-columns: 1fr;
    }
}


/* -----------------------------
   Final mobile fix: full-screen chat thread
------------------------------ */

.kt-chat-page {
    background: #f8fafc;
}

.kt-chat-thread-shell {
    width: min(100%, 760px);
    height: 100dvh;
    margin: 0 auto;
    padding: 10px;
    display: flex;
}

.kt-chat-thread-card {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--kt-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--kt-shadow);
}

.kt-chat-thread-header {
    flex: 0 0 auto;
    min-height: 92px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--kt-border);
    background: rgba(255, 255, 255, 0.98);
}

.kt-chat-header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kt-chat-back {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--kt-border);
    color: var(--kt-text);
    text-decoration: none;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
}

.kt-chat-peer-avatar {
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(97, 87, 255, 0.18);
}

    .kt-chat-peer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-chat-peer-info {
    min-width: 0;
}

    .kt-chat-peer-info h1 {
        max-width: 360px;
        margin: 0;
        color: var(--kt-text);
        font-size: 22px;
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: -0.05em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kt-chat-peer-info p {
        max-width: 360px;
        margin: 3px 0 0;
        color: var(--kt-muted);
        font-size: 13px;
        line-height: 1.2;
        font-weight: 850;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.kt-chat-peer-title-link {
    color: inherit;
    text-decoration: none;
}

    .kt-chat-peer-title-link:hover h1 {
        color: var(--kt-primary);
    }

.kt-chat-connection-status {
    display: inline-flex;
    margin-top: 4px;
    color: var(--kt-primary);
    font-size: 12px;
    font-weight: 950;
}

.kt-chat-header-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 9px;
}

.kt-chat-call-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--kt-border);
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

    .kt-chat-call-btn.disabled,
    .kt-chat-call-btn:disabled {
        opacity: 0.38;
        cursor: not-allowed;
        filter: grayscale(1);
    }

/* Compact block banner */
.kt-chat-block-alert {
    flex: 0 0 auto;
    margin: 10px 12px 0;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.16);
    color: #dc2626;
    font-size: 13px;
    font-weight: 900;
}

.kt-chat-block-banner {
    flex: 0 0 auto;
    margin: 10px 12px 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 11px;
    align-items: center;
    border-radius: 20px;
    background: rgba(239, 68, 68, 0.075);
    border: 1px solid rgba(239, 68, 68, 0.16);
    overflow: visible;
    height: auto;
    max-height: none;
}

    .kt-chat-block-banner.muted {
        grid-template-columns: 42px 1fr;
        background: rgba(100, 116, 139, 0.08);
        border-color: rgba(100, 116, 139, 0.16);
    }

.kt-chat-block-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.kt-chat-block-text {
    min-width: 0;
}

.kt-chat-block-banner strong {
    display: block;
    color: var(--kt-text);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 950;
    margin: 0 0 3px;
}

.kt-chat-block-banner p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 750;
}

.kt-chat-unblock-form {
    margin: 0;
}

.kt-chat-unblock-btn {
    min-height: 40px;
    border: none;
    border-radius: 15px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(97, 87, 255, 0.18);
}

/* Message area must flex correctly */
.kt-message-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 18px;
    background: radial-gradient(circle at top left, rgba(97, 87, 255, 0.06), transparent 28%), #f8fafc;
}

.kt-message-row {
    display: flex;
    margin-bottom: 10px;
}

    .kt-message-row.mine {
        justify-content: flex-end;
    }

    .kt-message-row.theirs {
        justify-content: flex-start;
    }

.kt-message-bubble {
    max-width: min(72%, 520px);
    padding: 11px 13px;
    border-radius: 18px;
    background: #fff;
    color: var(--kt-text);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.kt-message-row.mine .kt-message-bubble {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
}

.kt-message-bubble p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;
}

.kt-message-meta {
    margin-top: 7px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    font-size: 11px;
    font-weight: 850;
    opacity: 0.78;
}

.kt-message-compose {
    flex: 0 0 auto;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-top: 1px solid var(--kt-border);
    background: rgba(255, 255, 255, 0.98);
}

    .kt-message-compose textarea {
        width: 100%;
        min-height: 48px;
        max-height: 120px;
        resize: none;
        border: none;
        outline: none;
        border-radius: 18px;
        padding: 14px 15px;
        background: #f1f5f9;
        color: var(--kt-text);
        font-size: 14px;
        font-weight: 800;
    }

    .kt-message-compose button {
        min-width: 82px;
        min-height: 48px;
        border: none;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
        color: #fff;
        font-size: 14px;
        font-weight: 950;
    }

    .kt-message-compose.disabled {
        grid-template-columns: 1fr;
        padding: 12px;
    }

.kt-message-disabled-text {
    min-height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 900;
}

/* Modal */
body.kt-modal-open {
    overflow: hidden;
}

.kt-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .kt-confirm-modal.is-open {
        display: flex;
    }

.kt-confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.kt-confirm-modal-card {
    position: relative;
    width: min(100%, 390px);
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: ktConfirmPop 0.18s ease-out;
}

.kt-confirm-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    font-size: 26px;
}

.kt-confirm-modal.primary .kt-confirm-icon {
    background: rgba(97, 87, 255, 0.11);
}

.kt-confirm-modal.danger .kt-confirm-icon {
    background: rgba(239, 68, 68, 0.11);
}

.kt-confirm-modal-card h2 {
    margin: 0 0 8px;
    color: var(--kt-text);
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.kt-confirm-modal-card p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 750;
}

.kt-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 18px;
}

.kt-confirm-cancel,
.kt-confirm-submit {
    min-height: 48px;
    border: none;
    border-radius: 17px;
    font-size: 14px;
    font-weight: 950;
}

.kt-confirm-cancel {
    background: #f1f5f9;
    color: var(--kt-text);
}

.kt-confirm-submit {
    color: #fff;
}

.kt-confirm-modal.primary .kt-confirm-submit {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
}

.kt-confirm-modal.danger .kt-confirm-submit {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes ktConfirmPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile chat thread */
@media (max-width: 620px) {
    .kt-chat-thread-shell {
        width: 100%;
        height: 100dvh;
        padding: 0;
    }

    .kt-chat-thread-card {
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .kt-chat-thread-header {
        min-height: 82px;
        padding: 10px 12px;
        gap: 8px;
    }

    .kt-chat-header-left {
        gap: 9px;
        min-width: 0;
        flex: 1;
    }

    .kt-chat-back {
        width: 42px;
        height: 42px;
        border-radius: 16px;
        font-size: 30px;
    }

    .kt-chat-peer-avatar {
        width: 54px;
        height: 54px;
        border-radius: 19px;
        font-size: 23px;
    }

    .kt-chat-peer-info h1 {
        max-width: 150px;
        font-size: 19px;
    }

    .kt-chat-peer-info p {
        max-width: 150px;
        font-size: 12px;
    }

    .kt-chat-connection-status {
        font-size: 11.5px;
        margin-top: 3px;
    }

    .kt-chat-header-actions {
        gap: 6px;
    }

    .kt-chat-call-btn {
        width: 42px;
        height: 42px;
        border-radius: 16px;
        font-size: 18px;
    }

    .kt-chat-block-banner {
        margin: 8px 10px 0;
        padding: 10px;
        grid-template-columns: 34px 1fr;
        gap: 9px;
        align-items: start;
        border-radius: 18px;
    }

        .kt-chat-block-banner.muted {
            grid-template-columns: 34px 1fr;
        }

    .kt-chat-block-icon {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        font-size: 15px;
    }

    .kt-chat-block-banner strong {
        font-size: 13.5px;
    }

    .kt-chat-block-banner p {
        font-size: 12.5px;
    }

    .kt-chat-unblock-form {
        grid-column: 1 / -1;
        margin-top: 8px;
        padding-left: 43px;
    }

    .kt-chat-unblock-btn {
        width: 100%;
        min-height: 38px;
        border-radius: 14px;
        font-size: 12.5px;
    }

    .kt-message-list {
        padding: 12px 10px;
    }

    .kt-message-bubble {
        max-width: 82%;
        padding: 10px 12px;
        border-radius: 17px;
    }

        .kt-message-bubble p {
            font-size: 13.5px;
        }

    .kt-message-compose {
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

        .kt-message-compose textarea {
            min-height: 46px;
            border-radius: 17px;
            padding: 13px 14px;
        }

        .kt-message-compose button {
            min-width: 72px;
            min-height: 46px;
            border-radius: 17px;
        }
}

@media (max-width: 420px) {
    .kt-chat-peer-info h1,
    .kt-chat-peer-info p {
        max-width: 120px;
    }

    .kt-confirm-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .kt-confirm-modal-card {
        width: 100%;
        border-radius: 26px;
        padding: 20px;
    }

    .kt-confirm-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .kt-chat-thread-header {
        padding: 9px;
    }

    .kt-chat-back {
        width: 39px;
        height: 39px;
    }

    .kt-chat-peer-avatar {
        width: 50px;
        height: 50px;
    }

    .kt-chat-call-btn {
        width: 39px;
        height: 39px;
    }

    .kt-chat-peer-info h1,
    .kt-chat-peer-info p {
        max-width: 105px;
    }
}

/* =========================================================
   FINAL OVERRIDE — Chat thread true full screen
   Put this at the VERY BOTTOM of khalidtalk-app.css
   ========================================================= */

body.kt-chat-page {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f8fafc !important;
}

    /* Hide normal app chrome on chat thread */
    body.kt-chat-page .kt-topbar,
    body.kt-chat-page .kt-bottom-nav {
        display: none !important;
    }

    /* Remove layout spacing from app shell/main */
    body.kt-chat-page .kt-app-shell {
        width: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    body.kt-chat-page .kt-main {
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Main chat container fills full visible page */
    body.kt-chat-page .kt-chat-thread-shell {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: none !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        overflow: hidden !important;
        z-index: 3000 !important;
        background: #f8fafc !important;
    }

    /* Chat card itself */
    body.kt-chat-page .kt-chat-thread-card {
        width: min(100%, 860px) !important;
        height: 100dvh !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border-radius: 0 !important;
        border: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    /* Header fixed at top of chat card */
    body.kt-chat-page .kt-chat-thread-header {
        flex: 0 0 auto !important;
        min-height: 76px !important;
        padding: 10px 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        border-bottom: 1px solid var(--kt-border) !important;
        background: rgba(255, 255, 255, 0.98) !important;
    }

    body.kt-chat-page .kt-chat-header-left {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    body.kt-chat-page .kt-chat-back {
        flex: 0 0 auto !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 15px !important;
        display: grid !important;
        place-items: center !important;
        background: #ffffff !important;
        border: 1px solid var(--kt-border) !important;
        color: var(--kt-text) !important;
        text-decoration: none !important;
        font-size: 31px !important;
        line-height: 1 !important;
        font-weight: 900 !important;
    }

    body.kt-chat-page .kt-chat-peer-avatar {
        flex: 0 0 auto !important;
        width: 54px !important;
        height: 54px !important;
        border-radius: 19px !important;
        border: 0 !important;
        overflow: hidden !important;
        display: grid !important;
        place-items: center !important;
        background: linear-gradient(135deg, var(--kt-primary), #19a7ff) !important;
        color: #ffffff !important;
        font-size: 23px !important;
        font-weight: 950 !important;
        box-shadow: 0 10px 22px rgba(97, 87, 255, 0.16) !important;
    }

        body.kt-chat-page .kt-chat-peer-avatar img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
        }

    body.kt-chat-page .kt-chat-peer-info {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

        body.kt-chat-page .kt-chat-peer-info h1 {
            max-width: none !important;
            margin: 0 !important;
            color: var(--kt-text) !important;
            font-size: 20px !important;
            line-height: 1.05 !important;
            font-weight: 950 !important;
            letter-spacing: -0.045em !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        body.kt-chat-page .kt-chat-peer-info p {
            max-width: none !important;
            margin: 2px 0 0 !important;
            color: var(--kt-muted) !important;
            font-size: 12.5px !important;
            line-height: 1.2 !important;
            font-weight: 850 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

    body.kt-chat-page .kt-chat-connection-status {
        display: inline-flex !important;
        margin-top: 3px !important;
        color: var(--kt-primary) !important;
        font-size: 11.5px !important;
        font-weight: 950 !important;
    }

    body.kt-chat-page .kt-chat-header-actions {
        flex: 0 0 auto !important;
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
    }

    body.kt-chat-page .kt-chat-call-btn {
        flex: 0 0 auto !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 15px !important;
        display: grid !important;
        place-items: center !important;
        border: 1px solid var(--kt-border) !important;
        background: #ffffff !important;
        font-size: 18px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
    }

        body.kt-chat-page .kt-chat-call-btn.disabled,
        body.kt-chat-page .kt-chat-call-btn:disabled {
            opacity: 0.38 !important;
            cursor: not-allowed !important;
            filter: grayscale(1) !important;
        }

    /* Block banner compact */
    body.kt-chat-page .kt-chat-block-alert {
        flex: 0 0 auto !important;
        margin: 8px 10px 0 !important;
        padding: 10px 12px !important;
        border-radius: 16px !important;
    }

    body.kt-chat-page .kt-chat-block-banner {
        flex: 0 0 auto !important;
        margin: 8px 10px 0 !important;
        padding: 10px !important;
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) auto !important;
        gap: 9px !important;
        align-items: center !important;
        border-radius: 18px !important;
        background: rgba(239, 68, 68, 0.075) !important;
        border: 1px solid rgba(239, 68, 68, 0.16) !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

        body.kt-chat-page .kt-chat-block-banner.muted {
            grid-template-columns: 34px minmax(0, 1fr) !important;
            background: rgba(100, 116, 139, 0.08) !important;
            border-color: rgba(100, 116, 139, 0.16) !important;
        }

    body.kt-chat-page .kt-chat-block-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 13px !important;
        display: grid !important;
        place-items: center !important;
        background: rgba(255, 255, 255, 0.82) !important;
        font-size: 15px !important;
    }

    body.kt-chat-page .kt-chat-block-text {
        min-width: 0 !important;
    }

    body.kt-chat-page .kt-chat-block-banner strong {
        display: block !important;
        margin: 0 0 2px !important;
        color: var(--kt-text) !important;
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        font-weight: 950 !important;
    }

    body.kt-chat-page .kt-chat-block-banner p {
        margin: 0 !important;
        color: var(--kt-muted) !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        font-weight: 750 !important;
    }

    body.kt-chat-page .kt-chat-unblock-form {
        margin: 0 !important;
    }

    body.kt-chat-page .kt-chat-unblock-btn {
        min-height: 38px !important;
        border: none !important;
        border-radius: 14px !important;
        padding: 0 14px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, var(--kt-primary), #19a7ff) !important;
        color: #ffffff !important;
        font-size: 12.5px !important;
        font-weight: 950 !important;
        white-space: nowrap !important;
    }

    /* Message list takes remaining space */
    body.kt-chat-page .kt-message-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        overflow-y: auto !important;
        padding: 14px 14px !important;
        background: radial-gradient(circle at top left, rgba(97, 87, 255, 0.06), transparent 28%), #f8fafc !important;
        scroll-behavior: smooth !important;
    }

    body.kt-chat-page .kt-message-row {
        display: flex !important;
        margin-bottom: 10px !important;
    }

        body.kt-chat-page .kt-message-row.mine {
            justify-content: flex-end !important;
        }

        body.kt-chat-page .kt-message-row.theirs {
            justify-content: flex-start !important;
        }

    body.kt-chat-page .kt-message-bubble {
        max-width: min(82%, 520px) !important;
        padding: 10px 12px !important;
        border-radius: 17px !important;
        background: #ffffff !important;
        color: var(--kt-text) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
    }

    body.kt-chat-page .kt-message-row.mine .kt-message-bubble {
        background: linear-gradient(135deg, var(--kt-primary), #19a7ff) !important;
        color: #ffffff !important;
    }

    body.kt-chat-page .kt-message-bubble p {
        margin: 0 !important;
        white-space: pre-wrap !important;
        overflow-wrap: anywhere !important;
        font-size: 13.5px !important;
        line-height: 1.35 !important;
        font-weight: 750 !important;
    }

    body.kt-chat-page .kt-message-meta {
        margin-top: 6px !important;
        display: flex !important;
        gap: 8px !important;
        justify-content: flex-end !important;
        font-size: 11px !important;
        font-weight: 850 !important;
        opacity: 0.78 !important;
    }

    /* Composer always visible at bottom */
    body.kt-chat-page .kt-message-compose {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 68px !important;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        border-top: 1px solid var(--kt-border) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        position: relative !important;
        z-index: 5 !important;
    }

        body.kt-chat-page .kt-message-compose textarea {
            width: 100% !important;
            min-height: 46px !important;
            max-height: 118px !important;
            resize: none !important;
            border: none !important;
            outline: none !important;
            border-radius: 17px !important;
            padding: 13px 14px !important;
            background: #f1f5f9 !important;
            color: var(--kt-text) !important;
            font-size: 14px !important;
            font-weight: 800 !important;
        }

        body.kt-chat-page .kt-message-compose button {
            min-width: 72px !important;
            min-height: 46px !important;
            border: none !important;
            border-radius: 17px !important;
            padding: 0 14px !important;
            background: linear-gradient(135deg, var(--kt-primary), #19a7ff) !important;
            color: #ffffff !important;
            font-size: 14px !important;
            font-weight: 950 !important;
        }

        body.kt-chat-page .kt-message-compose.disabled {
            grid-template-columns: 1fr !important;
        }

    body.kt-chat-page .kt-message-disabled-text {
        width: 100% !important;
        min-height: 46px !important;
        border-radius: 17px !important;
        display: grid !important;
        place-items: center !important;
        background: #f1f5f9 !important;
        color: var(--kt-muted) !important;
        font-size: 14px !important;
        font-weight: 900 !important;
    }

/* Desktop centered card */
@media (min-width: 861px) {
    body.kt-chat-page .kt-chat-thread-card {
        border-left: 1px solid var(--kt-border) !important;
        border-right: 1px solid var(--kt-border) !important;
    }
}

/* Mobile compact */
@media (max-width: 520px) {
    body.kt-chat-page .kt-chat-thread-header {
        min-height: 72px !important;
        padding: 9px 10px !important;
    }

    body.kt-chat-page .kt-chat-header-left {
        gap: 8px !important;
    }

    body.kt-chat-page .kt-chat-back {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        font-size: 29px !important;
    }

    body.kt-chat-page .kt-chat-peer-avatar {
        width: 50px !important;
        height: 50px !important;
        border-radius: 18px !important;
        font-size: 22px !important;
    }

    body.kt-chat-page .kt-chat-peer-info h1 {
        font-size: 18px !important;
        max-width: 122px !important;
    }

    body.kt-chat-page .kt-chat-peer-info p {
        max-width: 122px !important;
        font-size: 12px !important;
    }

    body.kt-chat-page .kt-chat-call-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        font-size: 17px !important;
    }

    body.kt-chat-page .kt-chat-block-banner {
        grid-template-columns: 34px minmax(0, 1fr) !important;
    }

    body.kt-chat-page .kt-chat-unblock-form {
        grid-column: 1 / -1 !important;
        padding-left: 43px !important;
    }

    body.kt-chat-page .kt-chat-unblock-btn {
        width: 100% !important;
    }

    body.kt-chat-page .kt-message-list {
        padding: 12px 10px !important;
    }
}

@media (max-width: 370px) {
    body.kt-chat-page .kt-chat-peer-info h1,
    body.kt-chat-page .kt-chat-peer-info p {
        max-width: 100px !important;
    }

    body.kt-chat-page .kt-chat-header-actions {
        gap: 5px !important;
    }

    body.kt-chat-page .kt-chat-call-btn {
        width: 38px !important;
        height: 38px !important;
    }
}

/* =========================================================
   Global chat top notification toast
   ========================================================= */

.kt-chat-toast-host {
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    z-index: 6000;
    width: min(370px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.kt-chat-toast {
    width: 100%;
    min-height: 76px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 24px;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(18px);
    color: var(--kt-text);
    text-align: left;
    cursor: pointer;
    pointer-events: auto;
    animation: ktChatToastIn 0.22s ease-out both;
}

    .kt-chat-toast:hover {
        transform: translateY(-1px);
    }

    .kt-chat-toast.is-leaving {
        animation: ktChatToastOut 0.2s ease-in both;
    }

.kt-chat-toast-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff);
    color: #fff;
    font-size: 21px;
    font-weight: 950;
    box-shadow: 0 10px 24px rgba(97, 87, 255, 0.18);
}

    .kt-chat-toast-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.kt-chat-toast-content {
    min-width: 0;
}

.kt-chat-toast-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 3px;
}

    .kt-chat-toast-top strong {
        color: var(--kt-text);
        font-size: 14px;
        line-height: 1.2;
        font-weight: 950;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .kt-chat-toast-top span {
        min-height: 23px;
        border-radius: 999px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        background: rgba(97, 87, 255, 0.1);
        color: var(--kt-primary);
        font-size: 11px;
        font-weight: 950;
    }

.kt-chat-toast-content p {
    margin: 0;
    color: var(--kt-muted);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes ktChatToastIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ktChatToastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
}

/* On chat thread page, keep toast centered at top */
body.kt-chat-page .kt-chat-toast-host {
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(390px, calc(100vw - 24px));
}

/* Mobile */
@media (max-width: 620px) {
    .kt-chat-toast-host {
        top: calc(10px + env(safe-area-inset-top));
        left: 12px;
        right: 12px;
        width: auto;
    }

    body.kt-chat-page .kt-chat-toast-host {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
    }

    .kt-chat-toast {
        min-height: 70px;
        border-radius: 22px;
        padding: 9px;
    }

    .kt-chat-toast-avatar {
        width: 48px;
        height: 48px;
        border-radius: 17px;
        font-size: 19px;
    }

    .kt-chat-toast-top strong {
        font-size: 13.5px;
    }

    .kt-chat-toast-content p {
        font-size: 12.5px;
    }
}

/* =========================================================
   STEP 29-C — Chat thread more menu
   Put at VERY BOTTOM of khalidtalk-app.css
   ========================================================= */

body.kt-chat-page .kt-chat-more-wrap {
    position: relative !important;
    flex: 0 0 auto !important;
}

body.kt-chat-page .kt-chat-more-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 15px !important;
    border: 1px solid var(--kt-border) !important;
    display: grid !important;
    place-items: center !important;
    background: #ffffff !important;
    color: var(--kt-text) !important;
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05) !important;
}

    body.kt-chat-page .kt-chat-more-btn:hover,
    body.kt-chat-page .kt-chat-more-btn[aria-expanded="true"] {
        background: rgba(97, 87, 255, 0.1) !important;
        color: var(--kt-primary) !important;
    }

body.kt-chat-page .kt-chat-more-menu {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    z-index: 7000 !important;
    width: 250px !important;
    display: none !important;
    padding: 8px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24) !important;
    backdrop-filter: blur(18px) !important;
}

    body.kt-chat-page .kt-chat-more-menu.is-open {
        display: grid !important;
        gap: 6px !important;
        animation: ktChatMenuIn 0.16s ease-out both !important;
    }

    body.kt-chat-page .kt-chat-more-menu form {
        margin: 0 !important;
    }

body.kt-chat-page .kt-chat-more-item {
    width: 100% !important;
    min-height: 58px !important;
    border: none !important;
    border-radius: 17px !important;
    padding: 10px !important;
    display: grid !important;
    grid-template-columns: 34px 1fr !important;
    gap: 10px !important;
    align-items: center !important;
    background: transparent !important;
    color: var(--kt-text) !important;
    text-align: left !important;
}

    body.kt-chat-page .kt-chat-more-item:hover {
        background: #f1f5f9 !important;
    }

    body.kt-chat-page .kt-chat-more-item > span {
        width: 34px !important;
        height: 34px !important;
        border-radius: 13px !important;
        display: grid !important;
        place-items: center !important;
        background: rgba(97, 87, 255, 0.1) !important;
        font-size: 16px !important;
    }

    body.kt-chat-page .kt-chat-more-item strong {
        display: block !important;
        color: var(--kt-text) !important;
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        font-weight: 950 !important;
    }

    body.kt-chat-page .kt-chat-more-item small {
        display: block !important;
        margin-top: 2px !important;
        color: var(--kt-muted) !important;
        font-size: 11.5px !important;
        line-height: 1.25 !important;
        font-weight: 750 !important;
    }

    body.kt-chat-page .kt-chat-more-item.danger {
        color: #dc2626 !important;
    }

        body.kt-chat-page .kt-chat-more-item.danger > span {
            background: rgba(239, 68, 68, 0.1) !important;
        }

        body.kt-chat-page .kt-chat-more-item.danger strong {
            color: #dc2626 !important;
        }

@keyframes ktChatMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    body.kt-chat-page .kt-chat-more-btn {
        width: 40px !important;
        height: 40px !important;
        border-radius: 14px !important;
        font-size: 26px !important;
    }

    body.kt-chat-page .kt-chat-more-menu {
        position: fixed !important;
        top: auto !important;
        right: 10px !important;
        left: 10px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        width: auto !important;
        border-radius: 24px !important;
        padding: 10px !important;
    }

        body.kt-chat-page .kt-chat-more-menu.is-open {
            animation: ktChatBottomSheetIn 0.18s ease-out both !important;
        }

    body.kt-chat-page .kt-chat-more-item {
        min-height: 60px !important;
    }
}

@keyframes ktChatBottomSheetIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   STEP 29-D — Chat list row menu + clear/delete
   Put at VERY BOTTOM of khalidtalk-app.css
   ========================================================= */

.kt-chat-list-item-wrap {
    position: relative;
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border: 1px solid var(--kt-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: visible;
}

    .kt-chat-list-item-wrap:hover {
        transform: translateY(-1px);
    }

    .kt-chat-list-item-wrap.is-blocked {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.045), rgba(255, 255, 255, 0.97)), rgba(255, 255, 255, 0.97);
    }

.kt-chat-list-item-link {
    min-width: 0;
    min-height: 84px;
    padding: 12px 0 12px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

    .kt-chat-list-item-link:hover {
        color: inherit;
    }

.kt-chat-list-side {
    position: relative;
    align-self: stretch;
    padding: 10px 10px 10px 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 6px;
    align-items: start;
    justify-items: end;
}

.kt-chat-list-more-wrap {
    position: relative;
    align-self: end;
}

.kt-chat-list-more-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--kt-muted);
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

    .kt-chat-list-more-btn:hover,
    .kt-chat-list-more-btn[aria-expanded="true"] {
        background: rgba(97, 87, 255, 0.1);
        color: var(--kt-primary);
    }

.kt-chat-list-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 5000;
    width: 250px;
    display: none;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    backdrop-filter: blur(18px);
}

    .kt-chat-list-more-menu.is-open {
        display: grid;
        gap: 6px;
        animation: ktChatListMenuIn 0.16s ease-out both;
    }

    .kt-chat-list-more-menu form {
        margin: 0;
    }

.kt-chat-list-more-item {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 17px;
    padding: 10px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    background: transparent;
    color: var(--kt-text);
    text-align: left;
}

    .kt-chat-list-more-item:hover {
        background: #f1f5f9;
    }

    .kt-chat-list-more-item > span {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        display: grid;
        place-items: center;
        background: rgba(97, 87, 255, 0.1);
        font-size: 16px;
    }

    .kt-chat-list-more-item strong {
        display: block;
        color: var(--kt-text);
        font-size: 13.5px;
        line-height: 1.2;
        font-weight: 950;
    }

    .kt-chat-list-more-item small {
        display: block;
        margin-top: 2px;
        color: var(--kt-muted);
        font-size: 11.5px;
        line-height: 1.25;
        font-weight: 750;
    }

    .kt-chat-list-more-item.danger > span {
        background: rgba(239, 68, 68, 0.1);
    }

    .kt-chat-list-more-item.danger strong {
        color: #dc2626;
    }

@keyframes ktChatListMenuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 620px) {
    .kt-chat-list-item-wrap {
        min-height: 78px;
        border-radius: 22px;
    }

    .kt-chat-list-item-link {
        min-height: 76px;
        padding: 11px 0 11px 11px;
        gap: 10px;
    }

    .kt-chat-list-side {
        padding: 9px 9px 9px 0;
    }

    .kt-chat-list-more-btn {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        font-size: 23px;
    }

    .kt-chat-list-more-menu {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        width: auto;
        border-radius: 24px;
        padding: 10px;
    }

        .kt-chat-list-more-menu.is-open {
            animation: ktChatListBottomSheetIn 0.18s ease-out both;
        }

    .kt-chat-list-more-item {
        min-height: 60px;
    }
}

@keyframes ktChatListBottomSheetIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   STEP 30-B FIX — Report user with OLD public profile UI
   Put at VERY BOTTOM of khalidtalk-app.css
   ========================================================= */

.kt-public-report-section {
    margin-top: 18px;
}

.kt-public-safety-actions-old {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.kt-public-report-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.08);
    color: #b45309;
    font-size: 14px;
    font-weight: 950;
}

    .kt-public-report-btn:hover {
        background: rgba(245, 158, 11, 0.14);
    }

.kt-report-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: none;
    place-items: center;
    padding: 18px;
}

    .kt-report-modal.is-open {
        display: grid;
    }

.kt-report-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
}

.kt-report-card {
    position: relative;
    z-index: 1;
    width: min(460px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.35);
    padding: 22px;
    animation: ktReportIn 0.2s ease-out both;
}

.kt-report-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: var(--kt-text);
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
}

.kt-report-icon {
    width: 54px;
    height: 54px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 26px;
    margin-bottom: 14px;
}

.kt-report-card h2 {
    margin: 0;
    color: var(--kt-text);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 950;
}

.kt-report-intro {
    margin: 8px 0 18px;
    color: var(--kt-muted);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.kt-report-form {
    display: grid;
    gap: 10px;
}

    .kt-report-form label {
        color: var(--kt-text);
        font-size: 13px;
        font-weight: 950;
    }

    .kt-report-form select,
    .kt-report-form textarea {
        width: 100%;
        border: 1px solid var(--kt-border);
        border-radius: 16px;
        background: #ffffff;
        color: var(--kt-text);
        font-size: 14px;
        font-weight: 750;
        outline: none;
    }

    .kt-report-form select {
        height: 48px;
        padding: 0 14px;
    }

    .kt-report-form textarea {
        resize: vertical;
        min-height: 110px;
        padding: 13px 14px;
        line-height: 1.4;
    }

        .kt-report-form select:focus,
        .kt-report-form textarea:focus {
            border-color: rgba(97, 87, 255, 0.55);
            box-shadow: 0 0 0 4px rgba(97, 87, 255, 0.1);
        }

.kt-report-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kt-report-cancel,
.kt-report-submit {
    min-height: 48px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 950;
}

.kt-report-cancel {
    border: 1px solid var(--kt-border);
    background: #ffffff;
    color: var(--kt-text);
}

.kt-report-submit {
    border: none;
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.25);
}

@keyframes ktReportIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 560px) {
    .kt-report-modal {
        align-items: end;
        padding: 10px;
    }

    .kt-report-card {
        width: 100%;
        border-radius: 26px;
        padding: 20px;
    }

    .kt-report-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   STEP 30-C — Report user from chat thread
   Put at VERY BOTTOM of khalidtalk-app.css
   ========================================================= */

body.kt-chat-page .kt-chat-more-item.warning > span {
    background: rgba(245, 158, 11, 0.12) !important;
}

body.kt-chat-page .kt-chat-more-item.warning strong {
    color: #b45309 !important;
}

body.kt-chat-page .kt-chat-more-item.warning:hover {
    background: rgba(245, 158, 11, 0.08) !important;
}

/* =========================================================
   STEP 31-A — Chat UX polish: date separator, copy, seen icons
   Put at VERY BOTTOM of khalidtalk-app.css
   ========================================================= */

body.kt-chat-page .kt-message-date-separator {
    width: 100%;
    margin: 12px 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    body.kt-chat-page .kt-message-date-separator span {
        min-height: 28px;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(15, 23, 42, 0.06);
        color: #64748b;
        font-size: 12px;
        line-height: 1;
        font-weight: 900;
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
    }

body.kt-chat-page .kt-message-meta {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

body.kt-chat-page .kt-message-copy-btn {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.32);
    color: inherit;
    font-size: 12px;
    line-height: 1;
    opacity: 0.72;
    cursor: pointer;
}

    body.kt-chat-page .kt-message-copy-btn:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.55);
        transform: translateY(-1px);
    }

body.kt-chat-page .kt-message-row.theirs .kt-message-copy-btn {
    background: rgba(15, 23, 42, 0.05);
}

    body.kt-chat-page .kt-message-row.theirs .kt-message-copy-btn:hover {
        background: rgba(15, 23, 42, 0.09);
    }

body.kt-chat-page .kt-message-status {
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

    body.kt-chat-page .kt-message-status.sent {
        opacity: 0.78;
    }

    body.kt-chat-page .kt-message-status.delivered {
        opacity: 0.88;
    }

    body.kt-chat-page .kt-message-status.seen {
        color: #2563eb;
        opacity: 1;
    }

.kt-message-copy-toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 9000;
    min-height: 42px;
    max-width: min(340px, calc(100vw - 32px));
    padding: 0 16px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
    transform: translateX(-50%);
}

    .kt-message-copy-toast.is-open {
        display: flex;
        animation: ktCopyToastIn 0.18s ease-out both;
    }

@keyframes ktCopyToastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@media (max-width: 620px) {
    body.kt-chat-page .kt-message-date-separator {
        margin: 10px 0 8px;
    }

        body.kt-chat-page .kt-message-date-separator span {
            min-height: 26px;
            padding: 6px 10px;
            font-size: 11.5px;
        }

    body.kt-chat-page .kt-message-copy-btn {
        width: 23px;
        height: 23px;
        border-radius: 8px;
        font-size: 11.5px;
        opacity: 0.85;
    }

    .kt-message-copy-toast {
        bottom: calc(86px + env(safe-area-inset-bottom));
        font-size: 12.5px;
    }
}





/* The master CSS sets .kt-message-compose as a 2-column grid.
      We wrap the buttons in this div so they sit together in the right column. 
    */
.kt-chat-actions-wrapper {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    height: 100%;
}

/* Force the new icon buttons to be perfect circles and override master min-width */
body.kt-chat-page .kt-message-compose .kt-chat-icon-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    margin-bottom: 2px; /* Visual alignment with textarea padding */
}

/* Transparent styling for the attachment button */
body.kt-chat-page .kt-message-compose #chatAttachButton {
    background: transparent !important;
    color: var(--kt-muted) !important;
    border: none !important;
    box-shadow: none !important;
}

    body.kt-chat-page .kt-message-compose #chatAttachButton:hover {
        background: rgba(15, 23, 42, 0.05) !important;
    }

/* Solid styling for the Mic and Send buttons */
body.kt-chat-page .kt-message-compose .primary-icon-btn {
    background: linear-gradient(135deg, var(--kt-primary), #19a7ff) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(97, 87, 255, 0.25) !important;
    border: none !important;
}

.hidden {
    display: none !important;
}

#chat-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 20px;
}

#standard-input-view, #recording-view, #playback-view {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

#chat-input {
    flex-grow: 1;
    border-radius: 15px;
    padding: 8px;
}

#attachment-menu {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

#recording-timer {
    color: red;
    font-weight: bold;
    flex-grow: 1;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

/* --- Overriding Base Composer for Pill Layout --- */
.kt-message-compose {
    position: relative;
    padding: 10px 14px;
    background: #efeae2; /* WhatsApp style background */
    border-top: none;
    z-index: 5;
}

.kt-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
}

.kt-input-container {
    flex-grow: 1;
    background: white;
    border-radius: 24px;
    padding: 5px 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.kt-view-pane {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.hidden-pane, .hidden-btn {
    display: none !important;
}

#messageBody {
    flex-grow: 1;
    border: none;
    outline: none;
    resize: none;
    padding: 10px 0;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
}

.kt-icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    padding: 5px;
}

/* --- Slide-Up Attachment Menu --- */
.attachment-menu {
    position: absolute;
    bottom: 70px;
    left: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* Animation */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    z-index: 10;
}

.hidden-menu {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.attach-item {
    border: none;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

    .attach-item .icon {
        font-size: 24px;
        background: #f0f0f0;
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        transition: transform 0.2s;
    }

    .attach-item:hover .icon {
        transform: scale(1.1);
    }

/* --- Recording & Action Buttons --- */
.recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.red-dot {
    width: 12px;
    height: 12px;
    background-color: #ff3b30;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.slide-to-cancel {
    font-size: 14px;
    color: #ff3b30;
}

.kt-action-buttons {
    display: flex;
    flex-shrink: 0;
}

.kt-action-circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #00a884; /* WhatsApp Green */
    color: white;
    border: none;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

    .kt-action-circle-btn.stop-btn {
        background-color: #ff3b30;
    }
/* -----------------------------
   Chat attachments: image, voice, document
   Added without changing the existing composer/header UI.
------------------------------ */
body.kt-chat-page .kt-message-bubble.has-media,
body.kt-chat-page .kt-message-bubble.has-audio,
body.kt-chat-page .kt-message-bubble.has-document {
    padding: 8px !important;
}

body.kt-chat-page .kt-chat-image-message {
    width: min(260px, 62vw) !important;
    max-height: 340px !important;
    display: block !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 16px !important;
    padding: 0 !important;
    background: transparent !important;
    cursor: pointer !important;
}

    body.kt-chat-page .kt-chat-image-message img {
        width: 100% !important;
        height: auto !important;
        max-height: 340px !important;
        display: block !important;
        object-fit: cover !important;
    }

body.kt-chat-page .kt-chat-voice-message {
    width: min(320px, 70vw) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

    body.kt-chat-page .kt-chat-voice-message audio {
        width: 100% !important;
        min-width: 190px !important;
        height: 38px !important;
    }

    body.kt-chat-page .kt-chat-voice-message span {
        flex: 0 0 auto !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        opacity: 0.82 !important;
    }

body.kt-chat-page .kt-chat-document-message {
    width: min(320px, 72vw) !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: inherit !important;
    text-decoration: none !important;
}

body.kt-chat-page .kt-message-row.theirs .kt-chat-document-message {
    background: #f1f5f9 !important;
}

body.kt-chat-page .kt-chat-document-icon {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 auto !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.28) !important;
    font-size: 21px !important;
}

body.kt-chat-page .kt-message-row.theirs .kt-chat-document-icon {
    background: #ffffff !important;
}

body.kt-chat-page .kt-chat-document-text {
    min-width: 0 !important;
    display: grid !important;
    gap: 2px !important;
}

    body.kt-chat-page .kt-chat-document-text strong,
    body.kt-chat-page .kt-chat-document-text small {
        display: block !important;
        max-width: 210px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.kt-chat-page .kt-chat-document-text strong {
        font-size: 13px !important;
        font-weight: 950 !important;
    }

    body.kt-chat-page .kt-chat-document-text small {
        font-size: 11px !important;
        font-weight: 800 !important;
        opacity: 0.78 !important;
    }

body.kt-chat-page .kt-message-hidden-copy {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 420px) {
    body.kt-chat-page .kt-chat-image-message {
        width: min(235px, 68vw) !important;
    }

    body.kt-chat-page .kt-chat-voice-message,
    body.kt-chat-page .kt-chat-document-message {
        width: min(285px, 76vw) !important;
    }

        body.kt-chat-page .kt-chat-voice-message audio {
            min-width: 160px !important;
        }
}

/* Practice Rooms - beta small focused rooms */
.kt-rooms-hero,
.kt-practice-room-header {
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 18px 38px rgba(97, 87, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

/* Public marketing website */
.kt-public-page {
    background: #fff;
    color: #12162b;
}

.kt-public-shell {
    padding-bottom: 0;
    overflow: hidden;
}

.kt-public-shell .kt-topbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(222, 226, 241, 0.8);
}

.kt-public-shell .kt-topbar-inner,
.kt-public-container {
    width: min(1160px, calc(100% - 32px));
    max-width: 1160px;
    margin-inline: auto;
}

.kt-public-shell .kt-topbar-inner {
    min-height: 72px;
    padding: 12px 0;
}

.kt-public-main {
    max-width: none;
    padding: 0;
}

.kt-public-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 30px);
    margin-left: auto;
}

.kt-public-nav a,
.kt-public-login {
    color: #4b5268;
    font-size: 14px;
    font-weight: 700;
}

.kt-public-nav a:hover,
.kt-public-login:hover,
.kt-public-text-link:hover {
    color: var(--kt-primary);
}

.kt-public-auth-actions {
    margin-left: 16px;
}

.kt-public-button {
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kt-public-button:hover {
    transform: translateY(-2px);
}

.kt-public-button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--kt-primary), #238df5);
    box-shadow: 0 12px 25px rgba(80, 78, 238, .24);
}

.kt-public-button-primary:hover { color: #fff; box-shadow: 0 15px 30px rgba(80, 78, 238, .32); }
.kt-public-button-secondary { background: #fff; border-color: #dfe3f2; box-shadow: 0 8px 20px rgba(24, 32, 68, .06); }
.kt-public-button-secondary:hover { color: #172033; border-color: #bfc5e2; }
.kt-public-button-small { min-height: 42px; padding: 10px 16px; border-radius: 12px; font-size: 14px; }

.kt-public-hero {
    position: relative;
    padding: clamp(72px, 9vw, 126px) 0 clamp(64px, 8vw, 110px);
    background:
        radial-gradient(circle at 85% 22%, rgba(45, 199, 255, .18), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(122, 88, 255, .16), transparent 32%),
        linear-gradient(145deg, #f9faff 0%, #f0f2ff 52%, #f4fbff 100%);
}

.kt-public-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: clamp(44px, 8vw, 96px);
}

.kt-public-hero-compact { padding-block: clamp(60px, 7vw, 94px); text-align: center; }
.kt-public-hero-compact .kt-public-container { max-width: 820px; }
.kt-public-hero-compact .kt-public-actions { justify-content: center; }

.kt-public-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #5146db;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.kt-public-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #11152b;
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.kt-public-hero-compact h1 { margin-inline: auto; font-size: clamp(38px, 5vw, 60px); }

.kt-public-hero p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #5a627b;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.7;
}

.kt-public-hero-compact p { margin-inline: auto; }

.kt-public-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.kt-language-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.kt-language-chips span { padding: 7px 11px; border: 1px solid rgba(81, 70, 219, .13); border-radius: 999px; color: #596078; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }

.kt-public-hero-visual { position: relative; min-height: 440px; }
.kt-public-visual-card { position: absolute; width: min(300px, 82%); padding: 22px; border: 1px solid rgba(255,255,255,.86); border-radius: 24px; display: grid; grid-template-columns: 48px 1fr; gap: 3px 14px; align-items: center; background: rgba(255,255,255,.86); box-shadow: 0 24px 65px rgba(47, 46, 110, .16); backdrop-filter: blur(16px); }
.kt-public-visual-card > span { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: #f0efff; font-size: 23px; }
.kt-public-visual-card strong { font-size: 16px; }
.kt-public-visual-card small { color: #697087; font-size: 12px; }
.kt-public-visual-chat { top: 10px; left: 0; transform: rotate(-3deg); }
.kt-public-visual-call { top: 145px; right: 0; z-index: 2; transform: rotate(2deg); }
.kt-public-visual-room { bottom: 8px; left: 22px; transform: rotate(-1deg); }

.kt-public-section { padding: clamp(64px, 8vw, 104px) 0; }
.kt-public-section-tinted { background: #f7f8fd; }
.kt-public-section-heading { max-width: 680px; margin-bottom: 34px; }
.kt-public-section h2 { margin: 0; color: #151a31; font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.12; letter-spacing: -.04em; }
.kt-public-section-heading > p, .kt-public-split > div > p, .kt-public-cta p { margin: 16px 0 0; color: #626a81; font-size: 17px; line-height: 1.7; }

.kt-public-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kt-public-card-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kt-public-card { padding: 28px; border: 1px solid #e4e7f2; border-radius: 22px; background: #fff; box-shadow: 0 14px 36px rgba(29, 38, 78, .06); }
.kt-public-card-icon { width: 46px; height: 46px; margin-bottom: 20px; border-radius: 15px; display: grid; place-items: center; background: #f0efff; color: #5146db; font-size: 21px; font-weight: 900; }
.kt-public-card h2, .kt-public-card h3 { margin: 0 0 10px; color: #1b2037; font-size: 20px; font-weight: 850; letter-spacing: -.025em; }
.kt-public-card p, .kt-public-card li { margin: 0; color: #687087; font-size: 15px; line-height: 1.7; }
.kt-public-card ul { padding-left: 20px; margin: 16px 0 0; }

.kt-public-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 88px); }
.kt-public-text-link { display: inline-flex; gap: 8px; margin-top: 24px; color: #5146db; font-weight: 850; }
.kt-room-limit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kt-room-limit-grid div { min-height: 150px; padding: 22px 14px; border: 1px solid #e1e4f3; border-radius: 22px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: #fff; box-shadow: 0 16px 34px rgba(43, 45, 99, .07); }
.kt-room-limit-grid strong { color: #5146db; font-size: 34px; font-weight: 900; }
.kt-room-limit-grid span { margin-top: 6px; color: #656d83; font-size: 13px; font-weight: 700; }

.kt-browser-illustration { overflow: hidden; min-height: 300px; border: 1px solid #dfe3f1; border-radius: 26px; background: linear-gradient(145deg, #292458, #5246d9); box-shadow: 0 28px 60px rgba(50, 48, 122, .2); }
.kt-browser-bar { height: 44px; padding: 16px; display: flex; gap: 7px; background: rgba(255,255,255,.1); }
.kt-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.6); }
.kt-browser-content { min-height: 256px; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; }
.kt-browser-content span { font-size: 62px; }
.kt-browser-content strong { font-size: 20px; }
.kt-public-note { padding-left: 16px; border-left: 3px solid #6f63ed; font-size: 14px !important; }

.kt-language-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kt-language-link-grid a { padding: 22px; border: 1px solid #e1e5f0; border-radius: 18px; display: flex; flex-direction: column; gap: 6px; color: #1e243a; background: #fff; transition: transform .18s ease, border-color .18s ease; }
.kt-language-link-grid a:hover { transform: translateY(-2px); border-color: #bbb7ee; }
.kt-language-link-grid span { color: #697187; font-size: 14px; }

.kt-public-cta-section { padding-top: 0; }
.kt-public-cta { padding: clamp(30px, 5vw, 58px); border-radius: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(135deg, #19153e, #322874); color: #fff; box-shadow: 0 25px 60px rgba(31, 25, 84, .2); }
.kt-public-cta h2 { color: #fff; }
.kt-public-cta p { color: #c9c7e3; }
.kt-public-cta .kt-public-eyebrow { color: #b9b3ff; }

.kt-public-footer { padding: 62px 0 24px; border-top: 1px solid #e7e9f2; background: #111529; color: #fff; }
.kt-public-footer-grid { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, 1fr); gap: 36px; }
.kt-public-footer-grid > div:not(.kt-public-footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.kt-public-footer-grid > div > strong { margin-bottom: 6px; }
.kt-public-footer a { color: #aeb4cb; font-size: 14px; }
.kt-public-footer a:hover { color: #fff; }
.kt-public-footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.kt-public-footer-brand strong { font-size: 18px; }
.kt-public-footer-brand p { max-width: 260px; margin: 5px 0 0; color: #aeb4cb; font-size: 13px; line-height: 1.5; }
.kt-public-footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8f96af; font-size: 13px; }

.kt-error-page { min-height: 70vh; display: grid; align-items: center; }
.kt-error-card { max-width: 620px; margin-inline: auto; text-align: center; }
.kt-error-card .kt-public-card-icon { margin-inline: auto; }
.kt-error-card .kt-public-actions { justify-content: center; }
.kt-error-reference { display: block; margin-top: 24px; color: #7a8194; overflow-wrap: anywhere; }

@media (max-width: 920px) {
    .kt-public-nav { display: none; }
    .kt-public-hero-grid { grid-template-columns: 1fr; }
    .kt-public-hero-visual { width: min(560px, 100%); min-height: 390px; margin-inline: auto; }
    .kt-public-card-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kt-public-footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .kt-public-shell .kt-topbar-inner, .kt-public-container { width: min(100% - 24px, 1160px); }
    .kt-public-shell .kt-brand-tagline { display: none; }
    .kt-public-auth-actions { margin-left: auto; }
    .kt-public-login { display: none; }
    .kt-public-hero { padding-block: 56px 64px; }
    .kt-public-hero h1 { font-size: clamp(38px, 12vw, 54px); }
    .kt-public-hero p { font-size: 17px; line-height: 1.6; }
    .kt-public-hero-visual { min-height: 345px; }
    .kt-public-visual-card { width: 84%; padding: 17px; }
    .kt-public-visual-call { top: 118px; }
    .kt-public-card-grid, .kt-public-card-grid-four, .kt-public-split, .kt-language-link-grid { grid-template-columns: 1fr; }
    .kt-public-card { padding: 22px; }
    .kt-public-split { gap: 34px; }
    .kt-room-limit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .kt-room-limit-grid div { min-height: 112px; padding: 14px 8px; }
    .kt-room-limit-grid strong { font-size: 25px; }
    .kt-public-cta { align-items: flex-start; flex-direction: column; border-radius: 24px; }
    .kt-public-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .kt-public-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 390px) {
    .kt-public-shell .kt-brand-name { font-size: 15px; }
    .kt-public-button-small { padding-inline: 12px; }
    .kt-public-actions .kt-public-button { width: 100%; }
    .kt-room-limit-grid { grid-template-columns: 1fr; }
    .kt-room-limit-grid div { min-height: 92px; }
}

.kt-rooms-hero h1,
.kt-practice-room-header h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.kt-rooms-hero p,
.kt-practice-room-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.kt-rooms-kicker {
    margin-bottom: 8px !important;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.92;
}

.kt-room-create-link,
.kt-room-primary-btn,
.kt-room-join-btn {
    border: 0;
    border-radius: 18px;
    padding: 13px 18px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff !important;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(97, 87, 255, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.kt-room-create-link {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    white-space: nowrap;
}

.kt-room-secondary-btn,
.kt-room-danger-btn,
.kt-room-round-btn {
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 16px;
    padding: 11px 15px;
    background: #fff;
    color: var(--kt-text);
    font-weight: 900;
    cursor: pointer;
}

.kt-room-danger-btn {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.kt-room-round-btn {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 21px;
}

.kt-room-round-btn.is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.kt-room-alert {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 800;
    margin-bottom: 16px;
}

.kt-room-alert.muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

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

.kt-room-card,
.kt-room-side-card,
.kt-room-stage-card,
.kt-room-chat-card,
.kt-room-form-shell,
.kt-room-report-card {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.kt-room-card {
    padding: 18px;
}

.kt-room-card.is-full {
    opacity: 0.82;
}

.kt-room-card-top,
.kt-room-live-meta,
.kt-room-header-actions,
.kt-room-side-title,
.kt-room-stage-top,
.kt-room-stage-actions,
.kt-room-form-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kt-room-card h2 {
    margin: 14px 0 7px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.kt-room-topic,
.kt-room-cannot-join,
.kt-room-muted {
    color: var(--kt-muted);
    font-size: 14px;
    font-weight: 650;
}

.kt-room-type-pill,
.kt-room-open-badge,
.kt-room-full-badge,
.kt-room-live-meta span {
    border-radius: 999px;
    padding: 7px 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.kt-room-open-badge {
    background: #dcfce7;
    color: #166534;
}

.kt-room-full-badge {
    background: #fee2e2;
    color: #b91c1c;
}

.kt-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.kt-room-meta span {
    border-radius: 999px;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.kt-room-host-row,
.kt-room-participant-row,
.kt-room-request-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kt-room-host-avatar,
.kt-room-mini-avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    overflow: hidden;
}

.kt-room-host-avatar img,
.kt-room-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kt-room-host-row small,
.kt-room-participant-main small {
    display: block;
    color: var(--kt-muted);
    font-weight: 700;
}

.kt-room-participant-preview {
    display: flex;
    margin: 12px 0 16px;
}

.kt-room-participant-preview .kt-room-mini-avatar {
    margin-right: -8px;
    border: 3px solid #fff;
}

.kt-room-join-btn {
    width: 100%;
    margin-top: 8px;
}

.kt-room-join-btn.disabled {
    background: #e5e7eb;
    color: #64748b !important;
    box-shadow: none;
    cursor: not-allowed;
}

.kt-room-empty {
    text-align: center;
    padding: 34px 18px;
}

.kt-room-form-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 22px;
}

.kt-room-form-header h1 {
    margin: 10px 0 6px;
    letter-spacing: -0.04em;
}

.kt-room-back-link {
    display: inline-flex;
    color: inherit;
    font-weight: 900;
}

.kt-room-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.kt-room-form label {
    font-weight: 900;
}

.kt-room-form input,
.kt-room-form select,
.kt-room-form textarea,
.kt-room-message-compose input,
.kt-room-report-form select,
.kt-room-report-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    color: var(--kt-text);
    font-weight: 700;
}

.kt-room-form-grid > div {
    flex: 1;
}

.kt-practice-room-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 16px;
}

.kt-practice-room-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
    grid-template-areas:
        "stage side"
        "chat side";
    gap: 16px;
}

.kt-room-stage-card {
    grid-area: stage;
    padding: 18px;
}

.kt-room-side-card {
    grid-area: side;
    padding: 16px;
}

.kt-room-chat-card {
    grid-area: chat;
    padding: 16px;
}

.kt-room-stage-top {
    align-items: flex-start;
    margin-bottom: 16px;
}

.kt-room-stage-top h2,
.kt-room-side-title h2 {
    margin: 0 0 4px;
    letter-spacing: -0.04em;
}

.kt-room-stage-top p {
    margin: 0;
    color: var(--kt-muted);
    font-weight: 700;
}

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

.kt-room-local-video-card,
.kt-room-group-videos > div {
    position: relative;
    min-height: 210px;
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
    color: #fff;
}

.kt-room-local-video-card video,
.kt-room-group-videos video {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    display: block;
}

.kt-room-local-video-card span,
.kt-room-group-videos h4 {
    position: absolute;
    left: 12px;
    bottom: 10px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

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

.kt-room-group-videos.audio-only {
    display: none;
}

.kt-room-hidden-video {
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.kt-room-voice-area {
    min-height: 300px;
    border-radius: 24px;
    background: radial-gradient(circle at center, rgba(97, 87, 255, 0.18), rgba(15, 23, 42, 0.96));
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
}

.kt-room-voice-pulse {
    width: 118px;
    height: 118px;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    display: grid;
    place-items: center;
    font-size: 48px;
    box-shadow: 0 0 0 22px rgba(97, 87, 255, 0.15), 0 0 0 46px rgba(97, 87, 255, 0.08);
}

.kt-room-participant-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.kt-room-participant-row {
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.kt-room-participant-main {
    min-width: 0;
    flex: 1;
}

.kt-room-host-controls,
.kt-room-request-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.kt-room-host-controls button,
.kt-room-request-row button {
    border: 0;
    border-radius: 999px;
    padding: 7px 9px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 900;
}

.kt-room-host-controls button.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.kt-room-requests-box {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.kt-room-request-row {
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.kt-room-message-list {
    height: 270px;
    overflow: auto;
    padding: 10px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kt-room-message {
    max-width: 80%;
    align-self: flex-start;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.kt-room-message.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    border-color: transparent;
}

.kt-room-message strong,
.kt-room-message p,
.kt-room-message small {
    margin: 0;
}

.kt-room-message p {
    margin-top: 4px;
    font-weight: 700;
}

.kt-room-message small {
    display: block;
    margin-top: 4px;
    opacity: 0.7;
    font-weight: 800;
}

.kt-room-message-compose {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.kt-room-message-compose button {
    border: 0;
    border-radius: 16px;
    padding: 0 16px;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-secondary));
    color: #fff;
    font-weight: 900;
}

.kt-room-report-card {
    margin-top: 16px;
    padding: 14px;
}

.kt-room-report-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 820px) {
    .kt-rooms-hero,
    .kt-practice-room-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kt-room-grid,
    .kt-practice-room-layout,
    .kt-room-video-area {
        grid-template-columns: 1fr;
    }

    .kt-practice-room-layout {
        grid-template-areas:
            "stage"
            "side"
            "chat";
    }

    .kt-room-form-grid,
    .kt-room-stage-top,
    .kt-room-card-top,
    .kt-room-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kt-room-stage-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Interactive app-style homepage */
.kt-home-dashboard-page {
    background:
        radial-gradient(circle at 50% 18%, rgba(97, 87, 255, .10), transparent 34%),
        var(--kt-bg);
}

.kt-home-dashboard-page .kt-topbar-inner,
.kt-home-dashboard-page .kt-main {
    width: min(1400px, calc(100% - 32px));
    max-width: 1400px;
    margin-inline: auto;
}

.kt-home-dashboard-page .kt-main {
    padding: clamp(22px, 3vw, 38px) 0 70px;
}

.kt-home-hero {
    min-height: 220px;
    padding: clamp(28px, 4vw, 52px);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 34px);
}

.kt-home-hero h1 {
    max-width: 1100px;
    font-size: clamp(34px, 4vw, 58px);
}

.kt-home-hero p {
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.5;
}

.kt-home-hero-icon {
    width: clamp(72px, 8vw, 104px);
    height: clamp(72px, 8vw, 104px);
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.15);
    font-size: clamp(34px, 4vw, 52px);
    backdrop-filter: blur(10px);
}

.kt-home-actions .kt-section-title {
    margin-top: 34px;
    font-size: 23px;
}

.kt-home-dashboard-page .kt-action-card {
    min-height: 190px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kt-home-dashboard-page .kt-action-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
}

.kt-home-dashboard-page .kt-action-title {
    font-size: 19px;
}

.kt-home-dashboard-page .kt-action-desc {
    max-width: 290px;
    font-size: 14px;
    line-height: 1.5;
}

.kt-home-dashboard-page .kt-action-card-compact {
    min-height: 150px;
}

.kt-home-dashboard-page .kt-public-footer {
    margin-top: 24px;
}

@media (max-width: 999px) {
    .kt-home-dashboard-page .kt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .kt-home-dashboard-page .kt-topbar-inner,
    .kt-home-dashboard-page .kt-main {
        width: min(100% - 24px, 1400px);
    }

    .kt-home-dashboard-page .kt-main {
        padding-top: 14px;
    }

    .kt-home-hero {
        min-height: 0;
        padding: 24px 20px;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 24px;
    }

    .kt-home-hero-icon {
        width: 58px;
        height: 58px;
        border-radius: 19px;
        font-size: 29px;
    }

    .kt-home-hero h1 {
        font-size: clamp(29px, 9vw, 40px);
    }

    .kt-home-hero p {
        font-size: 15px;
    }

    .kt-home-actions .kt-section-title {
        margin: 24px 0 10px;
        font-size: 19px;
    }

    .kt-home-dashboard-page .kt-action-card {
        min-height: 148px;
        padding: 16px;
        border-radius: 18px;
    }

    .kt-home-dashboard-page .kt-action-icon {
        width: 43px;
        height: 43px;
        margin-bottom: 9px;
        font-size: 21px;
    }

    .kt-home-dashboard-page .kt-action-title {
        font-size: 15px;
    }

    .kt-home-dashboard-page .kt-action-desc {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .kt-home-dashboard-page .kt-action-card-compact {
        min-height: 132px;
    }
}

@media (max-width: 360px) {
    .kt-home-dashboard-page .kt-grid {
        grid-template-columns: 1fr;
    }

    .kt-home-dashboard-page .kt-action-card {
        min-height: 126px;
    }
}
