:root {
    --mzya-help-teal: #628e92;
    --mzya-help-teal-dark: #0f6f76;
    --mzya-help-gold: #e4a224;
    --mzya-help-blue: #2d5893;
    --mzya-help-navy: #0f3157;
    --mzya-help-ink: #14304a;
    --mzya-help-muted: #617086;
    --mzya-help-border: rgba(98, 142, 146, 0.22);
    --mzya-help-soft: #f7faf9;
    --mzya-help-warm: #fbf8f2;
    --mzya-help-card: #ffffff;
    --mzya-help-shadow: 0 18px 45px rgba(15, 49, 87, 0.08);
    --mzya-help-shadow-sm: 0 10px 26px rgba(15, 49, 87, 0.07);
}

.mzya-help-center,
.mzya-help-center * {
    box-sizing: border-box;
}

.mzya-help-center {
    background: linear-gradient(180deg, #fff 0%, #f8faf9 55%, #fff 100%);
    color: var(--mzya-help-ink);
}

.mzya-help-container {
    width: min(1320px, calc(100% - 32px));
    margin-inline: auto;
}

.mzya-help-section {
    margin-top: 28px;
}

.mzya-help-hero {
    position: relative;
    overflow: hidden;
    padding: 62px 0 38px;
    background:
        radial-gradient(circle at 15% 30%, rgba(98, 142, 146, 0.12), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(228, 162, 36, 0.10), transparent 26%),
        linear-gradient(135deg, #fffaf3 0%, #ffffff 48%, #f5fbfb 100%);
    border-bottom: 1px solid rgba(98, 142, 146, 0.12);
}

.mzya-help-hero::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: min(310px, 38vw);
    height: 100%;
    opacity: 0.5;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.96)),
        repeating-linear-gradient(45deg, rgba(98,142,146,.18) 0 2px, transparent 2px 14px),
        linear-gradient(160deg, rgba(98,142,146,.18), rgba(228,162,36,.08));
    clip-path: polygon(0 0, 100% 0, 74% 100%, 0 100%);
}

.mzya-help-hero::after {
    content: "";
    position: absolute;
    inset-inline-end: -90px;
    top: 44px;
    width: 330px;
    height: 330px;
    opacity: 0.13;
    border: 28px double var(--mzya-help-teal);
    transform: rotate(22deg);
    border-radius: 34% 66% 40% 60%;
}

.mzya-help-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.mzya-help-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mzya-help-gold);
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
}

.mzya-help-eyebrow::before,
.mzya-help-eyebrow::after {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .65;
}

.mzya-help-hero h1,
.mzya-help-article-head h1,
.mzya-help-search-head h1,
.mzya-help-contact-card h1,
.mzya-help-assistant-shell h1 {
    margin: 12px 0 12px;
    color: var(--mzya-help-navy);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.mzya-help-hero h1 {
    font-size: clamp(40px, 6vw, 74px);
}

.mzya-help-hero p {
    width: min(650px, 100%);
    margin: 0 auto 30px;
    color: var(--mzya-help-muted);
    font-size: 17px;
    line-height: 1.75;
}

.mzya-help-main-search,
.mzya-help-search-form {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(780px, 100%);
    margin: 0 auto;
    padding: 10px 12px 10px 20px;
    border: 2px solid rgba(98, 142, 146, .45);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 38px rgba(45, 88, 147, .13);
}

.mzya-help-main-search svg,
.mzya-help-search-form svg,
.mzya-help-chip svg,
.mzya-help-category-icon svg,
.mzya-help-trust-icon svg,
.mzya-help-support-action svg,
.mzya-help-panel-head svg {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.mzya-help-main-search svg,
.mzya-help-search-form svg {
    color: var(--mzya-help-teal);
}

.mzya-help-main-search input,
.mzya-help-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--mzya-help-ink);
    font-size: 16px;
}

.mzya-help-main-search button,
.mzya-help-search-form button,
.mzya-help-button {
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mzya-help-main-search button,
.mzya-help-search-form button,
.mzya-help-button.primary {
    padding: 12px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--mzya-help-teal), var(--mzya-help-teal-dark));
    box-shadow: 0 12px 24px rgba(15, 111, 118, .22);
}

.mzya-help-button.ghost {
    padding: 12px 22px;
    color: var(--mzya-help-navy);
    background: #fff;
    border: 1px solid var(--mzya-help-border);
}

.mzya-help-main-search button:hover,
.mzya-help-search-form button:hover,
.mzya-help-button:hover,
.mzya-help-support-action:hover,
.mzya-help-category-card:hover,
.mzya-help-result-card:hover {
    transform: translateY(-2px);
}

.mzya-help-chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.mzya-help-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(98, 142, 146, .42);
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: var(--mzya-help-teal-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 49, 87, .04);
}

.mzya-help-chip svg {
    width: 18px;
    height: 18px;
}

.mzya-help-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.mzya-help-category-card {
    position: relative;
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 22px;
    overflow: hidden;
    border: 1px solid rgba(20, 48, 74, .07);
    border-radius: 22px;
    background: #fff;
    color: var(--mzya-help-navy);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--mzya-help-shadow-sm);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.mzya-help-category-card::before {
    content: "";
    position: absolute;
    inset: auto -45px -45px auto;
    width: 120px;
    height: 120px;
    border: 22px solid rgba(98,142,146,.07);
    border-radius: 50%;
}

.mzya-help-category-card:hover {
    border-color: rgba(98, 142, 146, .35);
    box-shadow: var(--mzya-help-shadow);
}

.mzya-help-category-icon,
.mzya-help-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: rgba(98, 142, 146, .12);
    color: var(--mzya-help-teal-dark);
}

.mzya-help-category-icon.gold,
.mzya-help-trust-icon.gold {
    background: rgba(228, 162, 36, .13);
    color: #c48200;
}

.mzya-help-category-icon.blue,
.mzya-help-trust-icon.blue {
    background: rgba(45, 88, 147, .12);
    color: var(--mzya-help-blue);
}

.mzya-help-category-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--mzya-help-navy);
}

.mzya-help-category-subtitle {
    min-height: 23px;
    color: var(--mzya-help-muted);
    font-size: 14px;
}

.mzya-help-arrow {
    margin-top: 10px;
    color: var(--mzya-help-navy);
    font-size: 24px;
    line-height: 1;
}

.mzya-help-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
}

.mzya-help-panel,
.mzya-help-assistant-preview,
.mzya-help-article-card,
.mzya-help-sidebar-card,
.mzya-help-contact-card,
.mzya-help-assistant-shell,
.mzya-help-result-card,
.mzya-help-empty-state {
    border: 1px solid rgba(20, 48, 74, .08);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--mzya-help-shadow-sm);
}

.mzya-help-panel,
.mzya-help-article-card,
.mzya-help-sidebar-card,
.mzya-help-contact-card,
.mzya-help-empty-state {
    padding: 28px;
}

.mzya-help-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mzya-help-panel-head h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--mzya-help-navy);
    font-size: 22px;
    font-weight: 900;
}

.mzya-help-panel-head span {
    width: 38px;
    height: 3px;
    border-radius: 999px;
    background: var(--mzya-help-gold);
}

.mzya-help-faq-list {
    display: grid;
    gap: 10px;
}

.mzya-help-faq-item {
    border: 1px solid rgba(20, 48, 74, .08);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.mzya-help-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    cursor: pointer;
    padding: 16px 18px;
    color: var(--mzya-help-navy);
    font-weight: 850;
    list-style: none;
}

.mzya-help-faq-item summary::-webkit-details-marker {
    display: none;
}

.mzya-help-faq-item summary::after {
    content: "⌄";
    color: var(--mzya-help-muted);
    font-size: 20px;
}

.mzya-help-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.mzya-help-faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--mzya-help-muted);
    line-height: 1.7;
}

.mzya-help-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--mzya-help-teal-dark);
    font-weight: 900;
    text-decoration: none;
}

.mzya-help-assistant-preview {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 18px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(98,142,146,.13), rgba(255,255,255,1) 50%, rgba(228,162,36,.08));
    border-color: rgba(98, 142, 146, .28);
}

.mzya-help-bot-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    color: #fff;
    font-size: 46px;
    background:#2c5792;
    box-shadow: inset 0 0 0 9px rgba(255,255,255,.52), 0 14px 30px rgba(15, 49, 87, .12);
}

.mzya-help-assistant-content h2 {
    margin: 0 0 8px;
    color: var(--mzya-help-teal-dark);
    font-size: 24px;
    font-weight: 950;
}

.mzya-help-assistant-content p,
.mzya-help-support-panel p,
.mzya-help-contact-card p,
.mzya-help-assistant-shell p,
.mzya-help-empty-state p {
    color: var(--mzya-help-muted);
    line-height: 1.7;
}

.mzya-help-sparkle {
    color: var(--mzya-help-gold);
    font-weight: 900;
}

.mzya-help-chat-preview {
    display: grid;
    gap: 10px;
    max-width: 420px;
    margin: 14px 0 18px;
    padding: 14px;
    border: 1px solid rgba(98,142,146,.20);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.mzya-help-chat-preview.large {
    max-width: none;
    margin: 0;
}

.mzya-help-message {
    max-width: 82%;
    padding: 10px 13px;
    border-radius: 13px;
    color: var(--mzya-help-ink);
    font-size: 13px;
    line-height: 1.5;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15,49,87,.05);
}

.mzya-help-message.user {
    margin-inline-start: auto;
    background: #eef7f7;
}

.mzya-help-message.muted {
    color: var(--mzya-help-muted);
}

.mzya-help-guides-panel {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.mzya-help-guide-list {
    display: grid;
    gap: 10px;
    width: min(62%, 440px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mzya-help-guide-list a {
    color: var(--mzya-help-ink);
    font-weight: 750;
    text-decoration: none;
}

.mzya-help-guide-list a::before {
    content: "›";
    margin-inline-end: 8px;
    color: var(--mzya-help-teal);
    font-weight: 900;
}

.mzya-help-door-illustration {
    position: absolute;
    inset-inline-end: 30px;
    bottom: 28px;
    width: 146px;
    height: 178px;
    border-radius: 80px 80px 16px 16px;
    background:
        linear-gradient(90deg, transparent 47%, rgba(15,49,87,.20) 48% 52%, transparent 53%),
        radial-gradient(circle at 45% 58%, var(--mzya-help-gold) 0 4px, transparent 5px),
        linear-gradient(180deg, #dbecea, #7ab1b1);
    border: 8px solid #f2dfc2;
    box-shadow: 0 16px 28px rgba(15,49,87,.12);
    opacity: .9;
}

.mzya-help-door-illustration::before {
    content: "";
    position: absolute;
    inset: 18px 18px auto;
    height: 34px;
    border-radius: 50% 50% 0 0;
    border: 3px solid rgba(255,255,255,.55);
    border-bottom: 0;
}

.mzya-help-support-actions,
.mzya-help-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.mzya-help-support-action {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: center;
    min-height: 92px;
    padding: 18px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(15,49,87,.12);
}

.mzya-help-support-action svg {
    grid-row: span 2;
    width: 30px;
    height: 30px;
}

.mzya-help-support-action strong {
    font-size: 16px;
}

.mzya-help-support-action span {
    opacity: .9;
    font-size: 13px;
}

.mzya-help-support-action.blue {
    background: linear-gradient(135deg, var(--mzya-help-blue), var(--mzya-help-navy));
}

.mzya-help-support-action.gold {
    background: linear-gradient(135deg, var(--mzya-help-gold), #bf7800);
}

.mzya-help-contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    color: var(--mzya-help-muted);
    font-size: 14px;
}

.mzya-help-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 48, 74, .06);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #f4f8f8);
    box-shadow: var(--mzya-help-shadow-sm);
}

.mzya-help-trust-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 22px;
    border-inline-end: 1px solid rgba(20, 48, 74, .08);
}

.mzya-help-trust-item:last-child {
    border-inline-end: 0;
}

.mzya-help-trust-icon {
    width: 54px;
    height: 54px;
}

.mzya-help-trust-icon svg {
    width: 28px;
    height: 28px;
}

.mzya-help-trust-item strong {
    display: block;
    color: var(--mzya-help-teal-dark);
    font-weight: 950;
}

.mzya-help-trust-item p {
    margin: 5px 0 0;
    color: var(--mzya-help-muted);
    font-size: 13px;
    line-height: 1.55;
}

.mzya-help-article-hero,
.mzya-help-search-page,
.mzya-help-placeholder-page {
    padding: 44px 0 60px;
}

.mzya-help-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--mzya-help-muted);
    font-size: 14px;
}

.mzya-help-breadcrumb a {
    color: var(--mzya-help-teal-dark);
    font-weight: 800;
    text-decoration: none;
}

.mzya-help-article-head {
    padding: 34px;
    border: 1px solid rgba(98,142,146,.20);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(228,162,36,.14), transparent 28%),
        linear-gradient(135deg, #fff, #f5fbfb);
    box-shadow: var(--mzya-help-shadow-sm);
}

.mzya-help-article-head h1,
.mzya-help-search-head h1,
.mzya-help-contact-card h1,
.mzya-help-assistant-shell h1 {
    font-size: clamp(32px, 4vw, 54px);
}

.mzya-help-article-head p,
.mzya-help-search-head p {
    width: min(820px, 100%);
    color: var(--mzya-help-muted);
    font-size: 17px;
    line-height: 1.75;
}

.mzya-help-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    padding-bottom: 60px;
}

.mzya-help-article-card {
    display: grid;
    gap: 32px;
}

.mzya-help-article-card h2,
.mzya-help-sidebar-card h2,
.mzya-help-empty-state h2 {
    margin: 0 0 16px;
    color: var(--mzya-help-navy);
    font-size: 24px;
    font-weight: 950;
}

.mzya-help-steps {
    display: grid;
    gap: 16px;
}

.mzya-help-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(98,142,146,.16);
    border-radius: 18px;
    background: #fff;
}

.mzya-help-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--mzya-help-teal), var(--mzya-help-blue));
}

.mzya-help-step h3 {
    margin: 0 0 6px;
    color: var(--mzya-help-ink);
    font-size: 18px;
    font-weight: 950;
}

.mzya-help-step p,
.mzya-help-note-box li,
.mzya-help-related-list small {
    margin: 0;
    color: var(--mzya-help-muted);
    line-height: 1.7;
}

.mzya-help-note-box {
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(228,162,36,.13), rgba(98,142,146,.08));
    border: 1px solid rgba(228,162,36,.22);
}

.mzya-help-note-box ul {
    margin: 0;
    padding-inline-start: 20px;
}

.mzya-help-article-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.mzya-help-sidebar-card {
    display: grid;
    gap: 12px;
}

.mzya-help-related-list {
    display: grid;
    gap: 10px;
}

.mzya-help-related-list a {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(98,142,146,.14);
    border-radius: 14px;
    color: var(--mzya-help-navy);
    text-decoration: none;
}

.mzya-help-related-list span {
    font-weight: 900;
}

.mzya-help-search-head {
    text-align: center;
}

.mzya-help-search-head p {
    margin: 0 auto 24px;
}

.mzya-help-results {
    display: grid;
    gap: 14px;
    width: min(920px, 100%);
    margin: 28px auto 0;
}

.mzya-help-result-card {
    display: grid;
    gap: 8px;
    padding: 22px;
    color: var(--mzya-help-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mzya-help-result-card span {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(98,142,146,.12);
    color: var(--mzya-help-teal-dark);
    font-size: 12px;
    font-weight: 900;
}

.mzya-help-result-card h2 {
    margin: 0;
    color: var(--mzya-help-navy);
    font-size: 22px;
}

.mzya-help-result-card p {
    margin: 0;
    color: var(--mzya-help-muted);
    line-height: 1.65;
}

.mzya-help-empty-state {
    width: min(720px, 100%);
    margin: 28px auto 0;
    text-align: center;
}

.mzya-help-assistant-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 28px;
    align-items: center;
    padding: 34px;
}

.mzya-help-contact-card {
    width: min(860px, 100%);
    margin: 0 auto;
}

.is-rtl .mzya-help-arrow {
    transform: scaleX(-1);
}

.is-rtl .mzya-help-hero h1,
.is-rtl .mzya-help-article-head h1,
.is-rtl .mzya-help-search-head h1,
.is-rtl .mzya-help-panel h2,
.is-rtl .mzya-help-category-title {
    letter-spacing: 0;
}

@media (max-width: 1180px) {
    .mzya-help-category-grid,
    .mzya-help-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mzya-help-two-columns,
    .mzya-help-article-layout,
    .mzya-help-assistant-shell {
        grid-template-columns: 1fr;
    }

    .mzya-help-article-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mzya-help-container {
        width: min(100% - 20px, 1320px);
    }

    .mzya-help-hero {
        padding: 44px 0 30px;
    }

    .mzya-help-main-search,
    .mzya-help-search-form {
        border-radius: 24px;
        flex-wrap: wrap;
        padding: 14px;
    }

    .mzya-help-main-search button,
    .mzya-help-search-form button {
        width: 100%;
    }

    .mzya-help-category-grid,
    .mzya-help-trust-strip,
    .mzya-help-support-actions,
    .mzya-help-contact-grid,
    .mzya-help-article-sidebar {
        grid-template-columns: 1fr;
    }

    .mzya-help-category-card {
        min-height: 190px;
    }

    .mzya-help-two-columns {
        gap: 18px;
    }

    .mzya-help-assistant-preview {
        grid-template-columns: 1fr;
    }

    .mzya-help-bot-avatar {
        width: 86px;
        height: 86px;
        font-size: 34px;
    }

    .mzya-help-guide-list {
        width: 100%;
    }

    .mzya-help-door-illustration {
        display: none;
    }

    .mzya-help-trust-item {
        border-inline-end: 0;
        border-bottom: 1px solid rgba(20, 48, 74, .08);
    }

    .mzya-help-trust-item:last-child {
        border-bottom: 0;
    }

    .mzya-help-panel,
    .mzya-help-article-card,
    .mzya-help-sidebar-card,
    .mzya-help-contact-card,
    .mzya-help-empty-state,
    .mzya-help-assistant-shell {
        padding: 20px;
        border-radius: 20px;
    }

    .mzya-help-article-head {
        padding: 24px;
    }

    .mzya-help-step {
        grid-template-columns: 1fr;
    }
}

/* Phase 2: official CMS references */
.mzya-help-official-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(45, 88, 147, .12);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(45, 88, 147, .06), rgba(98, 142, 146, .08));
}

.mzya-help-official-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.mzya-help-official-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #fff;
    color: var(--mzya-help-gold);
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(10, 32, 64, .08);
}

.mzya-help-official-head h2 {
    margin: 0 0 6px;
}

.mzya-help-official-head p {
    margin: 0;
    color: var(--mzya-help-muted);
    line-height: 1.65;
}

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

.mzya-help-official-link {
    display: grid;
    gap: 6px;
    padding: 16px;
    border: 1px solid rgba(98, 142, 146, .15);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    color: var(--mzya-help-ink);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mzya-help-official-link:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 142, 146, .35);
    box-shadow: 0 14px 34px rgba(10, 32, 64, .08);
}

.mzya-help-official-link span {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(228, 162, 36, .14);
    color: #9a6810;
    font-size: 11px;
    font-weight: 950;
}

.mzya-help-official-link strong {
    color: var(--mzya-help-navy);
    line-height: 1.35;
}

.mzya-help-official-link small {
    color: var(--mzya-help-muted);
    line-height: 1.55;
}

.mzya-help-sidebar-official .mzya-help-related-list a {
    border-color: rgba(228, 162, 36, .22);
    background: rgba(228, 162, 36, .06);
}

@media (max-width: 760px) {
    .mzya-help-official-list {
        grid-template-columns: 1fr;
    }

    .mzya-help-official-head {
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   Mzya Help Center Phase 3 - Assistant Mzya live chat
   -------------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mzya-help-assistant-page {
    padding: 34px 0 72px;
}

.mzya-help-assistant-layout {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.mzya-help-assistant-sidebar,
.mzya-help-live-chat {
    border: 1px solid rgba(98, 142, 146, .16);
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 58px rgba(10, 32, 64, .09);
}

.mzya-help-assistant-sidebar {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.mzya-help-assistant-sidebar::after {
    content: "";
    position: absolute;
    inset-inline-end: -60px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(98, 142, 146, .14), transparent 70%);
    pointer-events: none;
}

.mzya-help-assistant-sidebar h1 {
    margin: 8px 0 10px;
    color: var(--mzya-help-navy);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.mzya-help-assistant-sidebar p {
    margin: 0;
    color: var(--mzya-help-muted);
    line-height: 1.7;
}

.mzya-help-assistant-info {
    display: grid;
    gap: 7px;
    margin-top: 22px;
    padding: 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(98, 142, 146, .12), rgba(228, 162, 36, .10));
    color: var(--mzya-help-ink);
}

.mzya-help-assistant-info strong {
    color: var(--mzya-help-teal-dark);
}

.mzya-help-assistant-info span {
    color: var(--mzya-help-muted);
    line-height: 1.55;
    font-size: 13px;
}

.mzya-help-assistant-starters,
.mzya-help-assistant-links {
    margin-top: 26px;
}

.mzya-help-assistant-starters h2,
.mzya-help-assistant-links h2 {
    margin: 0 0 12px;
    color: var(--mzya-help-navy);
    font-size: 16px;
}

.mzya-help-starter-grid {
    display: grid;
    gap: 10px;
}

.mzya-help-starter {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(98, 142, 146, .16);
    border-radius: 18px;
    background: #fff;
    color: var(--mzya-help-ink);
    text-align: start;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mzya-help-starter:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 142, 146, .35);
    box-shadow: 0 14px 34px rgba(10, 32, 64, .08);
}

.mzya-help-starter span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: rgb(130 171 227 / 24%);
    color: var(--mzya-help-blue);
    font-weight: 900;
    padding: 3px;
}

.mzya-help-starter span svg,
.mzya-help-bot-avatar svg,
.mzya-help-assistant-mic svg,
.mzya-help-clarification-choice span svg,
.mzya-help-product-image-fallback svg {
    width: 40px;
    height: 40px;
    display: block;
}

.mzya-help-starter strong {
    font-size: 13px;
    line-height: 1.35;
}

.mzya-help-assistant-links {
    display: grid;
    gap: 9px;
}

.mzya-help-assistant-links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(10, 32, 64, .07);
    color: var(--mzya-help-blue);
    font-weight: 850;
    text-decoration: none;
}

.mzya-help-assistant-links a::after {
    content: "\2192";
    color: var(--mzya-help-gold);
}

.mzya-help-center.is-rtl .mzya-help-assistant-links a::after {
    content: "\2190";
}

.mzya-help-live-chat {
    display: grid;
    grid-template-rows: auto minmax(420px, 1fr) auto;
    min-height: 720px;
    overflow: hidden;
}

.mzya-help-live-chat-header {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(98, 142, 146, .14);
    background: linear-gradient(135deg, rgba(98, 142, 146, .12), rgba(255, 255, 255, .88));
}

.mzya-help-live-chat-header strong {
    display: block;
    color: var(--mzya-help-navy);
    font-size: 18px;
}

.mzya-help-live-chat-header span {
    display: block;
    margin-top: 2px;
    color: var(--mzya-help-muted);
    font-size: 13px;
}

.mzya-help-live-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    overflow-y: auto;
    background:
        linear-gradient(rgba(255, 255, 255, .84), rgba(255, 255, 255, .84)),
        radial-gradient(circle at bottom right, rgba(228, 162, 36, .10), transparent 36%);
}

.mzya-help-live-message {
    display: grid;
    gap: 10px;
    max-width: min(92%, 620px);
}

.mzya-help-live-message.is-user {
    align-self: flex-end;
}

.mzya-help-live-message.is-bot {
    align-self: flex-start;
}

.mzya-help-message-bubble {
    padding: 14px 16px;
    border-radius: 20px;
    color: var(--mzya-help-ink);
    line-height: 1.65;
    box-shadow: 0 10px 28px rgba(10, 32, 64, .07);
}

.mzya-help-live-message.is-bot .mzya-help-message-bubble {
    border-start-start-radius: 8px;
    background: #fff;
    border: 1px solid rgba(98, 142, 146, .16);
}

.mzya-help-live-message.is-user .mzya-help-message-bubble {
    border-start-end-radius: 8px;
    background: linear-gradient(135deg, var(--mzya-help-teal), var(--mzya-help-blue));
    color: #fff;
}

.mzya-help-live-message.is-typing .mzya-help-message-bubble {
    color: var(--mzya-help-muted);
    font-style: italic;
}

.mzya-help-assistant-link-pack {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(98, 142, 146, .12);
    background: rgba(255, 255, 255, .7);
}

.mzya-help-assistant-link-pack > strong {
    color: var(--mzya-help-navy);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.mzya-help-assistant-link {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
    color: var(--mzya-help-ink);
    text-decoration: none;
    border: 1px solid rgba(10, 32, 64, .06);
}

.mzya-help-assistant-link:hover {
    border-color: rgba(98, 142, 146, .28);
    box-shadow: 0 10px 24px rgba(10, 32, 64, .07);
}

.mzya-help-assistant-link span {
    color: var(--mzya-help-gold-dark, #9a6810);
    font-size: 11px;
    font-weight: 950;
}

.mzya-help-assistant-link b {
    color: var(--mzya-help-navy);
    font-size: 13px;
}

.mzya-help-assistant-meta {
    color: var(--mzya-help-muted);
    font-size: 12px;
}

.mzya-help-live-chat-footer {
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(98, 142, 146, .14);
    background: rgba(255, 255, 255, .96);
}

.mzya-help-assistant-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 8px;
    border: 1px solid rgba(98, 142, 146, .2);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(10, 32, 64, .06);
}

.mzya-help-assistant-form textarea {
    width: 100%;
    min-height: 44px;
    max-height: 140px;
    padding: 12px 12px;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    color: var(--mzya-help-ink);
    line-height: 1.45;
}

.mzya-help-assistant-send {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mzya-help-teal), var(--mzya-help-blue));
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
}

.mzya-help-assistant-send:hover {
    transform: translateY(-1px);
}

.mzya-help-assistant-send:disabled {
    cursor: not-allowed;
    opacity: .72;
    transform: none;
}

.mzya-help-assistant-error {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(185, 28, 28, .08);
    color: #991b1b;
    font-weight: 750;
    font-size: 13px;
}

.mzya-help-assistant-note {
    margin: 10px 4px 0;
    color: var(--mzya-help-muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .mzya-help-assistant-layout {
        grid-template-columns: 1fr;
    }

    .mzya-help-live-chat {
        min-height: 650px;
    }
}

@media (max-width: 640px) {
    .mzya-help-assistant-page {
        padding: 18px 0 48px;
    }

    .mzya-help-assistant-sidebar,
    .mzya-help-live-chat {
        border-radius: 22px;
    }

    .mzya-help-assistant-sidebar {
        padding: 20px;
    }

    .mzya-help-live-chat {
        min-height: 72vh;
        grid-template-rows: auto minmax(320px, 1fr) auto;
    }

    .mzya-help-live-chat-header,
    .mzya-help-live-chat-messages,
    .mzya-help-live-chat-footer {
        padding-inline: 14px;
    }

    .mzya-help-live-message {
        max-width: 96%;
    }

    .mzya-help-assistant-form {
        grid-template-columns: 1fr;
    }

    .mzya-help-assistant-send {
        width: 100%;
    }
}

/* Phase 4: AI-assisted product search cards inside Assistant Mzya */
.mzya-help-product-results {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(98, 142, 146, .22);
    border-radius: 18px;
    background: rgba(248, 253, 252, .92);
}

.mzya-help-product-results-title {
    display: block;
    margin-bottom: 10px;
    color: var(--mzya-help-blue);
    font-size: 13px;
}

.mzya-help-product-grid {
    display: grid;
    gap: 10px;
}

.mzya-help-product-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.mzya-help-product-image {
    display: flex;
    min-height: 102px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(98, 142, 146, .12), rgba(228, 162, 36, .10));
}

.mzya-help-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mzya-help-product-image-fallback {
    color: var(--mzya-help-teal);
    font-size: 24px;
}

.mzya-help-product-body {
    min-width: 0;
    padding: 10px 10px 10px 0;
}

.is-rtl .mzya-help-product-body {
    padding: 10px 0 10px 10px;
}

.mzya-help-product-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--mzya-help-blue);
    font-weight: 800;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mzya-help-product-name:hover {
    color: var(--mzya-help-teal);
}

.mzya-help-product-price {
    margin-top: 5px;
    color: var(--mzya-help-gold);
    font-weight: 900;
    font-size: 14px;
}

.mzya-help-product-seller {
    margin-top: 5px;
    color: var(--mzya-help-muted);
    font-size: 12px;
}

.mzya-help-product-seller span {
    display: inline-flex;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(45, 88, 147, .10);
    color: var(--mzya-help-blue);
    font-weight: 900;
}

.mzya-help-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.mzya-help-product-badges span {
    border-radius: 999px;
    background: rgba(98, 142, 146, .10);
    color: var(--mzya-help-teal);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 750;
}

.mzya-help-product-action,
.mzya-help-product-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 9px;
    border-radius: 999px;
    background: var(--mzya-help-blue);
    color: #fff;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.mzya-help-product-more {
    width: 100%;
    background: var(--mzya-help-teal);
}

.mzya-help-product-action:hover,
.mzya-help-product-more:hover {
    color: #fff;
    filter: brightness(.96);
}

@media (max-width: 640px) {
    .mzya-help-product-card {
        grid-template-columns: 76px 1fr;
    }

    .mzya-help-product-image {
        min-height: 96px;
    }
}

/* --------------------------------------------------------------------------
   Phase 4.1 fix - Assistant no-scroll UX and AJAX-friendly chat panel
   -------------------------------------------------------------------------- */
.mzya-help-assistant-layout {
    align-items: flex-start;
}

.mzya-help-live-chat {
    position: sticky;
    top: 18px;
    height: clamp(540px, calc(100vh - 260px), 680px);
    min-height: 540px;
    grid-template-rows: auto minmax(220px, 1fr) auto;
}

.mzya-help-live-chat-messages {
    min-height: 0;
}

.mzya-help-assistant-form textarea:disabled {
    opacity: .72;
}

.mzya-help-assistant-form:focus-within {
    border-color: rgba(98, 142, 146, .46);
    box-shadow: 0 16px 34px rgba(10, 32, 64, .09);
}

@media (max-width: 980px) {
    .mzya-help-live-chat {
        position: static;
        height: 70vh;
        min-height: 560px;
    }
}

@media (max-width: 640px) {
    .mzya-help-live-chat {
        height: 76vh;
        min-height: 520px;
    }
}


/* --------------------------------------------------------------------------
   Phase 4.3 polish - tighter assistant results and safer icon arrows
   -------------------------------------------------------------------------- */
.mzya-help-live-message.has-products {
    max-width: min(100%, 760px);
}

.mzya-help-live-message.has-products .mzya-help-message-bubble {
    max-width: 620px;
}

.mzya-help-product-results {
    padding: 10px;
}

.mzya-help-product-results-title {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.mzya-help-product-card {
    grid-template-columns: 78px 1fr;
    gap: 10px;
    border-radius: 15px;
}

.mzya-help-product-image {
    min-height: 88px;
}

.mzya-help-product-body {
    padding-block: 8px;
}

.mzya-help-product-action,
.mzya-help-product-more {
    min-height: 30px;
}

.mzya-help-assistant-link-pack {
    max-width: 100%;
}

.mzya-help-live-chat-messages {
    scroll-behavior: smooth;
}

@media (min-width: 981px) {
    .mzya-help-live-chat {
        height: clamp(560px, calc(100vh - 230px), 720px);
        min-height: 560px;
    }
}

/* --------------------------------------------------------------------------
   Phase 4.5 - Assistant search mode + clarification choices
   -------------------------------------------------------------------------- */
.mzya-help-assistant-mode {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px;
    border: 1px solid rgba(98, 142, 146, .14);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.mzya-help-assistant-mode > span {
    padding-inline: 8px 2px;
    color: var(--mzya-help-muted);
    font-size: 12px;
    font-weight: 850;
}

.mzya-help-assistant-mode button {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(98, 142, 146, .2);
    border-radius: 999px;
    background: #fff;
    color: var(--mzya-help-ink);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.mzya-help-assistant-mode button:hover {
    transform: translateY(-1px);
    border-color: rgba(98, 142, 146, .45);
}

.mzya-help-assistant-mode button.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--mzya-help-teal), var(--mzya-help-blue));
    color: #fff;
    box-shadow: 0 8px 20px rgba(45, 88, 147, .14);
}

.mzya-help-assistant-clarification {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.mzya-help-clarification-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(98, 142, 146, .22);
    border-radius: 999px;
    background: #fff;
    color: var(--mzya-help-navy);
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(10, 32, 64, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.mzya-help-clarification-choice:hover {
    transform: translateY(-1px);
    border-color: rgba(98, 142, 146, .42);
    box-shadow: 0 14px 28px rgba(10, 32, 64, .09);
}

.mzya-help-clarification-choice span {
    font-size: 16px;
}

.mzya-help-center.is-rtl .mzya-help-assistant-mode > span {
    padding-inline: 2px 8px;
}

@media (max-width: 640px) {
    .mzya-help-assistant-mode {
        gap: 6px;
    }

    .mzya-help-assistant-mode > span {
        flex-basis: 100%;
    }

    .mzya-help-assistant-mode button,
    .mzya-help-clarification-choice {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Phase 5 - Microphone voice typing + assistant input polish
   -------------------------------------------------------------------------- */
.mzya-help-assistant-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
}

.mzya-help-assistant-mic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(98, 142, 146, .22);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(98, 142, 146, .09), rgba(255, 255, 255, .96));
    color: var(--mzya-help-teal-dark);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.mzya-help-assistant-mic svg {
    width: 20px;
    height: 20px;
}

.mzya-help-assistant-mic:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(98, 142, 146, .45);
    box-shadow: 0 10px 24px rgba(10, 32, 64, .08);
}

.mzya-help-assistant-mic:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.mzya-help-assistant-mic.is-listening {
    border-color: transparent;
    background: linear-gradient(135deg, var(--mzya-help-teal), var(--mzya-help-blue));
    color: #fff;
    animation: mzyaHelpMicPulse 1.25s infinite;
}

@keyframes mzyaHelpMicPulse {
    0% { box-shadow: 0 0 0 0 rgba(98, 142, 146, .42); }
    70% { box-shadow: 0 0 0 12px rgba(98, 142, 146, 0); }
    100% { box-shadow: 0 0 0 0 rgba(98, 142, 146, 0); }
}

.mzya-help-assistant-voice-note {
    margin: 9px 5px 0;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(98, 142, 146, .09);
    color: var(--mzya-help-teal-dark);
    font-size: 12px;
    line-height: 1.45;
}

.mzya-help-assistant-voice-note.is-listening {
    background: rgba(98, 142, 146, .14);
    color: var(--mzya-help-blue);
    font-weight: 850;
}

.mzya-help-assistant-voice-note.is-error {
    background: rgba(185, 28, 28, .08);
    color: #991b1b;
    font-weight: 850;
}

.mzya-help-center.is-rtl .mzya-help-assistant-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

@media (max-width: 640px) {
    .mzya-help-assistant-form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mzya-help-assistant-send {
        grid-column: 1 / -1;
    }
}

/* Phase 6 — support contact, feedback and analytics UX */
.mzya-help-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, .75fr);
    gap: 28px;
    align-items: start;
}

.mzya-help-contact-form-card {
    padding: 34px;
}

.mzya-help-contact-side {
    display: grid;
    gap: 18px;
}

.mzya-help-contact-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.mzya-help-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mzya-help-field {
    display: grid;
    gap: 8px;
}

.mzya-help-field label {
    color: #083b63;
    font-size: 13px;
    font-weight: 800;
}

.mzya-help-field input,
.mzya-help-field select,
.mzya-help-field textarea {
    width: 100%;
    border: 1px solid rgba(98, 142, 146, .22);
    border-radius: 16px;
    background: #fff;
    color: #0b3052;
    font-size: 14px;
    padding: 13px 15px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.mzya-help-field textarea {
    resize: vertical;
    min-height: 150px;
}

.mzya-help-field input:focus,
.mzya-help-field select:focus,
.mzya-help-field textarea:focus {
    border-color: #628e92;
    box-shadow: 0 0 0 4px rgba(98, 142, 146, .14);
}

.mzya-help-field small {
    color: #b42318;
    font-size: 12px;
}

.mzya-help-contact-note {
    border-radius: 16px;
    background: rgba(98, 142, 146, .09);
    color: #0a5f66;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 14px;
}

.mzya-help-form-alert {
    border-radius: 18px;
    font-weight: 800;
    line-height: 1.5;
    margin-top: 18px;
    padding: 14px 16px;
}

.mzya-help-form-alert.is-success {
    background: rgba(98, 142, 146, .12);
    color: #0a6669;
}

.mzya-help-form-alert.is-error {
    background: rgba(180, 35, 24, .10);
    color: #b42318;
}

.mzya-help-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.mzya-help-contact-direct p {
    color: #2d5893;
    font-weight: 900;
    margin-top: 8px;
}

.mzya-help-feedback-box,
.mzya-help-assistant-feedback {
    border: 1px solid rgba(98, 142, 146, .16);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(98, 142, 146, .08), rgba(228, 162, 36, .06));
    margin-top: 22px;
    padding: 18px;
}

.mzya-help-feedback-box h2 {
    color: #083b63;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

.mzya-help-feedback-box p {
    color: #5b6b7f;
    font-size: 14px;
    line-height: 1.6;
}

.mzya-help-feedback-form,
.mzya-help-assistant-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mzya-help-feedback-button,
.mzya-help-assistant-feedback button {
    border: 1px solid rgba(98, 142, 146, .25);
    border-radius: 999px;
    background: #fff;
    color: #0b4770;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 13px;
}

.mzya-help-feedback-button:hover,
.mzya-help-assistant-feedback button:hover {
    border-color: #628e92;
    color: #075e64;
}

.mzya-help-feedback-thanks,
.mzya-help-assistant-feedback.is-sent span {
    color: #087064;
    font-weight: 800;
}

.mzya-help-assistant-feedback {
    margin-top: 12px;
    padding: 10px 12px;
}

.mzya-help-assistant-feedback > span {
    color: #52677d;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .mzya-help-contact-layout,
    .mzya-help-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 6.1 — secure contact form / Bagisto captcha integration */
.mzya-help-captcha {
    border: 1px solid rgba(98, 142, 146, .18);
    border-radius: 16px;
    background: rgba(248, 250, 252, .85);
    margin: 14px 0 0;
    padding: 14px 16px;
}

.mzya-help-captcha small {
    color: #b42318;
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.mzya-help-captcha-note {
    color: #52677d;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.is-rtl .mzya-help-captcha .g-recaptcha {
    display: flex;
    justify-content: flex-end;
}

/* Phase 7: production integration, SEO polish helpers, and mobile assistant improvements */
.mzya-help-contextual-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.mzya-help-contextual-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(98, 142, 146, 0.16);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    color: #0b2f5b;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mzya-help-contextual-link:hover {
    transform: translateY(-2px);
    border-color: rgba(98, 142, 146, 0.42);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.mzya-help-contextual-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(98, 142, 146, 0.12);
    color: #0b7a83;
}

.mzya-help-contextual-icon svg {
    width: 21px;
    height: 21px;
}

.mzya-help-contextual-link strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.mzya-help-contextual-link small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    line-height: 1.35;
}

.mzya-help-floating-entry {
    position: fixed;
    z-index: 40;
    bottom: 22px;
    right: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d5893, #628e92);
    color: #fff;
    box-shadow: 0 16px 36px rgba(45, 88, 147, 0.25);
    font-weight: 800;
    text-decoration: none;
}

.mzya-help-floating-entry.is-rtl {
    right: auto;
    left: 22px;
}

.mzya-help-floating-entry__icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.mzya-help-floating-entry__icon svg {
    width: 18px;
    height: 18px;
}

.mzya-help-floating-entry:hover {
    color: #fff;
    transform: translateY(-1px);
}

.mzya-help-empty-state .mzya-help-button + .mzya-help-button,
.mzya-help-sidebar-card .mzya-help-button + .mzya-help-button {
    margin-top: 10px;
}

@media (max-width: 992px) {
    .mzya-help-contextual-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mzya-help-assistant-layout {
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .mzya-help-contextual-links {
        grid-template-columns: 1fr;
    }

    .mzya-help-floating-entry {
        right: 14px;
        bottom: 14px;
        min-height: 44px;
        padding: 9px 12px;
    }

    .mzya-help-floating-entry.is-rtl {
        left: 14px;
    }

    .mzya-help-floating-entry__text {
        display: none;
    }

    .mzya-help-assistant-chat {
        max-height: calc(100vh - 150px);
    }

    .mzya-help-assistant-page {
        padding-top: 18px;
    }

    .mzya-help-assistant-card,
    .mzya-help-assistant-sidebar,
    .mzya-help-card,
    .mzya-help-support-form-card {
        border-radius: 22px;
    }
}


/* --------------------------------------------------------------------------
   Phase 7.2 — final customer-facing polish
   -------------------------------------------------------------------------- */
.mzya-help-live-chat-messages {
    padding-bottom: 130px;
    scroll-padding-bottom: 130px;
}

.mzya-help-live-chat-footer {
    z-index: 5;
}

.mzya-help-assistant-info strong {
    color: var(--mzya-help-teal-dark);
}

.mzya-help-assistant-voice-note[hidden] {
    display: none !important;
}

.mzya-help-assistant-voice-note {
    margin-top: 7px;
}

@media (max-width: 640px) {
    .mzya-help-live-chat-messages {
        padding-bottom: 156px;
        scroll-padding-bottom: 156px;
    }
}


/* --------------------------------------------------------------------------
   Phase 29 — Professional Assistant UX + stronger Mzya blue identity
   -------------------------------------------------------------------------- */
.mzya-help-live-chat {
    grid-template-rows: auto minmax(620px, 1fr) auto;
    min-height: 860px;
    height: clamp(760px, calc(100vh - 170px), 920px);
    border-color: rgba(45, 88, 147, .18);
}

.mzya-help-live-chat-header {
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    background:
        radial-gradient(circle at 18% 50%, rgba(45, 88, 147, .12), transparent 36%),
        linear-gradient(135deg, rgba(45, 88, 147, .10), rgba(255, 255, 255, .92));
    border-bottom-color: rgba(45, 88, 147, .14);
}

.mzya-help-live-chat-identity {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mzya-help-live-chat-header .mzya-help-bot-avatar {
    background: var(--mzya-help-blue);
    box-shadow: 0 0 0 10px rgba(45, 88, 147, .22), 0 18px 38px rgba(45, 88, 147, .18);
}

.mzya-help-live-chat-header strong {
    color: var(--mzya-help-navy);
}

.mzya-help-assistant-mode--header {
    margin: 0;
    flex: 0 1 auto;
    justify-content: flex-end;
    border-color: rgba(45, 88, 147, .18);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 22px rgba(45, 88, 147, .07);
}

.mzya-help-center.is-rtl .mzya-help-assistant-mode--header {
    justify-content: flex-start;
}

.mzya-help-assistant-mode button.is-active,
.mzya-help-assistant-send,
.mzya-help-product-action,
.mzya-help-product-more {
    background: linear-gradient(135deg, var(--mzya-help-blue), var(--mzya-help-navy));
    box-shadow: 0 10px 22px rgba(45, 88, 147, .18);
}

.mzya-help-live-message.is-user .mzya-help-message-bubble {
    background: linear-gradient(135deg, #557f99, var(--mzya-help-blue));
    box-shadow: 0 12px 30px rgba(45, 88, 147, .18);
}

.mzya-help-live-chat-messages {
    min-height: 0;
    padding-bottom: 28px;
    scroll-padding-bottom: 36px;
    background:
        linear-gradient(rgba(255, 255, 255, .88), rgba(255, 255, 255, .88)),
        radial-gradient(circle at bottom right, rgba(45, 88, 147, .08), transparent 38%);
}

.mzya-help-live-chat-footer {
    border-top-color: rgba(45, 88, 147, .14);
}

.mzya-help-assistant-form:focus-within {
    border-color: rgba(45, 88, 147, .44);
    box-shadow: 0 16px 34px rgba(45, 88, 147, .10);
}

@media (max-width: 980px) {
    .mzya-help-live-chat {
        position: static;
        height: 78vh;
        min-height: 700px;
        grid-template-rows: auto minmax(460px, 1fr) auto;
    }

    .mzya-help-live-chat-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mzya-help-center.is-rtl .mzya-help-live-chat-header {
        align-items: stretch;
    }

    .mzya-help-assistant-mode--header {
        width: 100%;
        justify-content: flex-start;
    }

    .mzya-help-center.is-rtl .mzya-help-assistant-mode--header {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .mzya-help-live-chat {
        height: 82vh;
        min-height: 660px;
        grid-template-rows: auto minmax(390px, 1fr) auto;
    }

    .mzya-help-live-chat-header {
        padding: 16px 14px;
    }

    .mzya-help-assistant-mode--header > span {
        flex-basis: 100%;
    }
}
